Postado Janeiro 13, 2017 8 anos [13/01/2017 14:02:35] [Error - CreatureScript Interface] [13/01/2017 14:02:35] data/creaturescripts/scripts/showvoc.lua:onLook [13/01/2017 14:02:35] Description: [13/01/2017 14:02:35] data/creaturescripts/scripts/showvoc.lua:8: attempt to concatenate a boolean value [13/01/2017 14:02:35] stack traceback: [13/01/2017 14:02:35] data/creaturescripts/scripts/showvoc.lua:8: in function <data/creaturescripts/scripts/showvoc.lua:1> SCRIPT function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) and thing.uid ~= cid then local type = getPlayerStorageValue(thing.uid, 89745) doPlayerSetSpecialDescription(thing.uid, "\n"..(getPlayerSex(cid) == 0 and "She" or "He").." are "..(type < 0 and "Shinobi" or type == 1 and "Genin" or type == 2 and "Chunin" or type == 3 and "Jounin" or type == 4 and "Anbu" or type == 5 and "Sennin" or type == 6 and "Kage")) return true elseif thing.uid == cid then type = getPlayerStorageValue(cid, 89745) doPlayerSetSpecialDescription(cid, "\nYou are "..(type < 0 and "Shinobi" or type == 1 and "Genin" or type == 2 and "Chunin" or type == 3 and "Jounin" or type == 4 and "Anbu" or type == 5 and "Sennin" or type == 6 and "Kage")..".") local string = 'You see yourself.' if getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION) then string = string..' You are '.. getPlayerGroupName(cid) ..'.' elseif getPlayerVocation(cid) ~= 0 then string = string..' You are '.. getPlayerVocationName(cid) ..'.' else string = string..' You have no vocation.' end string = string..getPlayerSpecialDescription(cid)..'' if getPlayerNameByGUID(getPlayerPartner(cid), false, false) ~= nil then string = string..' You are '.. (getPlayerSex(cid) == 0 and 'wife' or 'husband') ..' of '.. getPlayerNameByGUID(getPlayerPartner(cid)) ..'.' end if getPlayerGuildId(cid) > 0 then string = string..' You are ' .. (getPlayerGuildRank(cid) == '' and 'a member' or getPlayerGuildRank(cid)) ..' of the '.. getPlayerGuildName(cid) string = getPlayerGuildNick(cid) ~= '' and string..' ('.. getPlayerGuildNick(cid) ..').' or string..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS) then string = string..'\nHealth: ['.. getCreatureHealth(cid) ..' / '.. getCreatureMaxHealth(cid) ..'], Mana: ['.. getCreatureMana(cid) ..' / '.. getCreatureMaxMana(cid) ..'].' if isPlayerGhost(cid) then string = string..'\n*GhostMode*' end string = string..'\nIP: '.. doConvertIntegerToIp(getPlayerIp(cid)) ..'.' end if getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION) then string = string..'\nPosition: [X:'.. position.x..'] [Y:'.. position.y..'] [Z:'.. position.z..'].' end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, string) return false end return true end
Postado Janeiro 13, 2017 8 anos Esta é uma mensagem automática! Este tópico foi movido para a área correta.Pedimos que você leia as regras do fórum. Mostrar conteúdo oculto This is an automated message! This topic has been moved to the correct area.Please read the forum rules.
Postado Janeiro 13, 2017 8 anos Mostrar conteúdo oculto function onLook(cid, thing, position, lookDistance) if(isPlayer(thing.uid) and thing.uid ~= cid) then local s = tonumber(getPlayerStorageValue(thing.uid, 89745)) or 0 doPlayerSetSpecialDescription(thing.uid, "\n" .. (getPlayerSex(cid) == 0 and "She" or "He") .. " are " .. (s <= 0 and "Shinobi" or s == 1 and "Genin" or s == 2 and "Chunin" or s == 3 and "Jounin" or s == 4 and "Anbu" or s == 5 and "Sennin" or "Kage")) return true elseif(thing.uid == cid) then local s = tonumber(getPlayerStorageValue(cid, 89745)) or 0 doPlayerSetSpecialDescription(cid, "\nYou are " .. (s <= 0 and "Shinobi" or s == 1 and "Genin" or s == 2 and "Chunin" or s == 3 and "Jounin" or s == 4 and "Anbu" or s == 5 and "Sennin" or "Kage") .. ".") local str = "You see yourself." if(getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION)) then str = str .. " You are " .. getPlayerGroupName(cid) .. "." elseif(getPlayerVocation(cid) ~= 0) then str = str .. " You are " .. getPlayerVocationName(cid) .. "." else str = str .. " You have no vocation." end str = str .. getPlayerSpecialDescription(cid) if(getPlayerNameByGUID(getPlayerPartner(cid), false, false)) then str = str .. " You are " .. (getPlayerSex(cid) == 0 and "wife" or "husband") .. " of " .. getPlayerNameByGUID(getPlayerPartner(cid)) .. "." end if(getPlayerGuildId(cid) > 0) then str = str .. " You are " .. (getPlayerGuildRank(cid) == "" and "a member" or getPlayerGuildRank(cid)) .. " of the " .. getPlayerGuildName(cid) str = getPlayerGuildNick(cid) ~= "" and (str .. " (" .. getPlayerGuildNick(cid) .. ").") or str .. "." end if(getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS)) then str = str .. "\nHealth: [" .. getCreatureHealth(cid) .. " / " .. getCreatureMaxHealth(cid) .. "], Mana: [" .. getCreatureMana(cid) .. " / " .. getCreatureMaxMana(cid) .. "]." if(isPlayerGhost(cid)) then str = str .. "\n*GhostMode*" end str = str .. "\nIP: " .. doConvertIntegerToIp(getPlayerIp(cid)) .. "." end if(getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION)) then str = str .. "\nPosition: [X:" .. position.x .. "] [Y:" .. position.y .. "] [Z:" .. position.z .. "]." end doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, str) return false end return true end
Postado Janeiro 13, 2017 8 anos Autor Mano Vlw Pelo Script Mais Tipo Onde Tiro Esse He Is (Staff) Viny You see He Is Leader Guild Testes
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.