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

Lua Exp Token/MonsterOutfit/Gm Potion And Vip Tokens

simson361

The Grim Reaper
Joined
Aug 4, 2010
Messages
626
Reaction score
27
Location
sweden
Anyone knows the coding for this cool items? then please do tell!
1. Monster outfit, you will have it even if you die or logg out. it removes when you change outfit/addon
2. Vip Coin that Teleports you to a Special area :)
3. Exp Token gives you Extra Exp For some time. :)! !
4. Gm Potion!!
j-qdnj.png

ciNECn.png
 
Last edited:
Please do not make double/triple posts and use the edit button if there is anything you would like to add.

Also change your thread title to something more descriptive as Summ mentioned before.
 
outfit doll

data/actions/actions.xml

PHP:
    <action itemid="11255" script="outfitdoll.lua"/>


data/actions/scripts/outfitdoll.lua

PHP:
local config = {
itemid = 11255,
effect = 52,
count = 3,
storage = 55555 -- use a free storage for this function.
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
setPlayerStorageValue(cid, config.storage, 3)
if (item.itemid == config.itemid and getPlayerStorageValue(cid, config.storage) > 0 ) then
    local i = math.random(1, 6)
    local sets = {[1] = math.random(2, 74), [2] = math.random(76, 134), [3] = math.random(136, 160), [4] = math.random(192, 265), [5] = math.random(267, 301), [6] = math.random(303, 351)}
    local tmp = getCreatureOutfit(cid)
    tmp.lookType = sets[i]
    doCreatureChangeOutfit(cid, tmp)
    doSendMagicEffect(getCreaturePosition(cid), config.effect)
    if (config.count == 0) then
        config.count = 3
    end
    if (config.count > 0) then
        config.count = config.count - 1
        setPlayerStorageValue(cid, config.storage, config.count)   
    else
        setPlayerStorageValue(cid, config.storage, 2)
    end
        if (getPlayerStorageValue(cid, config.storage) == 1 ) then
            doCreatureSay(cid, "You have "..getPlayerStorageValue(cid, config.storage).." charge left", TALKTYPE_ORANGE_1)
        else
            doCreatureSay(cid, "You have "..getPlayerStorageValue(cid, config.storage).." charges left", TALKTYPE_ORANGE_1)
        end
    end
if (getPlayerStorageValue(cid, config.storage) == 0 ) then
    doRemoveItem(item.uid, 1)
end   
return true
end
 
Back
Top