Jump to content
  • 0

Map Healer Buffer


greenieken

Question


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   1
  • Joined:  05/02/12
  • Last Seen:  

Can I request for a healer with buffs that when i player respawn to a certain map, he will automatically be healed and buffs. Thanks ;)

e.g map prontera

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   86
  • Joined:  10/26/12
  • Last Seen:  

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

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  154
  • Reputation:   1
  • Joined:  05/02/12
  • Last Seen:  

@capuche it is working, but not in prontera only. you get buffed and healed when warping in anymap xD i want it to be in prontera only.

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:  

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

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