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
moble.isA(POLCLASS_PC)

 
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
neizarr



Joined: 08 Dec 2006
Posts: 30

PostPosted: Mon Dec 11, 2006 7:32 pm    Post subject: moble.isA(POLCLASS_PC) Reply with quote

It would be nice if the method function isA would accept a new constant POLCLASS_PC, which would basically just do the check to see if it is a POLCLASS_MOBILE & not a POLCLASS_NPC.

Sure, it's easily scriptable, and you can do it in a include file, but if it existed in the core it would be a standard way of handling this very basic check, rather than half the people doing the above and another half seeing if the mobile has an ip member or not. So, it's just a conveniance feature, but a few of these sorts of conveniance features seemed to have been added, so maybe someone would like to make life a smidgen easier for scripting. Particularly since when you are just starting out with scripting it is a common question of newbies, "How do I determine if the target is a player?" Well, with POLCLASS_PC, it would be obvious!

Author Message
Austin
POL Developer


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

PostPosted: Mon Dec 11, 2006 9:30 pm    Post subject: Reply with quote

This has already been discussed
http://forums.polserver.com/viewtopic.php?t=388

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