The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPC igonre "high strength" players
Author Message
Rayvolution
Journeyman
*

Posts: 135
Likes Given: 0
Likes Received: 2 in 2 posts
Joined: Jul 2012
Reputation: 1

Aetharia

Post: #3
RE: NPC igonre armored players
You need to specify what it's attacking, I believe.

My guards and all my manual/forced attacking in my AI scripts use:
ATTACK <SRC>

DON'T use this code, it won't work on your server. But it's a good reference:
Code:
[EVENTS e_AI_Guard]
ON=@NPCLookAtChar
    IF (<SRC.isTEVENT.e_AI_Hostile>) || (<SRC.FLAGS>&statf_criminal)
ATTACK <SRC>
f_guard_regeneration
ELSE
f_guard_regeneration
ENDIF
RETURN 0

[ITEMDEF i_mem_guard_regeneration]
ID=i_memory
NAME=Guard Health Regeneration
TYPE=t_eq_script
on=@timer
       LINK.HITPOINTS=<LINK.HITPOINTS> +10
       IF (<LINK.STR> < <LINK.HITPOINTS>)
        LINK.HITPOINTS=<LINK.STR>
       ENDIF
       TIMER=1
       RETURN 1

[FUNCTION f_guard_regeneration]
    IF (<RESTEST i_mem_guard_regeneration>)

    ELSE
        SERV.NEWITEM i_mem_guard_regeneration
        EQUIP <NEW>
           NEW.LINK=<UID>
        NEW.TIMER=1
    ENDIF

[Image: 4_Logo.png]
An MMORPG based on the Ultima Online engine.
Completely Custom Map, GUI, AI, Combat, Skills, Crafts, Art, Music and so much more.
http://aetharia.com - Home of Ambition!
(This post was last modified: 09-20-2012 11:09 PM by Rayvolution.)
09-20-2012 11:08 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
NPC igonre "high strength" players - WRWR - 09-20-2012, 08:03 PM
RE: NPC igonre armored players - Skul - 09-20-2012, 08:10 PM
RE: NPC igonre armored players - Rayvolution - 09-20-2012 11:08 PM
RE: NPC igonre armored players - WRWR - 09-21-2012, 01:48 AM
RE: NPC igonre armored players - Shaklaban - 09-21-2012, 01:50 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)