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
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
Post Reply 


Messages In This Thread
need explain... - kevin465 - 03-25-2014, 05:26 AM
RE: need explain... - Alaric - 03-25-2014, 06:18 AM
RE: need explain... - amonvangrell - 03-25-2014, 06:32 AM
need explain... - kevin465 - 03-25-2014, 06:46 AM
RE: need explain... - amonvangrell - 03-25-2014, 06:48 AM
need explain... - kevin465 - 03-25-2014, 06:49 AM
RE: need explain... - amonvangrell - 03-25-2014, 06:53 AM
RE: need explain... - darksun84 - 03-25-2014, 07:00 AM
RE: need explain... - kevin465 - 03-25-2014, 07:12 AM
RE: need explain... - darksun84 - 03-25-2014, 07:27 AM
RE: need explain... - kevin465 - 03-25-2014, 07:33 AM
RE: need explain... - Ben - 03-25-2014 09:20 AM
RE: need explain... - kevin465 - 03-25-2014, 06:42 PM
RE: need explain... - Mordaunt - 03-25-2014, 07:11 PM

Forum Jump:


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