PenUltima Online

It is currently Tue Oct 07, 2008 7:24 pm

All times are UTC - 8 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: moble.isA(POLCLASS_PC)
PostPosted: Mon Dec 11, 2006 3:32 pm 
Offline

Joined: Thu Dec 07, 2006 11:33 pm
Posts: 30
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!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 11, 2006 5:30 pm 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 419
Location: San Diego, California
This has already been discussed
http://forums.polserver.com/viewtopic.php?t=388

_________________
-Austin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl