Jump to content
  • 0
buda

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

Question

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

try this

- script Sample -1,{
OnPCDieEvent:
if( countitem(607) ){
getmapxy( [email protected]$,[email protected],[email protected],0 );
makeitem 607,countitem(607),[email protected]$,[email protected],[email protected];
delitem 607,countitem(607);
}
end;
}

Link to comment
Share on other sites

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

-<tab>script<tab>Sample<tab>-1,{
 OnPCDieEvent:
 getmapxy( [email protected]$, [email protected], [email protected], 0 );
 if( [email protected]$ == "mapname" && countitem(607) ){
   makeitem 607, countitem(607), [email protected]$, [email protected], [email protected];
   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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.