AnnaFeeh
Let her pass, or looks, or moves
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:
Awaiting Response
sorry for my english I'm brazilian: D
Up
up
Bump help plis
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: