Barnabus 
Journeyman

Posts: 124
Likes Given: 0
Likes Received: 3 in 2 posts
Joined: Apr 2012
Reputation: 1
![]()
|
RE: NPC AI Sphere vs RunUO
aha MoveRate !!! the overide tag, i guess some of the mobs dont follow so well because they are slow !!!
Code:
[EVENTS e_NPCBrains]
ON=@NPCSeeNewPlayer
TAG.LastLookedAt=<SRC.UID>
IF <CheckLineOfSight <SRC.UID>>
SAY I see <SRC.UID> and im gonna kill him
NEWITEM i_RunLikeABastard, 1, <UID>
ATTACK
RETURN 0
ELSE
SAY I sense someone but i cannot see them
IF <FINDID.i_runLikeABastard>
FINDID.i_runLikeABastard.REMOVE
ENDIF
GO <HOME> // Go Home or Pathfind ????
RETURN 1
ENDIF
[ITEMDEF i_runLikeABastard]
DEFNAME=i_runLikeABastard
ID=i_memory
NAME=Run Like a Bastard
TYPE=t_eq_script
ON=@CREATE
ATTR=ATTR_NEWBIE|ATTR_DECAY|ATTR_MOVE_NEVER
TIMER=1
MORE=1
ON=@TIMER
LOCAL.CurrentMoveRate=<CONT.MOVERATE>
LOCAL.CurrentMobUId=<CONT.UID>
IF <MORE> > 6
CONT.MANA=<EVAL <CONT.INT>> // Speed times out you can cast now have some mana
CONT.TAG.OVERRIDE.MOVERATE=<LOCAL.CurrentMoveRate>
REMOVE
RETURN 1
ELSE
CONT.MANA=0 // Dont cast run
CONT.TAG.OVERRIDE.MOVERATE=<EVAL <LOCAL.CurrentMoveRate>/3> // Run 3 times faster than usual
MORE=<MORE>+1
TIMER=1
RETURN 1
ENDIF
RETURN 1
That helps the monsters stay on your tail. !
(This post was last modified: 10-02-2012 09:55 AM by Barnabus.)
|
|
10-02-2012 09:52 AM |
|
|