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-nmm8 (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-nmm8 (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-nmm8 (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
What Command Would I Use For "If My Character Is Damaged/Attacked?"
Author Message
evening
Journeyman
*

Posts: 138
Likes Given: 0
Likes Received: 14 in 9 posts
Joined: Apr 2012
Reputation: 1

Finally Land

Post: #2
RE: What Command Would I Use For "If My Character Is Damaged/Attacked?"
@HitTry
@HitMiss
@Hit
@GetHit
@Attack

on=@attack
if (<src.act.hits> = <src.act.str>) && (<src.act.action> == -1) && (<src.act.obody> == 065)
src.act.go=<src.p>
endif

//动物园
if (<valstr(strlen(<SRC.REGION.name>))>=3) && (<SRC.REGION.FLAGS> == 028aa)
src.go 4291 954 10
//src.action -1
endif


//矿洞名称计算公式
if ((<valstr(strlen(<SRC.REGION.name>))>=10) || (<valstr(strlen(<SRC.REGION.name>))>=11) || (<valstr(strlen(<SRC.REGION.name>))>=13) || (<valstr(strlen(<SRC.REGION.name>))>=17)) && (<SRC.REGION.FLAGS> & 04000)
if (<src.findlayer(1).id> > 0)
src.findlayer(1).unequip
endif

if (<src.findlayer(2).id> > 0)
src.findlayer(2).unequip
endif
endif
return 0

on=@gethit
//speaku <actarg1>
if (<valstr(strlen(<SRC.REGION.name>))>=3) && (<SRC.REGION.FLAGS> == 028aa)
if (<src.npc>) && (!(<serial> = <src.MemoryFindType.0002.LINK>)) && (<src.MemoryFindType.0002.LINK> > 0)
src.remove
endif
endif

if ((<valstr(strlen(<SRC.REGION.name>))>=10) || (<valstr(strlen(<SRC.REGION.name>))>=11) || (<valstr(strlen(<SRC.REGION.name>))>=13) || (<valstr(strlen(<SRC.REGION.name>))>=17)) || (<SRC.REGION.FLAGS> & 04000)
if (<src.npc> == 1)// && (!(<serial> = <src.MemoryFindType.0002.LINK>))
var.ffgs=<flags>
src.remove
//src.MemoryFindType.0002.LINK.criminal
flags=<var.ffgs>
endif
endif
//if (<findlayer(33).id> > 0)// && (<act.DISTANCE> < 2)
// EFFECT=3,FX_CURSE_EFFECT,6,15,1
//endif
return 0
(This post was last modified: 07-04-2013 12:54 PM by evening.)
07-04-2013 12:51 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: What Command Would I Use For "If My Character Is Damaged/Attacked?" - evening - 07-04-2013 12:51 PM

Forum Jump:


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