• 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!

Action Rebirth Scroll [NEW]

Slave Ots

LUA Newbie™
Joined
Jan 19, 2012
Messages
114
Reaction score
32
Location
/goto Slave Ots
hello otlanders
this script for 999x servers. that is not at otland
it give for the player +1 rebirth it can be used as donate item..
so i decided to share it, all credits for me;

PHP:
function onUse(cid, item, frompos, item2, topos)
        local storage = 85987  -- rebirth storage
		-- 717216 when the max level of your ot is 717217.. so that use max level ot - 1
		 local xx = 717216 - getPlayerLevel(cid)  -- xx is the numbers of levels to be added
		 doPlayerAddLevel(cid, xx) 
		local id = getPlayerGUID(cid)
		local name = getCreatureName(cid)
		local storage = getCreatureStorage(cid, storge)
		doSendAnimatedText(getCreaturePosition(cid),"REB", TEXTCOLOR_RED)
		doRemoveItem(item.uid, 1)
		doCreatureSetStorage(cid, storage, storage == -1 and 1 or storage + 1)
		doSendMagicEffect(getPlayerPosition(cid), 14)
		doRemoveCreature(cid)
		db.executeQuery("UPDATE `players` SET `level` = 8, `experience` = 4200 WHERE `id` ='"..id.."';")
		db.executeQuery("UPDATE `players` SET `name` = '"..name.."' WHERE `id` ='"..id.."';")
		  return true
	end
hope to REP++
 
explain how and i help you.. i done understand what you are talking about :D

- - - Updated - - -

aha oks here it is
Code:
function onUse(cid, item, frompos, item2, topos)
        local storage = 85987  -- rebirth storage
     
        local id = getPlayerGUID(cid)
        local name = getCreatureName(cid)
        local storage = getCreatureStorage(cid, storge)
		if getPlayerLevel(cid) == 700 then
        doSendAnimatedText(getCreaturePosition(cid),"REB", TEXTCOLOR_RED)
        doRemoveItem(item.uid, 1)
        doCreatureSetStorage(cid, storage, storage == -1 and 1 or storage + 1)
        doSendMagicEffect(getPlayerPosition(cid), 14)
        doRemoveCreature(cid)
        db.executeQuery("UPDATE `players` SET `level` = 8, `experience` = 4200 WHERE `id` ='"..id.."';")
        db.executeQuery("UPDATE `players` SET `name` = '"..name.."' WHERE `id` ='"..id.."';")
		else
		doSendMagicEffect(getPlayerPosition(cid), 2)
		doPlayerSendCancel(cid, "Sorry, you must be at level 700 to make rebirth.")
		return 1
		end
          return true
    end
hope to help you
 
Does it keeps your lvl 717217 HP&mana? Also can we set expStages with REBS? like,
999x [no rebs]
800x [1reb]
500x [2reb]
?
 
yes you could
but you should script a script that set expstae according to rebirth
its a creaturescript script
 
Back
Top