Jump to content
  • 0

Drop all the ygg from inventory when a player dies in a certain map


buda

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  06/21/12
  • Last Seen:  

Drop all the ygg from inventory when a player dies in a certain map...

please help me master scripters...

1. then a player die in a certain map, he will automatically drop All his ygg...

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

try this

- script Sample -1,{
OnPCDieEvent:
if( countitem(607) ){
getmapxy( .@Map$,.@X,.@Y,0 );
makeitem 607,countitem(607),.@Map$,.@X,.@Y;
delitem 607,countitem(607);
}
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  130
  • Reputation:   43
  • Joined:  12/11/11
  • Last Seen:  

or this (if you want to restrict it to a certain map)

-<tab>script<tab>Sample<tab>-1,{
 OnPCDieEvent:
 getmapxy( .@map$, .@x, .@y, 0 );
 if( .@map$ == "mapname" && countitem(607) ){
   makeitem 607, countitem(607), .@map$, .@x, .@y;
   delitem 607, countitem(607);
 }
 end;
}

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