Leic Posted March 11, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 48 Reputation: 0 Joined: 02/27/18 Last Seen: May 3, 2018 Share Posted March 11, 2018 I have edited a little on the default healing script. Can someone help me on adding a lvl restriction on buffs? ex. if lvl 98 and below = heal + buffs if level 99 = heal only - script Healer -1,{ .@Price = 0; // Zeny required for heal .@Buffs = 1; // Also buff players? (1: yes / 0: no) .@Delay = 2; // 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) { sc_start SC_INCREASEAGI,3600000,10; sc_start SC_BLESSING,3600000,10; sc_start SC_ANGELUS,3600000,10; sc_start SC_IMPOSITIO,3600000,10; sc_start SC_GLORIA,3600000,10; sc_start SC_ASSUMPTIO,3600000,10; sc_start SC_MAGNIFICAT,3600000,10; sc_start SC_PARRYING,3600000,10; } if (.@Delay) @HD = gettimetick(2) + .@Delay; end; } Quote Link to comment Share on other sites More sharing options...
0 Balfear Posted March 11, 2018 Group: Members Topic Count: 13 Topics Per Day: 0.00 Content Count: 256 Reputation: 245 Joined: 07/24/13 Last Seen: March 24 Share Posted March 11, 2018 10 minutes ago, Leic said: I have edited a little on the default healing script. Can someone help me on adding a lvl restriction on buffs? ex. if lvl 98 and below = heal + buffs if level 99 = heal only - script Healer -1,{ .@Price = 0; // Zeny required for heal .@Buffs = 1; // Also buff players? (1: yes / 0: no) .@Delay = 2; // 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 && BaseLevel < 99) { sc_start SC_INCREASEAGI,3600000,10; sc_start SC_BLESSING,3600000,10; sc_start SC_ANGELUS,3600000,10; sc_start SC_IMPOSITIO,3600000,10; sc_start SC_GLORIA,3600000,10; sc_start SC_ASSUMPTIO,3600000,10; sc_start SC_MAGNIFICAT,3600000,10; sc_start SC_PARRYING,3600000,10; } if (.@Delay) @HD = gettimetick(2) + .@Delay; end; } Quote Link to comment Share on other sites More sharing options...
0 Leic Posted March 11, 2018 Group: Members Topic Count: 18 Topics Per Day: 0.01 Content Count: 48 Reputation: 0 Joined: 02/27/18 Last Seen: May 3, 2018 Author Share Posted March 11, 2018 thanks. Quote Link to comment Share on other sites More sharing options...
Question
Leic
I have edited a little on the default healing script. Can someone help me on adding a lvl restriction on buffs?
ex. if lvl 98 and below = heal + buffs
if level 99 = heal only
- script Healer -1,{ .@Price = 0; // Zeny required for heal .@Buffs = 1; // Also buff players? (1: yes / 0: no) .@Delay = 2; // 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) { sc_start SC_INCREASEAGI,3600000,10; sc_start SC_BLESSING,3600000,10; sc_start SC_ANGELUS,3600000,10; sc_start SC_IMPOSITIO,3600000,10; sc_start SC_GLORIA,3600000,10; sc_start SC_ASSUMPTIO,3600000,10; sc_start SC_MAGNIFICAT,3600000,10; sc_start SC_PARRYING,3600000,10; } if (.@Delay) @HD = gettimetick(2) + .@Delay; end; }
Link to comment
Share on other sites
2 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.