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
need explain...
Author Message
kevin465
Journeyman
*

Posts: 67
Likes Given: 1
Likes Received: 4 in 4 posts
Joined: Feb 2014
Reputation: 0

UO Reborn

Post: #11
RE: need explain...
ok a player tell me since level 50 he dont gain stats point at each levels but he gains skills points......player have to gain stats point at each level... but i have no error in my console... but i think the problem it in this line

Code:
IF (<EVAL <TAG0.POINTS_STATS> +<OSTR> +<OINT> +<ODEX>> < 285)
because he have

if you see here
Code:
    IF (<EVAL <FINDID.i_experience_skill_points.MORE1>> > <EVAL 2*60*60>) //2 hours
            VAR.X=<EVAL {3 6}>
    ELSEIF (<EVAL <FINDID.i_experience_skill_points.MORE1>> > <EVAL 1*60*60>) //1 hour
            VAR.X=<EVAL {4 7}>
    ELSEIF (<EVAL <FINDID.i_experience_skill_points.MORE1>> > <EVAL 1*60*15>) //30 mins
            VAR.X=<EVAL {5 8}>
    ELSE
            VAR.X=<EVAL {6 9}>
    ENDIF
    IF (STRMATCH(<ACCOUNT>,Silver)) || (STRMATCH(<ACCOUNT>,julie)) || (STRMATCH(<ACCOUNT>,darkomen99)) || (STRMATCH(<ACCOUNT>,Spandex)) || (STRMATCH(<ACCOUNT>,ZestyMonkey))
        VAR.X=<EVAL <VAR.X> *2>
    ENDIF
    FINDID.i_experience_skill_points.MORE1=0
ELSE
    VAR.X=<EVAL {4 7}>
    VAR.OLD_ACT=<ACT.UID>
    NEWITEM=i_experience_skill_points
    EQUIP=<ACT.UID>
    ACT=<VAR.OLD_ACT>
    VAR.OLD_ACT=

its not the same with the elseif
Code:
IF (<EVAL <TAG0.POINTS_STATS> +<OSTR> +<OINT> +<ODEX>> < 285)
    VAR.X=1
    IF !(RAND(3))
        VAR.X=<VAR0.X> +<EVAL {1 4}>
    ENDIF
    IF !(RAND(4))
        VAR.X=<VAR0.X> +<EVAL {1 3}>
    ENDIF
    IF !(RAND(5))
        VAR.X=<VAR0.X> +<EVAL {1 2}>
    ENDIF
    IF (<VAR0.X>)
        TAG.POINTS_STATS=<EVAL <TAG0.POINTS_STATS> +<VAR.X>>
        SYSMESSAGE @91 You gain <EVAL <VAR.X>> stat points!
    ENDIF
ENDIF

its a 56b script and im on 56c just for tell you
(This post was last modified: 03-25-2014 07:34 AM by kevin465.)
03-25-2014 07:33 AM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #12
RE: need explain...
Code:
[FUNCTION CHECK]

WHILE (<TAG0.EXP> >= <TAG0.EXPNEEDED>)
    IF (<TAG0.LEVEL> >= 250)
    TAG.EXPNEEDED += 30000
    ELSEIF (<TAG0.LEVEL> >= 200)
    TAG.EXPNEEDED += 27500
    ELSEIF (<TAG0.LEVEL> >= 175)
    TAG.EXPNEEDED += 25000
    ELSEIF (<TAG0.LEVEL> >= 150)
    TAG.EXPNEEDED += 22500
    ELSEIF (<TAG0.LEVEL> >= 125)
    TAG.EXPNEEDED += 20000
    ELSEIF (<TAG0.LEVEL> >= 100)
    TAG.EXPNEEDED += 15000
    ELSEIF (<TAG0.LEVEL> >= 75)
    TAG.EXPNEEDED += 12500
    ELSEIF (<TAG0.LEVEL> >= 50)
    TAG.EXPNEEDED += 11000
    ELSEIF (<TAG0.LEVEL> >= 30)
    TAG.EXPNEEDED += 10000
    ELSEIF (<TAG0.LEVEL> >= 25)
    TAG.EXPNEEDED += 9000
    ELSEIF (<TAG0.LEVEL> >= 20)
    TAG.EXPNEEDED += 8000
    ELSEIF (<TAG0.LEVEL> >= 15)
    TAG.EXPNEEDED += 7000
    ELSEIF (<TAG0.LEVEL> >= 10)
    TAG.EXPNEEDED += 6000
    ELSEIF (<TAG0.LEVEL> >= 5)
    TAG.EXPNEEDED += 5000
    ELSE
    TAG.EXPNEEDED += 2500
    ENDIF
  LEVELUP
ENDWHILE


[FUNCTION levelup]

EFFECT=3,i_fx_sparkle,15,15,1
SOUND=snd_SPELL_LIGHTNING
TAG0.LEVEL += 1
SYSMESSAGE @91 You have just gained a level! You are at level <dTAG0.LEVEL>.
IF (<FINDID.i_experience_skill_points.UID>)
    IF (<FINDID.i_experience_skill_points.MORE1> > <EVAL 2*60*60>) //2 hours
    local.X=<EVAL {3 6}>
    ELSEIF (<FINDID.i_experience_skill_points.MORE1> > <EVAL 1*60*60>) //1 hour
    local.X=<EVAL {4 7}>
    ELSEIF (<FINDID.i_experience_skill_points.MORE1> > <EVAL 1*60*15>) //30 mins
    local.X=<EVAL {5 8}>
    ELSE
    local.X=<EVAL {6 9}>
    ENDIF

    IF (STRMATCH(<ACCOUNT>,Silver)) || (STRMATCH(<ACCOUNT>,julie)) || (STRMATCH(<ACCOUNT>,darkomen99)) || (STRMATCH(<ACCOUNT>,Spandex)) || (STRMATCH(<ACCOUNT>,ZestyMonkey))
    local.X *= 2
    ENDIF
    FINDID.i_experience_skill_points.MORE1=0
ELSE
    local.X=<EVAL {4 7}>
    SERV.NEWITEM=i_experience_skill_points
    NEW.EQUIP
ENDIF
TAG.POINTS += <local.X>
SYSMESSAGE @91 You have earned <dlocal.X> skill points.
IF (<EVAL <OSTR>+<OINT>+<ODEX>> < 1500)
    local.y=1
    IF !(RAND(3))
    local.y += <EVAL {1 4}>
    ENDIF
    IF !(RAND(4))
    local.y += <EVAL {1 3}>
    ENDIF
    IF !(RAND(5))
    local.y += <EVAL {1 2}>
    ENDIF
    TAG0.POINTS_STATS += <local.y>
    SYSMESSAGE @91 You gain <dlocal.y> stat points!
ENDIF

This should do the trick... with a lot of the syntax updated to 56c

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
03-25-2014 09:20 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
kevin465
Journeyman
*

Posts: 67
Likes Given: 1
Likes Received: 4 in 4 posts
Joined: Feb 2014
Reputation: 0

UO Reborn

Post: #13
RE: need explain...
thanks ben that works Smile
03-25-2014 06:42 PM
Find all posts by this user Like Post Quote this message in a reply
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #14
RE: need explain...
Descriptive thread titles are a must

[Image: 2nis46r.jpg]
03-25-2014 07:11 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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