• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Action Add Level Doll

Sirion_Mido

Experienced Member
Joined
Jul 22, 2012
Messages
579
Reaction score
43
Location
E-G-Y-P-T
now this script when you use items it will add for you a level xx
Lua:
local cfg =   {
      amount = 2 <!-- here how many levels you want -->
	  }
	  function onUse(cid, item, fromPosition, itemEx, toPosition)
	  doPlayerAddLevel(cid, cfg.amount)
	  doPlayerSendTextMessage(cid, 28, "You Have Advanced 2 Levels")
	  doSendTextAnimated(getCreaturePosition(cid), 28, TEXTCOLOR_RED
	  doSendMagicEffect(getCreaturePosition(cid), 28
	  doRemoveItem(cid, item, 1)
	  return true
	  end
 
Last edited:
Lua:
<!-- here how many levels you want -->
or
XML:
<!-- here how many levels you want -->
?
Lua:
-- Text

and
Lua:
doSendTextAnimated(getCreaturePosition(cid), 28, TEXTCOLOR_RED)
doSendMagicEffect(getCreaturePosition(cid), 28)

`cfg` table with one query, pretty nice.
 
i use it for highexp server, can someone do something so it wont pass 717217 or something like that? because i tested once, i was lvl 700000 and made the script so it give 300000, then when i used it, it made me lvl 1...
 
i use it for highexp server, can someone do something so it wont pass 717217 or something like that? because i tested once, i was lvl 700000 and made the script so it give 300000, then when i used it, it made me lvl 1...

hahahahahhahaha xD!
 
Here i've got an good one that works, credits to Evan
local cfg = {
amount = 600000 -- here how many levels you want
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if (getPlayerLevel(cid) + cfg.amount) > 717216 then
local levelCap = (717216 - getPlayerLevel(cid))
doPlayerAddLevel(cid, levelCap)
doCreatureSay(cid, "CONGRATULATIONS! You Have Advanced " .. levelCap .. " Levels!. ", TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), 28)
doRemoveItem(item.uid,1)
else
doPlayerAddLevel(cid, cfg.amount)
doCreatureSay(cid, "CONGRATULATIONS! You Have Advanced 600000 Levels!. ", TALKTYPE_ORANGE_1)
doSendMagicEffect(getCreaturePosition(cid), 28)
doRemoveItem(item.uid,1)
end
return TRUE
end
 
Back
Top