Tzuridis 0 Posted January 29, 2014 (edited) {} { if(slavele <= 3) summon "Slave",1569,"9999999"; } { sc_end sc_all; } 2 questions: 1. How can I make it so the onequip script works correctly? Note With code posted above it doesnt matter if its onequip or script both dont work as intended >= do == work in that they summon the mobs but it doesnt measure the spawn count. Requipping the item continues to spawn the mob. =< doesnt work at all. 2. How can I remove slaves/spawns/summons on unequip? An answer to either question can solve the problem Thank you Edited January 29, 2014 by Tzuridis Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted January 29, 2014 http://www.eathena.ws/board/index.php?s=&showtopic=177722&view=findpost&p=1001559 abuse the event labels the only down side of using this trick is your server will spam error message like cannot find label clonecheck::On150000 but the script works perfectly fine 1 Tzuridis reacted to this Quote Share this post Link to post Share on other sites
0 安赫尔 9 Posted January 29, 2014 Oh, Annie. My queen! Quote Share this post Link to post Share on other sites
0 Tzuridis 0 Posted January 29, 2014 (edited) Im a little confused, Ive never really dealt with event labels. Slave.txt prontera,154,182,5 script slave -1,{Onhaha: getmapxy .@map$, .@x, .@y, 0; if ( mobcount(.@map$, "clonecheck::On"+ getcharid(0)) >= 1 ) end; clone .@map$, .@x, .@y, "clonecheck::On"+ getcharid(0), getcharid(0), getcharid(0), 0x8D, 1; sleep2 360000; // the clone last 5 minutes if ( mobcount(.@map$, "clonecheck::On"+ getcharid(0)) == 0 ) end; killmonster strcharinfo(3), "clonecheck::On"+ getcharid(0);} Item script { autobonus "{}", 1000, 1000, BF_NORMAL, "{ addtimer 1,"slave::Onhaha"; }"; },{},{ killmonster strcharinfo(3), "clonecheck::On"+ getcharid(0); sleep2 3000; if ( isequipped(5304) ) end; killmonster strcharinfo(3), "clonecheck::On"+ getcharid(0); } Messing around didnt really do much, uhm. 1. What do I have to change to make it so it works? ( just trying to test clone before I change it to summon "" #; ) 2. I havnt been able to test it because I cant get it to work but would summoncheck or spawncheck replace clonecheck? Or does clone check for both? Edited January 29, 2014 by Tzuridis Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted February 2, 2014 update item_db_reset equip_script = 'getmapxy .@map$, .@x, .@y, 0; for ( .@i = 0; .@i < 3; .@i++ ) clone .@map$, .@x, .@y, "clonecheck::On"+ getcharid(0), getcharid(0), getcharid(0), 0x8D, 1;',unequip_script = 'killmonster strcharinfo(3), "clonecheck::On"+ getcharid(0);'where id = 1201;like this should work Quote Share this post Link to post Share on other sites
2 questions:
1. How can I make it so the onequip script works correctly?
Note
With code posted above it doesnt matter if its onequip or script both dont work as intended
>= do == work in that they summon the mobs but it doesnt measure the spawn count. Requipping the item continues to spawn the mob.
=< doesnt work at all.
2. How can I remove slaves/spawns/summons on unequip?
An answer to either question can solve the problem
Thank you
Edited by TzuridisShare this post
Link to post
Share on other sites