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
Heal "command"
Author Message
gergecoelho
Apprentice
*

Posts: 31
Likes Given: 7
Likes Received: 3 in 3 posts
Joined: Jul 2015
Reputation: 0



Post: #1
Heal "command"
Hey guys, me again. Big Grin

I've been trying to make a Racial Healing Spell accessed via command (.celheal in this case).

Here's what I got so far:

Quote:[FUNCTION celheal]
IF (<SRC.TAG.RACE>==03)
TARGET Who do you want to heal?
ELSE
I.SYSMESSAGE=You are not a Celestial.
ENDIF

ON=@TargOn_Char
IF (<TARG.DIST>=1)
ARGO.CAST 7 //Possible Heal effect and sound? Or maybe weird target on target?
SRC.SYSMESSAGE=Drawing on your divine blood, your touch heals.
ARGO.SYSMESSAGE=You were healed.
ARGO.HITS += ({8,12}+(SRC.Healing/100))
IF <ARGO.HITS> > TARG.MAXHITS
ARGO.HITS=ARGO.MAXHITS
ENDIF
ELSE
SRC.SYSMESSAGE=You must close to touch the target.
ENDIF

So, I checked the Wiki and sadly found out that @TargOn_Char fires off items, and that might explain the error message I'm getting "Targetted item gone?".

Any other way to solve this?

Plus: I'm aiming for the visual and sound effects like the Heal spell (the .cast 7) but I'm not sure if it is gonna work like it should as is, or it would make a target appear on the person who was healed.

Thanks in advance, guys! Tongue
07-27-2015 04:47 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Heal "command" - gergecoelho - 07-27-2015 04:47 AM
RE: Heal "command" - XuN - 07-27-2015, 07:38 AM
RE: Heal "command" - gergecoelho - 07-27-2015, 11:46 AM
RE: Heal "command" - XuN - 07-27-2015, 06:36 PM
RE: Heal "command" - gergecoelho - 07-28-2015, 01:30 AM

Forum Jump:


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