Hello.
I have problem with my Talkactions on rebirth system its works and give rebirth but level is same like before 717171 its same after rebirth for some reason level don't get restart this is my talkactions
Best Regards
mlody.1039
I have problem with my Talkactions on rebirth system its works and give rebirth but level is same like before 717171 its same after rebirth for some reason level don't get restart this is my talkactions
PHP:
local level = 717171 -- the min level
function onSay(cid, words, param, channel)
if(getPlayerLevel(cid) >= level) then
doCreatureSetStorage(cid, 85987, getCreatureStorage(cid, 85987) == -1 and 1 or getCreatureStorage(cid, 85987) + 1)
doRemoveCreature(cid)
db.executeQuery("UPDATE `players` SET `level` = 8, `experience` = 4200, `healthmax` = 2000, `manamax` = 2000, `promotion` = 0 WHERE `id` ='"..id.."';")
db.executeQuery("UPDATE `players` SET `name` = '"..getCreatureName(cid).."' WHERE `id` ='"..getPlayerGUID(cid).."';")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "You need level " .. level .. ".")
end
return true
end
Best Regards
mlody.1039