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
Exp System - Doesn't work from 0.56b to 0.56d
Author Message
Claus
Apprentice
*

Posts: 21
Likes Given: 2
Likes Received: 0 in 0 posts
Joined: Jan 2014
Reputation: 0



Post: #7
RE: Exp System - Doesn't work from 0.56b to 0.56d
ok the @deathcorpse trigger is called both script (monster and exp system)
12:30:(sphere_exp_system.scp,8)trigger @deathcorpse called
12:30:(sphere_monsters.scp,56)trigger @deathcorpse called

for the string
Quote:SERV.LOG the REF1 value is "<REF1>" (<REF1.NAME>) and DEF.LevelCap value is "<DEF.LevelCap>"
if i put it in this way

Quote:ON=@DEATHCORPSE
Ref1 = <argo.more2> // More 2 store the killer uid
SERV.LOG the REF1 value is "<REF1>" (<REF1.NAME>) and DEF.LevelCap value is "<DEF.LevelCap>"
IF (<Ref1.ISPLAYER>) && (<Ref1.tag0.levelUp> < <def.levelCap>)

LOCAL.EXP_GAIN = <calcNewExp <TAG0.EXP>,<ref1.tag.LevelUp>>
Ref1.TAG0.EXP += <dLOCAL.EXP_GAIN>
Ref1.LEVELUP //check if you have lvl up.
Ref1.SYSMESSAGE Hai guadagnato <dLOCAL.EXP_GAIN> punti esperienza.
RETURN 0
ENDIF

i have this

Quote:ERROR:(sphere_exp_system.scp,9)Undefined symbol ''

Also i tried to change the simbols && with AND and i have this message

Quote:the REF1 value is "0" (0) and DEF.LevelCap value is ""

Also, i tried to set "Ref1 == <argo.more2>" to see what error console gives to me and there is
Quote:ERROR:(sphere_exp_system.scp,9)Undefined symbol '' ['= 0ffffffff']
13:51:(sphere_monsters.scp,56)trigger @deathcorpse called

The value 0ff... is the same that i can find in the killed monster at the voice more2, so the killer uid (me) is stored in a certain way.
(This post was last modified: 09-12-2019 04:10 AM by Claus.)
09-11-2019 08:45 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Exp System - Doesn't work from 0.56b to 0.56d - Claus - 09-11-2019 08:45 PM

Forum Jump:


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