Phemus
Member
- Joined
- Jun 16, 2012
- Messages
- 149
- Solutions
- 2
- Reaction score
- 12
So, I'm helping a friend to make a war server. He does not want to use the server Speedy War. So, he downloaded a normal server and just moved the scripts from a war server to his server. What happens is that it is sending this error in the console:
I think that he is missing some tables.
Also, when somebody kills someone, they don't receive any exp. I checked on the config.lua Experience from players, and i put the exp that they supposed to receive.
Also, I think that this is the script for the exp:
Thank you.
I think that he is missing some tables.
Also, when somebody kills someone, they don't receive any exp. I checked on the config.lua Experience from players, and i put the exp that they supposed to receive.
Also, I think that this is the script for the exp:
Lua:
function onKill(cid, target)
--config----------------------------
local lvl = getPlayerLevel(cid) --players level
local nlvl = getPlayerLevel(cid) + 5 -- add 5 levels
--end-------------------------------
if isPlayer(target) == TRUE then
if getPlayerIp(cid) ~= getPlayerIp(target) then
local exp = (50 * (lvl) * (lvl) * (lvl) - 150 * (lvl) * (lvl) + 400 * (lvl)) / 5
local nexp = (50 * (nlvl) * (nlvl) * (nlvl) - 150 * (nlvl) * (nlvl) + 400 * (nlvl)) / 5
local newexp = nexp - exp
doPlayerAddExp(cid,newexp)
doSendAnimatedText(getPlayerPosition(cid), "Orgasmic~", 198)
else
doPlayerAddExperience(cid, -50000)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You have been punished for killing a player of the same IP.")
end
end
return TRUE
end
Thank you.