Bin4ry Posted September 1, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Share Posted September 1, 2012 Why wouldn't the NPC debuff and cast decrease agi? L_Heal: if (@HealDelay > gettimetick(2)) { if (@HealSpam >= 5) { npctalk "You've been warned, " + strcharinfo(0) + "."; sc_end SC_ALL; sc_start SC_DECREASEAGI,300000,10; end; } npctalk "Please do not spam, " + strcharinfo(0) + "."; set @HealSpam, @HealSpam + 1; end; } percentheal 100,100; specialeffect2 312; emotion 21; npctalk "You are welcome! " + strcharinfo(0) + "."; set @HealDelay, gettimetick(2) + 10; set @HealSpam, 0; end; Quote Link to comment Share on other sites More sharing options...
Yahiko Posted September 3, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 81 Reputation: 14 Joined: 08/17/12 Last Seen: April 19, 2013 Share Posted September 3, 2012 (edited) L_Heal: if (@HealDelay > gettimetick(2)) { if (@HealSpam >= 5) { npctalk "You've been warned, " + strcharinfo(0) + "."; sc_end SC_ALL; sc_start SC_DECAGI,300000,10; end; } npctalk "Please do not spam, " + strcharinfo(0) + "."; set @HealSpam, @HealSpam + 1; end; } percentheal 100,100; specialeffect2 312; emotion 21; npctalk "You are welcome! " + strcharinfo(0) + "."; set @HealDelay, gettimetick(2) + 10; set @HealSpam, 0; end; Edited September 3, 2012 by Yahiko Quote Link to comment Share on other sites More sharing options...
Emistry Posted September 3, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2370 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted September 3, 2012 it only happen when you spam click it 5 or more times??? continuous click for few time about 50 second... ? isnt that the way you setup the npc...? sc_end SC_DECREASEAGl Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted September 3, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Author Share Posted September 3, 2012 (edited) Doesnt involve clicking, this script works under defpattern. Clicking will still heal after you spam in chat. Still not working with SC_DECAGI. Here is the whole script. aria,77,77,3 script Priestess Magarita 641,{ mes "[Priestess Magarita]"; mes "Hello there! I'm Priestess Magarita from Prontera Chruch."; next; mes "[Priestess Magarita]"; mes "I am here for a charity event which is providing free ^00FF00Heal^000000 and ^00FF00Bless^000000 services for all. In order Chief of Mornanie Island will pay 5z each serves for us to help the poors."; next; mes "[Priestess Magarita]"; mes "Would you like me to cure you?"; next; switch(select("Yes, Heal me please.:Yes, Heal and Bless please.:No, thank you.")) { case 1: mes "[Priestess Magarita]"; mes "Thanks for helping us!"; close2; percentheal 100,100; specialeffect2 312; emotion 21; end; case 2: mes "[Priestess Magarita]"; mes "Thanks for helping us!"; close2; percentheal 100,100; sc_start SC_BLESSING,300000,10; sc_start SC_INCREASEAGI,300000,10; specialeffect2 312; specialeffect2 37; specialeffect2 42; emotion 21; end; case 3: mes "[Priestess Magarita]"; mes "Have a nice day!"; close; } L_Heal: if (@HealDelay > gettimetick(2)) { if (@HealSpam >= 5) { npctalk "You've been warned, " + strcharinfo(0) + "."; sc_end SC_ALL; sc_start SC_DECAGI,300000,10; end; } npctalk "Please do not spam, " + strcharinfo(0) + ". My skills are in cold down."; set @HealSpam, @HealSpam + 1; end; } percentheal 100,100; specialeffect2 312; emotion 21; npctalk "You are welcome! " + strcharinfo(0) + "."; set @HealDelay, gettimetick(2) + 10; set @HealSpam, 0; end; L_Buff: if (@BuffDelay > gettimetick(2)) { if (@HealSpam >= 5) { npctalk "You've been warned, " + strcharinfo(0) + "."; sc_end SC_ALL; sc_start SC_DECAGI,300000,10; end; } npctalk "Please do not spam, " + strcharinfo(0) + ". My skills are in cold down."; set @HealSpam, @HealSpam + 1; end; } percentheal 100,100; sc_start SC_BLESSING,300000,10; sc_start SC_INCREASEAGI,300000,10; specialeffect2 312; specialeffect2 37; specialeffect2 42; emotion 21; npctalk "You are welcome! " + strcharinfo(0) + "."; set @BuffDelay, gettimetick(2) + 15; set @HealSpam, 0; end; OnInit: defpattern 1,"([^:]+):.*\\sheal\\s+pl(.*)","L_Heal"; defpattern 1,"([^:]+):.*\\sbuff\\s+pl(.*)","L_Buff"; activatepset 1; end; } Edited September 3, 2012 by darristan Quote Link to comment Share on other sites More sharing options...
Joseph Posted September 5, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted September 5, 2012 Cleaned up a bit. http://upaste.me/ae431031382b9a6a Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted September 7, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Author Share Posted September 7, 2012 (edited) Alth. it wrote SC_DECAGI but in-game it became Stone Curse instead, do you think this is client packet related or rathena bug? I think I might need to issue a new bug thread and let devs follow. Edited September 7, 2012 by darristan Quote Link to comment Share on other sites More sharing options...
Joseph Posted September 7, 2012 Group: Members Topic Count: 5 Topics Per Day: 0.00 Content Count: 341 Reputation: 43 Joined: 01/10/12 Last Seen: June 29, 2020 Share Posted September 7, 2012 Change it to SC_DECREASEAGI Quote Link to comment Share on other sites More sharing options...
Bin4ry Posted September 7, 2012 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 782 Reputation: 82 Joined: 01/01/12 Last Seen: September 21, 2015 Author Share Posted September 7, 2012 (edited) Thanks a lot. Well, I also found a stupid mistake and I decided not to put any spam dec agi. sc_end SC_DECREASEAGl As this would result spam click 6th start to debuff the dec agi Thanks again anyway. Edited September 7, 2012 by darristan Quote Link to comment Share on other sites More sharing options...
Question
Bin4ry
Why wouldn't the NPC debuff and cast decrease agi?
Link to comment
Share on other sites
7 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.