Jump to content

Question

Posted

i got some script using this

if ( ( countitem ( $@Face[0] ) ) && ( countitem ( $@Face[1] ) ) && ( countitem ( $@Face[2] ) ) && ( countitem ( $@Face[3] ) ) )

but i click the item ints not moving the character...is there any bonus to let character move 1 like up left right down.

 

32720,poring_snake01,Poring Snake01,,,,,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{}
32721,poring_snake02,Poring Snake02,,,,,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{}
32722,poring_snake03,Poring Snake03,,,,,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{}
32723,poring_snake04,Poring Snake04,,,,,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{}
 
is there have any bonus to make character move?like walking?

4 answers to this question

Recommended Posts

Posted
*unitwalk <GID>,<x>,<y>;
*unitwalk <GID>,<Target ID>;
 
This command will tell a <GID> to walk to a position, defined either as a set of
coordinates or another object. The command returns a 1 for success and 0 upon failure.
 
If coordinates are passed, the <GID> will walk to the given x,y coordinates on the
unit's current map. While there is no way to move across an entire map with 1 command
use, this could be used in a loop to move long distances.
 
If an object ID is passed, the initial <GID> will walk to the <Target ID> (similar to
walking to attack). This is based on the distance from <GID> to <Target ID>. This command
uses a hard walk check, so it will calculate a walk path with obstacles. Sending a bad
target ID will result in an error.
 
Examples:
 
// Makes player walk to the coordinates (150,150).
unitwalk getcharid(3),150,150;
 
// Performs a conditional check with the command and reports success or failure to the player.
if(unitwalk(getcharid(3),150,150))
dispbottom "Walking you there...";
else
dispbottom "That's too far away, man.";
 
// Makes player walk to another character named "WalkToMe".
unitwalk getcharid(3),getcharid(3,"WalkToMe");
  • Upvote 1
Posted

working but cant target my npc /hum  

 

32720,poring_snake01,Poring Snake01,,,,,,,,,0xFFFFFFFF,7,2,,,,,,{ unitwalk getcharid(3),getcharid(3,"Angel Snake Poring"); },{},{}
32721,poring_snake02,Poring Snake02,,,,,,,,,0xFFFFFFFF,7,2,,,,,,{ unitwalk getcharid(3),getcharid(3,"Angel Snake Poring"); },{},{}
32722,poring_snake03,Poring Snake03,,,,,,,,,0xFFFFFFFF,7,2,,,,,,{ unitwalk getcharid(3),getcharid(3,"Angel Snake Poring"); },{},{}
32723,poring_snake04,Poring Snake04,,,,,,,,,0xFFFFFFFF,7,2,,,,,,{ unitwalk getcharid(3),getcharid(3,"Angel Snake Poring"); },{},{}

 

 

1 more thing its a event script so the name is Angel Snake Poring but the item i try to click say not see the npc...if the target is monster its cant move to the bonus i write in item?
and is there a way to make it infinite use?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...