IvanD Posted May 8, 2018 Group: Members Topic Count: 61 Topics Per Day: 0.02 Content Count: 110 Reputation: 0 Joined: 11/13/17 Last Seen: July 24, 2022 Share 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 Link to comment Share on other sites More sharing options...
0 Technoken Posted May 8, 2018 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 505 Reputation: 127 Joined: 04/04/16 Last Seen: Sunday at 02:20 PM Share 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 Link to comment Share on other sites More sharing options...
0 IvanD Posted May 8, 2018 Group: Members Topic Count: 61 Topics Per Day: 0.02 Content Count: 110 Reputation: 0 Joined: 11/13/17 Last Seen: July 24, 2022 Author Share 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 Link to comment Share on other sites More sharing options...
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 IvanDLink 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.