I'm doing an item evolution script wherein when a player stays on the map for a specific time while a certain item is equipped, said item will evolve to another item. The script works as advertises but it still runs even if the player leaves the map. I would like for the timer to stop if the player leaves the designated map. How can I modify the script to do just that?
Question
ran0120
I'm doing an item evolution script wherein when a player stays on the map for a specific time while a certain item is equipped, said item will evolve to another item. The script works as advertises but it still runs even if the player leaves the map. I would like for the timer to stop if the player leaves the designated map. How can I modify the script to do just that?
- script Fire Wings Evolution -1,{ OnPCLoadMapEvent: while ( isequipped(30058) && strcharinfo(3) == "thor_03" ) goto start_fire_time; start_fire_time: set fire_wings_evo,1; attachnpctimer; initnpctimer; end; OnTimer10000: if ( fire_wings_evo > 0 ) { unequip EQI_HEAD_LOW; getitem 30035,1; sleep2 100; delitem 30058,1; equip 30035; stopnpctimer; detachnpctimer; end; } end; OnPCDieEvent: if ( fire_wings_evo > 0 ) { set fire_wings_evo,0; end; } } thor_v03 mapflag loadevent
Link to comment
Share on other sites
1 answer 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.