Jump to content
  • 0

Auto Heal


AtotheUtotheGtotheUST

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  03/12/12
  • Last Seen:  


prontera,158,193,4 script Healer 742,13,13,{
 
.@Delay = 5; // Heal delay, in seconds
 
if (@HD > gettimetick(2))
end;
 
getmapxy( .@map$, .@x, .@y, 0 );
if( distance( .x, .y, .@x, .@y ) <= 5 )
if( hp != maxhp )
sc_end sc_stone;
sc_end sc_freeze;
sc_end sc_sleep;
sc_end sc_curse;
sc_end sc_silence;
sc_end sc_confusion;
sc_end sc_blind;
sc_end sc_bleeding;
sc_end sc_decreaseagi;
sc_end sc_poison;
sc_end sc_hallucination;
sc_end sc_stripweapon;
sc_end sc_striparmor;
sc_end sc_striphelm;
sc_end sc_stripshield;
sc_end sc_changeundead;
sc_end sc_orcish;
sc_end sc_berserk;
sc_end sc_ske;
sc_end sc_swoo;
sc_end sc_ska;
specialeffect2 EF_INCAGILITY;
sc_start SC_INCREASEAGI,240000,10;
specialeffect2 EF_BLESSING;
sc_start SC_BLESSING,240000,10;
specialeffect2 EF_HEAL2;
percentheal 100,100;
 
 
if (.@Delay)
@HD = gettimetick(2) + .@Delay;
 
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++;
}
while (getbrokenid(1)) {
repair(1);
set .@i, .@i +1;
}
end;
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++;
}
end;
} 

This script works fine on rAthena but I want to use this script on my eAthena server. How come there's an error?

Can anyone please fix this for me?

 

post-3049-0-80288900-1415822068_thumb.png

Edited by Emistry
codebox
Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  183
  • Reputation:   15
  • Joined:  06/10/12
  • Last Seen:  


set .@Delay = 5; // Heal delay, in seconds

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

set .@Delay = 5; // Heal delay, in seconds

No, HD Scripts. it's still not eA acceptable script.

 

[paste=aw44ioogi0k]

 

i changed your header. IDK if the sprite section of yours is right or not.

the lines after line 43 are confusing

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  183
  • Reputation:   15
  • Joined:  06/10/12
  • Last Seen:  

Oh really, i'm sorry '-'

But are only this error?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  03/12/12
  • Last Seen:  

Hi Winz, thanks for the response but I still got this error.


Can you just make me a simple script?

I just want all auto heal+agi bless, auto repair, auto magnify and auto remove abnormal status like my script.

post-3049-0-05353200-1415874303_thumb.png

Edited by Asianwow
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

Oh really, i'm sorry '-'

But are only this error?

It's okay, don't sweat it

 

 

Hi Winz, thanks for the response but I still got this error.

Can you just make me a simple script?

I just want all auto heal+agi bless, auto repair, auto magnify and auto remove abnormal status like my script.

 

oh, forgot about those lines.

 

[paste=1bhnsnntfk9]

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  03/12/12
  • Last Seen:  

 

Oh really, i'm sorry '-'

But are only this error?

It's okay, don't sweat it

 

 

Hi Winz, thanks for the response but I still got this error.

Can you just make me a simple script?

I just want all auto heal+agi bless, auto repair, auto magnify and auto remove abnormal status like my script.

 

oh, forgot about those lines.

 

[paste=1bhnsnntfk9]

 

Still not working Winz.

No error on map server.

Only the NPC loaded though.

 

and I tried to remove some of your script at the bottom after because my script has it already but still not working.

 

Paste: 6xq8wp34s2pq

Edited by Asianwow
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

Try replacing

if( hp != maxhp ) {

by

if( Hp != MaxHp ) {

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  03/12/12
  • Last Seen:  

Try replacing

if( hp != maxhp ) {

by

if( Hp != MaxHp ) {

Still not working.  /sob

No error on map server.

 

I'll just try the OnTouch script.

 

Try replacing

if( hp != maxhp ) {

by

if( Hp != MaxHp ) {

Still not working.  /sob

No error on map server.

 

I'll just try the OnTouch script.

 

I fixed it.   /ok

 

I just used OnTouch.

Edited by Asianwow
Link to comment
Share on other sites


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

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