Jump to content
  • 0
MikZ

SKULL DROP

Question

Good day!

How will i enable all skull from players inventory drop when player dies not just his/her skull and not tradeable.

Example:


Player got/picked 20 skull and player drops. 21 skull drop including his skull.

 

Thank you!

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0

The tradeable part you simply edit in item_db.conf file

The part where the skulls drop, as long as you do not need to keep the attached names, it can be very simple.

 

You can use the OnPCDieEvent command, then simply count the skulls in the inventory. Then delete the items from the players inventory and drop that same amount on the floor using the following command:

 

makeitem(<item id>, <amount>, "<map name>", <X>, <Y>)

 

Maybe there is an easier way to do it, but this seems pretty simple to me. 

Share this post


Link to post
Share on other sites
  • 0

The tradeable part you simply edit in item_db.conf file

The part where the skulls drop, as long as you do not need to keep the attached names, it can be very simple.

 

You can use the OnPCDieEvent command, then simply count the skulls in the inventory. Then delete the items from the players inventory and drop that same amount on the floor using the following command:

 

makeitem(<item id>, <amount>, "<map name>", <X>, <Y>)

 

Maybe there is an easier way to do it, but this seems pretty simple to me. 

 

Hi can you give me sample script?

thank you!

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

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