Hello otland,
Here is my first script, a exptoken with more options to edit. Enjoy
Fixed!
Here is my first script, a exptoken with more options to edit. Enjoy
Fixed!
Lua:
local config = {
local exp = 1000 --- Here edit how much exp!
local level = 40 -- Edit here level to use item!
function onUse(cid, item, frompos, item2, topos)
if isPlayer(cid) and getPlayerLevel(cid, level) then
doPlayerAddExp(cid,exp)
doSendAnimatedText(getCreaturePosition(cid), "OH YEAH EXPRIENCE YEA!", TEXTCOLOR_RED)
doPlayerSendTextMessage(cid, 27, "You have recived "..exp.." exprience points.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_FIREWORK_RED)
else
doPlayerSendCancel(cid, "Sorry, but you need level "..level.." to use Exp Token.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
doSendAnimatedText(getCreaturePosition(cid), "GROW UP!", TEXTCOLOR_RED)
end
return true
end
Last edited: