Jump to content
  • 0

Map Healer Buffer


Question

4 answers to this question

Recommended Posts

Posted (edited)

prontera,150,180,4	script	Healer	100,{
end;
OnInit:
OnTimer3000:
initnpctimer;
getmapxy(.@m$,.@x,.@y,1,strnpcinfo(0));
areapercentheal .@m$,.@x-5,.@y-5,.@x+5,.@y+5,3,3;
sc_start SC_BLESSING,360000,10;
sc_start SC_INCREASEAGI,360000,10;
specialeffect 76;
specialeffect 83;
end;
}

not tested yet let me know if there's error

Edited by Mootie
Posted
not tested yet let me know if there's error

There's an error ! XD

In your script Mootie, player is not attached !

I propose:

prontera,150,180,4    script    Healer    -1,{

OnPCLoadMapEvent:
   percentheal 100,100;
   sc_start SC_BLESSING,360000,10;
   sc_start SC_INCREASEAGI,360000,10;
   specialeffect 76;
   specialeffect 83;
   end;
}
prontera    mapflag    loadevent

When a player warp on Prontera, heal+agi+bless or this one:

prontera,150,180,4    script    Healertfgfdssd    456,20,20,{
   percentheal 100,100;
   sc_start SC_BLESSING,360000,10;
   sc_start SC_INCREASEAGI,360000,10;
   specialeffect 76;
   specialeffect 83;
   end;
}

Work when a player is near of the NPC.

Posted

It works for me. Do you have the mapflag loadevent ? http://rathena.org/wiki/OnPCLoadMapEvent

prontera    mapflag    loadevent

If it doesn't work, just add

if( strcharinfo(3) != "prontera" ) end;

after

OnPCLoadMapEvent:

(like this)

prontera,150,180,4    script    Healer    -1,{

OnPCLoadMapEvent:
   if( strcharinfo(3) != "prontera" ) end;
   percentheal 100,100;
   sc_start SC_BLESSING,360000,10;
   sc_start SC_INCREASEAGI,360000,10;
   specialeffect 76;
   specialeffect 83;
   end;
}
prontera    mapflag    loadevent

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...