• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

onlook

Nerevr back

Member
Joined
Nov 7, 2014
Messages
269
Reaction score
7
npjawx.jpg
 
Server version and client version?
Should it be orange text (like what monsters talk with) or animated text? Should it be based on itemid or only items with a certain actionid? So not all items with that itemid.
Can you give a list with itemids and text?
 
You can add uniqueids to the items, then add those uniqueids in the script, so the item with uniqueid 8101 will show "1 ET" when you click look on it.
Code:
local items = {
     [8101] = "1 ET",
     [8102] = "2 ET",
     [8103] = "5 ET",
     [8104] = "3 ET",
     [8105] = "7 ET"
}

function onLook(cid, thing, position, lookDistance)
     local x = items[thing.uid]
     if x then
         doCreatureSay(cid, x, TALKTYPE_MONSTER, false, cid, position)
     end
     return true
end
 
Fixed :D i did it
------------------ i was going to ask on some edited but i did it ...so i write fixed ----------
 
Last edited:
Back
Top