Jump to content
  • 0

Continuous Effect when Equipped Item


Question

5 answers to this question

Recommended Posts

Posted (edited)

It's not suggestible to loop things but here's an example..

30005,OMG_Weapon,OMG Weapon,4,1,,1,10,,1,0,0xFFFFFFFF,7,2,2,1,1,0,1,{ while(1) { misceffect 31; sleep2 1000; } },{},{}

I didn't test it so I don't know if it actually works.. but it theoretically should considering there is no indicator for 1

Edited by Nameless2you
Posted

@Nameless2You

It works, but when you unequipped it still works xD. Thanks for the idea.

I edited it and this is what I got. I dont know if it will fck my server though haha.

30005,OMG_Weapon,OMG Weapon,4,1,,1,10,,1,0,0xFFFFFFFF,7,2,2,1,1,0,1,{},{set @worn, 1; while(@worn==1){misceffect 31; sleep2 2000;}},{set @worn, 0;}

If I use this? the loop will run even if I logged out?

30005,OMG_Weapon,OMG Weapon,4,1,,1,10,,1,0,0xFFFFFFFF,7,2,2,1,1,0,1,{sleep2 2000; while(@worn==1){misceffect 31; sleep2 2000; if(@worn==0){break;}}},{set @worn, 1; },{set @worn, 0;}

im using this now.

Posted (edited)

Well you could try however I don't know if this'll work this:

30005,OMG_Weapon,OMG Weapon,4,1,,1,10,,1,0,0xFFFFFFFF,7,2,2,1,1,0,1,{},{while(1){misceffect 31; sleep2 2000;}},{end;},{}

but this here, your first script should work just fine:

30005,OMG_Weapon,OMG Weapon,4,1,,1,10,,1,0,0xFFFFFFFF,7,2,2,1,1,0,1,{},{set @w, 1; while(@w == 1){misceffect 31; sleep2 2000;}},{set @w,2;},{}

http://rathena.org/wiki/while for more info

Edited by Nameless2you
Posted · Hidden by mleo1, April 16, 2012 - im wrong lol
Hidden by mleo1, April 16, 2012 - im wrong lol

30005,OMG_Weapon,OMG Weapon,4,1,,1,10,,1,0,0xFFFFFFFF,7,2,2,1,1,0,1,{},{while(1){misceffect 31; sleep2 2000;}},{end;}

@nameless

wurks and is more readable now xD~. thanks.

Posted (edited)

@nameless

it does not wurk xD

im currently using this, and it works to me, for now xD

30005,OMG_Weapon,OMG Weapon,4,1,,1,10,,1,0,0xFFFFFFFF,7,2,2,1,1,0,1,{bonus bBaseAtk,1;},{set @worn, 1; while(@worn==1){misceffect 31; sleep2 2000;}},{set @worn, 0;}

while(isequippedcnt(30005)==1){misceffect 199; sleep2 2000;}

Edited by mleo1

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...