Page 1 of 1
Commands
Posted: Wed Jan 21, 2009 7:07 am
by Cameron
Ok sorry to be asking so many questions but back when i used to have servers back in the day i remember a command that allowed me to move objects by values based on x y z coordinates i thought it was xmove or something like that is there still something like that? or not and if so what? also is there a more extensive list of commands i looked through whats posted here and id like to know if theres more i don't need what they do just what are they.
Posted: Wed Jan 21, 2009 8:15 am
by Xuri
There is no such thing as asking too many questions.
Here are some commands you can use to move stuff with:
'INCX # (move an item along the X-axis)
'INCY # (move an item along the Y-axis)
'INCZ # (move an item along the Z-axis)
'SET X (move an item to a specific X-coordinate)
'SET Y (move an item to a specific Y-coordinate)
'SET Z (move an item to a specific Z-coordinate)
'TELESTUFF <target> <targetlocation> (Move a targeted item to a targeted location)
'MOVETOBAG (teleport an item to your own backpack)
'XTELEPORT <target> (teleport a target to your character's feet)
'XTELEPORT # (teleports player logged into connection slot # to your feet)
'XTELEPORT # # # # (teleports player with serial # # # # to your feet)
Also check out the
full command-list
Posted: Wed Jan 21, 2009 10:01 am
by Maarc
Don't forget about 'validcmd and 'howto. Some howto docs would really be useful. I might contribute such one weekend.
Posted: Wed Jan 21, 2009 10:54 am
by Xuri
We should consider renaming 'howto to 'help, or to implement some sort of help-"portal" (with links to 'howto, validcmd, commandlist, etc).
Posted: Thu Jan 22, 2009 12:37 am
by Cameron
ok so
INCX
INCY
INCZ
are kinda what i was looking for but id love to have them all on the same command like they used to be... so i could move something along the x and y to make it move diagonally
Posted: Thu Jan 22, 2009 1:00 am
by giwo
I bet Xuri could knock out a JS command that would do just that in no time.

Posted: Thu Jan 22, 2009 1:13 am
by Cameron
ok well ill be a bit more specific then there are a few commands id like to see that will make everyone's decorating much easyer
ok the above mentioned also with that one that moves your self the same with with out a targeting thing
I'm also dieing for nudgeup and nudgedown moves z up or down 1 respectively although i could do it with the other command just easyer to remember that way... oh how about a turn command for items that can be turned of corse
Please......... =)
Posted: Fri Jan 23, 2009 2:04 am
by Mindless Automaton
isn't it just:
Code: Select all
function CommandRegistration()
{
RegisterCommand( "nup", 2, true );
RegisterCommand( "ndown", 2, true );
RegisterCommand( "incne", 2, true );
RegisterCommand( "incnw", 2, true );
RegisterCommand( "incse", 2, true );
RegisterCommand( "incsw", 2, true );
}
function command_NUP( socket )
{
var targMsg = GetDictionaryEntry( 254, socket.Language );
socket.CustomTarget( 0, targMsg );
}
function onCallback0( socket, ourObj )
{
if( !socket.GetWord( 1 ) )
ourObj.z = (ourObj.z + 1);
}
function command_NDOWN( socket )
{
var targMsg = GetDictionaryEntry( 254, socket.Language );
socket.CustomTarget( 0, targMsg );
}
function onCallback0( socket, ourObj )
{
if( !socket.GetWord( 1 ) )
ourObj.z = (ourObj.z - 1);
}
function command_INCNE( socket )
{
var targMsg = GetDictionaryEntry( 254, socket.Language );
socket.CustomTarget( 0, targMsg );
}
function onCallback0( socket, ourObj )
{
if( !socket.GetWord( 1 ) )
ourObj.x = (ourObj.x + 1);
ourObj.y = (ourObj.y + 1);
}
function command_INCNW( socket )
{
var targMsg = GetDictionaryEntry( 254, socket.Language );
socket.CustomTarget( 0, targMsg );
}
function onCallback0( socket, ourObj )
{
if( !socket.GetWord( 1 ) )
ourObj.x = (ourObj.x - 1);
ourObj.y = (ourObj.y + 1);
}
function command_INCSE( socket )
{
var targMsg = GetDictionaryEntry( 254, socket.Language );
socket.CustomTarget( 0, targMsg );
}
function onCallback0( socket, ourObj )
{
if( !socket.GetWord( 1 ) )
ourObj.x = (ourObj.x + 1);
ourObj.y = (ourObj.y - 1);
}
function command_INCSW( socket )
{
var targMsg = GetDictionaryEntry( 254, socket.Language );
socket.CustomTarget( 0, targMsg );
}
function onCallback0( socket, ourObj )
{
if( !socket.GetWord( 1 ) )
ourObj.x = (ourObj.x - 1);
ourObj.y = (ourObj.y - 1);
}
Throw in some diagonal, assuming N (north) is +y, E (east) is +x, etc.)
It might even work if I tested it.
Not sure about using TurnTowards on items though..
Posted: Fri Jan 30, 2009 4:01 am
by Mindless Automaton
oh how about a turn command for items that can be turned of corse
../js/server/misc/furniture_smartturn.js