Postado Setembro 27, 2016 8 anos É normal mostrar o level e resets de um amigo quando eu dou look nele, sempre vejo isso, mas quando eu clico no look em mim mesmo, não consigo mostra nada. Tudo o que mostra é: "You see yourself. You are a paladin." preciso dessa script, pois quando dou look tudo o que aparece é isso, muitos jogadores se questionarão para saberem quantos resets eles teem, então eu queria um script que mostrasse. será que tem como adicionar essa script? Se não, me mandem um script que o jogador terá que usar um comando tipo "!status ou !resets" para mostrar level ou resets. Obrigado dnv
Postado Outubro 14, 2016 8 anos Em creaturescripts/scripts, crie um arquivo com o nome de description.xml, e coloque isso dentro. Onde estiver o Storage 2310, você mude para o storage do teu RESET. Mostrar conteúdo oculto function onLook(cid, thing, position, lookDistance) if(isPlayer(thing.uid) and thing.uid ~= cid and getCreatureStorage(thing.uid, 2310) ~= -1) then doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == PLAYERSEX_FEMALE and ".\nEla" or ".\nEle") .. " tem " .. getCreatureStorage(thing.uid, 2310) .. " " .. (getCreatureStorage(thing.uid, 2310) == 1 and "Reset" or "Resets")) elseif(thing.uid == cid and getCreatureStorage(cid, 2310) ~= -1) then local message = "You see yourself." if(getPlayerFlagValue(cid, PLAYERFLAG_SHOWGROUPINSTEADOFVOCATION)) then message = message .. " I are " .. getPlayerGroupName(cid) .. "." elseif(getPlayerVocation(cid) ~= 0) then message = message .. " I are a " .. getPlayerVocationName(cid) .. "." else message = message .. " I have no vocation." end if(getPlayerNameByGUID(getPlayerPartner(cid), false, false) ~= nil) then message = message .. " I are " .. (getPlayerSex(cid) == PLAYERSEX_FEMALE and "wife" or "husband") .. " of " .. getPlayerNameByGUID(getPlayerPartner(cid)) .. "." end if(getPlayerGuildId(cid) > 0) then message = message .. " I are " .. (getPlayerGuildRank(cid) == "" and "a member" or getPlayerGuildRank(cid)) .. " of the " .. getPlayerGuildName(cid) message = getPlayerGuildNick(cid) ~= "" and message .. " (" .. getPlayerGuildNick(cid) .. ")." or message .. "." end if(getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS)) then message = message .. "\nHealth: [" .. getCreatureHealth(cid) .. " / " .. getCreatureMaxHealth(cid) .. "], Mana: [" .. getCreatureMana(cid) .. " / " .. getCreatureMaxMana(cid) .. "]." end if(getPlayerFlagValue(cid, PLAYERCUSTOMFLAG_CANSEEPOSITION)) then message = message .. "\nPosition: [X: " .. position.x .. "] [Y: " .. position.y .. "] [Z: " .. position.z .. "]." end return false, doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, message .. " \n Voce tem " .. getCreatureStorage(cid, 2310) .. " " .. (getCreatureStorage(cid, 2310) == 1 and "Reset." or "Resets.")) end return true end <event type="look" name="Description" event="script" value="description.lua"/> Editado Outubro 14, 2016 8 anos por tetheuscunha (veja o histórico de edições) Senhoras e senhores, se alguma resposta lhe ajudou, marque-a como a melhor resposta e de ponto positivo, assim você incentiva quem lhe ajudou a continuar ajudando!!.
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.