SphereCommunity

Full Version: Neutral attack faction, can see orange?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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
First, thanks for reply. I try it at night .

Thanks
Reference URL's