-
Action
Galera to com um problema no action de um boss... Alguém poderia me ajudar corrigir? ou dizer mais ou menos porque acontece? Lua Script Error: [Action Interface] data/actions/scripts/forgotten knowledge/tenebris lever.lua:onUse data/actions/scripts/forgotten knowledge/tenebris lever.lua:15: attempt to compare number with nil stack traceback: [C]: in function '__le' data/actions/scripts/forgotten knowledge/tenebris lever.lua:15: in function <data/actions/scripts/forgotten knowledge/tenebris lever.lua:7> CODE: local config = { centerRoom = Position(32912, 31599, 14), BossPosition = Position(32912, 31599, 14), newPosition = Position(32911, 31603, 14) } function onUse(player, item, fromPosition, target, toPosition, isHotkey) if item.itemid == 9825 then if player:getPosition() ~= Position(32902, 31623, 14) then item:transform(9826) return true end end if item.itemid == 9825 then if Game.getStorageValue(GlobalStorage.ForgottenKnowledge.TenebrisTimer) >= 1 then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You need to wait a while, recently someone challenge Lady Tenebris.") return true end local specs, spec = Game.getSpectators(config.centerRoom, false, false, 15, 15, 15, 15) for i = 1, #specs do spec = specs[i] if spec:isPlayer() then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Someone is fighting with Lady Tenebris.") return true end end for y = 31623, 31627 do local playerTile = Tile(Position(32902, y, 14)):getTopCreature() if playerTile and playerTile:isPlayer() then playerTile:getPosition():sendMagicEffect(CONST_ME_POFF) playerTile:teleportTo(config.newPosition) playerTile:getPosition():sendMagicEffect(CONST_ME_TELEPORT) playerTile:setExhaustion(Storage.ForgottenKnowledge.LadyTenebrisTimer, 20 * 60 * 60) end end for d = 1, 6 do Game.createMonster('shadow tentacle', Position(math.random(32909, 32914), math.random(31596, 31601), 14), true, true) end Game.createMonster("lady tenebris", config.BossPosition, true, true) Game.setStorageValue(GlobalStorage.ForgottenKnowledge.TenebrisTimer, 1) addEvent(clearForgotten, 30 * 60 * 1000, Position(32895, 31584, 14), Position(32929, 31614, 14), Position(32925, 31617, 14), GlobalStorage.ForgottenKnowledge.TenebrisTimer) item:transform(9826) elseif item.itemid == 9826 then item:transform(9825) end return true end
- TFS 1.3 / Otx3 | Otg Server Global - 11x - 12.40 (SPRITES 13.40) (Updates Diarios)
-
!bless tfs 1.3
Oi gente Gostaria de colocar pra funcionar esse script com apenas um item e que seja infinito. E se for possível também gostaria por "talkactions" local config = { [11260] = {blessId = 5, text = 'The Spiritual Shielding'}, [11259] = {blessId = 6, text = 'The Embrace of Tibia'}, [11261] = {blessId = 4, text = 'The Fire of the Suns'}, [11258] = {blessId = 3, text = 'The Spark of the Phoenix'}, [11262] = {blessId = 2, text = 'The Wisdom of Solitude'}, [28036] = {blessId = 7, text = 'Heart of the Mountain'}, [28037] = {blessId = 8, text = 'Blood of the Mountain'} } function onUse(player, item, fromPosition, target, toPosition, isHotkey) local useItem = config[item.itemid] if not useItem then return true end if player:hasBlessing(useItem.blessId) then player:say('You already possess this blessing.', TALKTYPE_MONSTER_SAY) return true end player:addBlessing(useItem.blessId,1) player:sendTextMessage(MESSAGE_EVENT_ADVANCE, useItem.text .. ' protects you.') player:getPosition():sendMagicEffect(CONST_ME_LOSEENERGY) item:remove(1) return true end
-
[TFS 1.x | Global Windows e Linux 10.0 OLD/11.3] Halls of Hope, Wrap, Store, Prey, Imbuing, Events - Castle War, Snow Ball, Zombie, BattleField
alguem ja testou o cast? parece ta bugado
-
Anti-entrosa warsystem tfs 1.x
Gente estou procurando alguém que entenda de script, pois procuro um sistema anti-entrosa para usar na war system igual ou parecido do aurera-global. Aonde os jogadores podem escolher o limite de jogadores para entrar no local e bloqueio de algumas spells, o tempo do local é opcional dependendo colocar um tempo padrão já é o suficiente "2 horas". O sistema que já tem na net por ai no ot do OTX (malucooo) não é funcional, é todo bugado e ainda derruba o server.
-
-
COLOCAR EXAUSTED NO SSA E RING
@Dolera adiciona delay na hotkey outro modo não sei. qual hotkey voce usa? modules?
-
Cast System
Eu tenho essa pagina gesior do cast system antigo. So que agora mudou o cast, para um tabela nova que eu não to conseguindo ligar para eu usar no meu site, alguém poderia me ajudar? Nome da tabela é 'live_casts' Info de dentro dela player_id cast_name password description spectators
-
COLOCAR EXAUSTED NO SSA E RING
@Dolera muito facil. 2197 = id item 100 = storag 1 = tempo Só add no player.lua em events. EX: Procura por: function Player:onMoveItem(item, count, fromPosition, toPosition, fromCylinder, toCylinder) E adiciona o que te mandei abaixo '-'
-
Help pls with War Antientrosa Error on Distro!
@MaTTch Obrigado pela resposta, mas já consegui resolver este erro. Porem agora eu detectei outro tipo... Pode tentar me ajudar nele?
-
onUse Citywar
Se o jogador tiver offline e a citywar for iniciada, a citywar vai funcionar apenas com os membros que estavam on quando iniciou o citywar, quem está offline e entrar no game depois que a citywar tiver iniciada, ele vai da use no book normal vai aparecer join e etc... e ao escolher qualquer opção, buga o citywar inteiro, ninguem pode cancelar nem fazer nada, vários erros ocorre no console. Até mesmo quando passa o tempo do citywar não cancela, apenas quando servidor reiniciar. O que fazer pra resolver? Eu queria deixar apenas os membros que tiver on conseguir abrir o book.. da use, quem testava off não iria conseguir mas está difícil. Alguem pode ajudar?
-
onDeath citywar
Salve gente, Então estou querendo usar o citywar como anti-entrosa, só que ele tem uma opção de frags que atrapalha a score do warsystem. Quando eu entro no citywar com o outro jogador/guild que estou em war, quando mata o jogador é teleportado para a base dele e o score da warsystem fica 0x0 Removendo o "onDeath" do citywar o score começa a contar. Eu estou querendo fazer um modo dos frags do citywar funcionar e ao mesmo tempo o score também, porque o citywar tem opção de maximo de frags e isso pra war anti-entrosa seria interessante, alguém pode me ajudar? onDeath creaturescripts: Removendo isso o score da war funciona porem o citywar fica meio que bugado, porque mesmo o jogador morto pro sistema citywar o jogador continua dentro do local... O script inteiro é: Enfim, teria como fazer quando o jogador morrer a score da war system contar normal os frags da citywar funcionar também e quando o jogador morrer contar que ele morreu e saiu do local? Porque o sistema tem máximo de jogadores dentro tipo escolhe quanto quer 10x10 20x20 e assim vai, e se tiver 20x20 e um jogador morrer vai continuar 20x20 mesmo com o jogador fora ou morto.
-
citywar - anti-entrosa otx malucooo
Agora fica com erro na LIB.
-
Help pls with War Antientrosa Error on Distro!
@MaTTch Erro agora fica na LIB LIB:
-
Help pls with War Antientrosa Error on Distro!
To procurando uma solução pro mesmo problema.
-
citywar - anti-entrosa otx malucooo
Alguém pode me ajudar? Script: @moviebr