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

viplook doesnt work

andrew95434

Banned User
Joined
May 6, 2010
Messages
86
Reaction score
0
Location
chile
i create a script in creatureevents:

in creaturescripts/scripts/vipLook.lua:
function onLook(cid, thing, position, lookDistance)
local VipStorage = {20001}
if isPlayer(thing.uid) then
if getPlayerStorageValue(thing.uid, VipStorage) > 0 then
doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " is VIP")
doPlayerSendTextMessage(cid, 27, getPlayerName(thing.uid) .. " is VIP.")
end
return true
end
end

in creaturescripts/scripts/login.lua:

registerCreatureEvent(cid, "vipLook")

in creaturescripts/creaturescripts.xml:

<event type="look" name="vipLook" event="script" value="vipLook.lua"/>

but when i did this, i can only look me and not the other things, which can be the error?
 
Back
Top