Jump to content

Problem with exp_system.


GamerDeMTA

Recommended Posts

Posted

Hello, I have a problem with the Castillo's exp_system. It's just that when I kill a zombie I get 12 EXP instead 10, and, it just levels up with 1 kill to the Level 2. Also, how to get the level's name? not the "number"?

Script [server]

addEvent ( "onZombieWasted", true ) 
addEventHandler ( "onZombieWasted", root, 
    function ( theKiller ) 
    exports.exp_system:addPlayerEXP ( theKiller, 10) 
end 
) 

Levels.xml

    "Level 1" experienceRequired = "0" /> 
    "LV2" experienceRequired = "3000" /> 
    "LV3" experienceRequired = "1000" /> 
    "LV4" experienceRequired = "2000" /> 
    "LV5" experienceRequired = "3000" /> 
    "lv6" experienceRequired = "10000" /> 
    "lv7" experienceRequired = "15000" /> 
    "Lv8" experienceRequired = "50000" /> 

Posted

His script is compiled so I can't post the function but my script is server side and in his meta.xml the function is like:

    function="addPlayerEXP" type="server" /> -- arguments: thePlayer, theExperience  -->   

It's server side, too

Posted

Whenever a zombie is killed, he gives them 10 EXP. But the system gives the player 12 EXP (I dont know the system so maybe the zombies got their own experience of killing etc). If I get him right!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...