Chiaki Posted October 27, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 72 Reputation: 11 Joined: 10/17/13 Last Seen: May 24, 2017 Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted October 27, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 4 hours ago Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted October 27, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 4 hours ago Share 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 Link to comment Share on other sites More sharing options...
Chiaki Posted October 27, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 72 Reputation: 11 Joined: 10/17/13 Last Seen: May 24, 2017 Author Share Posted October 27, 2013 I got error * w1=- script Sample -1,{ Quote Link to comment Share on other sites More sharing options...
Patskie Posted October 27, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 4 hours ago Share Posted October 27, 2013 - <TAB> script <TAB> Sample <TAB> -1,{ Quote Link to comment Share on other sites More sharing options...
Chiaki Posted October 27, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 72 Reputation: 11 Joined: 10/17/13 Last Seen: May 24, 2017 Author Share 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 Link to comment Share on other sites More sharing options...
Chiaki Posted October 27, 2013 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 72 Reputation: 11 Joined: 10/17/13 Last Seen: May 24, 2017 Author Share Posted October 27, 2013 AWESOME! it works! thanks Patskie! Quote Link to comment Share on other sites More sharing options...
Capuche Posted October 27, 2013 Group: Developer Topic Count: 10 Topics Per Day: 0.00 Content Count: 2407 Reputation: 616 Joined: 07/05/12 Last Seen: March 20 Share 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 Link to comment Share on other sites More sharing options...
Patskie Posted October 27, 2013 Group: Members Topic Count: 50 Topics Per Day: 0.01 Content Count: 1702 Reputation: 241 Joined: 09/05/12 Last Seen: 4 hours ago Share Posted October 27, 2013 Lol. I thought of that too. /me me exaggerated on script . It can be done with or without attachrid Quote Link to comment Share on other sites More sharing options...
Question
Chiaki
Some one can give me a script for an NPC that will automaticaly heal someone who kill someone in PVP map?
Link to comment
Share on other sites
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.