greenieken Posted December 21, 2012 Posted December 21, 2012 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 Quote
Mootie Posted December 21, 2012 Posted December 21, 2012 (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 December 21, 2012 by Mootie Quote
Capuche Posted December 21, 2012 Posted December 21, 2012 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. Quote
greenieken Posted December 21, 2012 Author Posted December 21, 2012 @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. Quote
Capuche Posted December 23, 2012 Posted December 23, 2012 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 Quote
Question
greenieken
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
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.