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
Neutral attack faction, can see orange?
Author Message
daedelus
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: Aug 2012
Reputation: 0



Post: #1
Neutral attack faction, can see orange?
How can I do that if a neutral blue [+karma] attack a faction, the faction sees him in orange [can attack] for x seconds.

Item memory? How is that item memory?

Thanks
11-15-2012 04:33 AM
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: Neutral attack faction, can see orange?
well you would have to set a tag.override.[$uid] in @gethit, here's an example, might work, might not, try it out:
Code:
[defname guildstone_faction_system]
guild_nototimeout        360 //360 second timeout

[events e_guildstone_faction_system]
on=@gethit
if (<memoryfindtype.0400>)
  if (<src.memoryfindtype.0400>)
    if !(<src.memoryfindtype.0400.link.align>) && !(<memoryfindtype.0400.link.align>)
      guild_setneutralnotoflags <src.uid>
    endif
  endif
endif

[function guild_setneutralnotoflags]
if (<memoryfindtype.0400.link.member.count>)
  for x 0 <memoryfindtype.0400.link.member.count>
    memoryfindtype.0400.link.member.<local.x>.tag.override.noto.<argn1>=5
    memoryfindtype.0400.link.member.<local.x>.timerf <qval <def0.guild_nototimeout> ?<def0.guild_timeout>:360>, tag.override.noto.<argn1>=
    uid.<argn1>.tag.override.noto.<memoryfindtype.0400.link.member.<local.x>.uid>=5
    timerf <qval <def0.guild_nototimeout> ?<def0.guild_timeout>:360>, uid.<argn1>.tag.override.noto.<memoryfindtype.0400.link.member.<local.x>.uid>=
  endfor
else
  tag.override.noto.<argn1>=5
  timerf <qval <def0.guild_nototimeout> ?<def0.guild_timeout>:360>, tag.override.noto.<argn1>=
  uid.<argn1>.tag.override.noto.<uid>=5
  timerf <qval <def0.guild_nototimeout> ?<def0.guild_timeout>:360>, uid.<argn1>.tag.override.noto.<uid>=
endif

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

Marchadium :: http://www.marchadium.ca/ :: Join us!
11-15-2012 06:09 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
daedelus
Journeyman
*

Posts: 69
Likes Given: 0
Likes Received: 2 in 1 posts
Joined: Aug 2012
Reputation: 0



Post: #3
RE: Neutral attack faction, can see orange?
First, thanks for reply. I try it at night .

Thanks
11-16-2012 05:37 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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