mleo1 Posted April 15, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 123 Reputation: 4 Joined: 11/21/11 Last Seen: January 26 Share Posted April 15, 2012 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. Quote Link to comment Share on other sites More sharing options...
Nameless2you Posted April 15, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share Posted April 15, 2012 (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 April 15, 2012 by Nameless2you Quote Link to comment Share on other sites More sharing options...
mleo1 Posted April 16, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 123 Reputation: 4 Joined: 11/21/11 Last Seen: January 26 Author Share Posted April 16, 2012 @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. Quote Link to comment Share on other sites More sharing options...
Nameless2you Posted April 16, 2012 Group: Members Topic Count: 14 Topics Per Day: 0.00 Content Count: 351 Reputation: 52 Joined: 11/15/11 Last Seen: June 15, 2015 Share Posted April 16, 2012 (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 April 16, 2012 by Nameless2you Quote Link to comment Share on other sites More sharing options...
mleo1 Posted April 16, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 123 Reputation: 4 Joined: 11/21/11 Last Seen: January 26 Author Share Posted April 16, 2012 · 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
mleo1 Posted April 17, 2012 Group: Members Topic Count: 22 Topics Per Day: 0.00 Content Count: 123 Reputation: 4 Joined: 11/21/11 Last Seen: January 26 Author Share Posted April 17, 2012 (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 October 2, 2012 by mleo1 Quote Link to comment Share on other sites More sharing options...
Question
mleo1
https://rathena.svn....effect_list.txt
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.