Jump to content
  • 0

NPC Teleport Randomly


Question

Posted

Is it possible to make the npc. Teleport in the map of prontera for example? and random coordinates but it will trigger when someone finish using it?

 

anyone knows about this? if not its ok. thanks!

 

 

9 answers to this question

Recommended Posts

Posted (edited)

try change warp to these

while( !checkcell( strnpcinfo(4),( .@x = rand( 1,300 ) ),( .@y = rand( 1,300 ) ),cell_chkpass ) );
movenpc strnpcinfo(0),.@x,.@y;
Edited by Emistry
  • Upvote 2
Posted (edited)
mes "Done talking to NPC";
close2;
warp "prontera",0,0;
end;

add this to your NPC.

 

 

I tested it. but the player was the one who got warped. not the NPC

Edited by Ginji
Posted (edited)

 

try change warp to these

while( !checkcell( strnpcinfo(4),( .@x = rand( 1,300 ) ),( .xy = rand( 1,300 ) ),cell_chkpass ) );
movenpc strnpcinfo(0),.@x,.@y;

 

Thanks, it solved the problem :)

 

Fixed (is it correct?)

.xy changed to .@y
Edited by Ginji
Posted

movenpc only move the npc , change location

 

not hide the npc.

 

Yes. i actually search on wiki about that. but the script you give me was not showing the npc.

 

i tried to change this part .xy into .@y. and it works thanks for your help :)

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...