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-nmm6 (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-nmm6 (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-nmm6 (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
Can't resolve <HOME>
Author Message
jexnico
Journeyman
*

Posts: 191
Likes Given: 114
Likes Received: 3 in 3 posts
Joined: Jan 2014
Reputation: 0



Post: #1
Can't resolve <HOME>
Could anyone help me with this Stanic script?
I don't know why the server is returning this error to me ...
I've looked line by line and can't see where it's wrong

Quote:08:45:ERROR:(boss_sys.scp,105)Can't resolve <HOME>
08:45:ERROR:(boss_sys.scp,105)Undefined symbol ''

Quote:[FUNCTION NewGuardian_Boss]
IF (<UID>) && (<ARGS>)
EMOTE summonando <QVAL (<ARGS>==1)?um Guardian:alguns Guardians>
TRIGGER @SpawnGuardian
FOR <ARGS>
SERV.NEWNPC <TAG.Guardian.ID>
NEW.P=<P>
IF (<HOME>)
NEW.HOME=<HOME>
IF (<HOMEDIST>)
NEW.HOMEDIST=<HOMEDIST>
NEW.MOVENEAR <UID>,<R<HOMEDIST>>
ENDIF
ENDIF
NEW.TAG.Guardian.Boss=<UID>
NEW.TAG.DeathFlags=<TAG.Guardian.DeathFlags>
NEW.EVENTS +e_GuardianBoss
NEW.UPDATEX
NEW.TIMERF 1,GuardianCheck_Boss
SetGuardian_Boss <NEW>
ENDFOR
ENDIF

And the creature script

Quote:[CHARDEF c_general_gardoor]
DEFNAME=c_ettin
NAME=General Gardoor
ID=0190
CAN=MT_USEHANDS|MT_WALK|MT_RUN
DAM=30,50
TAG0.Guardian.ID=c_orc
TAG0.Guardian.Amount=5
TAG0.Guardian.LossLife=150
TAG0.Guardian.Delay=15
TAG0.Guardian.DeathFlags=002
TEVENTS=e_BossSettings

ON=@Create
TITLE=General Gardoor
STR={500}
DEX={200}
INT={10}
MAXHITS={1200 1400}
HOMEDIST=10
MAGICRESISTANCE={900.0 900.0}
TACTICS={900.0 900.0}
WRESTLING={900.0 900.0}
SWORDSMANSHIP={900.0 900.0}
PARRYING={900.0 900.0}
NPC=BRAIN_HUMAN
COLOR=colors_skin
KARMA={-5000 -7000}
FAME={1500 2000}
07-31-2019 09:50 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #2
RE: Can't resolve <HOME>
You must make sure that this function NewGuardian_Boss is called by something that can use the <HOME> property (or in other words, it must be called by chars)
08-01-2019 12:22 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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