Hello, I'm very new to mobprogs, and I'm trying to set up a basic program on a mob to automatically generate an item, then give it to the killer, all during death. I've set the DEATH trigger to automatically OLOAD the item, but the option to automatically send it to the person is not there. I am only able to have the mob drop the item in the room, or autoequip it.This is what the code looks like so far:
Vnum:  Code: mob oload 3434 act give tail $n mob echoat $n The rat's tail is salvageable, you remove it and take it with you.
I've gotten the echoat to run fine, and I'm guessing it runs oload, but the give command is what eludes me. If anyone can tell me what syntax I should be using, It's be greatly appreciated!
Hrm, I tried that, and it still hasn't worked. Something odd I did find was that I looked and the rat tails were laying all over the ground… even though I haven't set the ROOM argument at the end of the oload line. Is it possible it's not finding the target to GIVE the tails too, so it just automatically drops them?
Ah HA! It works! It was a combination of what Davion said and a bit of a syntax area of the GIVE line. My rats are now giving rat tails, and Everything is peachy! A big thanks to both of you for helping, I was surprised to get so much help so quickly. I'll be back the next time something stumps me :P
Just a pointer for the next time, even though you had a couple of folks able to help solve this one right away for you it really helps if you mention which code base you're using too, especially when you're asking about the specific syntax your prog should use. :wink: