PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
New member: who.minions

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Feature Suggestions
Display posts from previous:   

Author Message
Core Essence



Joined: 07 Feb 2006
Posts: 15
Location: Palermo, Italy

PostPosted: Fri Nov 17, 2006 6:13 pm    Post subject: New member: who.minions Reply with quote

A member wich returns a list of all the creatures tamed by characters [creature.setmaster(who)];

It would be usefull when characters lose their creatures and we need to give them a reference for release them or whatever

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Fri Nov 17, 2006 7:38 pm    Post subject: Reply with quote

That's what OSI has the "ball of pet summoning" that is special loot you can find and charge for. Nice idea without having server support directly (script based).

Aside from that you can also use cprops of them in the taming system and tamed ai's to handle that effectively enough.

Author Message
Core Essence



Joined: 07 Feb 2006
Posts: 15
Location: Palermo, Italy

PostPosted: Fri Nov 17, 2006 8:01 pm    Post subject: Reply with quote

Yes I know, but a member it's a little bit "clean" and faster for usage Razz

Author Message
Austin
POL Developer


Joined: 30 Jan 2006
Posts: 354
Location: San Diego, California

PostPosted: Fri Nov 17, 2006 8:13 pm    Post subject: Reply with quote

you're wrong, cprops are cleaner in this situation and just as fast.

Author Message
Core Essence



Joined: 07 Feb 2006
Posts: 15
Location: Palermo, Italy

PostPosted: Fri Nov 17, 2006 8:55 pm    Post subject: Reply with quote

Mmmh.. Why?
A cprop should be cleaned when a mob die and references should be loaded through SystemFindObjectBySerial() in a member it's all done server side

Or I'm wrong?

Author Message
Marilla



Joined: 02 Feb 2006
Posts: 329

PostPosted: Sat Nov 18, 2006 2:18 pm    Post subject: Reply with quote

Why is it 'cleaner'? A dozen reasons:

First, is this: Who is to say that anyone really wants -all- NPCs that have had npc.SetMaster(who); called to show up on who.minions? I know I use .SetMaster() on NPCs that I would never want to show up in my lists of pets or other such NPCs. I also have NPCs that have NOT had .SetMaster() called show up on some such lists. A scripted system lets me control exactly how and what shows up on what lists - and lets me easily create separate lists with separate criteria for inclusion, in fact.. making the scripted system much 'cleaner'.

Oh.. and the other thing that makes the scripted system 'clean' is that I have a single include file that handles all of the registering, unregistering and listing of NPCs, for all the various groups.

Code:

function RegisterNPC(npc, master, type)
    var npcs := GetObjProperty(master, "#npcs_"+type);
    ...etc... add/verify the NPC on the list...
endfunction

function UnRegisterNPC(npc, master, type)
    var npcs := GetObjProperty(master, "#npcs_"+type);
    ...etc... Remove the NPC from the list...
endfunction

function ListRegisteredNPCs(master, type)
    var npcs := GetObjProperty(master, "#npcs_"+type);
    ...etc... verify each NPC still exists, then list it...
endfunction



This, incidentally, was one reason I had recently requested method scripts for mobiles, including PCs; So that a custom implementation of adding, removing and listing NPCs could be tied directly to the PC instance, rather than in an include file. But in the meantime, the include works fine, too.

Author Message
Lagoon



Joined: 05 Mar 2006
Posts: 118
Location: Italy

PostPosted: Sun Nov 19, 2006 8:12 am    Post subject: Reply with quote

I agree with marilla, no need for such a hardcoded method, cprops and scripts con do it quite well and hopefully scripted mobiles methods will do it even better

Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Feature Suggestions All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty