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

Help with look

andrew95434

Banned User
Joined
May 6, 2010
Messages
86
Reaction score
0
Location
chile
I need that when i look a player, if he(she) is vip, it says :

You see (NAME). He(she) is a Vip Sorcerer, etc...

please help!!!
 
You need to change only the VipStorage.


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


I didn't tested.
 
creaturescripts/scripts/vipLook.lua
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
creaturescripts/scripts/login.lua
Code:
registerCreatureEvent(cid, "vipLook")
creaturescripts/creaturescripts.xml
Code:
<event type="look" name="vipLook" event="script" value="vipLook.lua"/>
 
Under my avatar is this picture:
reputation.gif
Click on this :)
 
Back
Top