

markim1986
Artesão-
Total de itens
120 -
Registro em
-
Última visita
Tudo que markim1986 postou
-
Gostaria de saber se existe algum editor para editar o tibia.dat 9.70 para fazer o char andar sobre o fogo usando o mapclick. obrigado
-
dúvida [Encerrado] Zombie Event MOD
tópico respondeu ao markim1986 de markim1986 em Tópicos Sem Resposta
Vou testar e falo. @KiritoEkz ok -
Nome do Script: Zombie Event MOD Tipo do Script: Nao sei! Versão Utilizada: 8.60 Servidor Utilizado: TheLostServer Nível de Experiência: Complicado. Informações Extras: -- To com esse evento só que esta com um problema, ele inicia normalmente, mas quando eu falo !zombie não acontece nada, ele nao me manda para a area do evento, alguem sabe como resolver? Obs: Esse evento em mod axo que é novidade Abraçossss <?xml version='1.0' encoding='UTF-8'?> <mod name='Zombie Event' version='2.0' author='Oskar' contact='http://tibia.net.pl/members/oskar.html' enabled='yes'> <config name='zombieEvent_conf'><![CDATA[ ZE_REWARDS = { random = false, rew = {2160,5,2645,1} } rewards = { [60] = { {8306, 1}, {"crystal coin",40}, {12466, 3} }, [25] = { {"crystal coin",60}, {12466, 5} }, [15] = { {"crystal coin",100}, {11144, 1}, {5795, 1}, {12466, 10}, {9004, 1}, {9693, 1}, {12659, 1}} } ZE_MAX_PLAYERS = 2 --number of player how much is need to start event ZE_MIN_PLAYERS = 1 ZE_ACCESS_TO_IGNORE_ARENA = 3 timeOnJoinToEvent = 3 --in minutes -- POSITIONS ZE_kickPosition = {x=1050,y=1080,z=7} ZE_enterPosition = {x=1124,y=1052,z=7} ZE_centerRoomPosition = {x=1124,y=1052,z=7} ZE_rX_rY = {22,18} ZE_STATUS = 13300 maxTime=3 ZOMBIE = { ['horned mutant'] = {20,1}, ['vile centurion'] = {15,2}, ['daidalost'] = {10,4}, ['mongrel man'] = {5,8}, ['propell zombie'] = {2,16}, ['scrathclaw'] = {1,32} } ZOMBIES = {} for k, v in pairs(ZOMBIE) do table.insert(ZOMBIES, k) end function chooseMonster() local monster = false for k, v in pairs(ZOMBIE) do monster = monster or (math.random(100) <= v[1] and k or false) end return monster or chooseMonster() end function isWalkable(pos, creature, proj, pz) if getTileThingByPos({x=pos.x,y=pos.y,z=pos.z,stackpos=0}).itemid == 0 then return false end if getTopCreature(pos).uid > 0 and creature then return false end if getTileInfo(pos).protection and pz then return false, true end local n = not proj and 3 or 2 for i = 0, 255 do pos.stackpos = i local tile = getTileThingByPos(pos) if tile.itemid ~= 0 and not isCreature(tile.uid) then if hasProperty(tile.uid, n) or hasProperty(tile.uid, 7) then return false end end end return true end function getPlayerZombiesEventStatus(cid) return getCreatureStorage(cid, ZE_STATUS) end function setPlayerZombiesEventStatus(cid, value) doCreatureSetStorage(cid, ZE_STATUS, value) end function getZombiesEventPlayers() local players = {} for _, cid in pairs(getPlayersOnline()) do if getPlayerZombiesEventStatus(cid) == 1 then table.insert(players, cid) end end if players then return players else return false end end function kickPlayerFromZombiesArea(cid) doSendMagicEffect(getThingPosition(cid), CONST_ME_TELEPORT) doTeleportThing(cid, ZE_kickPosition, false, true) doSendMagicEffect(getThingPosition(cid), CONST_ME_TELEPORT) return setPlayerZombiesEventStatus(cid, 0) end function getPercent() rand= math.random(1,100) prev = 0 chosenItem = 0 for k, v in pairs(rewards) do if rand > prev and rand <= k+prev then chosenItem = k break else prev = k+prev end end return chosenItem end function giveReward(cid) percent = getPercent() randomizer = rewards[percent][math.random(1,#rewards[percent])] item = not tonumber(randomizer[1]) and getItemIdByName(randomizer[1]) or randomizer[1] count = isItemStackable(item) and math.min(randomizer[2],100) or 1 msg = "You have won ".. (count == 1 and "a" or count) .." " .. getItemNameById(item) .. "" .. (count == 1 and "" or "s").."." doBroadcastMessage(getPlayerName(cid).." have won ".. (count == 1 and "a" or count) .." " .. getItemNameById(item) .. "" .. (count == 1 and "" or "s")..".") doPlayerAddItem(cid,item,count) doPlayerSendTextMessage(cid,MESSAGE_TYPES["white"],msg) end function LessTime() if getStorage(ZE_STATUS) ~= 1 then return true end if #getZombiesEventPlayers() >= ZE_MIN_PLAYERS then doSetStorage(ZE_STATUS, 2) spawnNewZombie() for _, v in ipairs(getZombiesEventPlayers()) do addPlayerToZombiesArea(v) doCreatureSetNoMove(v, false) end doBroadcastMessage('Zombie Event is started!') return true else doBroadcastMessage("Zombie Event was cancelled because less than "..ZE_MIN_PLAYERS.." players joined.") doSetStorage(ZE_STATUS, 1) end end function loseOnZombieArena(cid) local players, msg = getZombiesEventPlayers(), '' doCreatureSetStorage(cid, ZE_STATUS+1, 0) kickPlayerFromZombiesArea(cid) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You are dead.') if(#getZombiesEventPlayers() <= 1) then local winner = getZombiesEventPlayers()[1] or players[1] if winner then giveReward(winner) doPlayerSendTextMessage(winner, MESSAGE_STATUS_CONSOLE_BLUE, 'You won zombie event.') msg = getCreatureName(winner) .. ' won Zombie Event' kickPlayerFromZombiesArea(winner) if getSpectators(ZE_centerRoomPosition, ZE_rX_rY[1], ZE_rX_rY[2]) then for _, v in ipairs(getSpectators(ZE_centerRoomPosition, ZE_rX_rY[1], ZE_rX_rY[2])) do if isMonster(v) then doRemoveThing(v) end end end else msg = 'Zombie event finished! No one win!' end doSetStorage(ZE_STATUS, 0) end doBroadcastMessage(msg) return true end function addPlayerToZombiesArea(cid) doSendMagicEffect(getThingPosition(cid), CONST_ME_TELEPORT) doTeleportThing(cid, ZE_enterPosition, false, true) doSendMagicEffect(getThingPosition(cid), CONST_ME_TELEPORT) if getPlayerAccess(cid) < ZE_ACCESS_TO_IGNORE_ARENA then setPlayerZombiesEventStatus(cid, 1) end return true end function spawnNewZombie(fromPosition, n) local n, pos = n or 0, {x = ZE_centerRoomPosition.x + math.random(-ZE_rX_rY[1],ZE_rX_rY[1]), y = ZE_centerRoomPosition.y + math.random(-ZE_rX_rY[2],ZE_rX_rY[2]), z = ZE_centerRoomPosition.z} if isWalkable(pos, true, true, true) then local monster = chooseMonster() local cid = doCreateMonster((monster == '' and 'horned mutant' or monster), pos, false, false, false) doSendMagicEffect(pos, CONST_ME_MORTAREA) return (isMonster(cid) and registerCreatureEvent(cid, 'zombieEventDeath') and registerCreatureEvent(cid, 'zombieEventThink')) and (fromPosition and doSendDistanceShoot(fromPosition, pos, CONST_ANI_SUDDENDEATH) or true) end return (n < 200 and spawnNewZombie(fromPosition, n+1) or true) end function getExhausted(cid, storage) return os.time() >= getCreatureStorage(cid, storage) and true or false end function setExhausted(cid, storage, cooldown) return doCreatureSetStorage(cid, storage, os.time() + cooldown) end function LessTime() if getStorage(ZE_STATUS) ~= 1 then return true end if #getZombiesEventPlayers() >= ZE_MIN_PLAYERS then doSetStorage(ZE_STATUS, 2) spawnNewZombie() for _, v in ipairs(getZombiesEventPlayers()) do addPlayerToZombiesArea(v) doCreatureSetNoMove(v, false) end doBroadcastMessage('Zombie Event is started!') return true else doBroadcastMessage("Zombie Event was cancelled because less than "..ZE_MIN_PLAYERS.." players joined.") doSetStorage(ZE_STATUS, 1) end end ]]></config> <event type='death' name='zombieEventDeath' event='script'><![CDATA[ domodlib('zombieEvent_conf') function onDeath(cid) for i = 1, math.random(1,4) do spawnNewZombie(getThingPos(cid)) end doSendMagicEffect(getThingPos(cid), CONST_ME_MORTAREA) return doCreatureSay(cid, 'I\'ll be back!', TALKTYPE_ORANGE_1) end ]]></event> <event type='statschange' name='zombieEventStatsChange' event='script'><![CDATA[ domodlib('zombieEvent_conf') function onStatsChange(target, cid, changetype, combat, value) if isMonster(cid) and isPlayer(target) and isInArray(ZOMBIES, getCreatureName(cid):lower()) and changetype == STATSCHANGE_HEALTHLOSS and math.abs(value) >= getCreatureHealth(target) then doCreatureAddHealth(target, getCreatureMaxHealth(target)) return loseOnZombieArena(target) and false end return true end ]]></event> <globalevent name='zombieStart' type='start' event='script'><![CDATA[ domodlib('zombieEvent_conf') function onStartup() return doSetStorage(ZE_STATUS, 0) end ]]></globalevent> <moveevent type='stepIn' uniqueid='3000' event='script'><![CDATA[ domodlib('zombieEvent_conf') function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) local msg = '' if isPlayer(cid) then if getCreatureCondition(cid, CONDITION_INFIGHT) and getPlayerAccess(cid) <= ZE_ACCESS_TO_IGNORE_ARENA then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You are in PZ!') end if getPlayerAccess(cid) > ZE_ACCESS_TO_IGNORE_ARENA then if getStorage(ZE_STATUS) ~= 1 then doSetStorage(ZE_STATUS, 1) addEvent(LessTime, 1000*60*maxTime) for i=1, maxTime-1 do addEvent(doBroadcastMessage,1000*60*i,(maxTime-i)..' minutes to Zombie Arena Event started. If you want join to event say !zombie join or enter the teleport in depot. We wait on '..ZE_MAX_PLAYERS..' players.') end doBroadcastMessage('Zombie Arena Event is started. If you want join to event say !zombie join or enter the teleport in depot. We wait on '..ZE_MAX_PLAYERS..' players.') end return addPlayerToZombiesArea(cid) elseif #getZombiesEventPlayers() < ZE_MAX_PLAYERS and getStorage(ZE_STATUS) == 1 then setPlayerZombiesEventStatus(cid, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You are player of number '..#getZombiesEventPlayers()..', which join to event.') if #getZombiesEventPlayers() == ZE_MAX_PLAYERS then doSetStorage(ZE_STATUS, 2) spawnNewZombie() for _, v in ipairs(getZombiesEventPlayers()) do addPlayerToZombiesArea(cid) end msg = 'Zombie Event is started.' else msg = getCreatureName(cid) .. ' has entered a Zombie Arena. We still need ' .. ZE_MAX_PLAYERS - players_on_arena_count .. ' players.' end return (msg ~= '' and doBroadcastMessage(msg) or true) else return doTeleportThing(cid, fromPosition, false, true) and doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Arena is full.') end end return true end ]]></moveevent> <talkaction words='!zombie' event='script'><![CDATA[ domodlib('zombieEvent_conf') function onSay(cid, words, param, channel) local msg = '' if param:lower() == 'join' then if getCreatureCondition(cid, CONDITION_INFIGHT) and getPlayerAccess(cid) <= ZE_ACCESS_TO_IGNORE_ARENA then return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You are in PZ!') end if getPlayerAccess(cid) > ZE_ACCESS_TO_IGNORE_ARENA then if getStorage(ZE_STATUS) ~= 1 then doSetStorage(ZE_STATUS, 1) addEvent(LessTime, 1000*60*maxTime) for i=1, maxTime-1 do addEvent(doBroadcastMessage,1000*60*i,(maxTime-i)..' minutes to Zombie Arena Event started. If you want join to event say !zombie join or enter the teleport in depot. We wait on '..ZE_MAX_PLAYERS..' players.') end doBroadcastMessage('Zombie Arena Event is started. If you want join to event say !zombie join or enter the teleport in depot. We wait on '..ZE_MAX_PLAYERS..' players.') end return addPlayerToZombiesArea(cid) elseif #getZombiesEventPlayers() < ZE_MAX_PLAYERS and getStorage(ZE_STATUS) == 1 then doCreatureSetNoMove(cid, true) setPlayerZombiesEventStatus(cid, 1) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You are player of number '..#getZombiesEventPlayers()..', which join to event.') if #getZombiesEventPlayers() == ZE_MAX_PLAYERS then doSetStorage(ZE_STATUS, 2) spawnNewZombie() for _, v in ipairs(getZombiesEventPlayers()) do addPlayerToZombiesArea(v) doCreatureSetNoMove(v, false) end msg = 'Zombie Event is started.' else msg = getCreatureName(cid) .. ' has entered a Zombie Arena. We still need more players.' end doBroadcastMessage(msg) return true else doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'Arena is full.') return true end elseif param:lower() == 'leave' then if getStorage(ZE_STATUS) < 2 then setPlayerZombiesEventStatus(cid, 0) return doCreatureSetNoMove(cid, false) end return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, 'You are on arena.') end return true end ]]></talkaction> <globalevent name="zombieTime" time="21:47" event="script"><![CDATA[ domodlib("zombieEvent_conf") function onTimer() doSetStorage(ZE_STATUS, 1) addEvent(LessTime, 1000*60*maxTime) for i=1, maxTime-1 do addEvent(doBroadcastMessage,1000*60*i,(maxTime-i)..' minutes to Zombie Arena Event started. If you want join to event say !zombie join or enter the teleport in depot. We wait on '..ZE_MAX_PLAYERS..' players.') end return doBroadcastMessage('Zombie Arena Event is started. If you want join to event say !zombie join or enter the teleport in depot. We wait on '..ZE_MAX_PLAYERS..' players.') end ]]></globalevent> <event type="login" name="zombieEventLogin" event="buffer"><![CDATA[ domodlib("zombieEvent_conf") function onLogin(cid) registerCreatureEvent(cid, 'zombieEventStatsChange') return true end ]]></event> </mod>
-
amigao aqui ta ruin, ele nao respeita o quando voce esta em battle, ele sempre volta pro templo, abraços
-
[GESIOR] VictorWEBMaster 2019v
tópico respondeu ao VictorWEBMaster de markim1986 em Websites & Layouts
previsao para atualizacao do site? -
[Encerrado] Problema com semi-dedicado
tópico respondeu ao markim1986 de markim1986 em Tópicos Sem Resposta
Ligar ela pelo painel? hehehe agora me pego, nao sei como faço isso Agradeço desde ja pela resposta! Perfeito era isso mesmo, mandei conectar no primeiro e foi com sucesso, Rep+ agora ja sei quando der isso vai ser moleza pra arrumar, grande abraço! -
sistema Arena Sobrevivencia Event System
tópico respondeu ao drakylucas de markim1986 em Mods, funções e outros
Aqui funciona 99%, o evento faz de boa entrega os itens mas da esse erro [27/01/2013 18:45:13] [Error - MoveEvents Interface] [27/01/2013 18:45:13] In a timer event called from: [27/01/2013 18:45:13] buffer:onStepIn [27/01/2013 18:45:13] Description: [27/01/2013 18:45:13] (luaDoCreateMonster) Cannot create monster: Ferumbras Com relação ao player ficar travado la, é so colocar um teleporte de volta e usar um script de area para travar o mesmo se houver monstros na area. -
Aqui deu erro quando loga o char [27/01/2013 15:30:43] Lipee has logged in. [27/01/2013 15:30:43] [Error - CreatureScript Interface] [27/01/2013 15:30:43] data/creaturescripts/scripts/mens.lua:onLogin [27/01/2013 15:30:43] Description: [27/01/2013 15:30:43] data/lib/mensagens.lua:10: attempt to index local 'msg' (a nil value) [27/01/2013 15:30:43] stack traceback: [27/01/2013 15:30:43] data/lib/mensagens.lua:10: in function 'getPlayerMgs' [27/01/2013 15:30:43] data/creaturescripts/scripts/mens.lua:2: in function <data/creaturescripts/scripts/mens.lua:1> [27/01/2013 15:30:43] Lipee has logged out.
- 8 respostas
-
- mensagens off
- sistema de mensagens off
- (e 5 mais)
-
Meu problema é que de vez em quando eu entro no meu semi-dedicado e ele abre como se estivese sido reiniciado, ex: Eu entro no dedicado e coloco o server online, xammp, No-IP, tudo certinho ai eu fecho a tela de area de trabalho remota, em algum momemento quando eu tento abrir novamente o semi-dedicado, ele vem como se estivese sido reiniciado, porem os programas que eu abrir antes estao rodando normalmente (otserv continua on). O problema só é resolvido quando e reinicio o sistema operancional (ai fecha o otserv) e o mesmo volta ao normal ate acontecer o problema exposto acima novamente. Alguem ja teve esse tipo de problema?
-
pedido Script de alavanca onde apareça monstro e gaste dinheiro
pergunta respondeu ao markim1986 de markim1986 em Scripts
Muito obrigado pessoal. Script Pefeito podem fechar o topic! Brun123, You have reached your quota of positive votes for the day Amanha lhe dou REP+ -
Ring para dar atributos para todas as classes separadamente
um tópico no fórum postou markim1986 Lixeira Pública
Nome do Script: Ring para dar atributos para todas as classes separadamente Tipo do Script: Nao sei! Versão Utilizada: 8.60 Servidor Utilizado: TheLostServer Nível de Experiência: Inciante/Médio Informações Extras: -- Gostaria de um script aonde o ring X dese X de ml, club, sword, dist e axe mas o mesmo fose separado por classes, ou seja: Knight Equipar - Vai ganhar 50 de Club, Sword, e Axe. Sorcerer e Druid - Vai ganhar 50 de ML. Paladins - Vai ganhar 50 de Dist. Agradeço desde Ja! -
pedido Script para vender itens por comando
pergunta respondeu ao markim1986 de markim1986 em Scripts
Obrigado Rep+ Podem mover o topic! Acabo Rep+ Amanha vou dar, abraços -
pedido Script para vender itens por comando
pergunta respondeu ao markim1986 de markim1986 em Scripts
Opa to testando aki, teria como colocar uma mensagem quando nao houver item para vender? ex O player nao tem item algum para vender e faz o comando, ai viria uma mensagem 'Voce nao tem itens para vender" e esta mensagem viese como akelas que vem no spell of book, incluive essas que vem no defaut como esta "19:25 Sold demon shield for 40000 gold." Segue imagem abaixo de exemplo. Obrigadoooooooooo!! -
pedido Script para vender itens por comando
pergunta respondeu ao markim1986 de markim1986 em Scripts
Rapaz, sou muito iniciante, aonde eu crio esse script e como é a tag? Obrigado brother! -
pedido Script de Teleport quando o monstro na area "x" a "y" estiver mortos.
pergunta respondeu ao markim1986 de markim1986 em Scripts
Perfeito meu amigo, Rep+ Muito Obrigado e se possivel voce puder me ajudar neste script http://www.xtibia.co...__fromsearch__1 Podem mover o topic -
pedido Script de Teleport quando o monstro na area "x" a "y" estiver mortos.
pergunta respondeu ao markim1986 de markim1986 em Scripts
Agora da esse erro e nao trava o teleporte mesmo estando o bixo na area! [18/01/2013 00:27:11] [Error - MoveEvents Interface] [18/01/2013 00:27:11] data/movements/scripts/travarespow.lua:onStepIn [18/01/2013 00:27:11] Description: [18/01/2013 00:27:11] data/movements/scripts/travarespow.lua:25: attempt to call method 'lower' (a nil value) [18/01/2013 00:27:11] stack traceback: [18/01/2013 00:27:11] data/movements/scripts/travarespow.lua:25: in function <data/movements/scripts/travarespow.lua:9> Mesmo substituindo essa linha que vc disse nos posts acima addEvent(doTeleportThing, 5, cid, fromPosition, true -
pedido Script de Teleport quando o monstro na area "x" a "y" estiver mortos.
pergunta respondeu ao markim1986 de markim1986 em Scripts
Realmente tinha sido erro meu, mas ainda pesiste o erro: [17/01/2013 21:34:29] [Error - MoveEvents Interface] [17/01/2013 21:34:29] data/movements/scripts/travarespow.lua:onStepIn [17/01/2013 21:34:29] Description: [17/01/2013 21:34:29] data/movements/scripts/travarespow.lua:22: attempt to call method 'lower' (a nil value) [17/01/2013 21:34:29] stack traceback: [17/01/2013 21:34:29] data/movements/scripts/travarespow.lua:22: in function <data/movements/scripts/travarespow.lua:9> o mesmo acontece quando o cave rat esta na area ou seja, quando esta somente o Rat eu nao passo no teleport, quando esta somente o Cave Rat eu passo no teleporte e vem o erro esposto acima! -
pedido Script de Teleport quando o monstro na area "x" a "y" estiver mortos.
pergunta respondeu ao markim1986 de markim1986 em Scripts
Esse erro quando inicia o server. [17/01/2013 20:51:04] [Error - LuaScriptInterface::loadFile] data/movements/scripts/travarespow.lua:22: function arguments expected near '==' [17/01/2013 20:51:04] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/travarespow.lua) [17/01/2013 20:51:04] data/movements/scripts/travarespow.lua:22: function arguments expected near '==' [17/01/2013 20:51:04] Reloaded movements. -
pedido Script de Teleport quando o monstro na area "x" a "y" estiver mortos.
pergunta respondeu ao markim1986 de markim1986 em Scripts
Deu erro na hora de iniciar o server, segue o mesmo abaixo: [17/01/2013 20:19:53] [Error - LuaScriptInterface::loadFile] data/movements/scripts/travarespow.lua:4: '}' expected (to close '{' at line 2) near 'toPosition' [17/01/2013 20:19:53] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/travarespow.lua) [17/01/2013 20:19:53] data/movements/scripts/travarespow.lua:4: '}' expected (to close '{' at line 2) near 'toPosition' [17/01/2013 20:19:53] Reloaded movements. -
pedido Script de Teleport quando o monstro na area "x" a "y" estiver mortos.
pergunta respondeu ao markim1986 de markim1986 em Scripts
Perfeito so uma ultima coisa como faço para colocar essa proteção para mais monstros ex: creatureName = "Rat" Como seria pra adicionar uma proteção de Rat e Cave Rat? -
pedido Script de alavanca onde apareça monstro e gaste dinheiro
pergunta respondeu ao markim1986 de markim1986 em Scripts
Perfeito, so gotaria que direcionase os bixos por ex: Nascer 1 numa ponta e outro na outra (configuravel XYZ) Obrigado! -
pedido Script de alavanca onde apareça monstro e gaste dinheiro
pergunta respondeu ao markim1986 de markim1986 em Scripts
Amigo so esta sumonando 1 bixo e esta dando este erro : [17/01/2013 19:28:18] [Error - Action Interface] [17/01/2013 19:28:18] data/actions/scripts/summonMonster.lua:onUse [17/01/2013 19:28:18] Description: [17/01/2013 19:28:18] data/actions/scripts/summonMonster.lua:46: bad argument #1 to 'insert' (table expected, got nil) [17/01/2013 19:28:18] stack traceback: [17/01/2013 19:28:18] [C]: in function 'insert' [17/01/2013 19:28:18] data/actions/scripts/summonMonster.lua:46: in function <data/actions/scripts/summonMonster.lua:3> Vlw tbm por esta ajudando -
pedido Script de alavanca onde apareça monstro e gaste dinheiro
pergunta respondeu ao markim1986 de markim1986 em Scripts
KKKKKKKKKKKKKKKKKK Verdade cara, olha ta dando esse erro agora [08/01/2013 16:30:43] [Error - Action Interface] [08/01/2013 16:30:43] data/actions/scripts/a.lua:onUse [08/01/2013 16:30:43] Description: [08/01/2013 16:30:43] data/actions/scripts/a.lua:7: attempt to compare number with boolean [08/01/2013 16:30:43] stack traceback: [08/01/2013 16:30:43] data/actions/scripts/a.lua:7: in function <data/actions/scripts/a.lua:6> Vlw pelo seu tempo -
pedido Script de Teleport quando o monstro na area "x" a "y" estiver mortos.
pergunta respondeu ao markim1986 de markim1986 em Scripts
Cara acabei de testar O portal ja esta criando com a coordenada para ir em bora e com o actrionID "20054" e o portal esta acessível com ou sem bixo na area, segue os scripts adicionados. TP.lua local areas = { [1] = { fromPosition = {x = 1522, y = 1026, z = 7}, -- upper-left sqm toPosition = {x = 1535, y = 1034, z = 7}, -- lower-right sqm creatureName = "Rat" } }[/size][/color] [color="#282828"][size=2]function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor) local pass = true for _, area in ipairs(areas) do local x = {min = math.min(area.fromPosition.x, area.toPosition.x), max = math.max(area.fromPosition.x, area.toPosition.x)} local y = {min = math.min(area.fromPosition.y, area.toPosition.y), max = math.max(area.fromPosition.y, area.toPosition.y)}[/size][/color] [color="#282828"][size=2] local width = ((x.max - x.min) / 2) + 1 local lenght = ((y.max - y.min) / 2) + 1[/size][/color] [color="#282828"][size=2] local center = {x = x.min + width, y = y.min + lenght, z = area.fromPosition.z} local specs = getSpectators(center, width, lenght, false) if specs then for _, cn in ipairs(specs) do if getCreatureName(cn):lower() == area.creatureName:lower() then pass = false break end end end end[/size][/color] [color="#282828"][size=2] if pass == false then doPlayerSendCancel(cid, "Sorry, you need to kill all the monsters in the area to pass.") doTeleportThing(cid, fromPosition, true) end return true end Moviments.xml <movevent type="StepIn" actionid="20054" event="script" value="tp.lua"/> -
pedido Script de alavanca onde apareça monstro e gaste dinheiro
pergunta respondeu ao markim1986 de markim1986 em Scripts
Blz cara agora o lance é o seguinte, se a pessoa fica floodando na alavanca da esse erro: [08/01/2013 14:43:13] [Error - Action Interface] [08/01/2013 14:43:13] data/actions/scripts/a.lua:onUse [08/01/2013 14:43:13] Description: [08/01/2013 14:43:13] (luaGetThingPosition) Thing not found Acredito que seja pq o monstro nao tem lugar para nascer ai fica nascendo um em cima do outro, por isso da esse erro! Se possivel voce puder colocar um tempo para que o player nao possa fica floodando a alavanca por exemplo: Quando o player clickar rapido na alavanca vir a mensagem "voce nao pode floodar", aonde somente de 2 em 2 segundos a mesma pode ser puxada!
-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.