ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Alpha on December 31, 2010, 10:41:42 AM

Title: How to detect if it's an actual Player vs NPC?
Post by: Alpha on December 31, 2010, 10:41:42 AM
Ok.... so what I used to do is scan for the appropriate NPC titles .. example  ( the Healer / the mage / etc ) but now with the new titles that's no longer valid.   I know in certain cases you can use #findrep but I'm looking for a bullet proof method other than that.   So far the easiest idea I've come up with is to open the paperdol of the target in question and scan for Blessed or Insured Items.  The problem with this is that it requires your target to be on screen long enough to complete that action which isn't always the case with recalling in & out or even running a quick Rail..   Anyway...   I'm just looking for ideas of what other's have used etc..  Thx.
Title: Re: How to detect if it's an actual Player vs NPC?
Post by: manwinc on December 31, 2010, 12:20:19 PM
Keep thinking and you will stumble onto a method that is fairly ingenious. Its not Bullet Proof, but its fairly ingenious.
Title: Re: How to detect if it's an actual Player vs NPC?
Post by: Alpha on December 31, 2010, 01:34:37 PM
Hmmmm....... ok well I got another idea that's at least better than my 1st one.. but since your being subtle maybe I'll bounce it off ya in a PM heh.
Title: Re: How to detect if it's an actual Player vs NPC?
Post by: manwinc on December 31, 2010, 08:18:28 PM
That's another method for sure
Title: Re: How to detect if it's an actual Player vs NPC?
Post by: Kalaka on January 01, 2011, 12:42:29 AM
Edit: I can't read at all. too tired. please delete
Title: Re: How to detect if it's an actual Player vs NPC?
Post by: Kalaka on January 01, 2011, 01:00:21 AM
Couple ideas I saw.. Begging. You get diff messages if it's a player vs an npc.

http://old.easyuo.com/viewtopic.php?TopicID=8494
http://old.easyuo.com/viewtopic.php?TopicID=11868
http://old.easyuo.com/viewtopic.php?TopicID=7854

Otherwise check these.. maybe they will help?
Title: Re: How to detect if it's an actual Player vs NPC?
Post by: Superslayer on January 02, 2011, 12:11:38 PM
Do what I do, ..attempt to party them.