
-
-
-
-
-
Spell Effect na direção que o player esta olhando
Imagino que o CONST_ME_SLASH seja igual para todos os direçãos, você teria que criar outro efeito mas para o outro lado então você tem que usar if creature:getDirection() == DIRECTION_NORTH then if creature:getDirection() == DIRECTION_EAST then if creature:getDirection() == DIRECTION_SOUTH then if creature:getDirection() == DIRECTION_WEST then
-
-
-
-
Problema Em Spell
Comecei a olhar seu código e você tinha um END demais. local combat1 = createCombatObject() setCombatParam(combat1, COMBAT_PARAM_HITCOLOR, COLOR_ORANGE) setCombatParam(combat1, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat1, COMBAT_FORMULA_LEVELMAGIC, -135.8, 0, -140.9, 0) local combat2 = createCombatObject() setCombatParam(combat2, COMBAT_PARAM_HITCOLOR, COLOR_RED) setCombatParam(combat2, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat2, COMBAT_FORMULA_LEVELMAGIC, -170.8, 0, -175.9, 0) local combat3 = createCombatObject() setCombatParam(combat3, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE) setCombatFormula(combat3, COMBAT_FORMULA_LEVELMAGIC, -150.8, 0, -155.9, 0) local function onCastSpell1(parameters) doCombat(parameters.cid, parameters.combat1, parameters.var) end local function onCastSpell2(parameters) doCombat(parameters.cid, parameters.combat2, parameters.var) end local function onCastSpell3(parameters) doCombat(parameters.cid, parameters.combat3, parameters.var) end function yagai1(cid) if isCreature(cid) and isCreature(getCreatureTarget(cid)) then local position = { x = getThingPosition(getCreatureTarget(cid)).x + 1, y = getThingPosition(getCreatureTarget(cid)).y, z = getThingPosition(getCreatureTarget(cid)).z } doSendMagicEffect(position, 399) end end function yagai2(cid) if isCreature(cid) and isCreature(getCreatureTarget(cid)) then local position = { x = getThingPosition(getCreatureTarget(cid)).x + 2, y = getThingPosition(getCreatureTarget(cid)).y + 2, z = getThingPosition(getCreatureTarget(cid)).z } doSendMagicEffect(position, 411) end end function yagai3(cid) if isCreature(cid) and isCreature(getCreatureTarget(cid)) then local position = { x = getThingPosition(getCreatureTarget(cid)).x + 1, y = getThingPosition(getCreatureTarget(cid)).y, z = getThingPosition(getCreatureTarget(cid)).z } doSendMagicEffect(position, 398) end end function yagai4(cid) if isCreature(cid) and isCreature(getCreatureTarget(cid)) then local position = { x = getThingPosition(getCreatureTarget(cid)).x + 2, y = getThingPosition(getCreatureTarget(cid)).y + 2, z = getThingPosition(getCreatureTarget(cid)).z } doSendMagicEffect(position, 396) end end function yagai5(cid) if isCreature(cid) and isCreature(getCreatureTarget(cid)) then local position = { x = getThingPosition(getCreatureTarget(cid)).x + 1, y = getThingPosition(getCreatureTarget(cid)).y, z = getThingPosition(getCreatureTarget(cid)).z } doSendMagicEffect(position, 438) end end function yagai6(cid) if isCreature(cid) and isCreature(getCreatureTarget(cid)) then local position = { x = getThingPosition(getCreatureTarget(cid)).x + 2, y = getThingPosition(getCreatureTarget(cid)).y + 2, z = getThingPosition(getCreatureTarget(cid)).z } doSendMagicEffect(position, 439) end end function onCastSpell(cid, var) local waittime = 3.0 -- Tempo de exhaustion local storage = 143512 -- não mecha local storage2 = 55512 if exhaustion.check(cid, storage) then doPlayerSendCancel(cid, "Aguarde " .. exhaustion.get(cid, storage) .. " segundos para usar a spell novamente.") return false end local parameters = {cid = cid, var = var, combat1 = combat1, combat2 = combat2, combat3 = combat3} if getPlayerStorageValue(cid, storage2) == 5 then addEvent(onCastSpell2, 650, parameters) addEvent(yagai3, 50, cid) addEvent(yagai4, 650, cid) elseif getPlayerStorageValue(cid, storage2) == 4 then addEvent(onCastSpell2, 650, parameters) addEvent(yagai3, 50, cid) addEvent(yagai4, 650, cid) elseif getPlayerStorageValue(cid, storage2) == 3 then addEvent(onCastSpell3, 650, parameters) addEvent(yagai5, 50, cid) addEvent(yagai6, 650, cid) else addEvent(onCastSpell1, 650, parameters) addEvent(yagai1, 50, cid) addEvent(yagai2, 650, cid) end exhaustion.set(cid, storage, waittime) return true end
-
Square System TFS 1.X
ussando sendCreatureSquare() player:sendCreatureSquare(creature, color)
-
Problema Em Spell
todo IF sempre termina com END ex: if getPlayerStorageValue(cid, storage2) == 3 then addEvent(onCastSpell3, 650, parameters) addEvent(yagai5, 50, cid) addEvent(yagai6, 650, cid) else --Function end Não sei muito inglês, mas até o próprio console informa. 'end' expected (to close 'function' at line 67) near '<eof>'
-
AJUDA COM O SITE PLEASE
Eu apenas entendo que você precisa ter os personagens Samples, Sorcerer Sample, Druid Sample, Paladin Sample, Knight Sample para criar um personagem.
-
Fabi Marzan reagiu a uma resposta no tópico: [MyAAC] [Plugin] [Template] Tibiacom Layout - EternalGlobal Theme
-
-
Fabi Marzan reagiu a uma resposta no tópico: CSTibia (beta) - 01/03 às 16:00 | Counter Strike + Tibia
-
[PEDIDO] Script de Spell
local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_HITCOLOR, COLOR_RED) setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatParam(combat, COMBAT_PARAM_EFFECT, 134) setCombatArea(combat,createCombatArea( {{1, 1, 1}, {1, 3, 1}, -- Area 3X3 {1, 1, 1}} )) function onGetFormulaValues(cid, level, magiclevel, factor) local skillTotal, levelTotal = magiclevel * 6, level / 6 -- 3000 // 83 no level 500 com skill 100 e arma 100 local min = -(skillTotal * 30 + levelTotal) -- 3683 local max = -(skillTotal * 31 + levelTotal) -- 14.483 return min, max end setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") function onCastSpell(cid, var) local waittime = 1.5 -- Tempo de exhaustion local storage = 151504 if exhaustion.check(cid, storage) then return false end local position1 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z} local position2 = {x=getThingPosition(getCreatureTarget(cid)).x+1, y=getThingPosition(getCreatureTarget(cid)).y+1, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position1, 37) doSendMagicEffect(position2, 197) exhaustion.set(cid, storage, waittime) return doCombat(cid, combat, var) end
-
GRAND LINE ADVENTURES É BASE TIBIA?
Ao fazer um videogame, Tibia é uma boa base para começar, um exemplo claro é Ravendawn.
-
Preciso de ajuda ( NTO BASE )
você terá o xampp instalado?
-
-
(Resolvido)Ocultar msg do comando
Fiquei confuso, é return true function onSay(cid, words, param) local playerCoinsItemId = 2625 -- ID do item de moeda local itemToSellId = 10311 -- ID do item a ser vendido if doPlayerRemoveItem(cid, playerCoinsItemId, 8) then -- Verifica se o jogador tem as moedas necessárias local newItem = doPlayerAddItem(cid, itemToSellId, 1) -- Adiciona o item ao jogador if newItem > 0 then doItemSetAttribute(newItem, "owner", getPlayerGUID(cid)) -- Define o dono do item como o jogador atual doItemSetAttribute(newItem, "Descricao", "Item Comprado por " .. getCreatureName(cid) .. ".") -- Define a descrição do item doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce comprou o item.") else -- Lidar com o caso de falha ao adicionar o item ao jogador end else doPlayerSendCancel(cid, 'Voce nao tem 8 Fiapo Credito.') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA) end return true end
-
(Resolvido)Ocultar msg do comando
function onSay(cid, words, param) local playerCoinsItemId = 2625 -- ID do item de moeda local itemToSellId = 10311 -- ID do item a ser vendido if doPlayerRemoveItem(cid, playerCoinsItemId, then -- Verifica se o jogador tem as moedas necessárias local newItem = doPlayerAddItem(cid, itemToSellId, 1) -- Adiciona o item ao jogador if newItem > 0 then doItemSetAttribute(newItem, "owner", getPlayerGUID(cid)) -- Define o dono do item como o jogador atual doItemSetAttribute(newItem, "Descricao", "Item Comprado por " .. getCreatureName(cid) .. ".") -- Define a descrição do item doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce comprou o item.") else -- Lidar com o caso de falha ao adicionar o item ao jogador end else doPlayerSendCancel(cid, 'Voce nao tem 8 Fiapo Credito.') doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA) end return false end Se você colocar return false, faz com que o texto não apareça quando você disser o comando.
-
Mostrar o dono da guild no default onLogin(cid)
Não tem no caso do otx2
-
Mostrar o dono da guild no default onLogin(cid)
Você já tem o sistema Castle 24? por que estaria colocando isso em Login.lua doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE , "O castelo 24H é ".. nome ..".")
-
ajuda com erro Clássico do Creature Not Found
O segundo erro é que está faltando uma: , Em setCombatFormula(combat4, COMBAT_FORMULA_LEVELMAGIC, -45.4, -100 -55, 0) E o primeiro é um AddEvent que é executado instantaneamente com um intervalo para que quando a criatura não esteja mais no alvo ou morra, ocorre aquele erro de que ela não encontra o alvo. Embora eu não tenha certeza hehe
-
Muvukaa começou a seguir Fabi Marzan
-
TFS 1.5 {8.6} Nekiro Downgrade com montarias e modal window apenas para OTClient.
mt obrigado
-
Fabi Marzan reagiu a uma resposta no tópico: TFS 1.5 {8.6} Nekiro Downgrade com montarias e modal window apenas para OTClient.
-
-
TFS 1.5 {8.6} Nekiro Downgrade com montarias e modal window apenas para OTClient.
Muito obrigado, vou tentar