Jump to content
  • 0

Continuous Effect when Equipped Item


mleo1

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  123
  • Reputation:   4
  • Joined:  11/21/11
  • Last Seen:  

https://rathena.svn....effect_list.txt

// testItem/example

30005,OMG_Weapon,OMG Weapon,4,1,,1,10,,1,0,0xFFFFFFFF,7,2,2,1,1,0,1,{misceffect 31;},{},{}

I want to make an item show effects when equipped. The special/misceffect only plays one time.

How can you make an effect continuously? Teach me src edits please.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  123
  • Reputation:   4
  • Joined:  11/21/11
  • Last Seen:  

@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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  351
  • Reputation:   52
  • Joined:  11/15/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  123
  • Reputation:   4
  • Joined:  11/21/11
  • Last Seen:  

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.

Link to comment

  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  123
  • Reputation:   4
  • Joined:  11/21/11
  • Last Seen:  

@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
Link to comment
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.   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.

×
×
  • Create New...