Can someone edit my this script ? just add zeny requirement for heal and buffs and if the character doesn't have enough zeny only heal will be casted no buffs included.
prontera,150,182,5 script Healer 811,{
percentheal 100,100;
skilleffect 34,0; sc_start SC_BLESSING,360000,10;
skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10;
specialeffect2 548; // Red for an instant
// Repair
while (getbrokenid(1)) {
if (Zeny < 15000) {
mes "[ Repairman ]";
mes "It costs 15,000 zeny to repair an item.";
next;
break;
}
set Zeny, Zeny -5000;
repair(1);
set .@repaired, .@repaired +1;
sleep2 500;
}
if (.@repaired) dispbottom .@repaired + " "+( .@repaired==1 ? "item":"items" )+" Repaired.";
// Identify
if (getskilllv("MC_DISCOUNT")) {
set .@price, (100 - (5 + getskilllv("MC_DISCOUNT")*2 )) * 2/5;
} else if (getskilllv("RG_COMPULSION")) {
set .@price, (100 - (5 + getskilllv("RG_COMPULSION")*4 )) * 2/5;
} else {
set .@price, 40;
}
getinventorylist;
for( set .@i,0; .@i < @inventorylist_count; set .@i, .@i +1 ) {
if (@inventorylist_identify[.@i]) continue;
if (getskilllv("MC_IDENTIFY") && sp >= 10) { // Merchant's Identify skill
heal 0,-10;
} else if (countitem(611)) { // Magnifier
delitem 611,1;
} else if (zeny >= .@price) { // deduct cost of 1 Magnifier
set zeny, zeny - .@price;
} else {
mes "[identifier]";
mes "A Magnifier costs "+.@price+"z.";
next;
break;
}
delitem2 @inventorylist_id[.@i],@inventorylist_amount[.@i],0,0,0,0,0,0,0;
getitem @inventorylist_id[.@i],@inventorylist_amount[.@i];
set .@identified, .@identified +1;
}
if (.@identified) dispbottom .@identified + " "+( .@identified==1 ? "item":"items" )+" identified.";
close;
}
//===NPC Duplicates
aldebaran,145,117,3 duplicate(Healer) Healer#1 811
izlude,125,114,5 duplicate(Healer) Healer#2 811
Question
SlashGeeGee
Hello rA
Can someone edit my this script ? just add zeny requirement for heal and buffs and if the character doesn't have enough zeny only heal will be casted no buffs included.
Link to comment
Share on other sites
6 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.