Tudo que gabrielbuff postou
-
ACTION QUEST
luangop, continua do mesmo jeito, ele não ta contando certo a quantidade de platinum coins você ganha
-
ACTION QUEST
luangop, tipo ali coloquei pra vir 1 a 200 platinum coins, ai o cara faz a quest e ganha 64 platinu coins.. ai no default a mensagem aparece "o jogador ganhou 1053, 644, 987 platinum coins vai aparecendo aleatoriamente os numeros, não a quantidade certa que o player recebe na bp
-
ajuda com erro na anihi (ACTION)
@KotZletY, ta funcionando único problema é que não está teleportando os players para arena da anihi, o resto do script funcionada normal os demons, tempo etc. menos os players.
-
ACTION QUEST
alguém ajuda nesse script aqui, ele está funcionando normal, só que ele não esta contando certo a quantidade de dinheiro que cada player ganha local tppos = {x=1023,y=1023,z=7} local exp = 1000000 -- Quanto de experience o player irá ganhar?! local default = {2090} local vocs = {7440,7440,7443,7439,7440,7440,7443,7439} function onUse(cid, item, fromPosition, itemEx, toPosition) doPlayerAddLevel(cid, 2) for x,i in pairs(default) do doPlayerAddItem(cid,i) end local bp = doPlayerAddItem(cid,5801,1) local gala = math.random(1,200) for x = 2, gala do doAddContainerItem(bp, 2152, 1) end local add = math.random(1,100) doAddContainerItem(bp, 2152, add) doAddContainerItem(bp, vocs[getPlayerVocation(cid)], 2) local ret = "" for x,i in pairs(default) do if x == 1 then ret = "1 " .. getItemNameById(i) else ret = ret .. ", 1 " ..getItemNameById(i) end end for x,i in pairs(getPlayersOnline()) do doPlayerSendTextMessage(i,19, "O jogador (" .. getPlayerName(cid).. ") completou o (Evento): e ganhou 2 Nivel, 1 Chave de Addons, 2 "..getItemNameById(vocs[getPlayerVocation(cid)]).." , "..gala.." platinum coins!.") end doTeleportThing(cid,tppos) doSendAnimatedText(getPlayerPosition(cid), "Parabéns!", TEXTCOLOR_YELLOW) doSendMagicEffect(getCreaturePosition(cid), math.random(28,28)) doSendMagicEffect(tppos,10) return true end
-
ajuda com erro na anihi (ACTION)
alguém poderia me ajudar, estou com um erro nesse script, foto com erro está logo a baixo. script : function isOnSameFloor(fromPos, toPos) return fromPos.z == toPos.z and true or false end function isEven(arg) return arg % 2 == 0 and true or false end function getMiddlePos(fromPos, toPos) if not isOnSameFloor(fromPos, toPos) then return false end local middle = {x = 0, y = 0, z = 0} middle.x = isEven(fromPos.x + toPos.x) and (fromPos.x + toPos.x)/2 or math.floor((fromPos.x + toPos.x)/2) + 1 middle.y = isEven(fromPos.y + toPos.y) and (fromPos.y + toPos.y)/2 or math.floor((fromPos.y + toPos.y)/2) + 1 middle.z = fromPos.z or toPos.z return middle end function getDistanceRadius(fromPos, toPos) if not isOnSameFloor(fromPos, toPos) then return false end local distance = getDistanceBetween(fromPos, toPos) return isEven(distance) and (distance/2) or math.floor(distance/2) + 1 end function clearArea(middlePos, rangex, rangey) local final = {x=1019, y=1052, z=8} -- Posição onde será teleportado quando acabar o tempo for i = -rangex, rangex do for j = -rangey, rangey do pos = {x = middlePos.x + i, y = middlePos.y + j, z = middlePos.z} creature = getTopCreature(pos).uid if isMonster(creature) then doSendMagicEffect(getThingPos(creature), 14) doRemoveCreature(creature) elseif isPlayer(creature) then doSendMagicEffect(getThingPos(creature), 10) doTeleportThing(creature, final) end end end setGlobalStorageValue(sto, -1) return true end local t = { lvl = 100, entrada = { {x = 1026, y = 1052, z = 8} -- pos players {x = 1025, y = 1052, z = 8} -- pos players {x = 1024, y = 1052, z = 8} -- pos players {x = 1023, y = 1052, z = 8} -- pos players {x = 1022, y = 1052, z = 8} -- pos players }, saida = { {x = 1041, y = 1052, z = 8} -- pos para onde eles irão {x = 1040, y = 1052, z = 8} -- pos para onde eles irão {x = 1039, y = 1052, z = 8} -- pos para onde eles irão {x = 1038, y = 1052, z = 8} -- pos para onde eles irão {x = 1037, y = 1052, z = 8} -- pos para onde eles irão }, monstros = { {{x = 1035, y = 1050, z = 8}, "Demon"} -- defina pos dos montros e nomes {{x = 1035, y = 1054, z = 8}, "Demon"} -- defina pos dos montros e nomes {{x = 1036, y = 1052, z = 8}, "Demon"} -- defina pos dos montros e nomes {{x = 1042, y = 1052, z = 8}, "Demon"} -- defina pos dos montros e nomes {{x = 1043, y = 1050, z = 8}, "Demon"} -- defina pos dos montros e nomes {{x = 1043, y = 1054, z = 8}, "Demon"} -- defina pos dos montros e nomes } } function onUse(cid, item, fromPosition, itemEx, toPosition) local configure = { fromPos = {x=1034, y=1048, z=8}, -- posição superior esquerda do mapa, da area em que esta mapeado a area. toPos = {x=1044, y=1056, z=8}, -- posição inferior direita do mapa, da area em que esta mapeado a area. boss = "Demon" -- Aqui você bota o nome do monstro que você quer remover } local config = { position = {x=1027, y=1052, z=8}, -- Contagem position1 = {x=1035, y=1049, z=8}, -- Contagem position2 = {x=1035, y=1055, z=8}, -- Contagem position3 = {x=1043, y=1049, z=8}, -- Contagem position4 = {x=1043, y=1055, z=8}, -- Contagem fromPosition = {x=1034, y=1048, z=8}, toPosition = {x=1044, y=1056, z=8}, id = 1498, time = 1 -- tempo que o teleport ira sumir em minutos } local time = 60 local sto = 5973 local check = {} for _, k in ipairs(t.entrada) do local x = getTopCreature(k).uid if(x == 0 or isPlayer(x) and getPlayerLevel(x) < t.lvl) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Não tem 5 jogadores para a quest.") return true end if getGlobalStorageValue(sto) == 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Annihilaton está bloqueada. Aguarde até que seja liberada.") return true end table.insert(check, x) end for _, summon in pairs(t.monstros) do local creature = getTopCreature(summon[1]).uid doCreateMonster(summon[2], summon[1]) end for i, tid in ipairs(check) do doTeleportThing(tid, t.saida, false) doSendMagicEffect(t.saida, 10) doTransformItem(item.uid, item.itemid == 1945) end for i = 1,time do formula = time - 1*i addEvent(doSendAnimatedText, i*1000, config.position, formula, TEXTCOLOR_RED) addEvent(doSendAnimatedText, i*1000, config.position1, formula, TEXTCOLOR_RED) addEvent(doSendAnimatedText, i*1000, config.position2, formula, TEXTCOLOR_RED) addEvent(doSendAnimatedText, i*1000, config.position3, formula, TEXTCOLOR_RED) addEvent(doSendAnimatedText, i*1000, config.position4, formula, TEXTCOLOR_RED) end setGlobalStorageValue(sto, 1) local rx = getDistanceRadius(configure.fromPos, configure.toPos) addEvent(clearArea, config.time * 60 * 1000, getMiddlePos(configure.fromPos, configure.toPos), rx, rx) return true end
-
NPC- Que almente o poder nas Spells em "%"
up
-
ajuda com anihi bloqueada
UP
-
ajuda com anihi bloqueada
UP
-
ajuda com anihi bloqueada
UP
-
[ACTION] Anihi modificada não teleporta
local config = { storage = 9721, time = 120, --Tempo para fazer a quest, em minutos. interval = 2, --Tempo para poder usar a alavanca novamente, em minutos. timerPos = { {x = 1127, y = 1152, z = 7}, --Posições onde o tempo restante aparecerá. {x = 1129, y = 1150, z = 8}, {x = 1129, y = 1156, z = 8}, {x = 1121, y = 1150, z = 8}, {x = 1121, y = 1156, z = 8}, }, monster = { name = "Demon", --Nome do monstro. pos = { {x = 1434, y = 822, z = 7}, --Posições onde ele vai nascer. {x = 1434, y = 824, z = 7}, {x = 1434, y = 826, z = 7}, {x = 1442, y = 822, z = 7}, {x = 1442, y = 824, z = 7}, {x = 1442, y = 826, z = 7}, }, }, player = { {{x = 1427, y = 824, z = 7}, {x = 1440, y = 824, z = 7}}, --{{posição onde o player deve ficar}, {para onde será teleportado}}, {{x = 1426, y = 824, z = 7}, {x = 1439, y = 824, z = 7}}, {{x = 1425, y = 824, z = 7}, {x = 1438, y = 824, z = 7}}, {{x = 1414, y = 824, z = 7}, {x = 1437, y = 824, z = 7}}, {{x = 1423, y = 824, z = 7}, {x = 1436, y = 824, z = 7}}, }, area = {{x = 1433, y = 820, z = 7}, {x = 1433, y = 828, z = 7}}, --{{posição superior esquerda da área}, {posição inferior direita da área}}, } local cidPos = {} function clearArea() for x = config.area[1].x, config.area[2].x do for y = config.area[1].y, config.area[2].y do local pos = {x = x, y = y, z = config.area[1].z} local pid = getTopCreature(pos).uid if pid > 0 then if isPlayer(pid) then doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid))) doPlayerSendTextMessage(pid, MESSAGE_STATUS_CONSOLE_RED, "Você não conseguiu completar a Quest.") else doRemoveCreature(pid) end end end end setGlobalStorageValue(config.storage, os.time() + config.interval * 60) end function checkPlayer() for x = config.area[1].x, config.area[2].x do for y = config.area[1].y, config.area[2].y do local pos = {x = x, y = y, z = config.area[1].z} local pid = getTopCreature(pos).uid if isPlayer(pid) then return true end end end return false end function convert(time) for i = 1, #config.timerPos do doSendAnimatedText(config.timerPos, convert(time).minutes..":"..convert(time).seconds, 215) end end function timer(time) if time < 0 or not checkPlayer() then return true end doSendAnimatedText(config.timerPos, convert(time).minutes..":"..convert(time).seconds, 215) addEvent(timer, 1000, time - 1) end function onUse(cid) if getGlobalStorageValue(config.storage) > os.time() then return doPlayerSendCancel(cid, "Wait "..convert(getGlobalStorageValue(config.storage) - os.time()).minutes.."min and "..convert(getGlobalStorageValue(config.storage) - os.time()).seconds.."secs.") elseif checkPlayer() then return doPlayerSendCancel(cid, "Tem Player fazendo a Quest,Aguarde!.") end local p = {} for _, pos in pairs(config.player) do local pid = getTopCreature(pos[1]).uid if isPlayer(pid) then p[#p + 1] = pid cidPos[pid] = _ end end if #p < #config.player then return doPlayerSendCancel(cid, "Não tem 5 Player necessarios.") end for i = 1, #p do doTeleportThing(p, config.player[cidPos[p]][2]) doPlayerSendTextMessage(p, 27, "Boa sorte!") end for _, pos in pairs(config.monster.pos) do doCreateMonster(config.monster.name, pos) end timer(config.time) addEvent(function() clearArea() end, config.time * 60 * 1000) return true end
-
ajuda com anihi bloqueada
Esse script funciona desta maneira, é uma anihi que precisam de 5 jogadores, ao entrar na quest, os jogadores tem 120 segundos para matarem os bichos, caso não consigam serão levados ao templo, e ao puxar a alavanca fica uma contagem de 120 ao 0... porem ao terminar a contagem ninguem consegue mais entrar, fica bloqueada e não esta teletransportando os player para x posição desejada não ocorre nenhum erro no distro. function isOnSameFloor(fromPos, toPos) return fromPos.z == toPos.z and true or false end function isEven(arg) return arg % 2 == 0 and true or false end function getMiddlePos(fromPos, toPos) if not isOnSameFloor(fromPos, toPos) then return false end local middle = {x = 0, y = 0, z = 0} middle.x = isEven(fromPos.x + toPos.x) and (fromPos.x + toPos.x)/2 or math.floor((fromPos.x + toPos.x)/2) + 1 middle.y = isEven(fromPos.y + toPos.y) and (fromPos.y + toPos.y)/2 or math.floor((fromPos.y + toPos.y)/2) + 1 middle.z = fromPos.z or toPos.z return middle end function getDistanceRadius(fromPos, toPos) if not isOnSameFloor(fromPos, toPos) then return false end local distance = getDistanceBetween(fromPos, toPos) return isEven(distance) and (distance/2) or math.floor(distance/2) + 1 end function clearArea(middlePos, rangex, rangey) local final = {x=1382, y=837, z=8} -- Posição onde será teleportado quando acabar o tempo for i = -rangex, rangex do for j = -rangey, rangey do pos = {x = middlePos.x + i, y = middlePos.y + j, z = middlePos.z} creature = getTopCreature(pos).uid if isMonster(creature) then doSendMagicEffect(getThingPos(creature), 14) doRemoveCreature(creature) elseif isPlayer(creature) then doSendMagicEffect(getThingPos(creature), 10) doTeleportThing(creature, final) end end end setGlobalStorageValue(sto, -1) return true end local t = { lvl = 100, entrada = { {x = 1427, y = 824, z = 7}, -- pos players {x = 1426, y = 824, z = 7}, -- pos players {x = 1425, y = 824, z = 7}, -- pos players {x = 1424, y = 824, z = 7}, -- pos players {x = 1423, y = 824, z = 7}, -- pos players }, saida = { {x = 1440, y = 824, z = 7}, -- pos para onde eles irão {x = 1439, y = 824, z = 7}, -- pos para onde eles irão {x = 1438, y = 824, z = 7}, -- pos para onde eles irão {x = 1437, y = 824, z = 7}, -- pos para onde eles irão {x = 1436, y = 824, z = 7}, -- pos para onde eles irão }, monstros = { {{x = 1434, y = 822, z = 7}, "Demon"}, -- defina pos dos montros e nomes {{x = 1434, y = 824, z = 7}, "Demon"}, -- defina pos dos montros e nomes {{x = 1434, y = 826, z = 7}, "Demon"}, -- defina pos dos montros e nomes {{x = 1442, y = 822, z = 7}, "Demon"}, -- defina pos dos montros e nomes {{x = 1442, y = 824, z = 7}, "Demon"}, -- defina pos dos montros e nomes {{x = 1442, y = 826, z = 7}, "Demon"}, -- defina pos dos montros e nomes } } function onUse(cid, item, fromPosition, itemEx, toPosition) local configure = { fromPos = {x=1433, y=820, z=7}, -- posição superior esquerda do mapa, da area em que esta mapeado a area. toPos = {x=1443, y=828, z=7}, -- posição inferior direita do mapa, da area em que esta mapeado a area. boss = "Demon" -- Aqui você bota o nome do monstro que você quer remover } local config = { position = {x=1428, y=824, z=7}, -- Contagem position1 = {x=1434, y=821, z=7}, -- Contagem position2 = {x=1434, y=827, z=7}, -- Contagem position3 = {x=1442, y=821, z=7}, -- Contagem position4 = {x=1442, y=827, z=7}, -- Contagem fromPosition = {x=1433, y=820, z=7}, toPosition = {x=1443, y=828, z=7}, id = 1498, time = 1 -- tempo que o teleport ira sumir em minutos } local time = 60 local sto = 5973 local check = {} for _, k in ipairs(t.entrada) do local x = getTopCreature(k).uid if(x == 0 or not isPlayer(x) or getPlayerLevel(x) < t.lvl) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você precisa de 5 jogadores para entrar na quest.") return true end if getGlobalStorageValue(sto) == 1 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde até que seja liberada.") return true end table.insert(check, X) end for _, summon in pairs(t.monstros) do local creature = getTopCreature(summon[1]).uid doCreateMonster(summon[2], summon[1]) end for i, tid in ipairs(check) do doTeleportThing(tid, t.saida, false) doSendMagicEffect(t.saida, 10) doTransformItem(item.uid, item.itemid == 1945 and 1946 or 1945) end for i = 1,time do formula = time - 1*i addEvent(doSendAnimatedText, i*1000, config.position, formula, TEXTCOLOR_RED) addEvent(doSendAnimatedText, i*1000, config.position1, formula, TEXTCOLOR_RED) addEvent(doSendAnimatedText, i*1000, config.position2, formula, TEXTCOLOR_RED) addEvent(doSendAnimatedText, i*1000, config.position3, formula, TEXTCOLOR_RED) addEvent(doSendAnimatedText, i*1000, config.position4, formula, TEXTCOLOR_RED) end setGlobalStorageValue(sto, 1) local rx = getDistanceRadius(configure.fromPos, configure.toPos) addEvent(clearArea, config.time * 60 * 1000, getMiddlePos(configure.fromPos, configure.toPos), rx, rx) return true end
-
[ACTION] Anihi modificada não teleporta
luangop, tive um pequeno erro ao configurar as posições mais agora aparece o seguinte erro: [Error - Action interface] data/actions/scripts/anihi.lua:onUse Description: data/actions/scripts/anihi.lua:183: attempt to index field '?' <anil value> stack traceback: data/actions/scripts/anihi.lua:183: in function <data/actions/scripts/anihi.lua:147>
-
[ACTION] Anihi modificada não teleporta
Alguém poderia me ajudar, essa anihi modificada não está teleportando o player para x posição.. Ela não apresenta nenhum erro no distro, Mais na hora de dar use na alavanca ela da como se não tivesse players na posição inicial. Ao dar use na alavanca aparece a mensagem "Não tem 5 player necessarios" local config = { storage = 9721, time = 120, --Tempo para fazer a quest, em minutos. interval = 2, --Tempo para poder usar a alavanca novamente, em minutos. timerPos = { {x = 1127, y = 1152, z = 7}, --Posições onde o tempo restante aparecerá. {x = 1129, y = 1150, z = 8}, {x = 1129, y = 1156, z = 8}, {x = 1121, y = 1150, z = 8}, {x = 1121, y = 1156, z = 8}, }, monster = { name = "Demon", --Nome do monstro. pos = { {x = 1434, y = 822, z = 7}, --Posições onde ele vai nascer. {x = 1434, y = 824, z = 7}, {x = 1434, y = 826, z = 7}, {x = 1442, y = 822, z = 7}, {x = 1442, y = 824, z = 7}, {x = 1442, y = 826, z = 7}, }, }, player = { {{x = 1427, y = 824, z = 7}, {x = 1440, y = 824, z = 7}}, --{{posição onde o player deve ficar}, {para onde será teleportado}}, {{x = 1426, y = 824, z = 7}, {x = 1439, y = 824, z = 7}}, {{x = 1425, y = 824, z = 7}, {x = 1438, y = 824, z = 7}}, {{x = 1414, y = 824, z = 7}, {x = 1437, y = 824, z = 7}}, {{x = 1423, y = 824, z = 7}, {x = 1436, y = 824, z = 7}}, }, area = {{x = 1433, y = 820, z = 7}, {x = 1433, y = 828, z = 7}}, --{{posição superior esquerda da área}, {posição inferior direita da área}}, } local cidPos = {} function clearArea() for x = config.area[1].x, config.area[2].x do for y = config.area[1].y, config.area[2].y do local pos = {x = x, y = y, z = config.area[1].z} local pid = getTopCreature(pos).uid if pid > 0 then if isPlayer(pid) then doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid))) doPlayerSendTextMessage(pid, MESSAGE_STATUS_CONSOLE_RED, "Você não conseguiu completar a Quest.") else doRemoveCreature(pid) end end end end setGlobalStorageValue(config.storage, os.time() + config.interval * 60) end function checkPlayer() for x = config.area[1].x, config.area[2].x do for y = config.area[1].y, config.area[2].y do local pos = {x = x, y = y, z = config.area[1].z} local pid = getTopCreature(pos).uid if isPlayer(pid) then return true end end end return false end function convert(time) for i = 1, #config.timerPos do doSendAnimatedText(config.timerPos, convert(time).minutes..":"..convert(time).seconds, 215) end end function timer(time) if time < 0 or not checkPlayer() then return true end doSendAnimatedText(config.timerPos, convert(time).minutes..":"..convert(time).seconds, 215) addEvent(timer, 1000, time - 1) end function onUse(cid) if getGlobalStorageValue(config.storage) > os.time() then return doPlayerSendCancel(cid, "Wait "..convert(getGlobalStorageValue(config.storage) - os.time()).minutes.."min and "..convert(getGlobalStorageValue(config.storage) - os.time()).seconds.."secs.") elseif checkPlayer() then return doPlayerSendCancel(cid, "Tem Player fazendo a Quest,Aguarde!.") end local p = {} for _, pos in pairs(config.player) do local pid = getTopCreature(pos[1]).uid if isPlayer(pid) then p[#p + 1] = pid cidPos[pid] = _ end end if #p < #config.player then return doPlayerSendCancel(cid, "Não tem 5 Player necessarios.") end for i = 1, #p do doTeleportThing(p, config.player[cidPos[p]][2]) doPlayerSendTextMessage(p, 27, "Boa sorte!") end for _, pos in pairs(config.monster.pos) do doCreateMonster(config.monster.name, pos) end timer(config.time) addEvent(function() clearArea() end, config.time * 60 * 1000) return true end
-
Creaturescript, Quando monstro morre..
vodkart, funcionou certinho muito obrigado.
-
(Resolvido)[ACTION] erro
consegui arrumar o script, obrigado pela sua ajuda tuners, o script ficou assim para quem futuramente tiver interesse. local toPos = {x = 1375, y = 835, z = 7} --pos para onde o player será teleportado local createPos = {x = 1378, y = 837, z = 7} --pos aonde o teleporte será criado local tpID = 1387 --id do tp. local tempo = 30 -- segundos local function removeTP(pos, id, time) if time == 0 then local item = getTileItemById(pos, id).uid if item > 1 then doRemoveItem(item, 1) doSendAnimatedText(pos, "Closed!", 227) end else doSendAnimatedText(pos, time, 192) addEvent(removeTP, 1000, pos, id, time-1) end end function onUse(cid, item, frompos, item2, topos) local item = getTileItemById(createPos, tpID).uid if item > 1 then return doPlayerSendTextMessage(cid, 27, "o Teleporte ja está aberto!") end doCreateTeleport(tpID, toPos, createPos) removeTP(createPos, tpID, tempo) doPlayerSendTextMessage(cid, 27, "O teleporte foi aberto, ele fechará em 30 segundos!") doTransformItem(item2.uid, (item2.itemid == 1945 and 1946 or 1945)) return true end
-
(Resolvido)[ACTION] erro
tentei, alavanca não se mexe agora mais, toda vez que clica nela aparece agora a mensagem "The teleport already is open!"
-
(Resolvido)[ACTION] erro
falto uma parte no final.. desculpa local toPos = {x = 1375, y = 835, z = 7} --pos para onde o player sera teleportado local createPos = {x = 1378, y = 837, z = 7} --pos aonde o tp sera criado local tpID = 1387 --id do tp, nunca usei um, n sei se eh esse ms... local tempo = 120 --90seg local function removeTP(pos, id, time) if time == 0 then local item = getTileItemById(pos, id).uid if item > 1 then doRemoveItem(item, 1) doSendAnimatedText(pos, "Closed!", 227) end else doSendAnimatedText(pos, time, 192) addEvent(removeTP, 1000, pos, id, time-1) end end function onUse(cid, item, frompos, item2, topos) local item = getTileItemById(createPos, tpID).uid if item then return doPlayerSendTextMessage(cid, 27, "The teleport already is open!") end doCreateTeleport(tpID, toPos, createPos) removeTP(createPos, tpID, tempo) doPlayerSendTextMessage(cid, 27, "O teleporte foi aberto, ele fechará em 30 segundos!") doTransformItem(item.uid, (item.itemid == 1945 and 1946 or 1945)) return true end
-
(Resolvido)[ACTION] erro
Agora o teleporte não aparece, ao puxar alavanca so aparece a msg "The teleport already is open!" no dafault, e não aparece erro no distro.
-
(Resolvido)[ACTION] erro
é uma alavanca, ao ser puxada ela cria um teleporte, com uma contagem regressiva em cima do teleporte (exemplo: 30, 29, 28..), ao ser puxada a alavanca da esse erro acima no distro.
-
(Resolvido)[ACTION] erro
Alguém me ajuda nesse erro? ele está funcionando mais fica dando esse seguinte erro no distro.. [Error - Action Interface ] data/actions/scripts/evento.lua:onUse Description: data/actions/scripts/evento.lua:28: attempt to index local 'item' <a number value> Stack traceback: data/actions/scripts/evento.lua:28: in function <data/action/scripts/evento.lua:19> local toPos = {x = 1375, y = 835, z = 7} --pos para onde o player sera teleportado local createPos = {x = 1378, y = 837, z = 7} --pos aonde o tp sera criado local tpID = 1387 --id do tp, nunca usei um, n sei se eh esse ms... local tempo = 120 --90seg local function removeTP(pos, id, time) if time == 0 then local item = getTileItemById(pos, id).uid if item > 1 then doRemoveItem(item, 1) doSendAnimatedText(pos, "Closed!", 227) end else doSendAnimatedText(pos, time, 192) addEvent(removeTP, 1000, pos, id, time-1) end end function onUse(cid, item, frompos, item2, topos) local item = getTileItemById(createPos, tpID).uid if item > 1 then return doPlayerSendTextMessage(cid, 27, "The teleport already is open!") end
-
Creaturescript, Quando monstro morre..
Olá, alguem poderia me ajudar nesse script, ele funciona certinho sem erros tals. mais eu queria que quando o monstro morresse.. nascesse o teleporte com a contagem regressiva em cima dele( 30, 29, 28...), ficarei muito grato se alguem me ajudasse. creaturescript.. local tpId = 1387 local tps = { ["Zugurosh"] = {pos = {x=1478, y=879, z=7}, toPos = {x=1491, y=874, z=7}, time = 30}, } function removeTp(tp) local t = getTileItemById(tp.pos, tpId) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(tp.pos, CONST_ME_POFF) end end function onDeath(cid) local tp = tps[getCreatureName(cid)] if tp then doCreateTeleport(tpId, tp.toPos, tp.pos) doBroadcastMessage("O Zugurosh foi morto. O teleporte irá desaparecer em "..tp.time.." segundos.", 19) addEvent(removeTp, tp.time*1000, tp) end return TRUE end
-
AJUDA COM COMANDO RANK
Alguem poderia me ajudar nesse comando de !ranks.. queria que o gm, god etc, não aparecesse no rank. talkactions script.. local ranks = { ['fist'] = {0}, ['club'] = {1}, ['sword'] = {2}, ['axe'] = {3}, ['distance'] = {4}, ['shield'] = {5}, ['fish'] = {6}, ['magic'] = {7}, ['level'] = {8}, } function onSay(cid, words, param) local msg = string.lower(param) if ranks[msg] ~= nil then str = getHighscoreString((ranks[msg][1])) else str = getHighscoreString((8)) end doShowTextDialog(cid,6500, str) return TRUE end
- AJUDA REFINAMENTO (ACTION)
- AJUDA REFINAMENTO (ACTION)
-
AJUDA REFINAMENTO (ACTION)
Bom eu uso um sistema de refinar os itens. O problema é que o bow refina, mais o ataque não acrescenta! --Exemplo-- Erro: You see a elvish bow (Range:6, Atk:30, Hit% +35). usei o item e ficou: You see a elvish bow +1 (Range:6, Atk:30, Hit% +35). Correto: You see a elvish bow (Range:6, Atk:30, Hit% +35). Usei o item e ficou: You see a elvish bow +1 (Range:6, Atk:32, Hit% +35). Obs.Testei em outro server e o bow refina perfeitamente aparecendo o ataque, já nesse meu server eu troquei de distro para rev3777 e aparece esse problema.. data/actions/scripts: Spoiler