Jump to content
  • 0

kill mob automatic back savepoints


MrEll

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  1
  • Reputation:   0
  • Joined:  12/08/15
  • Last Seen:  

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  


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

OnNPCKillEvent:

getitem 969,100;

getitem 7539,100;

warp "SavePoint", 0, 0;

}

Edited by hendra814
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  513
  • Reputation:   83
  • Joined:  08/11/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

i made like that because he not mention like player just kill monster on spesific map or just kill spesific monster.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  85
  • Topics Per Day:  0.02
  • Content Count:  207
  • Reputation:   0
  • Joined:  06/11/13
  • Last Seen:  

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)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  54
  • Topics Per Day:  0.01
  • Content Count:  1167
  • Reputation:   159
  • Joined:  06/12/12
  • Last Seen:  

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.

 

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