Ok, here it is again :)
----- Begin Included Message -----
I made a special just to test the hunt_victim() function.
It works like this: When the hunter is attacked, it take the and hunt the attacker
when he flees, very simple :)
The code looks like this:
SPECIAL(hunter)
{
struct char_data *hunter = (struct char_data *) me;
if(cmd)
return FALSE;
if(GET_POS(hunter) == POS_FIGHTING && FIGHTING(hunter))
HUNTING(hunter) = FIGHTING(hunter);
else if(GET_POS(hunter) != POS_FIGHTING && !FIGHTING(hunter) && HUNTING(hunter))
hunt_victim(hunter);
return TRUE;
}
I hope at least some of you out there have some use of it... :)
----- End Included Message -----
---------------------------------------------------------------------
The Arrow Moses@PTMUD iguanodon.pt.hk-r.se 4000
Joachim Pileborg Email: pt94jpi@pt.hk-r.se
Lindblomsvägen 107
37233 Ronneby http://www.hk-r.se/~pt94jpi/pt94jpi.html
SWEDEN
---------------------------------------------------------------------