Chiaki Posted October 27, 2013 Posted October 27, 2013 Some one can give me a script for an NPC that will automaticaly heal someone who kill someone in PVP map? Quote
Patskie Posted October 27, 2013 Posted October 27, 2013 Try : - script Sample -1,{ OnPCKillEvent: if ( strcharinfo(3) == "your map" ) { if (attachrid(getcharid(3, strcharinfo(0)))) { if ( Hp && ( Hp != MaxHp ) ) percentheal 100,100; } } } 1 Quote
Chiaki Posted October 27, 2013 Author Posted October 27, 2013 I got error * w1=- script Sample -1,{ Quote
Chiaki Posted October 27, 2013 Author Posted October 27, 2013 (edited) - <TAB> script <TAB> Sample <TAB> -1,{ aww, sorry, ehehehe /sorry I just copy and paste it so, I need to change the space to tab right? and this section too? if ( strcharinfo(3) == "prontera" ) { if (attachrid(getcharid(3, strcharinfo(0)))) { if ( Hp && ( Hp != MaxHp ) ) percentheal 100,100; } } } sorry, I;m new at this Edited October 27, 2013 by Patskie Quote
Patskie Posted October 27, 2013 Posted October 27, 2013 Refer to Basic_Scripting - <TAB> script <TAB> Sample <TAB> -1,{ OnPCKillEvent: if ( strcharinfo(3) == "your map" ) { if ( attachrid( getcharid( 3, strcharinfo( 0 ) ) ) ) { if ( Hp && ( Hp != MaxHp ) ) percentheal 100,100; } } } 1 Quote
Chiaki Posted October 27, 2013 Author Posted October 27, 2013 AWESOME! it works! thanks Patskie! Quote
Capuche Posted October 27, 2013 Posted October 27, 2013 if ( attachrid( getcharid( 3, strcharinfo( 0 ) ) ) ) { why do you want to attach the player attached?? - script Sample -1,{ OnPCKillEvent: if ( strcharinfo(3) == "your map" ) percentheal 100,100; end; } 1 Quote
Patskie Posted October 27, 2013 Posted October 27, 2013 Lol. I thought of that too. /me me exaggerated on script . It can be done with or without attachrid Quote
Question
Chiaki
Some one can give me a script for an NPC that will automaticaly heal someone who kill someone in PVP map?
8 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.