Jump to content
  • 0

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


Question

Posted

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

2 answers to this question

Recommended Posts

Posted

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;
}

Posted

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;
}

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