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
Heal "command"
Author Message
XuN
Sphere Developer
*****

Posts: 852
Likes Given: 102
Likes Received: 156 in 119 posts
Joined: Jul 2013
Reputation: 30



Post: #2
RE: Heal "command"
http://wiki.sphere.torfo.org/index.php/Targetf

Something like this will do the job:

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

Code:
[FUNCTION _celheal]
ref1=<argo>
IF (<ref1.dist> == 1) // ? Is this right? one tile away? you used IF (<TARG.DIST>=1) which makes no sense, you are not comparing anything but trying to SET the value returned from <targ.dist> to 1 ... this will cause a mess on your code.
//ARGO.CAST 7 //Possible Heal effect and sound? Or maybe weird target on target? this should be replaced with the effect you want, the spell heal should have the effectid you should use:
ref1.effect=3,effect_id_here,20,30,1
sysmessage=Drawing on your divine blood, your touch heals.
ref1.sysmessage=You were healed.
ref1.hits +=({8,12}+(Healing/100)) // Note that you are not using brackets outside Healing, it should be (<Healing>/100).
if (<ref1.hits> > <ref1.maxhits>) //IF <ARGO.HITS> > TARG.MAXHITS. you are comaring <argo.hits> against 'targ.maxhits', shouldn't it be <targ.maxhits>? However, and also important, you should be comparing or both <argo.hits> and <argo.maxhits> or <targ.hits> and <targ.maxhits> but not a mix of them, since one may target to a different character at certain situations.
ref1.hits=<ref1.maxhits>
endif
else
sysmessage=You must close to touch the target.
endif
07-27-2015 07:38 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)