This is a function to remove items and gold from a creature. It can either remove everything, only items equiped, only gold, only non-equiped items or any mix of those options (like everything but gold). In addition it can automatically move all the items to another object (like a chest) instead of destroying them completely.
Fixed a bug where gold wasn't removed properly, should work now.
Stefano_Falcao> Thanks for the vote, glad you found it useful
GrimJesta> Here's an example of how to remove everything when entering a trigger
First make a new script and save it as something like "inc_inventory". In this script you remove the "void main() {}" part (it's important that part is not there) and place instead my entire script.
Then in the triggers OnEnter event you place the following script (Remember to edit the first line if you didn't call the other file "inc_inventory")
Posted by GrimJesta ( 24.195.xxx.xxx ) at 2005-11-22 14:30:00
Argh, I must be an idiot. I can't figure out how to use this one. Is this the wrong script to try and use if I want a trigger to remove everything on a PC? I'm assuming so since this bad bot refuses to work. Back to the ol' drawing board...
-=Grim=-
Posted by Stefano_Falcao at 2005-07-14 17:00:49 Voted 10.00 on 07/14/05
Exactly what I was looking for. Thanks a lot! :)
You must be Logged In to post comments in this section.