SphereCommunity
Can't resolve <HOME> - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: Can't resolve <HOME> (/Thread-Can-t-resolve-HOME)



Can't resolve <HOME> - jexnico - 07-31-2019 09:50 PM

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}



RE: Can't resolve <HOME> - Coruja - 08-01-2019 12:22 PM

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)