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
player vendors & guards

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096
Display posts from previous:   

Author Message
BELL



Joined: 22 Apr 2008
Posts: 21

PostPosted: Mon May 05, 2008 5:22 pm    Post subject: player vendors & guards Reply with quote

guards attacking player vendors..... help? )

Author Message
CWO



Joined: 04 Feb 2006
Posts: 691
Location: Chicago, IL USA

PostPosted: Mon May 05, 2008 10:10 pm    Post subject: Reply with quote

Try looking in their script for when they pick a target. Make sure you check either...

Code:
if (target.acctname)


or

Code:
if (!(target.isA(POLCLASS_NPC))


You don't need to use both of those codes, just one.

Author Message
BELL



Joined: 22 Apr 2008
Posts: 21

PostPosted: Tue May 06, 2008 3:17 pm    Post subject: Reply with quote

yes, but if im set this code in guards ai, guards dont attack evil monsters and etc??

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 256

PostPosted: Tue May 06, 2008 6:20 pm    Post subject: Reply with quote

Quote:
yes, but if im set this code in guards ai, guards dont attack evil monsters and etc??


If you set this in your script Guards won't attack anything except for players.

The question is: Why do the guards attack player vendors.
A normal guard script checks for criminals. I don't know what your guard script looks, but if it checks for criminals --> How does the player vendors get criminal Smile

If you don't know yet a small code in the guard script can solve this problem as long as you find the real problem (opponent and playervendor must perhaps be changed to your script):

Code:

if(opponent.npctemplate != "playervendor")
...
endif

Author Message
BELL



Joined: 22 Apr 2008
Posts: 21

PostPosted: Wed May 07, 2008 11:51 am    Post subject: Reply with quote

thx Smile
im may set this or another code in guards, ai script, but i dont really understand this situation...

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help 096 All times are GMT - 4 Hours
Page 1 of 1

 




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