Tudo que eunaosei123 postou
-
Magia bugada
Alguém pode ajudar bug na magia :/ [09/04/2014 17:02:10] [Error - Spell Interface] [09/04/2014 17:02:10] In a timer event called from: [09/04/2014 17:02:10] data/spells/scripts/support/exuragransan.lua:onCastSpell [09/04/2014 17:02:11] Description: [09/04/2014 17:02:11] (luaDoCombat) Creature not found [09/04/2014 17:02:11] [Error - Spell Interface] [09/04/2014 17:02:11] In a timer event called from: [09/04/2014 17:02:11] data/spells/scripts/support/exuragransan.lua:onCastSpell [09/04/2014 17:02:11] Description: [09/04/2014 17:02:11] (luaDoCombat) Creature not found A Mágia local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 50, 55, 60, 65) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat2, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat2, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1) setCombatParam(combat2, COMBAT_PARAM_AGGRESSIVE, 0) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, 50, 55, 60, 65) function onCastSpell(cid, var) doPlayerSendTextMessage(cid,27,"EFEITO MÁGICO: Recupera sua vida e mana múltiplas vezes (10x) durante 5 segundos. O cálculo de regeneração é de acordo com seu level e nível mágico.") for i = 1, 10 do addEvent(doCombat, (i * 400) - 400, cid, combat, var) addEvent(doCombat, (i * 500) - 500, cid, combat2, var) end return true end
- Corpo do Player não fica no chão
-
Bug Anihi
Queria que algum ajuda-se a arrumar . E pq não esta nascendo o monstro quando pusha a alavanca caso não consiga arrumar tenho essa segunda solução porque eu coloquei os monstros pelo rme ai quando eles apertão na alavanca eles somem , Anini function onUse(cid, item, fromPosition, itemEx, toPosition) local config = { position = {x=1183, y=1224, z=7}, -- Posição aonde sera criado o teleport position1 = {x=1216, y=1250, z=7}, position2 = {x=1216, y=1258, z=7}, position3 = {x=1222, y=1250, z=7}, position4 = {x=1222, y=1258, z=7}, fromPosition = {x=1215, y=1249, z=7}, toPosition = {x=1223, y=1259, z=7}, walls = {x=1177, y=1224, z=7}, wallr = {x=1177, y=1224, z=7, stackpos = 1}, id = 1498, time = 2 -- tempo que o teleport ira sumir em minutos } local monsterPositions = { {x = 1216, y = 1252, z = 7}, --posição do monstro 1 {x = 1216, y = 1254, z = 7}, --posição do monstro 2 {x = 1216, y = 1256, z = 7}, --posição do monstro 3 {x = 1222, y = 1252, z = 7}, --posição do monstro 4 {x = 75, y = 1254, z = 7}, --posição do monstro 5 {x = 75, y = 1256, z = 7} --posição do monstro 6 } local t = { level = 120, -- level minimo para poder entrar inicio = -- posical inicial dos players { {x=1182,y=1224,z=7} }, fim = -- posição para onde serão teleportados { {x=1221,y=1254,z=7} } } local time = 120 local gsto = 4567 local test = {} for _, k in ipairs(t.inicio) do local x = getTopCreature(k).uid if(x == 0 or not isPlayer(x) or getPlayerLevel(x) < t.level ) then doPlayerSendCancel(cid, 'Não tem 5 players.') return true end table.insert(test, x) end for _, mPos in ipairs(monsterPositions) do local mob = getTopCreature(cPos).uid if mob ~= 0 and isMonster(mob) then doRemoveCreature(mob) doCreateMonster("Annihilon", mPos) else doCreateMonster("Annihilon", mPos) end end for i, pid in ipairs(test) do doSendMagicEffect(t.inicio, CONST_ME_POFF) doTeleportThing(pid, t.fim, false) doSendMagicEffect(t.fim, CONST_ME_ENERGYAREA) doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) end doCreateItem(config.id, 1, config.walls) for i = 1,time do formula = time - 1*i addEvent(doSendAnimatedText,i*1000, config.position, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position1, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position2, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position3, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position4, formula, math.random(1, 255)) end function removeWall() return true end addEvent(removeWall, config.time*60*1000) for x = config.fromPosition.x, config.toPosition.x do for y = config.fromPosition.y, config.toPosition.y do for z = config.fromPosition.z, config.toPosition.z do areapos = {x = x, y = y, z = z, stackpos = 253} getMonsters = getThingfromPos(areapos) if isMonster(getMonsters.uid) then doRemoveCreature(getMonsters.uid) end end end end function removePlayer() if isInArea(getPlayerPosition(cid), config.fromPosition, config.toPosition) then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), false) end end addEvent(removePlayer, config.time*60*1000) return TRUE end Anihi function onUse(cid, item, fromPosition, itemEx, toPosition) local config = { position = {x=1183, y=1224, z=7}, -- Posição aonde sera criado o teleport position1 = {x=1216, y=1250, z=7}, position2 = {x=1216, y=1258, z=7}, position3 = {x=1222, y=1250, z=7}, position4 = {x=1222, y=1258, z=7}, fromPosition = {x=1215, y=1249, z=7}, toPosition = {x=1223, y=1259, z=7}, walls = {x=1177, y=1224, z=7}, wallr = {x=1177, y=1224, z=7, stackpos = 1}, id = 1498, time = 2 -- tempo que o teleport ira sumir em minutos } local t = { level = 120, -- level minimo para poder entrar inicio = -- posical inicial dos players { {x=1184,y=1224,z=7}, {x=1183,y=1224,z=7}, {x=1182,y=1224,z=7}, {x=1181,y=1224,z=7}, {x=1180,y=1224,z=7} }, fim = -- posição para onde serão teleportados { {x=1221,y=1254,z=7}, {x=1220,y=1254,z=7}, {x=1219,y=1254,z=7}, {x=1218,y=1254,z=7}, {x=1217,y=1254,z=7} } } local time = 120 local sto = 5937 local test = {} for _, k in ipairs(t.inicio) do local x = getTopCreature(k).uid if(x == 0 or not isPlayer(x) or getPlayerLevel(x) < t.level) then doPlayerSendCancel(cid, 'Você precisa de 5 jogadores') return true end if getGlobalStorageValue(sto) == 1 then doPlayerSendCancel(cid, 'Espere o tempo acabar') return true end table.insert(test, x) end for i, pid in ipairs(test) do doSendMagicEffect(t.inicio, CONST_ME_POFF) doTeleportThing(pid, t.fim, false) doSendMagicEffect(t.fim, CONST_ME_ENERGYAREA) doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) end setGlobalStorageValue(sto, 1) for i = 1,time do formula = time - 1*i addEvent(doSendAnimatedText,i*1000, config.position, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position1, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position2, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position3, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position4, formula, math.random(1, 255)) end function removeWall() setGlobalStorageValue(sto, -1) return true end addEvent(removeWall, config.time*60*1000) for x = config.fromPosition.x, config.toPosition.x do for y = config.fromPosition.y, config.toPosition.y do for z = config.fromPosition.z, config.toPosition.z do areapos = {x = x, y = y, z = z, stackpos = 253} getMonsters = getThingfromPos(areapos) if isMonster(getMonsters.uid) then doRemoveCreature(getMonsters.uid) end end end end function removePlayer() if isInArea(getPlayerPosition(cid), config.fromPosition, config.toPosition) then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), false) end end addEvent(removePlayer, config.time*60*1000) return TRUE end
-
(Resolvido)Sistema de Pk
Meu sistema de pk não ta funcionando taqui o scripts dele <?xml version="1.0" encoding="ISO-8859-1"?> <mod name="Skull System" version="1.0" author="Skyforever" contact="#####.com" enabled="yes"> <config name="SkullC_func"><![CDATA[ function setSkullColor(cid) local t = { [{5,10}] = 1, [{11,15}] = 2, [{16,20}] = 3, [{21,25}] = 4, [{26,math.huge}] = 5 } for var, ret in pairs(t) do if getPlayerFrags(cid) >= var[1] and getPlayerFrags(cid) <= var[2] then doCreatureSetSkullType(cid, ret) end end end function getPlayerFrags(cid) local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC") if(result:getID() ~= -1) then repeat local content = {date = result:getDataInt("date")} if(content.date > times.today) then table.insert(contents.day, content) elseif(content.date > times.week) then table.insert(contents.week, content) else table.insert(contents.month, content) end until not result:next() result:free() end local size = {day = table.maxn(contents.day),week = table.maxn(contents.week),month = table.maxn(contents.month)} return size.day + size.week + size.month end ]]></config> <event type="login" name="SkullLogin" event="script"><![CDATA[ domodlib('SkullC_func') function onLogin(cid) registerCreatureEvent(cid, "ColorKill") setSkullColor(cid) return true end]]></event> <event type="kill" name="ColorKill" event="script"><![CDATA[ domodlib('SkullC_func') function onKill(cid, target) if isPlayer(cid) and isPlayer(target) then doCreatureSetSkullType(target, 0) addEvent(setSkullColor, 100, cid) end return true end]]></event> </mod> Parte do config useFragHandler = true redSkullLength = 1 * 60 * 1000 blackSkullLength = 1 * 60 * 1000 dailyFragsToRedSkull = 3 weeklyFragsToRedSkull = 5 monthlyFragsToRedSkull = 10 dailyFragsToBlackSkull = dailyFragsToRedSkull weeklyFragsToBlackSkull = weeklyFragsToRedSkull monthlyFragsToBlackSkull = monthlyFragsToRedSkull dailyFragsToBanishment = dailyFragsToRedSkull weeklyFragsToBanishment = weeklyFragsToRedSkull monthlyFragsToBanishment = monthlyFragsToRedSkull blackSkulledDeathHealth = 40 blackSkulledDeathMana = 0 useBlackSkull = true useFragHandler = true advancedFragList = true
-
Corpo do Player não fica no chão
Ola tk eu to aqui pra pedir ajuda, È que quando um player morrer o corpo não fica no chão queria que alguém me ajuda-se como ajeito isso
-
Sistema de Guild
Eu tenho um mapa só que o comando de criar guild tava bugado ele tava clonando items ai resolvi tirar ,mais só que agora queria um sistema de guild se alguém poder ajudar dou Rep+
-
Sistema Guild
Eu tenho um mapa só que o comando de criar guild tava bugado ele tava clonando items ai resolvi tirar ,mais só que agora queria um sistema de guild se alguém poder ajudar dou Rep+
- Corpo do Player não fica no chão
-
Sistema de PK
<?xml version="1.0" encoding="ISO-8859-1"?> <mod name="Skull System" version="1.0" author="Skyforever" contact="#####.com" enabled="yes"> <config name="SkullC_func"><![CDATA[ function setSkullColor(cid) local t = { [{5,10}] = 1, [{11,15}] = 2, [{16,20}] = 3, [{21,25}] = 4, [{26,math.huge}] = 5 } for var, ret in pairs(t) do if getPlayerFrags(cid) >= var[1] and getPlayerFrags(cid) <= var[2] then doCreatureSetSkullType(cid, ret) end end end function getPlayerFrags(cid) local time = os.time() local times = {today = (time - 86400), week = (time - (7 * 86400))} local contents, result = {day = {}, week = {}, month = {}}, db.getResult("SELECT `pd`.`date`, `pd`.`level`, `p`.`name` FROM `player_killers` pk LEFT JOIN `killers` k ON `pk`.`kill_id` = `k`.`id` LEFT JOIN `player_deaths` pd ON `k`.`death_id` = `pd`.`id` LEFT JOIN `players` p ON `pd`.`player_id` = `p`.`id` WHERE `pk`.`player_id` = " .. getPlayerGUID(cid) .. " AND `k`.`unjustified` = 1 AND `pd`.`date` >= " .. (time - (30 * 86400)) .. " ORDER BY `pd`.`date` DESC") if(result:getID() ~= -1) then repeat local content = {date = result:getDataInt("date")} if(content.date > times.today) then table.insert(contents.day, content) elseif(content.date > times.week) then table.insert(contents.week, content) else table.insert(contents.month, content) end until not result:next() result:free() end local size = {day = table.maxn(contents.day),week = table.maxn(contents.week),month = table.maxn(contents.month)} return size.day + size.week + size.month end ]]></config> <event type="login" name="SkullLogin" event="script"><![CDATA[ domodlib('SkullC_func') function onLogin(cid) registerCreatureEvent(cid, "ColorKill") setSkullColor(cid) return true end]]></event> <event type="kill" name="ColorKill" event="script"><![CDATA[ domodlib('SkullC_func') function onKill(cid, target) if isPlayer(cid) and isPlayer(target) then doCreatureSetSkullType(target, 0) addEvent(setSkullColor, 100, cid) end return true end]]></event> </mod> Parte do config useFragHandler = true redSkullLength = 1 * 60 * 1000 blackSkullLength = 1 * 60 * 1000 dailyFragsToRedSkull = 3 weeklyFragsToRedSkull = 5 monthlyFragsToRedSkull = 10 dailyFragsToBlackSkull = dailyFragsToRedSkull weeklyFragsToBlackSkull = weeklyFragsToRedSkull monthlyFragsToBlackSkull = monthlyFragsToRedSkull dailyFragsToBanishment = dailyFragsToRedSkull weeklyFragsToBanishment = weeklyFragsToRedSkull monthlyFragsToBanishment = monthlyFragsToRedSkull blackSkulledDeathHealth = 40 blackSkulledDeathMana = 0 useBlackSkull = true useFragHandler = true advancedFragList = true
-
Anihi
Queria que algum ajuda-se a arrumar . E pq não esta nascendo o monstro quando pusha a alavanca caso não consiga arrumar tenho essa segunda solução porque eu coloquei os monstros pelo rme ai quando eles apertão na alavanca eles somem , Anini function onUse(cid, item, fromPosition, itemEx, toPosition) local config = { position = {x=1183, y=1224, z=7}, -- Posição aonde sera criado o teleport position1 = {x=1216, y=1250, z=7}, position2 = {x=1216, y=1258, z=7}, position3 = {x=1222, y=1250, z=7}, position4 = {x=1222, y=1258, z=7}, fromPosition = {x=1215, y=1249, z=7}, toPosition = {x=1223, y=1259, z=7}, walls = {x=1177, y=1224, z=7}, wallr = {x=1177, y=1224, z=7, stackpos = 1}, id = 1498, time = 2 -- tempo que o teleport ira sumir em minutos } local monsterPositions = { {x = 1216, y = 1252, z = 7}, --posição do monstro 1 {x = 1216, y = 1254, z = 7}, --posição do monstro 2 {x = 1216, y = 1256, z = 7}, --posição do monstro 3 {x = 1222, y = 1252, z = 7}, --posição do monstro 4 {x = 75, y = 1254, z = 7}, --posição do monstro 5 {x = 75, y = 1256, z = 7} --posição do monstro 6 } local t = { level = 120, -- level minimo para poder entrar inicio = -- posical inicial dos players { {x=1182,y=1224,z=7} }, fim = -- posição para onde serão teleportados { {x=1221,y=1254,z=7} } } local time = 120 local gsto = 4567 local test = {} for _, k in ipairs(t.inicio) do local x = getTopCreature(k).uid if(x == 0 or not isPlayer(x) or getPlayerLevel(x) < t.level ) then doPlayerSendCancel(cid, 'Não tem 5 players.') return true end table.insert(test, x) end for _, mPos in ipairs(monsterPositions) do local mob = getTopCreature(cPos).uid if mob ~= 0 and isMonster(mob) then doRemoveCreature(mob) doCreateMonster("Annihilon", mPos) else doCreateMonster("Annihilon", mPos) end end for i, pid in ipairs(test) do doSendMagicEffect(t.inicio, CONST_ME_POFF) doTeleportThing(pid, t.fim, false) doSendMagicEffect(t.fim, CONST_ME_ENERGYAREA) doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) end doCreateItem(config.id, 1, config.walls) for i = 1,time do formula = time - 1*i addEvent(doSendAnimatedText,i*1000, config.position, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position1, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position2, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position3, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position4, formula, math.random(1, 255)) end function removeWall() return true end addEvent(removeWall, config.time*60*1000) for x = config.fromPosition.x, config.toPosition.x do for y = config.fromPosition.y, config.toPosition.y do for z = config.fromPosition.z, config.toPosition.z do areapos = {x = x, y = y, z = z, stackpos = 253} getMonsters = getThingfromPos(areapos) if isMonster(getMonsters.uid) then doRemoveCreature(getMonsters.uid) end end end end function removePlayer() if isInArea(getPlayerPosition(cid), config.fromPosition, config.toPosition) then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), false) end end addEvent(removePlayer, config.time*60*1000) return TRUE end Anihi function onUse(cid, item, fromPosition, itemEx, toPosition) local config = { position = {x=1183, y=1224, z=7}, -- Posição aonde sera criado o teleport position1 = {x=1216, y=1250, z=7}, position2 = {x=1216, y=1258, z=7}, position3 = {x=1222, y=1250, z=7}, position4 = {x=1222, y=1258, z=7}, fromPosition = {x=1215, y=1249, z=7}, toPosition = {x=1223, y=1259, z=7}, walls = {x=1177, y=1224, z=7}, wallr = {x=1177, y=1224, z=7, stackpos = 1}, id = 1498, time = 2 -- tempo que o teleport ira sumir em minutos } local t = { level = 120, -- level minimo para poder entrar inicio = -- posical inicial dos players { {x=1184,y=1224,z=7}, {x=1183,y=1224,z=7}, {x=1182,y=1224,z=7}, {x=1181,y=1224,z=7}, {x=1180,y=1224,z=7} }, fim = -- posição para onde serão teleportados { {x=1221,y=1254,z=7}, {x=1220,y=1254,z=7}, {x=1219,y=1254,z=7}, {x=1218,y=1254,z=7}, {x=1217,y=1254,z=7} } } local time = 120 local sto = 5937 local test = {} for _, k in ipairs(t.inicio) do local x = getTopCreature(k).uid if(x == 0 or not isPlayer(x) or getPlayerLevel(x) < t.level) then doPlayerSendCancel(cid, 'Você precisa de 5 jogadores') return true end if getGlobalStorageValue(sto) == 1 then doPlayerSendCancel(cid, 'Espere o tempo acabar') return true end table.insert(test, x) end for i, pid in ipairs(test) do doSendMagicEffect(t.inicio, CONST_ME_POFF) doTeleportThing(pid, t.fim, false) doSendMagicEffect(t.fim, CONST_ME_ENERGYAREA) doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) end setGlobalStorageValue(sto, 1) for i = 1,time do formula = time - 1*i addEvent(doSendAnimatedText,i*1000, config.position, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position1, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position2, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position3, formula, math.random(1, 255)) addEvent(doSendAnimatedText,i*1000, config.position4, formula, math.random(1, 255)) end function removeWall() setGlobalStorageValue(sto, -1) return true end addEvent(removeWall, config.time*60*1000) for x = config.fromPosition.x, config.toPosition.x do for y = config.fromPosition.y, config.toPosition.y do for z = config.fromPosition.z, config.toPosition.z do areapos = {x = x, y = y, z = z, stackpos = 253} getMonsters = getThingfromPos(areapos) if isMonster(getMonsters.uid) then doRemoveCreature(getMonsters.uid) end end end end function removePlayer() if isInArea(getPlayerPosition(cid), config.fromPosition, config.toPosition) then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), false) end end addEvent(removePlayer, config.time*60*1000) return TRUE end
-
Problema no evento zombie
O meu sistema é diferente desse
-
Problema no evento zombie
É o seguinte eu tenho um zombie evento que ele começa normal mais só que quando ele acaba sempre fica um zombie la dentro queria saber como arrumar isso,caso precise posta o script só falar qual que eu posto . Tem como colocar assim que o segundo ganhar o primeiro ser kikado ?tipo o segundo morreu ai o 1 já é automaticamente kikado para fora e pegar seu preimun.
-
zombie evento
É o seguinte eu tenho um zombie evento que ele começa normal mais só que quando ele acaba sempre fica um zombie la dentro queria saber como arrumar isso,caso precise posta o script só falar qual que eu posto . Tem como colocar assim que o segundo ganhar o primeiro ser kikado ?tipo o segundo morreu ai o 1 já é automaticamente kikado para fora e pegar seu preimun
- Abri porta roteador
- Abri porta roteador
-
Items bugados ..
Explique melhor oque vc quer que agente faça '-'
- Abri porta roteador
- Abri porta roteador
- Abri porta roteador
- Abri porta roteador
-
Abri porta roteador
Vai em Advanted ,depois la no canto esquerdo da sua tela tem la encaminhamento de porta ai vc click la depois disso vc vai configurar la colocando o nome que vc deseja o teu ip as porta [só coloque as porta publica] e depois marque a opção TCP E DEPOIS Só salvar la em salve Settings la em cima
-
(Resolvido)[HELP] Pet System
O seu deu certo edite só seu poste bote o script completo pra quando alguém procura ta completo
-
(Resolvido)[HELP] Pet System
Ana eu testei é não deu certo eu conseguir sumonar o pet do mesmo jeito :/
-
(Resolvido)[HELP] Pet System
Obrigado daniel ,que eu vi um tutoria que é no weapons que adiciona level nas coisa. Mais ana paula vc ta vendo que tem um ai que tem uns 6 a 7 mais eu quero que só o phoenix que pode usar ,ai vou te que criar outro script só com ele né?
-
(Resolvido)[HELP] Pet System
Desculpa gente. Aqui esta 1 local egg = { ["Many Pet"] = {id = 10523, mon = "Many Pet"}, ["Draug Pet"] = {id = 4850, mon = "Draug Pet"}, } function onUse(cid, item, fromPosition, itemEx, toPosition) if getTilePzInfo(getCreaturePosition(cid)) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Você não pode sumonar seu pet em protection zone.") return true end if #getCreatureSummons(cid) >= 1 then return doPlayerSendCancel(cid, "Você só pode ter 1 pet sumonado.") end for k, v in pairs(egg) do if item.itemid == v.id then local x = doSummonCreature(v.mon, getCreaturePosition(cid)) doConvinceCreature(cid, x) end end return true end Aqui o outro que é so o phoenix pet que eu quero local egg = { ["Amarelo"] = {id = 6541, mon = "Holy Pet"}, ["Vermelho"] = {id = 6542, mon = "Fire Pet"}, ["Azul"] = {id = 6543, mon = "Ice Pet"}, ["Verde"] = {id = 6544, mon = "Terra Pet"}, ["Roxo"] = {id = 6545, mon = "Energy Pet"}, ["Lava"] = {id = 11737, mon = "Phoenix Pet"}, } function onUse(cid, item, fromPosition, itemEx, toPosition) if getTilePzInfo(getCreaturePosition(cid)) then doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Você não pode sumonar seu pet em protection zone.") return true end if #getCreatureSummons(cid) >= 1 then return doPlayerSendCancel(cid, "Você só pode ter 1 pet sumonado.") end for k, v in pairs(egg) do if item.itemid == v.id then local x = doSummonCreature(v.mon, getCreaturePosition(cid)) doConvinceCreature(cid, x) doRemoveItem(item.uid, 1) end end return true end