Hello, I modified a Healer Script that I found so that it gave buffs if you had certain items, to be specific, 1 buff for each ticket, and some special tickets that granted several buffs, when I run it it either doesn't work or gives me stone curse, can anybody please tell me what did I script wrong?
//Healer
- script Healer -1,{
set [email protected],2; // Heal delay, in seconds
set [email protected],15000; // Price in zeny
callfunc "F_ClearGarbage",0;
if (@HD > gettimetick(2)) end;
specialeffect2 313;
percentheal 100,100;
if(countitem(30004) >= 1){
specialeffect2 37; sc_start SC_INCREASEAGI,360000,10;
}
if(countitem(30003) >= 1){
specialeffect2 42; sc_start SC_BLESSING,360000,10;
}
if (countitem(30005) >= 1){
set [email protected],0;
}
if (countitem(30006) >= 1){
specialeffect2 75; sc_start PR_GLORIA,360000,5;
}
if (countitem(30007) >= 1){
specialeffect2 112; sc_start AL_ANGELUS,360000,10;
}
if (countitem(30008) >= 1){
sepecialeffect2 130, sc_start BS_ADRENALINE,360000,5;
}
if countitem(30009) >= 1){
specialeffect2 76, sc_start PR_IMPOSITIO,360000,5;
}
if countitem(30010) >= 1){
specialeffect2 6; sc_start SC_INCREASEAGI,360000,10; sc_start SC_BLESSING,360000,10; set [email protected],0;
}
if countitem(30011) >= 1){
specialeffect2 9; c_start PR_GLORIA,360000,5; sc_start AL_ANGELUS,360000,10; set [email protected],0;
}
if countitem(30012) >= 1){
specialeffect2 14; sc_start BS_ADRENALINE,360000,5; sc_start PR_IMPOSITIO,360000,5; set [email protected],0;
}
if countitem(30013) >= 1){
specialeffect2 77; sc_start SC_INCREASEAGI,360000,10; sc_start SC_BLESSING,360000,10; c_start PR_GLORIA,360000,5; sc_start AL_ANGELUS,360000,10; sc_start BS_ADRENALINE,360000,5; sc_start PR_IMPOSITIO,60000,5; sc_start HP_ASSUMPTIO,60000,5; sc_start SN_WINDWALK,360000,10; set [email protected],0;
}
if (BaseLevel<=149){
set [email protected],0;
}
if ([email protected]) {
message strcharinfo(0),"Healing costs "[email protected]+" Zeny when you reach level 150 until you get a Price Ticket, or any Healer Ticket.";
if (Zeny < [email protected]) end;
set Zeny, [email protected];
}
if ([email protected]) set @HD, gettimetick(2)[email protected];
close;
}
Hello, I modified a Healer Script that I found so that it gave buffs if you had certain items, to be specific, 1 buff for each ticket, and some special tickets that granted several buffs, when I run it it either doesn't work or gives me stone curse, can anybody please tell me what did I script wrong?
//Healer - script Healer -1,{ set [email protected],2; // Heal delay, in seconds set [email protected],15000; // Price in zeny callfunc "F_ClearGarbage",0; if (@HD > gettimetick(2)) end; specialeffect2 313; percentheal 100,100; if(countitem(30004) >= 1){ specialeffect2 37; sc_start SC_INCREASEAGI,360000,10; } if(countitem(30003) >= 1){ specialeffect2 42; sc_start SC_BLESSING,360000,10; } if (countitem(30005) >= 1){ set [email protected],0; } if (countitem(30006) >= 1){ specialeffect2 75; sc_start PR_GLORIA,360000,5; } if (countitem(30007) >= 1){ specialeffect2 112; sc_start AL_ANGELUS,360000,10; } if (countitem(30008) >= 1){ sepecialeffect2 130, sc_start BS_ADRENALINE,360000,5; } if countitem(30009) >= 1){ specialeffect2 76, sc_start PR_IMPOSITIO,360000,5; } if countitem(30010) >= 1){ specialeffect2 6; sc_start SC_INCREASEAGI,360000,10; sc_start SC_BLESSING,360000,10; set [email protected],0; } if countitem(30011) >= 1){ specialeffect2 9; c_start PR_GLORIA,360000,5; sc_start AL_ANGELUS,360000,10; set [email protected],0; } if countitem(30012) >= 1){ specialeffect2 14; sc_start BS_ADRENALINE,360000,5; sc_start PR_IMPOSITIO,360000,5; set [email protected],0; } if countitem(30013) >= 1){ specialeffect2 77; sc_start SC_INCREASEAGI,360000,10; sc_start SC_BLESSING,360000,10; c_start PR_GLORIA,360000,5; sc_start AL_ANGELUS,360000,10; sc_start BS_ADRENALINE,360000,5; sc_start PR_IMPOSITIO,60000,5; sc_start HP_ASSUMPTIO,60000,5; sc_start SN_WINDWALK,360000,10; set [email protected],0; } if (BaseLevel<=149){ set [email protected],0; } if ([email protected]) { message strcharinfo(0),"Healing costs "[email protected]+" Zeny when you reach level 150 until you get a Price Ticket, or any Healer Ticket."; if (Zeny < [email protected]) end; set Zeny, [email protected]; } if ([email protected]) set @HD, gettimetick(2)[email protected]; close; }thanks in advance >_<
Link to comment
Share on other sites