Elly_Bros Posted April 25, 2010 Share Posted April 25, 2010 (edited) Hey guys, I wanted to ask how to create experence for Roleplay server like : 1min=2xp? Edited April 25, 2010 by Guest Link to comment
Taalasmaa Posted April 25, 2010 Share Posted April 25, 2010 You can use such functions like: setElementData getElementData setTimer and so on. Link to comment
Elly_Bros Posted April 25, 2010 Author Share Posted April 25, 2010 You can use such functions like:setElementData getElementData setTimer and so on. More specifically? Link to comment
Taalasmaa Posted April 25, 2010 Share Posted April 25, 2010 You can use such functions like:setElementData getElementData setTimer and so on. More specifically? All what you need to build it.. Don't except us to write it for you. Example: function resourseStart() setElementData(player,"XP","0") -- this timer would give XP +1 for you every second. setTimer(myFunc,1000,0) end addEventHandler("onResourceStart",getResourceRootElement(getThisResource()),resourceStart) your timer function example: function myFunc() xp = getElementData(player,"XP") setElementData(player,"XP",tostring(xp+1)) and so on.. You can get your XP Data with getElementData These are JUST examples, how it should work.. These will not work straightly, you need to mix them and so on. 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