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
level system problem
Author Message
Coruja
Sphere Developer
*****

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

Dimension Shard

Post: #4
RE: level system problem
EXP is directly linked to LEVEL, if you change EXP, the LEVEL will change too (based on the value you set on EXP)
so you need to use a function that doesnt change the EXP, but just calculate the min/max value for each level

probably it will take a long time and knowledge to make this, so here's a function I already made some months ago
Code:
[FUNCTION GetExpValue]
FOR 0 <LEVEL>
LOCAL.Amount += <eval <LOCAL._FOR>*<SERV.LevelNextAt>>
ENDFOR
ARGS=<LOCAL.Amount>,<eval <LOCAL.Amount>+((<LEVEL>+1)*<SERV.LevelNextAt>)>
return <eval <EXP>-<ARGV0>>,<eval <ARGV1>-<ARGV0>>

[FUNCTION MessageExample]
ARGS=<GetExpValue>
SYSMESSAGE You're on level <LEVEL> (EXP <ARGV0>/<ARGV1>)
this will return the min,max EXP value for the current level like this:
-Level 0: 0 ~ 2000 exp
-Level 1: 0 ~ 4000 exp
-Level 2: 0 ~ 6000 exp
-Level 3: 0 ~ 8000 exp

note that it wont change the char EXP value, but just visually show the same value using a more friendly number
03-08-2014 01:59 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
level system problem - dabritmusic - 03-08-2014, 10:21 AM
RE: level system problem - pinku - 03-08-2014, 11:24 AM
RE: level system problem - dabritmusic - 03-08-2014, 11:48 AM
RE: level system problem - Coruja - 03-08-2014 01:59 PM

Forum Jump:


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