Jump to content
  • 0

Question regarding to SC_START


Bin4ry

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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;

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  81
  • Reputation:   14
  • Joined:  08/17/12
  • Last Seen:  

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


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

it only happen when you spam click it 5 or more times???

continuous click for few time about 50 second... ?

/hmm

isnt that the way you setup the npc...?

sc_end SC_DECREASEAGl

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

Alth. it wrote SC_DECAGI but in-game it became Stone Curse instead, do you think this is client packet related or rathena bug?

gW5ru.jpg

I think I might need to issue a new bug thread and let devs follow.

Edited by darristan
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  341
  • Reputation:   43
  • Joined:  01/10/12
  • Last Seen:  

Change it to

SC_DECREASEAGI

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  782
  • Reputation:   82
  • Joined:  01/01/12
  • Last Seen:  

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 :P

Thanks again anyway.

Edited by darristan
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...