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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
NPCs acting like their are in a guild...
Author Message
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #1
NPCs acting like their are in a guild...
since we cant have npcs in a guild, im trying to figure out a way to make it look like they are in your guild...


Code:
[EVENTS e_army_wei]
ON=@NPCSEENEWPLAYER
IF (<src.tag.army>=WEI)
TAG.NAME.HUE 03f
Say Hail Friend!
RETURN 0
ELSEIF (<src.tag.army>=WU) || (<src.tag.army>=SHU) || (<src.tag.army>=YS) || (<src.tag.army>=LB) || (<src.tag.army>=YT) || (<src.tag.army>=MH)
TAG.NAME.HUE 090
Say Attack the soldier of <src.tag.army>!
ATTACK
RETURN 0
ELSEIF (<src.iscriminal>=1) || (<src.kills>>3)
Say Beat it criminal!
ATTACK
RETURN 0
ENDIF


i cant get this to work...

is there a better way?
problem with this is, if the npcs sees a different player, the first player then sees the wrong color...

Dragons of Time 2000-2020
http://dragonsoftime.com
01-05-2015 02:25 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
NPCs acting like their are in a guild... - x77x - 01-05-2015 02:25 PM

Forum Jump:


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