Radian Posted October 11, 2014 Posted October 11, 2014 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! Quote
Emistry Posted October 11, 2014 Posted October 11, 2014 (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 October 11, 2014 by Emistry 2 Quote
Yonko Posted October 11, 2014 Posted October 11, 2014 finishing what? i didn't get what you mean Quote
Radian Posted October 11, 2014 Author Posted October 11, 2014 finishing what? i didn't get what you mean Finish using the NPC. Quote
Emistry Posted October 11, 2014 Posted October 11, 2014 mes "Done talking to NPC"; close2; warp "prontera",0,0; end; add this to your NPC. Quote
Radian Posted October 11, 2014 Author Posted October 11, 2014 (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 October 11, 2014 by Ginji Quote
Radian Posted October 11, 2014 Author Posted October 11, 2014 (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 October 11, 2014 by Ginji Quote
Emistry Posted October 11, 2014 Posted October 11, 2014 movenpc only move the npc , change location not hide the npc. Quote
Radian Posted October 11, 2014 Author Posted October 11, 2014 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 Quote
Talon Posted October 29, 2014 Posted October 29, 2014 (edited) Thanks for this! Been searching for this everywhere.. Finally! You made my day Edited October 29, 2014 by Talon Quote
Question
Radian
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.