• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Talkactions

GoalTV

NANI?!
Joined
Jul 23, 2011
Messages
588
Reaction score
53
hello do any one have a talkactions for rebirth you write !rebirth and you ger rebirth from level 717171 my rebirth storage is 85987 pls help
 
Here We Are :)
LUA:
local level = 717171 -- the min level
local cost = 1000000 -- the needed money
function onSay(cid, words, param, channel)
		if(getPlayerLevel(cid) >= level) and (doPlayerRemoveMoney(cid, cost) == TRUE) and (isInArray({9, 10, 11, 12, 22}, getPlayerVocation(cid))) 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 .. " and " .. cost .. " gold.")
end
end
end
	return true
end

Tell Me if it works, i didn't test , and tell me if not work too :)

Rep++ If It Helpful For You
 
Back
Top