Hi everyone! I'm newbie here. Sorry for my bad english.?
I want to ask something about scripting.
How can i add conversation to npc script if i had a conversation like this:
Ex: Healer NPC
[Healer]
I have amazing healing powers!!
You look like a person who needs them
Want some?
Then appear dialog box with 2 choices "Yes heal me please!" and "No thanks"
If i choose "Yes heal me please!" he will heal me and give me buff
And if i choose "No thanks" he will say "Allright, come back if you need a heal."
Also i had a healer script made by Euphy like this:
- script Healer -1,{
.@Price = 0; // Zeny required for heal
.@Buffs = 0; // Also buff players? (1: yes / 0: no)
.@Delay = 0; // Heal delay, in seconds
if (@HD > gettimetick(2))
end;
if (.@Price) {
message strcharinfo(0), "Healing costs " + callfunc("F_InsertComma",.@Price) + " Zeny.";
if (Zeny < .@Price)
end;
if (select("^0055FFHeal^000000:^777777Cancel^000000") == 2)
end;
Zeny -= .@Price;
}
specialeffect2 EF_HEAL2;
percentheal 100,100;
if (.@Buffs) {
specialeffect2 EF_INCAGILITY;
sc_start SC_INCREASEAGI,240000,10;
specialeffect2 EF_BLESSING;
sc_start SC_BLESSING,240000,10;
}
if (.@Delay)
@HD = gettimetick(2) + .@Delay;
end;
}
?