andrew95434
Banned User
i create a script in creatureevents:
in creaturescripts/scripts/vipLook.lua:
in creaturescripts/scripts/login.lua:
in creaturescripts/creaturescripts.xml:
but when i did this, i can only look me and not the other things, which can be the error?
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?