Vote for Our Mud on TMC!











help > hooks > post give coins
---

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

Sample Header :

void my_post_give_coins(string tag, object ob, object who, int amt,
                        int receiver)

Arguments :

tag - "post_give_coins"
ob - The object this hook was called in, can either be the giver or receiver
who - The other living object involved with the give
amt - The number of coins (will be greater than 0)
receiver - 0 if "ob" is doing the giving, 1 if "who" is doing the giving

Return Value : none

Description :

After one living gives coins 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 coins, and "ob" will be the giver, and "who" will
be the receiver.  The second call is made in the one that received the coins,
and "ob" is the receiver, and "who" is the giver.

See also:

pre_give_coins, pre_give_item, post_give_item

---

Last modified : 2-5-01, Megaboz