Jump to content
  • 0

Healer with Zeny Burn


Yami

Question


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  111
  • Reputation:   2
  • Joined:  01/02/14
  • Last Seen:  

Can someone help me with my healer script.

I want it to have Zeny Burn of 10,000 everytime you heal. But I don't want the healer to open a dialogue box or menu box.

Just burns the zeny when you heal, just a display on the chat box that 10,000z was removed for payment.

And if current zeny is below 10,000, display on bottom "You don't have enough Zeny for the Service" and you will not be healed/Buffed.

 

Thanks in advanced! I will attach my healer script below.

 

 

//===== rAthena Script =======================================//= Healer

//===== By: ==================================================
//= Euphy
//===== Current Version: =====================================
//= 1.0
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Basic healer script.
//============================================================
 
- script Healer 909,{
 
if( getbrokenid(1) ) repairall;
getinventorylist;
while( .@i < @inventorylist_count ){
if ( !@inventorylist_identify[.@i] ){
delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;
getitem @inventorylist_id[.@i],1;
}
.@i++;
}
 
set .@t, 0; // Delay Seconds.
if ( ! @h ) {
set @h, 1;
set .@hp, MaxHP - HP;
while ( .@t ) {
dispbottom "Wait for "+ .@t +" second"+ ( ( .@t > 1 ) ? "s" : "" ) +".";
sleep2 1000 ;
set .@t, .@t - 1;
}
 
percentheal 100,100;
specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10;
specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10;
set @h, 0;
}
end ;
}
 

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  


//===== rAthena Script =======================================

//= Healer

//===== By: ==================================================

//= Euphy

//===== Current Version: =====================================

//= 1.0

//===== Compatible With: =====================================

//= rAthena SVN

//===== Description: =========================================

//= Basic healer script.

//============================================================

- script Healer 909,{

if (getbrokenid(1)) repairall;

getinventorylist;

while (.@i < @inventorylist_count) {

if (!@inventorylist_identify[.@i]) {

delitem2 @inventorylist_id[.@i],1,0,0,0,0,0,0,0;

getitem @inventorylist_id[.@i],1;

}

.@i++;

}

.@t = 0; // Delay Seconds.

if (!@h) {

@h = 1;

.@hp = MaxHP-HP;

while (.@t) {

dispbottom "Wait for "+.@t+" second"+((.@t>1)?"s":"")+".";

sleep2 1000;

.@t--;

}

if (Zeny<10000) {

dispbottom "You don't have enough Zeny for the Service!";

end;

}

Zeny -= 10000;

dispbottom "10,000z was removed for healing payment.";

percentheal 100,100;

specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,240000,10;

specialeffect2 EF_BLESSING; sc_start SC_BLESSING,240000,10;

@h = 0;

}

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  35
  • Topics Per Day:  0.01
  • Content Count:  111
  • Reputation:   2
  • Joined:  01/02/14
  • Last Seen:  

Woah! Thanks @nanakiwurtz! Ima try this later! I'll update you :))

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...