Postado Abril 20, 2014 11 anos Boa noite gente , to com dois scrip que ta dando erro aki um e o do talkactions de chekar a quantidade de mana e life fica dando esse erro: [19/04/2014 22:30:10] [Error - TalkAction Interface] [19/04/2014 22:30:10] data/talkactions/scripts/lifemana.lua:onSay [19/04/2014 22:30:10] Description: [19/04/2014 22:30:10] data/talkactions/scripts/lifemana.lua:6: attempt to call global 'getCreatureHealth' (a nil value) [19/04/2014 22:30:10] stack traceback: [19/04/2014 22:30:10] data/talkactions/scripts/lifemana.lua:6: in function <data/talkactions/scripts/lifemana.lua:1> E o outro e o system pet que quando da use no item na area no pvp da esse erro aki : [19/04/2014 22:30:16] [Error - Action Interface] [19/04/2014 22:30:16] data/actions/scripts/simple_pet.lua:onUse [19/04/2014 22:30:16] Description: [19/04/2014 22:30:16] (luaDoConvinceCreature) Creature not found Aki estao os script function onUse(cid, item, frompos, item2, topos) local dolls = { [12596] = {pet = "Souleater Pet"}, [10542] = {pet = "Medusa Pet"}, [10529] = {pet = "Sea Serpent Pet"}, [12612] = {pet = "Cobra Pet"}, [11393] = {pet = "Orc Rider Pet"}, [11391] = {pet = "Ferumbras Pet"}, [11360] = {pet = "Ghastly Dragon Pet"}, [11205] = {pet = "Toad Pet"}, [11201] = {pet = "Mummy Pet"}, [10543] = {pet = "Triple Medusa Pet"}, [10530] = {pet = "Bug Pet"}, [9007] = {pet = "Spider Pet"}, [5791] = {pet = "Baby Dragon Pet"}, [6568] = {pet = "Panda pet"}, } local go = dolls[item.itemid] local summon = getCreatureSummons(cid) if #summon >= 1 then for _, pid in ipairs(summon) do doRemoveCreature(pid) doCreatureSay(cid, "Pet Em Descanço.", TALKTYPE_ORANGE_1) end return true end doConvinceCreature(cid, doSummonCreature(go.pet, getCreaturePosition(cid))) doCreatureSay(cid, "Pet Sumonado.", TALKTYPE_ORANGE_1) return true end Life E Mana function onSay(cid, words, param) if(words == "!mana") then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have " .. getCreatureMana(cid) .. " mana now\nYou have " .. getCreatureMaxMana(cid) .. " mana to the total") return TRUE elseif(words == "!life") then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have " .. getCreatureHealth(cid) .. " of life now\nYou have " .. getCreatureMaxHealth(cid) .. " of the total life") return TRUE end end
Postado Abril 20, 2014 11 anos O de life e mana eu arrumei, o outro eu não vi o defeito function onSay(cid, words, param) local MP = (getCreatureMana(cid)) local MPMAX = (getCreatureMaxMana(cid)) local HP = (getCreatureHealth(cid)) local HPMAX = (getCreatureMaxHealth(cid)) if(words == "!mana") then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have "..MP.." mana now\nYou have "..MPMAX.." mana to the total") return TRUE elseif(words == "!life") then doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR,"You have "..HP.." of life now\nYou have "..HPMAX.." of the total life") return TRUE end end Editado Abril 20, 2014 11 anos por Artur Henrique (veja o histórico de edições)
Postado Abril 21, 2014 11 anos Autor Ta bom mano vou testa ali o do comando e o do pet sustém e que quando o player da use no item dentro do templo da esse erro até eu queria que o player só pode-se usar ele em área de combate
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.