GamerDeMTA Posted August 10, 2013 Share Posted August 10, 2013 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" /> Link to comment
tosfera Posted August 10, 2013 Share Posted August 10, 2013 With this information we can't see why you get 12 EXP. Show us the addPlayerEXP function? (I'm not known with Castillo's work) Link to comment
GamerDeMTA Posted August 10, 2013 Author Share Posted August 10, 2013 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 Link to comment
tosfera Posted August 10, 2013 Share Posted August 10, 2013 try changing the 10 to 8 and see what happens. Link to comment
Castillo Posted August 10, 2013 Share Posted August 10, 2013 I don't understand the problem, what are you trying to achieve? Link to comment
tosfera Posted August 10, 2013 Share Posted August 10, 2013 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! Link to comment
Castillo Posted August 10, 2013 Share Posted August 10, 2013 The script will only give him what he specified, maybe he has another script giving the extra experience. Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now