Jump to content
  • 0

Making an item on the ground with item_first_get_time's "grace period" applied.


INREM

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  10
  • Reputation:   0
  • Joined:  05/27/21
  • Last Seen:  

Normally, when an item drops on the ground after a monster is killed, a "grace period" for the player who did the most damage (and then the second, and third) goes into effect.  This duration is set with the constant item_first_get_time in drops.conf.

Is there a way to achieve a grace period effect when creating items on the ground with makeitem?  I didn't see anything in the documentation about a parameter to limit pickup on the item to a particular player for a period of time.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.01
  • Content Count:  10
  • Reputation:   0
  • Joined:  05/27/21
  • Last Seen:  

For anyone looking into this in the future: I ended up modding the source - extending the BUILDIN_FUNC for the makeitem family of script routines with my own optional variable and then modding map_addflooritem in map.cpp/.hpp, which applies the grace period on floor drops.

Edited by INREM
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...