SystemFindObjectBySerial

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Tharon
Novice Poster
Posts: 44
Joined: Fri May 15, 2009 2:27 am

SystemFindObjectBySerial

Post by Tharon »

Is it possible to find the master of an animal if he logtout? I need it to control that only tamed animals will be resurrected.

Code: Select all

var master:=SystemFindObjectBySerial(GetObjProperty(corpse,"master"));
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Re: SystemFindObjectBySerial

Post by Tomi »

first question why you dont use simply npc.master ?

and for systemfindobjectbyserial there is a flag in uo.em

// SystemFindObjectBySerial options:
const SYSFIND_SEARCH_OFFLINE_MOBILES := 1;
Tharon
Novice Poster
Posts: 44
Joined: Fri May 15, 2009 2:27 am

Re: SystemFindObjectBySerial

Post by Tharon »

Tomi wrote: // SystemFindObjectBySerial options:
const SYSFIND_SEARCH_OFFLINE_MOBILES := 1;
cool thx
Post Reply