need explain... - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: need explain... (/Thread-need-explain) Pages: 1 2 |
need explain... - kevin465 - 03-25-2014 05:26 AM 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 RE: need explain... - Alaric - 03-25-2014 06:18 AM It has been said many times. Use [code block. Use spaces like Code: if (x) Make it easier for us to read. RE: need explain... - amonvangrell - 03-25-2014 06:32 AM 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. need explain... - kevin465 - 03-25-2014 06:46 AM Ok but for this time someone can help me with my problem sorry .. RE: need explain... - amonvangrell - 03-25-2014 06:48 AM What is the error in your console? need explain... - kevin465 - 03-25-2014 06:49 AM 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 RE: need explain... - amonvangrell - 03-25-2014 06:53 AM 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) RE: need explain... - darksun84 - 03-25-2014 07:00 AM Yea i think it's probably caused by that condition ! RE: need explain... - kevin465 - 03-25-2014 07:12 AM i dont understand you post the same line ?? RE: need explain... - darksun84 - 03-25-2014 07:27 AM Well the script it's barely understandable 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 |