Jump to content
  • 0

Healer with Payment


SlashGeeGee

Question


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

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.


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

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

if( Zeny < 100 ) {
   mes "You need 100 zeny.";
   close;
}
set Zeny,Zeny - 100;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  111
  • Topics Per Day:  0.02
  • Content Count:  573
  • Reputation:   20
  • Joined:  11/19/11
  • Last Seen:  

if( Zeny < 100 ) {
mes "You need 100 zeny.";
close;
}
set Zeny,Zeny - 100;

where will i add this ?

and how about the heal , i only want buffs when the character has 100,000z

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  17
  • Topics Per Day:  0.00
  • Content Count:  59
  • Reputation:   1
  • Joined:  01/15/12
  • Last Seen:  

prontera,150,182,5 script Healer 811,{
percentheal 100,100;

if( Zeny < 100 ) {
       mes "You need 100 zeny.";
       close;
}
set Zeny,Zeny - 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

dont forget to add the tabs

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  122
  • Reputation:   2
  • Joined:  11/20/11
  • Last Seen:  

how about make it item on pay? like 674.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

if( countitem(674) < 1 ){
   mes "You didnt have it.";
   close;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

if( Zeny < 100 ) {
mes "You need 100 zeny.";
close;
}
set Zeny,Zeny - 100;

where will i add this ?

and how about the heal , i only want buffs when the character has 100,000z

percentheal 100,100;
if( Zeny < 100000 ) {
	mes "You need 100,000 zeny for buffs.";
	close;
}
set Zeny,Zeny - 100000;
skilleffect 34,0; sc_start SC_BLESSING,360000,10;
skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10;
specialeffect2 548; // Red for an instant

how about make it item on pay? like 674.

if( countitem(674) < 1 ){
mes "You didnt have it.";
close;
}

if( countitem(674) < 1 ){
	mes "You didnt have it.";
	close;
}
percentheal 100,100;
set Zeny,Zeny - 100000;
skilleffect 34,0; sc_start SC_BLESSING,360000,10;
skilleffect 29,0; sc_start SC_INCREASEAGI,360000,10;
specialeffect2 548; // Red for an instant

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...