-
Total de itens
319 -
Registro em
-
Última visita
Tudo que tonynamoral postou
-
fala ai galera , eu criei um script , ai eu fui tentar adicionar uma funçao que se tipo voce escreve o nome da magia , ai aparece numeradamente as magias script : porém , dps que eu adicionei isso , naum funfo mais o script e tbm nao deu bug no console , help please
-
pedido será que voces podem tirar o error da minha spell?
um tópico no fórum postou tonynamoral Lixeira Pública
duvida sanada. -
pedido Me ajudem a retirar esse error aqui?
pergunta respondeu ao tonynamoral de tonynamoral em Scripts
Duvida Sanada. -
Olá galera , eu criei um cast system aqui , porém . se os outros tiverem assistindo o carinha , e o carinha morrer ou deslogar , os que tavam assistindo continuam assistindo. Então está aqui o sistema de cast.
-
Viish slicer , o problem é que eu nao curto mt o otclient.
-
Olá galera , eu estava conversando com um amigo ."Skyen Hasus". ai eu comentei pra ele sobre a barra de menu do PxG. akeles butoes flutuantes que fica no canto supeior esquerdo da tela. ai eu perguntei pra ele como fazia , ai ele falo que é usando o TibiaApi , e nao fazia ideia de como fazia o resto, entao eu gostaria de perguntar , se oque ele falo é certo. e como eu começaria 1 butao novo dentro do client,
-
Oh , mais tipo . ele da uns warnings antes de compilar. isso é normal?
-
pedido function onCombat , me ajuda a fazer isso aqui?
pergunta respondeu ao tonynamoral de tonynamoral em Scripts
Eu estou tentando arrumar aqui , mais obrigado ai. -
pedido function onCombat , me ajuda a fazer isso aqui?
pergunta respondeu ao tonynamoral de tonynamoral em Scripts
[10/01/2013 12:05:36] [Error - Weapon Interface] [10/01/2013 12:05:36] data/weapons/scripts/wands.lua:onUseWeapon [10/01/2013 12:05:36] Description: [10/01/2013 12:05:36] (luaDoCombat) Combat not found -
pedido function onCombat , me ajuda a fazer isso aqui?
pergunta respondeu ao tonynamoral de tonynamoral em Scripts
Irei testar. [10/01/2013 10:09:21] [Error - Weapon Interface] [10/01/2013 10:09:21] data/weapons/scripts/wands.lua:onUseWeapon [10/01/2013 10:09:21] Description: [10/01/2013 10:09:21] (luaDoCombat) Combat not found -
pedido function onCombat , me ajuda a fazer isso aqui?
pergunta respondeu ao tonynamoral de tonynamoral em Scripts
Poderia me ajudar a instalar? -
pedido function onCombat , me ajuda a fazer isso aqui?
pergunta respondeu ao tonynamoral de tonynamoral em Scripts
Irei testar =x -
Mais está dando error na funçao. Error : 'g' was not declared in this scope
-
kkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk.... Xorei véi . mais ai, ele da uns warnings . é normal?
-
pedido function onCombat , me ajuda a fazer isso aqui?
pergunta respondeu ao tonynamoral de tonynamoral em Scripts
Como? -
Eu tentei mudar para sword , mais só funciono no meu GOD . e tipo , nenhum outros GODS nem players funcionaram .
-
Olá galera , eu gostaria de um sistema , que tipo . o player está usando uma wand e , ele tem 30% de mandar uma magia . exemplo : local wands = { [9812] = "exura", [1725] = "exori flam", } function onCombat(cid) if item.itemid = wands[getPlayerSlotItem(cid,6).itemid] then if math.random(1,100) <= 30 then doPlayerCastSpell(cid,wands[getPlayerSlotItem(cid,6).itemid] end return true end end Só um exemplo .
-
Essa funçao hida o nome do player tambem? Error na funçao g.game->addCreatureHealth(player);
-
Exemplo de uso?
-
fala ai galera , eu estou editando as sourcers para fazer o meus sistema de invisiblidade . porém , eu quero remover uma msg que fica em vermelho de quando fala /ghost vou postar o script aqui : Eu ja removi akela msg que fala You are now invisible , e talz . so falta fazer remover akela msg vermelha do console.
-
dúvida porque nao consigo editar isso aqui?
pergunta respondeu ao tonynamoral de tonynamoral em Scripts
Agora sim \o/ -
dúvida porque nao consigo editar isso aqui?
pergunta respondeu ao tonynamoral de tonynamoral em Scripts
Continua com os efeitos de spers -
Fala ai galera , eu to com outro script aqui que deu um errorzinho. se o ITEM for add = "none" ele nao funciona , poderiam me ajudar? script : local maxSkills = 100 local skillTable = { --[id do item] = id da skill, [2400] = {id = 0, count = 1, add = "none"}, -- Strenght [2404] = {id = 1, count = 3, add = "speed"}, -- Agility [2403] = {id = 2, count = 20, add = "health"}, -- Vitality [2402] = {id = 3, count = 15, add = "mana"}, -- Energy [2401] = {id = 4, count = 1, add = "none"}, -- Range [2405] = {id = 5, count = 1, add = "none"}, -- Defense } local function doPlayerSetSkill(pid, skill, amount) local player = getPlayerByGUID(pid) if isCreature(player) then doRemoveCreature(player, true) end db.executeQuery("UPDATE `player_skills` SET `value` = ".. amount .." WHERE `player_id` = ".. pid .. " and `skillid` = ".. skill ..";") return true end local function doPlayerSetMagic(pid, amount) local player = getPlayerByGUID(pid) if isCreature(player) then doRemoveCreature(player, true) end db.executeQuery("UPDATE `players` SET `maglevel` = " .. amount .. " WHERE `id` = "..pid) return true end function onTextEdit(cid, item, newText) local skillId = skillTable[item.itemid] if not skillId then return true end local guid = getPlayerGUID(cid) local points = getPlayerMagLevel(cid) local skill = getPlayerSkillLevel(cid, skillId.id) local value = tonumber(newText) if not value or value < 0 then doPlayerSendCancel(cid, "Por favor, insira um número válido.") return false elseif getPlayerInFight(cid) == 1 then doPlayerSendCancel(cid, "Você não pode estar em PZ.") return false elseif points < value then doPlayerSendCancel(cid, "Você não tem points suficientes.") return false elseif skill >= maxSkills then doPlayerSendCancel(cid, "Sua skill já está no máximo.") return false end local newValue = math.min(skill + value, maxSkills) if skillId.add == "none" then return false elseif skillId.add == "speed" then doChangeSpeed(cid, getCreatureSpeed(cid)+(value*skillId.count)) elseif skillId.add == "health" then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+(value*skillId.count)) elseif skillId.add == "mana" then setCreatureMaxMana(cid, getCreatureMaxMana(cid)+(value*skillId.count)) end doPlayerSetSkill(guid, skillId.id, newValue) doPlayerSetMagic(guid, points - newValue + skill) return false end
-
Fala ai galera , eu to com outro script aqui que deu um errorzinho. se o ITEM for add = "none" ele nao funciona , poderiam me ajudar? script : local maxSkills = 100 local skillTable = { --[id do item] = id da skill, [2400] = {id = 0, count = 1, add = "none"}, -- Strenght [2404] = {id = 1, count = 3, add = "speed"}, -- Agility [2403] = {id = 2, count = 20, add = "health"}, -- Vitality [2402] = {id = 3, count = 15, add = "mana"}, -- Energy [2401] = {id = 4, count = 1, add = "none"}, -- Range [2405] = {id = 5, count = 1, add = "none"}, -- Defense } local function doPlayerSetSkill(pid, skill, amount) local player = getPlayerByGUID(pid) if isCreature(player) then doRemoveCreature(player, true) end db.executeQuery("UPDATE `player_skills` SET `value` = ".. amount .." WHERE `player_id` = ".. pid .. " and `skillid` = ".. skill ..";") return true end local function doPlayerSetMagic(pid, amount) local player = getPlayerByGUID(pid) if isCreature(player) then doRemoveCreature(player, true) end db.executeQuery("UPDATE `players` SET `maglevel` = " .. amount .. " WHERE `id` = "..pid) return true end function onTextEdit(cid, item, newText) local skillId = skillTable[item.itemid] if not skillId then return true end local guid = getPlayerGUID(cid) local points = getPlayerMagLevel(cid) local skill = getPlayerSkillLevel(cid, skillId.id) local value = tonumber(newText) if not value or value < 0 then doPlayerSendCancel(cid, "Por favor, insira um número válido.") return false elseif getPlayerInFight(cid) == 1 then doPlayerSendCancel(cid, "Você não pode estar em PZ.") return false elseif points < value then doPlayerSendCancel(cid, "Você não tem points suficientes.") return false elseif skill >= maxSkills then doPlayerSendCancel(cid, "Sua skill já está no máximo.") return false end local newValue = math.min(skill + value, maxSkills) if skillId.add == "none" then return false elseif skillId.add == "speed" then doChangeSpeed(cid, getCreatureSpeed(cid)+(value*skillId.count)) elseif skillId.add == "health" then setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+(value*skillId.count)) elseif skillId.add == "mana" then setCreatureMaxMana(cid, getCreatureMaxMana(cid)+(value*skillId.count)) end doPlayerSetSkill(guid, skillId.id, newValue) doPlayerSetMagic(guid, points - newValue + skill) return false end
-
Obrigado
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.