Postado Novembro 8, 2018 6 anos Ola galera, estou com essa script de quando o player casa ele recebe um look, porém esse look fica no lugar do nome do player e o nome do player é removido tfs 0.3.6 script function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then local k = getPlayerMarriage(getPlayerGUID(thing.uid)) if k then doPlayerSetSpecialDescription(thing.uid,". " .. (thing.uid == cid and "You are" or (getPlayerSex(thing.uid) == 0 and "She" or "He") .. " is") .. " Casado com [" .. getPlayerNameByGUID(k) .."]") end end return true end
Postado Novembro 8, 2018 6 anos Autor 1 minuto atrás, KotZletY disse: @Gnius existe outro script de look no seu servidor, poste ele! function getPlayerDesc(cid, thing, TV) if (not isCreature(cid) or not isCreature(thing)) and not TV then return "" end local vocation = getPlayerVocationName(cid) local pos = getThingPos(thing) local ocup = youAre[getPlayerGroupId(thing)] local rank = (getPlayerStorageValue(thing, 86228) <= 0) and "a Pokemon Trainer" or lookClans[getPlayerStorageValue(thing, 86228)][getPlayerStorageValue(thing, 862281)] local name = thing == cid and "yourself" or getCreatureName(thing) local art = thing == cid and "You are" or (getPlayerSex(thing) == 0 and "She is" or "He is") local str = {} table.insert(str, "You see "..name.." [".. getPlayerLevel(thing) .."]. "..art.." ") if youAre[getPlayerGroupId(thing)] then table.insert(str, (ocup).." and "..vocation.." from ".. getTownName(getPlayerTown(thing))..".") else table.insert(str, (vocation).." from ".. getTownName(getPlayerTown(thing))..".") end if getPlayerGuildId(thing) > 0 then table.insert(str, " "..art.." "..getPlayerGuildRank(thing).." from the "..getPlayerGuildName(thing)..".") end if TV then table.insert(str, " "..art.." watching TV.") end table.insert(str, ((isPlayer(cid) and youAre[getPlayerGroupId(cid)]) and "\nPosition: [X: "..pos.x.."][Y: "..pos.y.."][Z: "..pos.z.."]" or "")) return table.concat(str) end
Postado Novembro 8, 2018 6 anos Testa ai function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then local k = getPlayerMarriage(getPlayerGUID(thing.uid)) if k then doPlayerSetSpecialDescription(thing.uid, (cid and "yourself" or getCreatureName(thing)) .. "[".. getPlayerLevel(thing) .."]. " .. (thing.uid == cid and "You are" or (getPlayerSex(thing.uid) == 0 and "She" or "He") .. " is") .. " Casado com [" .. getPlayerNameByGUID(k) .."]") end end return true end
Postado Novembro 8, 2018 6 anos Autor 3 minutos atrás, Lyu disse: Testa ai function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then local k = getPlayerMarriage(getPlayerGUID(thing.uid)) if k then doPlayerSetSpecialDescription(thing.uid, (cid and "yourself" or getCreatureName(thing)) .. "[".. getPlayerLevel(thing) .."]. " .. (thing.uid == cid and "You are" or (getPlayerSex(thing.uid) == 0 and "She" or "He") .. " is") .. " Casado com [" .. getPlayerNameByGUID(k) .."]") end end return true end [08/11/2018 19:18:57] [Error - CreatureScript Interface] [08/11/2018 19:18:57] datapack/creaturescripts/scripts/marrylook.lua:onLook [08/11/2018 19:18:57] Description: [08/11/2018 19:18:57] (internalGetPlayerInfo) Player not found when requesting player info #3 [08/11/2018 19:18:57] [Error - CreatureScript Interface] [08/11/2018 19:18:57] datapack/creaturescripts/scripts/marrylook.lua:onLook [08/11/2018 19:18:57] Description: [08/11/2018 19:18:57] datapack/creaturescripts/scripts/marrylook.lua:5: attempt to concatenate a boolean value [08/11/2018 19:18:57] stack traceback: [08/11/2018 19:18:57] datapack/creaturescripts/scripts/marrylook.lua:5: in function <datapack/creaturescripts/scripts/marrylook.lua:1> Coloquei thing.uid, não deu nem 1 erro porém fica dessa forma. Pode fechar o tópico, ja consegui resolver.
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.