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
evening
Journeyman
*

Posts: 138
Likes Given: 0
Likes Received: 14 in 9 posts
Joined: Apr 2012
Reputation: 1

Finally Land

Post: #5
RE: help with my level script.
[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
(This post was last modified: 01-14-2018 04:56 PM by evening.)
01-14-2018 04:54 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
[+] 1 user Likes evening's post
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. - evening - 01-22-2018, 12:06 AM

Forum Jump:


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