SphereCommunity
console errors - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: Script Help (/Forum-Script-Help)
+--- Thread: console errors (/Thread-console-errors--4019)



console errors - ograso - 02-14-2015 11:56 PM

Hey all,

I receive errors on console like as follows when I dclick to blank scroll. I didnt understand why crying for dspellcircle.

Code:
ERROR:(e_player.scp,157)Can't resolve <dSPELLCIRCLE 1>
.
.
ERROR:(e_player.scp,157)Can't resolve <dSPELLCIRCLE 64>

relevant content;
Code:
ON=@SpellSelect
LOCAL.CastRecovery=<SRC.TAG0.FASTERCASTRECOVERY>
IF (<LOCAL.CastRecovery> > 6)
LOCAL.CastRecovery=6
ENDIF
FLOAT.RecoveryTime=<FLOATVAL (((0.25*<dSPELLCIRCLE <ARGN1>>)-(<dLOCAL.CastRecovery>*0.25))*10)>
CTAG.LASTCASTING=<EVAL <SERV.TIME>+<FEVAL <FLOAT.RecoveryTime>>>
IF (<TAG0.LOWERMANACOST>)
LOCAL.LOWERCOST=<TAG0.LOWERMANACOST>
    IF (<LOCAL.LOWERCOST> > 50)
    LOCAL.LOWERCOST=50
    ENDIF
ARGN2 -= <EVAL (<ARGN2>*<LOCAL.LOWERCOST>)/100>
ENDIF



RE: console errors - Coruja - 02-15-2015 01:07 AM

you doesn't have the function SPELLCIRCLE, so sphere does't know what is SPELLCIRCLE and will return this console error "Cant resolve <SPELLCIRCLE>"

probably this SPELLCIRCLE function is used to get the circle of the spell, something like this:
Code:
[FUNCTION SpellCircle]
return <eval 1+((<ARGS>-1)/8)>



RE: console errors - ograso - 02-15-2015 04:09 AM

Thank you Coruja