pajodex Posted January 5, 2018 Group: Members Topic Count: 79 Topics Per Day: 0.03 Content Count: 439 Reputation: 173 Joined: 12/12/17 Last Seen: April 14 Share Posted January 5, 2018 guild_vs2,51,30,0 script ohh yeas 100,1,1,{ OnTouch: movenpc strnpcinfo(0),.@rand_x,.@rand_y; } Hi, Based on the script, how can i make it warped to the same map "guild_vs2". When i approach the npc, it just disappears. Also, I dont want it to be clickable like the warps. Ty Quote Link to comment Share on other sites More sharing options...
1 Emistry Posted January 10, 2018 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted January 10, 2018 You need a value for both .@rand_x and .@rand_y variable. Your current script move the NPC to coordinate 0,0 .. hence it disappeared. use something like rand(<number>) to return a random coordinate for the npc to move. Quote Link to comment Share on other sites More sharing options...
0 Akkarin Posted January 5, 2018 Group: Forum Manager Topic Count: 282 Topics Per Day: 0.06 Content Count: 3144 Reputation: 1632 Joined: 03/26/12 Last Seen: April 15 Share Posted January 5, 2018 If you put an "end;" before the on touch label, the script won't run when a player clicks it. How are you defining the new coordinates? Don't forget you can use dispbottom or debugmes and output the vars so you can see where it's moved to. Quote Link to comment Share on other sites More sharing options...
Question
pajodex
guild_vs2,51,30,0 script ohh yeas 100,1,1,{ OnTouch: movenpc strnpcinfo(0),.@rand_x,.@rand_y; }
Hi,
Based on the script, how can i make it warped to the same map "guild_vs2". When i approach the npc, it just disappears. Also, I dont want it to be clickable like the warps. Ty
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.