Hakahay Posted April 22, 2019 Group: Members Topic Count: 33 Topics Per Day: 0.01 Content Count: 82 Reputation: 4 Joined: 10/20/16 Last Seen: Tuesday at 12:39 AM Share Posted April 22, 2019 Spoiler - script Healer -1,{ .@Price = 0; // Zeny required for heal .@Buffs = 1; // Also buff players? (1: yes / 0: no) .@Delay = 5; // 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; } How to add VIP buffs in this NPC? Quote Link to comment Share on other sites More sharing options...
1 sader1992 Posted April 22, 2019 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Tuesday at 07:50 PM Share Posted April 22, 2019 if(vip_status(VIP_STATUS_ACTIVE)){ //vip buffs here } 1 Quote Link to comment Share on other sites More sharing options...
Question
Hakahay
- script Healer -1,{
.@Price = 0; // Zeny required for heal
.@Buffs = 1; // Also buff players? (1: yes / 0: no)
.@Delay = 5; // 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;
}
How to add VIP buffs in this NPC?
Link to comment
Share on other sites
1 answer 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.