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: #1
need explain...
I dont understand can someone help me or explain me on this !? my players stop to gain stats point at lvl 50 ... they dont gain stats point at each levels why !? i have any error in my console there the script


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

[FUNCTION levelup]
EFFECT=3,i_fx_sparkle,15,15,1
SOUND=snd_SPELL_LIGHTNING
TAG.LEVEL=<EVAL <TAG0.LEVEL>> +1
SYSMESSAGE @91 You have just gained a level! You are at level <EVAL <TAG.LEVEL>>.
IF (<FINDID.i_experience_skill_points.UID>)
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=
ENDIF
TAG.POINTS=<EVAL <TAG.POINTS>> +<EVAL <VAR.X>>
SYSMESSAGE @91 You have earned <EVAL <VAR.X>> skill points.
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
03-25-2014 05:26 AM
Find all posts by this user Like Post Quote this message in a reply
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #2
RE: need explain...
It has been said many times.

Use [code block.
Use spaces like
Code:
if (x)
   code
else
   for 10
       code
   endfor
endif

Make it easier for us to read.
03-25-2014 06:18 AM
Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #3
RE: need explain...
Hey kevin465, what Alaric meant was whenever you are gonna post a scrip here in the forum, you have to use a thing called (code), what this code do is to put your script inside a box, so it makes easy for the person to read. To put your script inside the code, you have to use the format to open [code*] (without the *) and [/code*] to close the code bar.
03-25-2014 06:32 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: #4
need explain...
Ok but for this time someone can help me with my problem sorry ..
03-25-2014 06:46 AM
Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #5
RE: need explain...
What is the error in your console?
03-25-2014 06:48 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: #6
need explain...
I have no error in my console but a player tell me he have reach lvl 50 and he dont gain stat points since lvl 50

But no error in console that confuse me
(This post was last modified: 03-25-2014 06:50 AM by kevin465.)
03-25-2014 06:49 AM
Find all posts by this user Like Post Quote this message in a reply
amonvangrell
Banned

Posts: 337
Likes Given: 17
Likes Received: 32 in 20 posts
Joined: Aug 2012

britannia shard

Post: #7
RE: need explain...
Check this, you are lacking an else to see if he have more than that what sphere should do.
Code:
IF (<EVAL <TAG0.POINTS_STATS> +<OSTR> +<OINT> +<ODEX>> < 285)
03-25-2014 06:53 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #8
RE: need explain...
Yea i think it's probably caused by that condition !
03-25-2014 07:00 AM
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: #9
RE: need explain...
i dont understand you post the same line ??
03-25-2014 07:12 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #10
RE: need explain...
Well the script it's barely understandable Tongue
If i am correct, when you reach the 50th level, you have at least 50 points in tag.points_stats so probably the sum of tag.point_stats and odex,ostr and oint is greater than 285
03-25-2014 07:27 AM
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)