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
What Command Would I Use For "If My Character Is Damaged/Attacked?"
Author Message
Admin Drew
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #1
What Command Would I Use For "If My Character Is Damaged/Attacked?"
Hi guys, I know to use ontrigger=damage if you want something to happen while attacking something but what would I use if I want something to happen to the other person if they are attacking me? For example I make a ring my character wears and if my character tests that he parried a blow I want a trigger for something to happen to the person attacking me. Kind of like reactive armor spell does but want to use it on various items.
Thanks!
07-04-2013 11:22 AM
Find all posts by this user Like Post Quote this message in a reply
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
Admin Drew
Apprentice
*

Posts: 48
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jun 2013
Reputation: 0



Post: #3
RE: What Command Would I Use For "If My Character Is Damaged/Attacked?"
For 51a? Allot of that doesn't look like it's for 51a.. Also was just looking for one line to test if my player is being attacked.
07-04-2013 02:56 PM
Find all posts by this user Like Post Quote this message in a reply
evening
Journeyman
*

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

Finally Land

Post: #4
RE: What Command Would I Use For "If My Character Is Damaged/Attacked?"
sphere 0.51a
07-04-2013 03:29 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
sus
Apprentice
*

Posts: 4
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Oct 2013
Reputation: 0



Post: #5
RE: What Command Would I Use For "If My Character Is Damaged/Attacked?"
(07-04-2013 03:29 PM)evening Wrote:  sphere 0.51a

But with lil.
Without lil it wouldn't work.
10-02-2013 08:43 PM
Find all posts by this user Like Post Quote this message in a reply
evening
Journeyman
*

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

Finally Land

Post: #6
RE: What Command Would I Use For "If My Character Is Damaged/Attacked?"
lil has released the source code, I have the new update it, so I will be more trigger events
10-03-2013 10:19 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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