Tudo que mateusmoretti postou
-
Agrupar Dinheiro!
Olá Galera do tibia king!! boa tarde, bom estou criando esse post por uma duvida!!!, Minha Duvida e essa: Eu tava jogando um ot, que o proprio ot junta o dinheiro quando voce arrastar!, vamos Supor um bixo dropa 20 Crystal Coins e mais 30 Crystal Coins! ai se voce joga pra backpack. vai ficar 20 + 30. ai depois voce tem que juntar! Sendo que o proprio server ja junto os trasnformando para 50 sem eu precisar ficar arrastando!!!! Sera que en a SOurces ou no proprio TFS do servidor??? Desde de ja agradeço se alguem poder ajudar!!!
-
Evento que da XP
Colocoquei todas as pastas!!!!
-
Evento que da XP
- Evento que da XP
Alguem pode me da uma força, meu servido agora não ta aparecendo o portal para o evento!, mais toda vez que uso o comando /battlefield 20 fala que o teleport ja está criado mais não aparece o teleport no servidor!!! Batlefield battlefield = { storage = 201206300801, storage2 = 201206300802, tpPos = {x=168, y=45, z=7}, -- aonde aparecerá o teleport pos_team_1 = {x=82,y=1362,z=8}, -- posição do team 1 (do lado direito) pos_team_2 = {x=126,y=1362,z=8}, -- posição do team 2 (do lado esquerdo) spectors = {{x=113,y=1352,z=6},{x=113,y=1368,z=6},{x=129,y=1368,z=6},{x=129,y=1353,z=6}}, -- aonde aparecerá os espectadores (em volta do battlefield) team1Name = "Black Assassins", team2Name = "Red Barbarians", } function doBroadCastBattle(type,msg) for _, cid in pairs(getPlayersOnline()) do if getPlayerStorageValue(cid, battlefield.storage2) ~= -1 then doPlayerSendTextMessage(cid,type,msg) end end return true end function removeTp() local t = getTileItemById(battlefield.tpPos, 1387) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(battlefield.tpPos, CONST_ME_POFF) end end function OpenWallBattle() local x = true local B = { [1] = {1056,{x=121, y=1359, z=6, stackpos = 1}}, -- posição da barreira [2] = {1056,{x=121, y=1360, z=6, stackpos = 1}}, -- posição da barreira [3] = {1056,{x=121, y=1361, z=6, stackpos = 1}}, -- posição da barreira [4] = {1056,{x=121, y=1362, z=6, stackpos = 1}} -- posição da barreira } for i = 1, #B do if getTileItemById(B[2], B[1]).uid == 0 then x = false end if x == true then doRemoveItem(getThingfromPos(B[2]).uid,1) else doCreateItem(B[1], 1, B[2]) end end end function getWinnersBattle(storage) local team = storage == 1 and battlefield.team1Name or battlefield.team2Name doBroadcastMessage("Players from team ".. team .." won the event battlefield,they received a Master Surprise Bag!") setGlobalStorageValue(battlefield.storage, -1) removeTp() OpenWallBattle() for _, cid in pairs(getPlayersOnline()) do if getPlayerStorageValue(cid, battlefield.storage2) ~= -1 then doRemoveCondition(cid, CONDITION_OUTFIT) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) if getPlayerStorageValue(cid, battlefield.storage2) == storage then doPlayerAddItem(cid,6567,1) doPlayerAddExp(cid,10000000) end setPlayerStorageValue(cid, battlefield.storage2, -1) end end end- Evento que da XP
hm, então menos mal!! obrigado pela ajuda pessoal o outro também não vai adiantar muito porque so 1 pessoa ira ganhar xp, so 1 pessoa mata o arcanjo então não da certo!!!!- (Resolvido)Invasao diferente
vou mandar do bixo! e voçe ve se esta certo!!! <?xml version="1.0" encoding="UTF-8"?> <monster name="King Booss" nameDescription="a king booss" race="fire" experience="10" speed="530" manacost="10000"> <health now="1500000" max="1500000"/> <look type="332" corpse="5995"/> <targetchange interval="5000" chance="8"/> <strategy attack="90" defense="10"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <script> <event name="invasion"/> </script> <attacks> <attack name="melee" interval="1000" skill="100" attack="110"/> <attack name="manadrain" interval="2000" chance="13" range="7" min="4000" max="-5400"/> <attack name="fire" interval="2000" chance="30" range="7" radius="7" target="1" min="-5300" max="-5550"> <attribute key="shootEffect" value="fire"/> <attribute key="areaEffect" value="firearea"/> </attack> <attack name="lifedrain" interval="1000" chance="12" length="8" spread="0" min="-4400" max="-5960"> <attribute key="areaEffect" value="purpleenergy"/> </attack> <attack name="speed" interval="2000" chance="15" target="1" speedchange="-4750" duration="5900"> <attribute key="shootEffect" value="suddendeath"/> </attack> <attack name="energy" interval="3000" chance="10" range="1" target="1" min="-4500" max="-5900"> <attribute key="areaEffect" value="purpleenergy"/> </attack> </attacks> <defenses armor="55" defense="55"> <defense name="healing" interval="2000" chance="15" min="900" max="5000"> <attribute key="areaEffect" value="blueshimmer"/> </defense> <defense name="speed" interval="1000" chance="8" speedchange="290" duration="5000"> <attribute key="areaEffect" value="redshimmer"/> </defense> </defenses> <elements> <element physicalPercent="30"/> <element energyPercent="50"/> <element earthPercent="20"/> <element icePercent="-15"/> <element holyPercent="-15"/> <element deathPercent="20"/> </elements> <immunities> <immunity fire="1"/> <immunity drown="1"/> <immunity paralyze="1"/> <immunity invisible="1"/> </immunities> <summons maxSummons="2"> <summon name="Ferumbras" interval="1000" chance="12"/> <summon name="bazir" interval="1000" chance="12"/> <summon name="witch" interval="1000" chance="12"/> <summon name="ice witch" interval="1000" chance="12"/> </summons> <voices interval="5000" chance="10"> <voice sentence="This is my Castle" yell="1"/> <voice sentence="LEAVE!" yell="1"/> <voice sentence="Attack ! Soldiers!" yell="1"/> <voice sentence="I am King of Baiak! Leave Now!"/> <voice sentence="DOOOWWN" yell="0"/> </voices> <loot> <item id="10521" chance="100000"> <inside> <item id="7440" chance="1800"/> -- warrior helmet <item id="2159" countmax="100" chance="1000000000"/> <item id="10311" chance="3800"/> --fire axe </inside> </item> </loot> </monster>- (Resolvido)Invasao diferente
Obrigado Caronte, funcionou tudo certo, tanto evento nascer o bixo!!, so que quando mata ele o teleport não aparece!!] [17/08/2015 12:16:11] [Error - CreatureScript Interface] [17/08/2015 12:16:11] data/creaturescripts/scripts/diferentinvasion.lua:onDeath [17/08/2015 12:16:11] Description: [17/08/2015 12:16:11] (luaDoRemoveItem) Item not found [17/08/2015 12:16:11] > Broadcasted message: "O BOSS FOI MORTO !".- Evento que da XP
Creio que não tem Caronte,! queria adicionar e onde colocar para que funciona nos 3!!!- Evento que da XP
ADicionar a função que assim que o evento acabar, ganhar 1,000,000,00 de exp para todos jogadores que participaram- (Resolvido)Invasao diferente
- Evento que da XP
Bom dia pessoal!! Bom, meu servidor de tibia tem 3 eventos!, BloodCastle Battlefield City War Bom nesse 3 eventos, esta para acontecer sozim, e varios horario 1 vez por dia!! oque eu estou procurando e uma função. que seguinte, nesses evento ao termina todos os jogadores que participou ganham 1,000,000,00 de exp e um item surpresa!! iten surpresa e 6567, antigo santa doll!!! Batlefield battlefield = { storage = 201206300801, storage2 = 201206300802, tpPos = {x=168, y=45, z=7}, -- aonde aparecerá o teleport pos_team_1 = {x=82,y=1362,z=8}, -- posição do team 1 (do lado direito) pos_team_2 = {x=126,y=1362,z=8}, -- posição do team 2 (do lado esquerdo) spectors = {{x=113,y=1352,z=6},{x=113,y=1368,z=6},{x=129,y=1368,z=6},{x=129,y=1353,z=6}}, -- aonde aparecerá os espectadores (em volta do battlefield) team1Name = "Black Assassins", team2Name = "Red Barbarians", } function doBroadCastBattle(type,msg) for _, cid in pairs(getPlayersOnline()) do if getPlayerStorageValue(cid, battlefield.storage2) ~= -1 then doPlayerSendTextMessage(cid,type,msg) end end return true end function removeTp() local t = getTileItemById(battlefield.tpPos, 1387) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(battlefield.tpPos, CONST_ME_POFF) end end function OpenWallBattle() local x = true local B = { [1] = {1056,{x=121, y=1359, z=6, stackpos = 1}}, -- posição da barreira [2] = {1056,{x=121, y=1360, z=6, stackpos = 1}}, -- posição da barreira [3] = {1056,{x=121, y=1361, z=6, stackpos = 1}}, -- posição da barreira [4] = {1056,{x=121, y=1362, z=6, stackpos = 1}} -- posição da barreira } for i = 1, #B do if getTileItemById(B[2], B[1]).uid == 0 then x = false end if x == true then doRemoveItem(getThingfromPos(B[2]).uid,1) else doCreateItem(B[1], 1, B[2]) end end end function getWinnersBattle(storage) local team = storage == 1 and battlefield.team1Name or battlefield.team2Name doBroadcastMessage("Players from team ".. team .." won the event battlefield,they received a Master Surprise Bag!") setGlobalStorageValue(battlefield.storage, -1) removeTp() OpenWallBattle() for _, cid in pairs(getPlayersOnline()) do if getPlayerStorageValue(cid, battlefield.storage2) ~= -1 then doRemoveCondition(cid, CONDITION_OUTFIT) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) if getPlayerStorageValue(cid, battlefield.storage2) == storage then doPlayerAddItem(cid,6567,1) doPlayerAddExp(cid,10000000) end setPlayerStorageValue(cid, battlefield.storage2, -1) end end end Blood Castle -- == Blood Castle Event por Killua == -- bloodconfig = { templo = {x = 155, y = 52, z = 7}, -- templo posGuarda = {x = 343, y = 822, z = 7}, -- Onde o guarda do portão vai nascer premios = {{6567, 1}, {2160, 100}}, -- Premios que o vencedor vai ganhar {id, quantidade} positionTP = {x = 168, y = 47, z = 7}, -- Onde o tp será criado positionEvento = {x = 343, y = 861, z = 7}, -- Para onde o tp vai levar tempoTP = 2, -- Depois de quanto tempo que avisou vai ser criado o tp? Em minutos tempoAberto = 5, -- Tempo que o tp fica aberto. Em minutos minPlayers = 3, -- Número mínimo de players que devem entrar para que o evento aconteça tempoMaximo = 40, -- Tempo máximo, em minutos, que alguem pode permanecer no evento playersStorage = 54910, -- Não mude posPedras = {{x = 341, y = 857, z = 7, stackpos=1}, {x = 342, y = 857, z = 7, stackpos=1}, {x = 343, y = 857, z = 7, stackpos=1}, {x = 344, y = 857, z = 7,stackpos=1}, {x = 345, y = 857, z = 7, stackpos=1}}, -- Posições das pedras que bloqueiam a entrada do evento idDasParedes = 3368, -- ID das paredes que vao ser removidas quando o Guarda morrer (todas devem ter o mesmo id) estatua = {x = 343, y = 804, z = 7}, -- Posicao onde o arcanjo vai ser criado tempoSaida = 70, -- Quando tempo o tp q é criado quando a estátua morre vai ficar? Em segundos posParedes = {{x = 342, y = 821, z = 7, stackpos=1}, {x = 343, y = 821, z = 7, stackpos=1}, {x = 344, y = 821, z = 7, stackpos=1}}, -- Posições das paredes que ficam atrás do guarda fromPos = {x = 331, y = 801, z = 7}, -- Canto superior esquerdo da área do seu evento ---- Deve ser uma área quadrada ou retangular, de forma que todo o evento fique dentro dela. toPos = {x = 354, y = 867, z = 7}, -- Canto inferior direito da área do seu evento } -- [[ NAO ALTERE MAIS NADA DAQUI PARA BAIXO! ]] -- function removeTpb() local t = getTileItemById(bloodconfig.positionTP, 1387) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(bloodconfig.positionTP, CONST_ME_POFF) end end function removeStones() for i = 1, #bloodconfig.posPedras do local pedra = getTileItemById(bloodconfig.posPedras, 1304) if pedra then doRemoveItem(pedra.uid, 1) end end end function putStones() for i = 1, #bloodconfig.posPedras do local pedra = getTileItemById(bloodconfig.posPedras, 1304) if not pedra then doCreateItem(1304, 1, pedra) end end end function createTeleportb() local tip = doCreateTeleport(1387, bloodconfig.positionEvento, bloodconfig.positionTP) doItemSetAttribute(tip, "aid", 4726) end function removeTpa() local t = getTileItemById(bloodconfig.estatua, 1387) if t then doRemoveItem(t.uid, 1) doSendMagicEffect(bloodconfig.estatua, CONST_ME_POFF) end end function getPlayersInBlood() local playersInBlood = getGlobalStorageValue(bloodconfig.playersStorage) return playersInBlood < 0 and 0 or playersInBlood end function removePlayers() for _, pid in pairs(getPlayersOnline()) do if isInArea(getThingPos(pid), bloodconfig.fromPos, bloodconfig.toPos) then doTeleportThing(pid, bloodconfig.templo, false) doPlayerSendTextMessage(pid, MESSAGE_STATUS_CONSOLE_BLUE, "Voce foi removido do Blood Castle. Possiveis causas: o evento nao atingiu o numero minimo de players; Voce permaneceu no evento por mais de " .. bloodconfig.tempoMaximo .. " minutos.") end end end function checkBlood() if getPlayersInBlood() >= bloodconfig.minPlayers then removeStones() doBroadcastMessage("[blood Castle] O Evento comecou e o teleporte para ele foi fechado. Boa sorte a todos!") if not isMonster(getTopCreature(bloodconfig.posGuarda).uid) then doCreateMonster("Guarda do Portao", bloodconfig.posGuarda) end addEvent(removePlayers, bloodconfig.tempoMaximo*60*1000) else removePlayers() setGlobalStorageValue(bloodconfig.playersStorage, 0) doBroadcastMessage("[blood Castle] O evento nao atingiu o numero minimo de participantes e foi cancelado.") if isMonster(getTopCreature(bloodconfig.posGuarda).uid) then doRemoveCreature(getTopCreature(bloodconfig.posGuarda).uid) end if isMonster(getTopCreature(bloodconfig.estatua).uid) then doRemoveCreature(getTopCreature(bloodconfig.estatua).uid) end end end function putWalls() for i = 1, #bloodconfig.posParedes do doCreateItem(bloodconfig.idDasParedes, 1, bloodconfig.posParedes) end end function removeWalls() for i = 1, #bloodconfig.posParedes do local wall = getTileItemById(bloodconfig.posParedes, bloodconfig.idDasParedes) if wall then doRemoveItem(wall.uid, 1) end end end function createAngel() if not isMonster(getTopCreature(bloodconfig.estatua).uid) then doCreateMonster("Arcanjo", bloodconfig.estatua) doBroadcastMessage("[blood Castle] A estatua do arcanjo apareceu!") end end function Guarantee() if isMonster(getTopCreature(bloodconfig.posGuarda).uid) then putWalls() doRemoveCreature(getTopCreature(bloodconfig.posGuarda).uid) elseif isMonster(getTopCreature(bloodconfig.estatua).uid) then putStones() putWalls() doRemoveCreature(getTopCreature(bloodconfig.estatua).uid) end end City war configCW = {timetostart = 500, -- tempo para iniciar o evento em segundos by Absolute telpos = {x=149, y=55, z=7}, -- onde aparecerá o teleport stats = 201201201701, kill = 201201201702, death = 201201201703, ostime = 201201201704, evttime = 20, -- quanto tempo irá rolar o evento topleftPos = {x=211, y=1336, z=7}, -- canto esquerdo superior botrightPos = {x=286, y=1390, z=7}, -- canto direito inferior templepos = {x=160, y=54, z=7}, -- posição do templo principal arenapos = {{x=218, y=1341, z=7}, {x=278, y=1341, z=7}, {x=281, y=1382, z=7}, {x=214, y=1383, z=7}}, -- posição dos 4 tronos times = 8, -- não precisa mexer finaltime = 300 -- não precisa mexer } function configCW:new() local newevt = {} setmetatable(newevt, self) self.__index = self doBroadcastMessage("The City War will be open in " .. self.timetostart .. " seconds.") setGlobalStorageValue(self.stats, 0) addEvent(function () newevt:start() end, self.timetostart*1000) end function configCW:start() if getGlobalStorageValue(self.stats) == 0 then setGlobalStorageValue(self.ostime, os.time()) local teleport = doCreateItem(1387, self.telpos) doItemSetAttribute(teleport, "aid", 5540) setGlobalStorageValue(self.stats, 1) doBroadcastMessage("The City War is starting...") for _, posi in pairs(self.arenapos) do local item = getTileItemById(posi, 1387) if(item.uid ~= 0) then doRemoveItem(item.uid) end end addEvent(function () self:preclose() end, self.evttime*1000*60) addEvent(function () self:announce(0) end, (self.evttime/self.times)*1000*60) end end function configCW:announce(times) if times < self.times then if #self:getTopFrags(true) >= 1 then doBroadcastMessage("Top City War fraggers: " .. self:getTopFrags()) end addEvent(function () self:announce(times+1) end, (self.evttime/self.times)*1000*60) end end function configCW:preclose() if getGlobalStorageValue(self.stats) == 1 then setGlobalStorageValue(self.stats, 2) doBroadcastMessage("The City War will end in " .. self.finaltime .. " seconds.") addEvent(function () self:close() end, self.finaltime*1000) local item = getTileItemById(self.telpos, 1387) if(item.uid ~= 0) then doRemoveItem(item.uid) end end end function configCW:close() if getGlobalStorageValue(self.stats) == 2 then if #self:getTopFrags(true) >= 1 then doBroadcastMessage("The City War has ended. The winners are: " .. self:getTopFrags()) else doBroadcastMessage("The City War has ended. There were no winners.") end doRemovePlayersFromArea(self.topleftPos, self.botrightPos, self.templepos) for _, posi in pairs(self.arenapos) do doCreateTeleport(1387, self.templepos, posi) end for place, info in ipairs(self:getTopFrags(true)) do if place > 5 then break end local cid = getPlayerByName(info) doPlayerSendTextMessage(cid, 4, "Congratulations, you were the " .. place .. "º place in the City War.") doPlayerAddItem(cid, 7440, 1) doPlayerAddItem(cid, 6567, 1) doPlayerAddExp(cid,10000000) end setGlobalStorageValue(self.stats, -1) end end function configCW:isPlayerInEvent(cid) if getPlayerStorageValue(cid, self.stats) == -1 or getPlayerStorageValue(cid, self.stats) - os.time() <= -5 or getGlobalStorageValue(self.stats) < 1 then return false end return true end function configCW:getTopFrags(tab) local frag = {} for _, pid in pairs(getPlayersOnline()) do if (getPlayerStorageValue(pid, self.kill) ~= -1 or getPlayerStorageValue(pid, self.death) ~= -1) and self:isPlayerInEvent(pid) then local kill = getPlayerStorageValue(pid, self.kill)+1 local death = getPlayerStorageValue(pid, self.death)+1 print(getCreatureName(pid), kill-death) table.insert(frag, {getCreatureName(pid), kill-death}) end end print(#frag) local frag, str, n = doOrderTab(frag, 0), nil, 5 print(#frag) if tab then return frag else if #frag < 5 then n = #frag end for i = 1, n do local cid = getPlayerByName(frag) local kill = getPlayerStorageValue(cid, self.kill)+1 local death = getPlayerStorageValue(cid, self.death)+1 str = str and str .. ", " .. frag .. "[" .. kill .. "/" .. death .. "]" or frag .. "[" .. kill .. "/" .. death .. "]" end end return str end function doOrderTab(tabela, value) local max, index = {}, nil for i = 1, #tabela do valor = value for a, b in ipairs(tabela) do if b[2] > valor then valor = b[2] valor2 = b[1] index = a end end table.remove(tabela, index) if valor ~= value then table.insert(max, valor2) end end return max end- (Resolvido)Invasao diferente
- (Resolvido)Invasao diferente
- (Resolvido)Invasao diferente
Desculpa Reviver o Post, mais estou com um problema... eu acho que ta faltando a opção para onde o teleport vai mandar, ou eu nao configurei direito!! se alguem poder ajudar ficarei grato! local t = { today = os.date("%d"), -- nao mexer todayhr = os.date("%H"), -- nao mexer fromdays = {"Monday","Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"}, -- (%A) Dias da semana que acontecerá, de segunda a domingo. fromhrs = {9,10,11,12,13,14,15,16,17,18,19,20,21,22,23}, -- Sempre em ordem crescente, sem pular (9,10,11,12,13,14,15,16,17,18,19,20,21,22,23) dstor = 8989, -- storage para ser diario per_day = 1, -- quantos dias de delay monstername = "Rat", -- nome do boss monsterpos = { x = 145, y = 387, z = 7 }, -- posiçao do boss timetobegin = 4, -- tempo para começar - 1 topos = { x = 0, y = 0, z = 0 }, -- deixa assim createpos = { x = 144, y = 384, z = 7}, -- onde o tp vai abrir } function onThink(interval) print("Rodando: [invasao] Script by caronte") if getStorage(t.dstor) - os.time() < 0 then if not isInArray(t.fromhrs, t.todayhr) then print("[invasao] A hora (" .. t.todayhr .. ") nao esta no quadro de horarios, \n Caso queira ela, colocar em fromdays no script") else local Hr = math.random(t.fromhrs[1], t.fromhrs[#t.fromhrs]) if tostring(Hr) == tostring(t.todayhr) then doCreateTeleport(1387, t.topos, t.createpos) doItemSetAttribute(getTileItemById(t.createpos, 1387).uid,"aid", 67777) for i = 1, t.timetobegin+1 do addEvent(doBroadcastMessage,1000*60*i,"O Boss vai nascer em "..t.timetobegin+2-i.." minuto(s).") end addEvent(function() doSetStorage(t.dstor, os.time() + t.per_day*24*60*60) doCreateMonster(t.monstername, t.monsterpos) doBroadcastMessage("O Boss nasceu") end,1000*60*(t.timetobegin+2)) print("[invasao] Hora ("..Hr..") sorteada !") else print("[invasao] Nenhuma hora foi sorteada") if getStorage(t.dstor) - os.time() < 0 and t.todayhr == tostring(t.fromhrs[#t.fromhrs]) then doBroadcastMessage("O boss vai nascer em "..t.timetobegin + 1 .." minuto(s)") for i = 1, t.timetobegin do addEvent(doBroadcastMessage,1000*60*t.timetobegin,"O Boss vai nascer em "..i.." minuto(s).") end addEvent(function() doSetStorage(t.dstor, os.time() + t.per_day*1*60*60) doCreateMonster(t.monstername, t.monsterpos) doBroadcastMessage("O Boss nasceu") end,1000*60*t.timetobegin) print("[invasao] (" .. t.fromhrs[#t.fromhrs] .. ") E a hora maxima de seguranca") end end end end return true end- <LuaGetPlayerFlagValue>> Player Not Found
Tag da magia \/ instant name="Amaterasu" words="amaterasu" lvl="200" mana="5500" aggressive="1" range="4" blockwalls="1" needtarget="1" exhaustion="1500" needlearn="0" event="script" value="sasuke/amaterasu.lua" @up provavel dar erro. no final do value="sasuke/amaterasu.lua" esqueceu de colocar o ">" tenta assim instant name="Amaterasu" words="amaterasu" lvl="200" mana="5500" aggressive="1" range="4" blockwalls="1" needtarget="1" exhaustion="1500" needlearn="0" event="script" value="sasuke/amaterasu.lua">- Erro Distro, Server fica cindo com o erro!
- Erro Distro, Server fica cindo com o erro!
- Erro Distro, Server fica cindo com o erro!
- [8.60]Baiak Barao Editado DeathRocks
- [City War Event] Luta pela sobrevivência
Desculpem reviver o poste,, alguem pode retirar 2 duvidas.. aqui funcionou perfeitamente,, 1- o evento rola durante 20 minutos, quando acaba o unico player vivo não recebeu os itens premiados de acordo com o evento 2 - quando o evento encerra ninguem e teletransportado para o templo??? alguem poderia ver essas 2 opcão mais rapido!!!- [Floresta Encantada] New Event - Exclusivo
- erro distro do server!
Fala pessoal blz, desculpem pela demora, depois de quase 1 semana mechendo no servidor vendo todos os scripts, achei o erro, <event type="statschange" name="ReflectSpellKnight" event="script" value="spells/reflectknight.lua"/> <event type="statschange" name="ReflectSpellPally" event="script" value="spells/reflectpally.lua"/> <event type="statschange" name="ReflectSpellMage" event="script" value="spells/reflectmage.lua"/> tem que deleta tudo que tem aver com isso, ate na pasta mods/reflectsystem obrigado ai quem me ajudou!!!- erro distro do server!
- erro distro do server!
certo, irie te mandar mais ira ficar muito grande!!! reflectpally local multiplier = {} local counter = 0 function onStatsChange(cid, attacker, type, combat, value) if getPlayerStorageValue(cid, 10095) >= 1 and attacker ~= 0 and combat ~= COMBAT_HEALING then if isPlayer(attacker) == TRUE then multiplier = 4 else multiplier = 10 end function doAttack(attacker) if isCreature(attacker) == TRUE and getTilePzInfo(getCreaturePosition(cid)) == false and getTilePzInfo(getCreaturePosition(attacker)) == false then if counter < 5 then local damage = math.floor((value * multiplier) / 5) local damage2 = damage / 2 doTargetCombatHealth(cid, attacker, COMBAT_DROWNDAMAGE, -damage2, -damage2, 129) doCreatureAddHealth(cid, damage2) doSendDistanceShoot(getCreaturePosition(cid), getCreaturePosition(attacker), 17) counter = counter + 1 addEvent(doAttack,1000,attacker) else stopEvent(attacker,doAttack) counter = 0 end else stopEvent(attacker,doAttack) counter = 0 end end addEvent(doAttack, 0, attacker) if isCreature(attacker) == TRUE then doSendMagicEffect(getCreaturePos(attacker), 66) end doSendAnimatedText(getCreaturePos(cid), 'REFLECT', TEXTCOLOR_DARKYELLOW) if isCreature(attacker) == true and isPlayer(attacker) == false then local addSoul = 40 if (getPlayerSoul(cid) + 40) > 250 then addSoul = 250 - getPlayerSoul(cid) end doPlayerAddSoul(cid, addSoul) end --if getPlayerStorageValue(cid, 10095) == 1 then --setPlayerStorageValue(cid, 10095, 2) --elseif getPlayerStorageValue(cid, 10095) == 2 then doRemoveCondition(cid, CONDITION_FOOD) setPlayerStorageValue(cid, 10095, 0) --end return false else return true end end refletectmage local multiplier = {} local counter = 0 function onStatsChange(cid, attacker, type, combat, value) if getPlayerStorageValue(cid, 10096) >= 1 and attacker ~= 0 and combat ~= COMBAT_HEALING then if isPlayer(attacker) == TRUE then multiplier = 4 else multiplier = 10 end function doAttack(attacker) if isCreature(attacker) == TRUE and getTilePzInfo(getCreaturePosition(cid)) == false and getTilePzInfo(getCreaturePosition(attacker)) == false then if counter < 5 then local damage = math.floor((value * multiplier) / 5) doCreatureAddMana(cid, damage) doSendDistanceShoot(getCreaturePosition(attacker), getCreaturePosition(cid), 35) doSendMagicEffect(getCreaturePos(cid), CONST_ME_LOSEENERGY) counter = counter + 1 addEvent(doAttack,1000,attacker) else stopEvent(attacker,doAttack) counter = 0 end else stopEvent(attacker,doAttack) counter = 0 end end addEvent(doAttack, 0, attacker) if isCreature(attacker) == TRUE then doSendMagicEffect(getCreaturePos(attacker), 66) end doSendAnimatedText(getCreaturePos(cid), 'REFLECT', TEXTCOLOR_DARKYELLOW) if isCreature(attacker) == true and isPlayer(attacker) == false then local addSoul = 40 if (getPlayerSoul(cid) + 40) > 250 then addSoul = 250 - getPlayerSoul(cid) end doPlayerAddSoul(cid, addSoul) end --if getPlayerStorageValue(cid, 10096) == 1 then --setPlayerStorageValue(cid, 10096, 2) --elseif getPlayerStorageValue(cid, 10096) == 2 then doRemoveCondition(cid, CONDITION_FOOD) setPlayerStorageValue(cid, 10096, 0) --end return false else return true end end reflectkina local multiplier = {} local counter = 0 function onStatsChange(cid, attacker, type, combat, value) if getPlayerStorageValue(cid, 10094) >= 1 and attacker ~= 0 and combat ~= COMBAT_HEALING then if isPlayer(attacker) == TRUE then multiplier = 4 else multiplier = 10 end function doAttack(attacker) if isCreature(attacker) == TRUE and getTilePzInfo(getCreaturePosition(cid)) == false and getTilePzInfo(getCreaturePosition(attacker)) == false then if counter < 5 then local damage = math.floor((value * multiplier) / 5) doTargetCombatHealth(cid, attacker, COMBAT_DROWNDAMAGE, -damage, -damage, 129) doSendDistanceShoot(getCreaturePosition(cid), getCreaturePosition(attacker), 24) counter = counter + 1 addEvent(doAttack,1000,attacker) else stopEvent(attacker,doAttack) counter = 0 end else stopEvent(attacker,doAttack) counter = 0 end end addEvent(doAttack, 0, attacker) if isCreature(attacker) == TRUE then doSendMagicEffect(getCreaturePos(attacker), 66) end doSendAnimatedText(getCreaturePos(cid), 'REFLECT', TEXTCOLOR_DARKYELLOW) if isCreature(attacker) == true and isPlayer(attacker) == false then local addSoul = 40 if (getPlayerSoul(cid) + 40) > 250 then addSoul = 250 - getPlayerSoul(cid) end doPlayerAddSoul(cid, addSoul) end --if getPlayerStorageValue(cid, 10094) == 1 then --setPlayerStorageValue(cid, 10094, 2) --elseif getPlayerStorageValue(cid, 10094) == 2 then doRemoveCondition(cid, CONDITION_FOOD) setPlayerStorageValue(cid, 10094, 0) --end return false else return true end end- erro distro do server!
- Evento que da XP
Informação Importante
Confirmação de Termo