Slavele

Tzuridis

New member
Messages
11
Points
0
Location
GR
Emulator
{} { 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

 
Last edited by a moderator:
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?

 
Last edited by a moderator:
Code:
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
 
Back
Top