Jump to content
  • 0

Kill 5 monster before clicking npc


Subzero

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  07/25/16
  • Last Seen:  

hello its it posibble to make player need killed 5 poring before using this npc

here my script please help

https://pastebin.com/DEsYVgik

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  78
  • Topics Per Day:  0.03
  • Content Count:  436
  • Reputation:   167
  • Joined:  12/12/17
  • Last Seen:  

1 hour ago, Subzero said:

hello its it posibble to make player need killed 5 poring before using this npc

here my script please help

https://pastebin.com/DEsYVgik

// Add this on line 41.
If(poringkill != 5) {
	mes "Sorry, you have to kill 5 porings before using my services";
	close;
}
// Add this before OnInit line at the bottom part
OnNPCKillEvent:
if(poringkill == 5) end;
if ( getmonsterinfo( killedrid, 1002 )) { // 1002 = poring ID
  poringkill++;
  dispbottom "You have killed "+poringkill+" Porings.";
  end;
  }

 

Edited by pajodex
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  07/25/16
  • Last Seen:  

5 hours ago, pajodex said:

// Add this on line 41.
If(poringkill != 5) {
	mes "Sorry, you have to kill 5 porings before using my services";
	close;
}

// Add this before OnInit line at the bottom part
OnNPCKillEvent:
if(poringkill == 5) end;
if ( getmonsterinfo( killedrid, 1002 )) { // 1002 = poring ID
  poringkill++;
  dispbottom "You have killed "+poringkill+" Porings.";
  end;
  }

 

thankss

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