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

Doubt Script

AnnaFeeh

Let her pass, or looks, or moves
Joined
May 2, 2014
Messages
14
Reaction score
0
Location
Belo Jardim PE
Hello, I have a way more annoying bug I believe that is Easy to Resolve (It was to be removed) I'm more with a Major Problems

the error is as follows: In My server does not have the source so I added a script to the Look on the door of any house would get the english message in Portuguese, most worked only when I give Look on the door says the ID of the player owns the house and not the name

http://prntscr.com/44i5v2

script:
Code:
function onLook(cid, thing, position, lookDistance)
if not isCreature(thing.uid) then
local house = getHouseFromPos(position)
if house then
local article = thing.type > 1 and thing.type.." " or getItemArticleById(thing.itemid)..(getItemArticleById(thing.itemid) == "" and "" or " ")
local plural = getItemPluralNameById(thing.itemid) == "" and getItemNameById(thing.itemid).."s" or getItemPluralNameById(thing.itemid)
local desc = getItemSpecialDescription(thing.uid) == "" and "" or getItemSpecialDescription(thing.uid).." "
local str = "You see "..(article)..""..(thing.type > 1 and plural or getItemNameById(thing.itemid))..". "..desc..".\nPertence à casa '"..getHouseName(house).."'."
if getHouseOwner(house) ~= 0 then
str = str.." "..getHouseOwner(house).." é dono dessa casa."
else
str = str.." Ninguém é dono dessa casa. Ela custa "..getHousePrice(house).." dólares."
end
if getPlayerAccess(cid) > 2 then
str = str.."\nItemID: ["..(thing.itemid).."]"
if thing.actionid > 0 then
str = str..", ActionID: ["..(thing.actionid).."]"
end
if thing.uid < 65536 then
str = str..", UniqueID: ["..(thing.uid).."]"
end
str = str..".\nPosition: [X: "..(getThingPos(thing.uid).x).."] [Y: "..(getThingPos(thing.uid).y).."] [Z: "..(getThingPos(thing.uid).z).."]."
end
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str)
return false
end
end
return true
end

Awaiting Response

sorry for my english I'm brazilian: D

Up

up

Bump help plis
 
Last edited by a moderator:
Back
Top