Jump to content
  • 0
Sign in to follow this  
Tzuridis

Slavele

Question

{} { 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 by Tzuridis

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

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 by Tzuridis

Share this post


Link to post
Share on other sites
  • 0
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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.