Tudo que cocazul postou
- (Resolvido)Como mudar looktype de um player quando morrer {Help}
-
(Resolvido)Como mudar looktype de um player quando morrer {Help}
dai eu teria que coloca todas vocações ???? n deu certo UPPPP ALGUEM AJUDA AI COLOCA AS SPRITES DOS CORPOS MORTOS PLSS N FUNFO MANO tipo coloquei asssim a script. local table = { [1] = 2930 --naruto [2] = 2930 --naruto todos são naruto. e pq o naruto tem 12 transform. [3] = 2930 [4] = 2930 [5] = 2930 [6] = 2930 [7] = 2930 [8] = 2930 [9] = 2930 [10] = 2930 [11] = 2930 [12] = 2930 [13] = 2806 } local function transform(pos, id, voc) local item = getTileItemById(pos, id) if item and item.uid > 1 then doTransformItem(item.uid, table[voc]) doDecayItem(item.uid or 0) end end function onDeath(cid, corpse) if not isPlayer(cid) or not table[getPlayerVocation(cid)] then return true end addEvent(transform, 15, getThingPos(cid), corpse.itemid, getPlayerVocation(cid)) return true end entao configurei 1-12 que sao os naruto id 2930 eo corpo do naruto morto . matei um char naruto fico o corpo de um humano n deu certo ajudaa
-
[Pedido] Editor de Sprites
PAINT , PHOTOSHOP. AShash
-
(Resolvido)Como mudar looktype de um player quando morrer {Help}
Ola Galera do tk Queria ajuda a mudar o looktype de um player quando morrer. Ex : Eu so um naruto quando eu morrer quero a corpse do naruto tipo alguem sabe como eu coloco no meu otserv?. tipo eu ja tendo as sprites do corpse do naruto e tal ai como eu colocaria pra um player e tal onde configuro isso? Ex : <?xml version="1.0" encoding="UTF-8"?> <monster name="Madara" nameDescription="madara" race="blood" experience="45800" speed="950" manacost="0"> <health now="17065000" max="17065000"/> <look type="244" head="0" body="94" legs="79" feet="79" corpse="0"/> -----//----- aqui em Corpse ta 0 aqui e de um monstro mas pra um player n sei muda alguem sabe onde acho todas looktype e tal do meu ot tipo assim <list gender="0" lookType="192" name="Naruto"/> ------------ male <list gender="1" lookType="192" name="Naruto"/> ------- female alguem saberia no meu xml/outfits n tem nada la n sei como .. SSHSAHASHASH ... bugado sl alguem ajuda aeee. +rep pra quem ajudar pls UP
-
[SPELL] Kamui in
sabe dizer como arruma o bug de o player n pode leva algum bixo que da erro tipo levo um bixo mas se coloca tile de nopvp vai da erros af
-
[action] Edo Tensei
teria como passa esse edo ai pls
-
[action] Edo Tensei
teria como explica como funciona ele eu tenho que cria monstros ? pra adiciona no script como funciona ele ? tipo eu so posso usa em monstros n tendi muito mano ele prende o bixo ?
-
[action] Edo Tensei
aff queria uma spell mano tipo escrever edo tensei ai faze quase mesma a essa função mas um poco diferente
-
[GlobalEvent] Invasão diária de monstros
n funfa mano da error n sei pq ASHASASH
-
Spell-maker Para um Servidor de Naruto {Help}
{ Spell-maker} Ola Galera então queria sabe se existe algum spell maker Compativel com um Servidor de Naruto 8.54 tendo as Sprites das spells. Ex: quando eu for usa o spell-maker quero coloca minhas sprites do meu cliente nele Eu tentei use em um Spell maker que eu usava pra tibia mas n deu certo parace que n e compativel oque quero faze acha algum spell maker compativel com meu cliente 8.54 talves e pq as sprites das spells n foi compativel com o sistema do spell maker pq ele e so pra tibia ai se mudou as sprites deu error ne. Então oque eu quero e simplesmente um Spell maker compativel com meu cliente naruto 8.54 que de pra adiciona minhas sprites de spell nele. e nem vem fala pra mim passa o cliente que n e necessario e pq qualquer cliente de naruto e quase tudo mesma coisa so muda as sprites versão 8.54 Ou alguem poderia me ensina um jeito de arruma a spell como coloca o efeito que sai nele vo passa uma aqui. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- //spells.lua// local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ANI_SHIVERARROW) setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_NONE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 35, 38, 55, 58) local arr= { {0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,1,0,0,0,0,0}, {0,0,0,0,1,1,1,0,0,0,0}, {0,0,0,0,0,1,0,0,0,0,0}, {0,0,0,0,0,2,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,0,0,0,0,0}, } local area = createCombatArea(arr) setCombatArea(combat, area) function onCastSpell(cid, var) return doCombat(cid, combat, var) end ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- spells.xml <instant name="Kattatonot" words="Kakunotonout" aggressive="0" lvl="300" maglv="35" mana="5000" soul="2" needtarget="1" direction="0" exhaustion="0" prem="0" enabled="1" needlearn="0" script=".lua"><vocation name="Paladin"/></instant> Como Pode ver ela n tem o id do Efeito de ira sair ao hitar o alvo ou o efeito que ira sair quando o player fazer o jutsu. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Uma Spells.lua Que e criada sem progama. local config = { efeitoTele = 3, -- efeito q ira aparacer a cada teleport. efeitoDamage = 134, -- efeito q ira aparecer ao hitar no alvo hits = 1, -- quantos hits vai dar delay = 500, -- intervalo de tempo a cada hit min = 3000, -- dano minimo max = 5400, -- dano maximo damage = COMBAT_PHYSICALDAMAGE -- tipo do dano } function isWalkable(pos, creature, pz, proj) -- nord 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 not pz then return false 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 getPosDirs(p, dir) -- mkalo return dir == 1 and {x=p.x-1, y=p.y, z=p.z} or dir == 2 and {x=p.x-1, y=p.y+1, z=p.z} or dir == 3 and {x=p.x, y=p.y+1, z=p.z} or dir == 4 and {x=p.x+1, y=p.y+1, z=p.z} or dir == 5 and {x=p.x+1, y=p.y, z=p.z} or dir == 6 and {x=p.x+1, y=p.y-1, z=p.z} or dir == 7 and {x=p.x, y=p.y-1, z=p.z} or dir == 8 and {x=p.x-1, y=p.y-1, z=p.z} end function validPos(pos) tb = {} for i = 1, 8 do newpos = getPosDirs(pos, i) if isWalkable(newpos) then table.insert(tb, newpos) end end table.insert(tb, pos) return tb end spell141 = { start141 = function (cid, target, markpos, hits) if not isCreature(cid) then return true end if not isCreature(target) or hits < 1 then doTeleportThing(cid, markpos) doSendMagicEffect(getThingPos(cid), config.efeitoTele) return true end posAv = validPos(getThingPos(target)) rand = #posAv == 1 and 1 or #posAv - 1 doSendMagicEffect(getThingPos(cid), config.efeitoTele) doTeleportThing(cid, posAv[math.random(1, rand)]) doAreaCombatHealth(cid, config.damage, getThingPos(target), 0, -config.min, -config.max, config.efeitoDamage) addEvent(spell141.start141, config.delay, cid, target, markpos, hits - 1) end } function onCastSpell(cid) local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} target = getCreatureTarget(cid) if target then spell141.start141(cid, target, getThingPos(cid), config.hits) doSendMagicEffect(position1, 138) end return true end simplesmente ali 134 o efeito da spells no progama que uso n tem nada de poder escolher entao ja e mais complicado cria spells de naruto com progama assim. eu queria sabe onde acha na pasta do ot os numeros de efeito de cada spells ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Imagem Mostrando um progama que achei pra cria spells so pra cliente tibia. :/ Então galera esse e um progama pra cria spells pra tibia como pode ver na imagem queria um progama pra cria spells para naruto pq ali mostra elementos e efeito de tibia ai fica ruim ou alguem poderia me ensina a quando eu cria a spells por esse progama me ensina a modificala pra fica compativel com meu ot. +rep pra quem ajudaaa Pls UP PELO MENOS ALGUEM LE O TOPICO NINGUEM ATE AGORA DEU UMA OLHA AFF
-
(Resolvido)[~Duvida~] Como eu faço um combo?
e simples voce cria 3 spells com nomes difirentes e com efeitos diferentes , ou poderia simplesmente cria uma spell com comb de 3 tipo uma spell solta 3 spell da memsa
-
[FireStorm Event] Chuva de fogos! Desespero [ON]
3.4.5 versao da distro cliente 8.54 mas n tem como da error pq tem algo mal configurado ali na linha 30 teria como ver ? a n tenho a soures do meu ot narutibia eo shinobi tentei ve se alguem tinha aqui no Tk ninguem tem Absolute saberia dize o erros da imagem ? alguma parte ali do script talves eu possa ter configurado algo que n podia teria como ver pra mim ? ooooooooooo up MDS AJUDA AI PLSSSS ???
-
[FireStorm Event] Chuva de fogos! Desespero [ON]
PLSS OLHA O ERROR QUE TA DANDO AJUDA AI n e error de configuração Poderia ajuda fazendo FAvor. Segue a imagem abaixo. Entao mostra ai o error n sei dizer pq ta dando teria como ajuda. o script que voce passo logo abaixo mas configurei alguma coisa ali so as posição <?xml version="1.0" encoding="UTF-8"?> <mod name="Fire_Storm_Event" version="0.1" author="Absolute Version" contact="lu.lukinha" enabled="yes"> <config name="config_fire_storm_event"> <![CDATA[ configFireStormEvent = { storages = { main = 'fireStormEventMain', -- set free storage player = 'fireStormEventPlayer', -- set free storage joining = 'fireStormEventJoining', -- set free storage exhaust = 'fireStormEventExhaust', -- set free storage countEvent = 'fireStormEventCountEvent' -- set free storage }, position = {x=1041 ,y=1980,z=7}, -- posiotion to which player is teleporting room = { from = {x=1010,y=1950,z=7}, -- left top corner of event room to = {x=1077,y=2004,z=7} -- right bottom corner of event room }, rewards = {8858, 2346, 2538, 2437}, -- reward id which player can win (reward is random) players = { max = 80, min = 2, minLevel = 100 }, days = { ['Tuesday'] = {'19:59:20'}, ['Thursday'] = {'19:59:20'}, ['Sunday'] = {'15:20:20'} } fireStormDelay = 1000, -- milisecond delayTime = 5.0, -- time in which players who joined to event are teleporting to teleport position startEvent = 5 -- time from teleport to start event text = '-PL-\nAby wygrac i otrzymac nagrode, utrzymaj sie jak najdluzej na arenie.\n\n-ENG-\nTo win and get a Rewards, to stay as long as possible in the arena.' } y, x = 1, 1 -- don't change it ]]> </config> <lib name="lib_fire_storm_event"> <![CDATA[ function doStartFireStormEvent() doSetStorage(configFireStormEvent.storages.joining, -1) if configFireStormEvent.players.min <= doCountPlayersFireStormEvent() then for _, cid in ipairs(getPlayersOnline()) do if getCreatureStorage(cid, configFireStormEvent.storages.player) > 0 then doCreatureSetNoMove(cid, false) doRemoveCondition(cid, CONDITION_INFIGHT) doTeleportThing(cid, configFireStormEvent.position) doCreatureSetStorage(cid, configFireStormEvent.storages.player, -1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'Get ready. Fire Storm Event start in '..configFireStormEvent.startEvent..' seconds.') end end addEvent(doSetStorage, configFireStormEvent.startEvent * 1000, configFireStormEvent.storages.main, 1) addEvent(doRepeatCheckFireStorm, configFireStormEvent.startEvent * 1000 + 2000) doBroadcastMessage('Fire Storm Event has started. LET\'S GO!') else for _, cid in ipairs(getPlayersOnline()) do if getCreatureStorage(cid, configFireStormEvent.storages.player) > 0 then doCreatureSetNoMove(cid, false) doRemoveCondition(cid, CONDITION_INFIGHT) end end doBroadcastMessage('Fire Storm hasn\'t started beacuse there were not enough players.') end end function doRepeatCheckFireStorm() if getStorage(configFireStormEvent.storages.main) > 0 then local xTable, yTable, playerTable = {}, {}, {} for x = configFireStormEvent.room.from.x, configFireStormEvent.room.to.x do for y = configFireStormEvent.room.from.y, configFireStormEvent.room.to.y do table.insert(xTable, x) table.insert(yTable, y) local n, i = getTileInfo({x=x, y=y, z=configFireStormEvent.room.to.z}).creatures, 1 if n ~= 0 then local v = getThingfromPos({x=x, y=y, z=configFireStormEvent.room.to.z, stackpos=i}).uid while v ~= 0 do if isPlayer(v) then table.insert(playerTable, v) if n == #playerTable then break end end i = i + 1 v = getThingfromPos({x=x, y=y, z=configFireStormEvent.room.to.z, stackpos=i}).uid end end end end if #playerTable == 1 then local prize = math.random(#configFireStormEvent.rewards) doCreatureAddHealth(playerTable[1], getCreatureMaxHealth(playerTable[1]) - getCreatureHealth(playerTable[1])) doCreatureAddMana(playerTable[1], getCreatureMaxMana(playerTable[1]) - getCreatureMana(playerTable[1])) doTeleportThing(playerTable[1], getTownTemplePosition(getPlayerTown(playerTable[1])), true) doPlayerAddItem(playerTable[1], configFireStormEvent.rewards[prize], 1) doPlayerSendTextMessage(playerTable[1], MESSAGE_EVENT_ADVANCE, 'You win! You have received ' .. getItemNameById(configFireStormEvent.rewards[prize]) .. ' as reward.') doBroadcastMessage('Fire Storm Event has finished. The winner is ' .. getCreatureName(playerTable[1]) .. '. Congratulations.') doSetStorage(configFireStormEvent.storages.main, -1) db.query("INSERT INTO `events` (`event_name`, `winner_name`, `won_item`, `time_win`) VALUES (\"Fire\", \"" .. getCreatureName(playerTable[1]) .. "\", \"" .. getItemNameById(configFireStormEvent.rewards[prize]) .. "\", " .. getStorage(configFireStormEvent.storages.countEvent) ..");") doSetStorage(configFireStormEvent.storages.countEvent, getStorage(configFireStormEvent.storages.countEvent) + 1) x, y = 1, 1 elseif #playerTable > 1 then for a = 1, y do addEvent( function() local pos = {x=xTable[math.random(#xTable)], y=yTable[math.random(#yTable)], z=7} for _, player in ipairs(playerTable) do local pPos = getThingPos(player) if pPos.x == pos.x and pPos.y == pos.y and pPos.z == pos.z then doCreatureAddHealth(player, - getCreatureMaxHealth(player)) end end doSendDistanceShoot({x = pos.x - math.random(4, 6), y = pos.y - 5, z = pos.z}, pos, CONST_ANI_FIRE) addEvent(doSendMagicEffect, 150, pos, CONST_ME_HITBYFIRE) addEvent(doSendMagicEffect, 150, pos, CONST_ME_FIREAREA) end, math.random(100,1000) ) end if x == 5 * y then y = y + 1 end x = x + 1 else doBroadcastMessage('No one have won in Fire Storm Event.') doSetStorage(configFireStormEvent.storages.main, -1) doSetStorage(configFireStormEvent.storages.countEvent, getStorage(configFireStormEvent.storages.countEvent) + 1) x, y = 1, 1 end addEvent(doRepeatCheckFireStorm, configFireStormEvent.fireStormDelay) end end function doCountPlayersFireStormEvent() local x = 0 for _, cid in ipairs(getPlayersOnline()) do if getCreatureStorage(cid, configFireStormEvent.storages.player) > 0 then x = x + 1 end end return x end function doStartCountingFireStormEvent(x) if configFireStormEvent.delayTime-x > 0 then doBroadcastMessage('Fire Storm Event will start in '..configFireStormEvent.delayTime-x..' minutes. You can join to the event by say "!fire join".') addEvent(doStartCountingFireStormEvent, 60*1000, x+1) end end ]]> </lib> <talkaction words="!fire" event="script"> <![CDATA[ domodlib("config_fire_storm_event") function onSay(cid, words, param) if getStorage(configFireStormEvent.storages.joining) ~= 1 then return doPlayerSendCancel(cid, 'Fire Storm Event hasn\'t started yet.') elseif param == '' then return doPlayerSendCancel(cid, 'Command param required (say: "!fire join" or "!fire leave.").') elseif getPlayerLevel(cid) < configFireStormEvent.players.minLevel then return doPlayerSendCancel(cid, 'You can\'t join to the event if you don\'t have a require '..configFireStormEvent.players.minLevel..' level.') elseif getTileInfo(getThingPos(cid)).protection ~= true then return doPlayerSendCancel(cid, 'You can\'t join to the event if you aren\'t in protection zone.') elseif exhaustion.check(cid, configFireStormEvent.storages.exhaust) ~= false then return doPlayerSendCancel(cid, 'You must wait '..exhaustion.get(cid, configFireStormEvent.storages.exhaust)..' seconds to use this command again.') end if param == 'join' then if getCreatureStorage(cid, configFireStormEvent.storages.player) > 0 then return doPlayerSendCancel(cid, 'You have arleady joined to event. Wait patiently for start.') elseif doCountPlayersFireStormEvent() == configFireStormEvent.players.max then return doPlayerSendCancel(cid, 'Max players in the event have been reached.') end doCreatureSetNoMove(cid, true) doPlayerPopupFYI(cid, configFireStormEvent.text) doCreatureSetStorage(cid, configFireStormEvent.storages.player, 1) doAddCondition(cid, createConditionObject(CONDITION_INFIGHT, -1)) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'You have joined to Fire Storm Event. You can\'t move until event don\'t start. Wait patiently for the event start.') doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'You have joined to Fire Storm Event.') elseif param == 'leave' then if getCreatureStorage(cid, configFireStormEvent.storages.player) <= 0 then return doPlayerSendCancel(cid, 'You can\'t leave from the event if you don\'t join.') end doCreatureSetNoMove(cid, false) doRemoveCondition(cid, CONDITION_INFIGHT) doCreatureSetStorage(cid, configFireStormEvent.storages.player, -1) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'You have left from the Fire Storm Event.') end exhaustion.set(cid, configFireStormEvent.storages.exhaust, 5) return true end ]]> </talkaction> <talkaction words="!startfire" access="4" event="script"> <![CDATA[ domodlib("config_fire_storm_event") domodlib("lib_fire_storm_event") function onSay(cid, words, param) if getStorage(configFireStormEvent.storages.main) > 0 then return doPlayerSendCancel(cid, 'Fire Storm Event is already running.') end doStartCountingFireStormEvent(0) for _, pid in ipairs(getPlayersOnline()) do if getCreatureStorage(pid, configFireStormEvent.storages.player) > 0 then doCreatureSetStorage(pid, configFireStormEvent.storages.player, -1) doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid)), true) end end doSetStorage(configFireStormEvent.storages.joining, 1) addEvent(doStartFireStormEvent, configFireStormEvent.delayTime * 60 * 1000) return true end ]]> </talkaction> <globalevent name="Fire_Storm_Event_Days" interval="1000" event="script"> <![CDATA[ domodlib("config_fire_storm_event") domodlib("lib_fire_storm_event") local daysOpen = {} for k, v in pairs(configFireStormEvent.days) do table.insert(daysOpen, k) end function onThink(interval) if isInArray(daysOpen, os.date('%A')) then if isInArray(configFireStormEvent.days[os.date('%A')], os.date('%X', os.time())) then if getStorage(configFireStormEvent.storages.joining) ~= 1 then doStartCountingFireStormEvent(0) for _, pid in ipairs(getPlayersOnline()) do if getCreatureStorage(pid, configFireStormEvent.storages.player) > 0 then doCreatureSetStorage(pid, configFireStormEvent.storages.player, -1) doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid)), true) end end doSetStorage(configFireStormEvent.storages.joining, 1) addEvent(doStartFireStormEvent, configFireStormEvent.delayTime * 60 * 1000) end end end return true end ]]> </globalevent> <event type="statschange" name="Fire_Storm_Event_Dead" event="script"> <![CDATA[ domodlib("config_fire_storm_event") function onStatsChange(cid, attacker, type, combat, value) if type == 1 and getCreatureHealth(cid) <= value then if isInRange(getThingPos(cid), configFireStormEvent.room.from, configFireStormEvent.room.to) then doCreatureAddHealth(cid, getCreatureMaxHealth(cid) - getCreatureHealth(cid)) doCreatureAddMana(cid, getCreatureMaxMana(cid) - getCreatureMana(cid)) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) doPlayerSendTextMessage(cid, MESSAGE_EVENT_ORANGE, 'You loss.') return false end end return true end ]]> </event> <event type="login" name="Fire_Storm_Event_Login" event="script"> <![CDATA[ domodlib("config_fire_storm_event") function onLogin(cid) if getCreatureStorage(cid, configFireStormEvent.storages.player) > 0 then doCreatureSetStorage(cid, configFireStormEvent.storages.player, -1) doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)), true) doCreatureSetNoMove(cid, false) doRemoveCondition(cid, CONDITION_INFIGHT) end registerCreatureEvent(cid, 'Fire_Storm_Event_Dead') return true end ]]> </event> <globalevent name="Fire_Storm_Event_Start" type="startup" event="script"> <![CDATA[ domodlib("config_fire_storm_event") function onStartup() doSetStorage(configFireStormEvent.storages.main, -1) doSetStorage(configFireStormEvent.storages.joining, -1) return true end ]]> </globalevent> </mod> ajudA UP TERIA COMO alguem me ajuda meu ot e 8.54 vai funfa? configurei tudo certo pls olha imagem ali com os erros
-
[Montando equipe] Alliance Ot
mds se for pra coloca algo coloque oque presta se n SABE faze nada pq escreveu algo ?
-
[Evento] Five Fase Quest
funciona ou tem errors o ultimo evento
- Source de Nto {shinobi} -8.54 ou compativel {Help}
- Como executar essas querys no banco de dados
-
(Resolvido)Spell de revidar ataque
vo passa uma talk e tipo ele falo !reflect ai o dano voltara .. function onSay(cid, words, param) local cargas = 10 -- quantas vezes ira refletir if getPlayerStorageValue(cid, 19273) <= 0 and getPlayerStorageValue(cid, 19274) - os.time() < 0 then setPlayerStorageValue(cid, 19273, cargas) setPlayerStorageValue(cid, 19274, os.time() + 300*1000) else doPlayerSendTextMessage(cid, 28, "Você só podera usar denovo daqui [".. getPlayerStorageValue(cid, 19274) - os.time() .. "] Segundos.") end return true end se quiser tira o tempo pra usa so avisa ai se qusie uma spells avisa +rep se ajudei
-
(Resolvido)[Spell] Exori Element
mano tipo deixa um exaust ela dar 3 dano mas com um exaust pra cada ? acho que consigo
-
Como Criar Magias Manualmente! A Mão!
se quise um progama te passo e aindo coloco tutorial mas oque e foda e coloca tipo as sprites quando sai o efeito que n sei mudar
-
(Resolvido)[Spell] Exori Element
MANO consigo cria mas n vai fica igual que voce pediu tipo vai da o dano elemento ice mort e outro junto
-
Arena War
olha so como ta talk.lua pvp.lua function onSay(cid, words, param) if getGlobalStorageValue(24658) >= 0 then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Evento Já esta Online.") end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Evento Acabou de Ser Ativado.") local tempo_espera = 60 * 1000 -- ALTERAR tempo de espera na sala, 1 minuto doBroadcastMessage("Evento PVP foi Ativado.",22) -- ALTERAR frase que aparece para todos quando usar o comando setGlobalStorageValue(24658, 0) -- ALTERAR storage usado no sistema, deixar todos iguais addEvent( function () doBroadcastMessage("Evento Iniciado.",22) -- ALTERAR frase quando todos forem para a arena setGlobalStorageValue(24658, 1) -- ALTERAR storage usado no sistema, deixar todos iguais local players = getPlayersOnline() local i = 1 while i <= #players do local pos_player = getPlayerPosition(players) local pos1_espera = {x=478 , y=560 , z=7 } -- ALTERAR pos do canto superior esquerdo da sala de espera local pos2_espera = {x=499 , y=574 , z=7 } -- ALTERAR pos do canto inferior direito da sala de espera local pos_arena = {x=481 , y=505 , z=7 } -- ALTERAR if pos_player.x >= pos1_espera.x and pos_player.y >= pos1_espera.y and pos_player.x <= pos2_espera.x and pos_player.y <= pos2_espera.y then doTeleportThing(players, pos_arena) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Batalhe pela sua vida.") -- ALTERAR frase que vai aparecer para o player quando ele entrar na arena end i = i + 1 end end ,tempo_espera) return true end globalevents.lua function onThink(interval, lastExecution) local total_players = 0 local storage = 24658 -- ALTERAR storage usado no sistema deixar todos iguais local item_premio = 2160 -- ALTERAR item dado de premio, caso não queira dar item, coloque 2160 local item_quantidade_premio = 100 -- ALTERAR quantidade do item ganho, caso não queira dar item , coloque 0 local dinheiro_premio = 0 -- ALTERAR dinheiro dado de premio, caso não queira deixe 0 local player_escolhido = 0 local players = getPlayersOnline() local i = 1 local pos_templo = {x =1027 , y =912 , z =5 } -- ALTERAR coordenada do templo do seu ot server if getGlobalStorageValue(storage) == 1 then else return TRUE end while i <= #players do local pos_player = getPlayerPosition(players) local pos1_arena = {x =454 , y =494 , z =7 } -- ALTERAR pos do canto superior esquerdo da arena local pos2_arena = {x =524 , y =526 , z =7 } -- ALTERAR pos do canto inferior direito da arena if pos_player.x >= pos1_arena.x and pos_player.y >= pos1_arena.y and pos_player.x <= pos2_arena.x and pos_player.y <= pos2_arena.y then total_players = total_players + 1 player_escolhido = players end i = i + 1 end if total_players == 1 then setGlobalStorageValue(storage, -1) doTeleportThing(player_escolhido, pos_templo) doPlayerAddItem(player_escolhido, item_premio, item_quantidade_premio) doPlayerAddItem(cid,2160,dinheiro_premio) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você é o Vencedor do Evento.") -- ALTERAR frase para o vencedor do premio doBroadcastMessage("O Player"..(getPlayerName(player_escolhido)).." é o Vencedor do Evento.",22) -- ALTERAR frase para todos, do ganhador do premio return TRUE else if total_players <= 0 then setGlobalStorageValue(storage, -1) doBroadcastMessage("Todos os Jogadores Se mataram, fim do Evento.",22) -- ALTERAR frase para todos, do ganhador do premio return TRUE end end return TRUE end configurei Certinho a ponta do canto esquerdo e ponta do canto direito potna do direito pra baixo
- Arena War
-
Como executar essas querys no banco de dados
Ola galera do Tk Queria ajuda pra Executar essas querys que irei Mostrar logo abaixo. querys : ALTER TABLE `guilds` ADD `frags` INT(11) NOT NULL DEFAULT 0; ALTER TABLE `guilds` ADD `acesstime` INT(15) NOT NULL DEFAULT 0; Entao galera Uso sqlite n mysqli e quero executar essas querys as 2 acima. Alguem poderia mostra ´pra mim como faze isso ou um tutorial algo. Objetivo de executar as querys. Quero coloca sistema de guild frag. Site do sistema guild.frags.sistem http://www.tibiaking.com/forum/topic/12235-gfs-guild-frag-system/ sem executar elas n vai funciona entao galera Ajuda AE PLSSS +REPPP
- Arena War