IvanD Posted May 8, 2018 Posted May 8, 2018 (edited) 1:: hello is there script that when you equip an item... it will automatically teleports you to certain location? (prontera, 99,99) 2:: portal that will return you to last location. Edited May 8, 2018 by IvanD Quote
0 Technoken Posted May 8, 2018 Posted May 8, 2018 1. { Script },{ OnEquip_Script },{ OnUnequip_Script } On the onequip script you can use warp "prontera",99,99; 2. Last location before you equip the item? You can save the current location before you execute warp command. {},{ getmapxy(@last_map$,@last_x,@last_y,UNITTYPE_PC); warp "prontera",99,99; }, {} Then for the portal prontera,150,150,4 script warp#lastmap 45,2,2,{ if( @last_map$ != "") warp @last_map$,@last_x,@last_y; else warp "SavePoint",0,0; end; } Quote
0 IvanD Posted May 8, 2018 Author Posted May 8, 2018 5 minutes ago, Technoken said: 1. { Script },{ OnEquip_Script },{ OnUnequip_Script } On the onequip script you can use warp "prontera",99,99; 2. Last location before you equip the item? You can save the current location before you execute warp command. {},{ getmapxy(@last_map$,@last_x,@last_y,UNITTYPE_PC); warp "prontera",99,99; }, {} Then for the portal prontera,150,150,4 script warp#lastmap 45,2,2,{ if( @last_map$ != "") warp @last_map$,@last_x,@last_y; else warp "SavePoint",0,0; end; } thank you very much for the fast answer.... i will try it soon.... thank you again! :] Quote
Question
IvanD
1:: hello is there script that when you equip an item... it will automatically teleports you to certain location? (prontera, 99,99)
2:: portal that will return you to last location.
Edited by IvanD2 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.