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
WRWR
Journeyman
*

Posts: 212
Likes Given: 30
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 1



Post: #1
NPC igonre "high strength" players
why npcs don't attack heavily armored players?

ON=@NPCLOOKATCHAR
ATTACK
(This post was last modified: 09-21-2012 01:54 AM by WRWR.)
09-20-2012 08:03 PM
Find all posts by this user Like Post Quote this message in a reply
Skul
Master
**

Posts: 413
Likes Given: 0
Likes Received: 19 in 15 posts
Joined: Jun 2012
Reputation: 9



Post: #2
RE: NPC igonre armored players
NPCs attack any player in the area on my server, no 'extra' code was required. You might have something in your scripts blocking the attack, take a look at some of your @attack triggers, see if there is some code in there that might be blocking the attack for a reason or another.

"I ask a question to the answer I already know."

Marchadium :: http://www.marchadium.ca/ :: Join us!
09-20-2012 08:10 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
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
WRWR
Journeyman
*

Posts: 212
Likes Given: 30
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 1



Post: #4
RE: NPC igonre armored players
For example Spiders, attack always
but if player HIGH STR (180 for example) they just ignoring and not attack
default scripts and work with all weak monsters
i don't know, maybe its monster strength based or something else.
(This post was last modified: 09-21-2012 01:53 AM by WRWR.)
09-21-2012 01:48 AM
Find all posts by this user Like Post Quote this message in a reply
Shaklaban
Master
**

Posts: 378
Likes Given: 0
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 8

DOT

Post: #5
RE: NPC igonre armored players
i never heard of this, you can check these .ini settings. maybe one of them cause this.

// NPC AI settings
// NPC_AI_PATH 0001 NPC pathfinding
// NPC_AI_FOOD 0002 NPC food search (objects + grass)
// NPC_AI_EXTRA 0004 NPC magics, etc
// NPC_AI_ALWAYSINT 0008 Always be as smart as possible with pathfinding
// NPC_AI_INTFOOD 0010 NPC food search (more intelligent and trusworthy)
// NPC_AI_COMBAT 0040 Look for friends in combat
// NPC_AI_VEND_TIME 0080 vendors closing their shops at nighttime
// NPC_AI_LOOTING 0100 loot corpses an the way
// NPC_AI_MOVEOBSTACLES 0200 if moveable items block my way, try to move them
NPCAI=

// Monsters run when scared of death
MonsterFear=0
09-21-2012 01:50 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
WRWR
Journeyman
*

Posts: 212
Likes Given: 30
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 1



Post: #6
RE: NPC igonre "high strength" players
i find it! High player STR its a reason, not armor
09-21-2012 01:55 AM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #7
RE: NPC igonre "high strength" players
Interesting.... what happens if you increase the STR of the NPC? does it then attack?

[Image: 2nis46r.jpg]
09-21-2012 02:18 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #8
RE: NPC igonre "high strength" players
Are you testing with player character or gm character?
At @NpcActFight, if ARGN2 or ARGN1, I don't remember, is negative, they will not attack =D

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
09-21-2012 02:23 AM
Find all posts by this user Like Post Quote this message in a reply
WRWR
Journeyman
*

Posts: 212
Likes Given: 30
Likes Received: 1 in 1 posts
Joined: Mar 2012
Reputation: 1



Post: #9
RE: NPC igonre "high strength" players
testing with player character

high strength on npc work ))))
so, weak monsters can't attack strong players )))
09-21-2012 02:54 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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