Jump to content
  • 0

NPC Healer For The Killer


Question

8 answers to this question

Recommended Posts

Posted

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;
            }
        }
}
  • Upvote 1
Posted

Try : 

-    script    Sample    -1,{
    OnPCKillEvent:
        if ( strcharinfo(3) == "your map" ) {
            if (attachrid(getcharid(3, strcharinfo(0)))) {
                if ( Hp && ( Hp != MaxHp ) )
                    percentheal 100,100;
            }
        }
}
  • Upvote 1
Posted (edited)

/swt

- <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 by Patskie
Posted
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;
}
  • Upvote 1

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