WhiteEagle 6 Posted July 10, 2015 How is it possible to use items automatically as soon as it is pick uped? Example: A monster drop a White Herb and when I pick up this item, it will be used. Thanks in advance. Quote Share this post Link to post Share on other sites
0 Winterfox 83 Posted July 10, 2015 You should move that request into a source request, it is maybe possible but it would be quirky, hardly performant or not exactly as you would want it to be. Quote Share this post Link to post Share on other sites
0 Oxxy 24 Posted July 11, 2015 (edited) You will need to create a new event, something like OnPCPickItemUP, and then just create a simple NPC script. If you will manage to make that new event, the two commands you will need after are: consumeitem <item_id>;delitem <item_id>,1; Edited July 11, 2015 by Oxxy Quote Share this post Link to post Share on other sites
0 Garr 117 Posted July 11, 2015 Hmm, I'd say it's pretty much possible to make with src edits, and we even have an analogue to look up to (*autoequip). Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted July 12, 2015 @@WhiteEagle here you go, already tested, read some of the comments 1. put this in your server 2. do no use @reloadscript ( recommended to restart your server after putting this script ) http://pastebin.com/wVpb1CiC 1 WhiteEagle reacted to this Quote Share this post Link to post Share on other sites
0 WhiteEagle 6 Posted July 19, 2015 @ Zhao Chow Special thanks. This is exactly what I am looking for. Quote Share this post Link to post Share on other sites
0 evilpuncker 503 Posted July 19, 2015 @ Zhao Chow Special thanks. This is exactly what I am looking for. note that this will be a lot of resource consuming since it will be executing a timer each 10ms to each player in the server Quote Share this post Link to post Share on other sites
0 Kuya Jeo 120 Posted July 19, 2015 @ Zhao Chow Special thanks. This is exactly what I am looking for. note that this will be a lot of resource consuming since it will be executing a timer each 10ms to each player in the server yeah the only disadvantage Quote Share this post Link to post Share on other sites
0 Oxxy 24 Posted July 19, 2015 @ Zhao Chow Special thanks. This is exactly what I am looking for. note that this will be a lot of resource consuming since it will be executing a timer each 10ms to each player in the server yeah the only disadvantage Its not the ONLY. If you will use this script, then you will get items deleted even if they wasn't picked up. They will be deleted one by one every 10 milliseconds. Quote Share this post Link to post Share on other sites
0 WhiteEagle 6 Posted July 19, 2015 Yea I know. I have some custom Items which droped global. So, no important Items will be deleted. ^-^ I don't know how much performance will be used for this script. If it will be to much, I use it only for events. My serverperformance: Intel® Core™ i7-4770 Quad-Core Haswell 32 GB DDR3 RAM Quote Share this post Link to post Share on other sites
0 Oxxy 24 Posted July 19, 2015 Yea I know. I have some custom Items which droped global. So, no important Items will be deleted. ^-^ I don't know how much performance will be used for this script. If it will be to much, I use it only for events. My serverperformance: Intel® Core™ i7-4770 Quad-Core Haswell 32 GB DDR3 RAM Don't worry, that specs is k. Quote Share this post Link to post Share on other sites
How is it possible to use items automatically as soon as it is pick uped?
Example:
A monster drop a White Herb and when I pick up this item, it will be used.
Thanks in advance.
Share this post
Link to post
Share on other sites