Vote for Our Mud on TMC!











help > hooks > post give item
---

Hook Name :         post_give_item
Called From :       /bin/living/give.c
Resolution Method : HOOK_VALUES

Sample Header :

void my_post_give_item(string tag, object ob, object who, object what,
                       int receiver)

Arguments :

tag - "post_give_item"
ob - The object this hook was called in, can either be the giver or receiver
who - The other living object involved with the give
what - The object being given
receiver - 0 if "ob" is doing the giving, 1 if "who" is doing the giving

Return Value : none

Description :

After one living thing gives an item to another living thing (whether npc's
or players), this hook is called twice.  The first call is made in the one
that gave the item, and "ob" will be the giver, and "who" will be the
receiver.  The second call is made in the one that received the item, and
"ob" is the receiver, and "who" is the giver.

See also:

post_give_coins, pre_give_coins, pre_give_item

---

Last modified : 2-5-01, Megaboz