Jump to content
  • 0

kill mob automatic back savepoints


Question

Posted

hello

can anyone make me script if u kill 1 mob u will gain 100 gold 100 poring coin and then player will warp back to savepoints

they only can kill 1 mob

5 answers to this question

Recommended Posts

  • 0
Posted (edited)


prontera.gat,0,0,0 script KillMob -1,{

OnNPCKillEvent:

getitem 969,100;

getitem 7539,100;

warp "SavePoint", 0, 0;

}

Edited by hendra814
  • 0
Posted
prontera.gat,0,0,0 script KillMob -1,{

OnNPCKillEvent:
getitem 969,100;
getitem 7539,100;
warp "SavePoint", 0, 0;
}

 

This will make you warp back to your savepoint everytime you kill a monster anywhere in the server.

 

You can add a mapcheck and monster check there

OnNPCKillEvent:
if(strcharinfo(3) == "mapname" && killedrid == mob_id){
  getitem 969,100;
  getitem 7539,100;
  warp "SavePoint", 0, 0;
}

or you can use monster trigger events instead.

  • 0
Posted
On 1/8/2016 at 4:38 AM, Ninja said:

 

This will make you warp back to your savepoint everytime you kill a monster anywhere in the server.

 

You can add a mapcheck and monster check there


OnNPCKillEvent:
if(strcharinfo(3) == "mapname" && killedrid == mob_id){
  getitem 969,100;
  getitem 7539,100;
  warp "SavePoint", 0, 0;
}

or you can use monster trigger events instead.

hello, what does the value "3" mean?
in ---> if (strcharinfo (3)

  • 0
Posted
10 hours ago, domez86 said:

hello, what does the value "3" mean?
in ---> if (strcharinfo (3)

Here the explanation

Quote

0 - Character's name.
 1 - The name of the party they're in if any.
 2 - The name of the guild they're in if any.
 3 - The name of the map the character is in.

 

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