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
help with my level script.
Author Message
amonvangrell
Banned

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

britannia shard

Post: #6
RE: help with my level script.
Code:
[quote='evening' pid='27463' dateline='1515912864']
[events e_give_exp]
ON=@Death
ref1 = <attacker.max> // or use attacker.last
If !<brain>
return 0
    ELSE
    e_lootbonus
        IF <eval <i.STR> + <i.DEX>> <= 150
            local.exp = <eval <i.STR> + <i.DEX>>
            //i.events= +e_exp_gain_extra_small
            e_exp_gain_extra_small <dlocal.exp>,<ref1>
            i.say @030 <dlocal.exp> XP

[function e_exp_gain_extra_small]
local.exp_gain = <argv[0]>
Ref1 = <argv[1]>
IF <Ref1.ISPLAYER>
    Ref1.TAG0.EXP += <dLOCAL.EXP_gain>
    Ref1.f_levelup
    Ref1.SYSMESSAGE @030 You gained a very small amount of experience.
ELSE
    if <ref1.memoryfindtype.memory_ipet>
        ref1 = <ref1.memoryfindtype.memory_ipet.link.uid>
        Ref1.TAG0.EXP += <dLOCAL.EXP_GAIN>
        Ref1.f_levelup //check if you have lvl up.
        Ref1.SYSMESSAGE @030 You gained a very small amount of experience.
    ENDIF
ENDIF

///////////////////////////////////////
I do not know if this is what you need
If not, I will modify it
[/quote]

I think you've fixed it! Many thanks, boss! Smile
01-21-2018 09:17 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
help with my level script. - amonvangrell - 01-06-2018, 07:54 PM
RE: help with my level script. - evening - 01-08-2018, 11:49 AM
RE: help with my level script. - darksun84 - 01-14-2018, 08:40 AM
RE: help with my level script. - evening - 01-14-2018, 04:54 PM
RE: help with my level script. - amonvangrell - 01-21-2018 09:17 AM
RE: help with my level script. - evening - 01-22-2018, 12:06 AM

Forum Jump:


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