• 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 Need help with this script

brendan2

Sensation black
Joined
Feb 19, 2009
Messages
507
Reaction score
1
Well it works i love it but i want the outfit to stay with u even if u log off.

PHP:
local outfit = 
{
    look = {lookType = 35, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
    timeToRemove = 60
}

function onUse(cid, item, fromPos, item2, toPos)
    if getCreatureOutfit(cid) ~= outfit.look then
        doSetCreatureOutfit(cid, outfit.look, outfit.timeToRemove * 1000)
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have changed into a MONSTER!")
    else
        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You already look like a monster.")
    end
    return TRUE
end


Can anyone help me :(
 
Back
Top