Tudo que Leandro Martins postou
-
Ajuda com sistema de donate
Você já testou alguma compra para verificar se os pontos caem automaticamente? Geralmente o erro ocorre pelo site não ter SSL (https). Se você usa o myAAC dentro da pasta template tem o tibiacom e lá tem o html do pagseguro para modificar aa s informações dessa tela. Caso queira modificar as opções de pagamento, é na pasta do plugin/pagseguro/config.php... Ajudaria se você postasse o plugin de pagamento (os arquivos), pois existem muitos por aí e alguns são difrentes
-
Canary 3.1.2 - Revscript - Função onKill depreciada, mudar para onDeath
.Qual servidor ou website você utiliza como base? Canary + AAC Canary Qual o motivo deste tópico? Solicitar ajuda dos universitário para corrigir/atualizar um creaturescript/revscript. (a função onKill não pode mais ser usada, precisava atualizar para onDeath Está surgindo algum erro? Se sim coloque-o aqui. Você tem o código disponível? Se tiver publique-o aqui: --------------------------------------------------------------------------------------- -- This script creates a portal when a monster dies --------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------- -- Config start (always write creature name in lower case, for ex: "demon" not "Demon") --------------------------------------------------------------------------------------- local portalId, t = 25058, { ["glacius death"] = { message = "You have defeated Glacius Death!", config = { createPos = {}, -- The portal will be created where the monster dies. toPos = {x = 32202, y = 31863, z = 13}, -- Position where the portal will teleport to portalTime = 1, -- Duration of the portal in minutes } }, } --------------------------------------------------------------------------------------- -- Config end --------------------------------------------------------------------------------------- local function spectatorStartCountdown(time, position) local spectators = Game.getSpectators(position, false, false, 5, 5, 5, 5) if #spectators > 0 then for i = 1, #spectators do if time > 1 then spectators:say("" .. time .. "", TALKTYPE_MONSTER_SAY, false, spectators, position) else spectators:say("Time out!", TALKTYPE_MONSTER_SAY, false, spectators, position) break end end end local portal = Tile(position):getItemById(portalId) if portal then addEvent(spectatorStartCountdown, 1000, time - 1, position) end end local function removePortal(position) local portal = Tile(position):getItemById(portalId) if portal then portal:remove() end end local killMonsterCreatePortal = CreatureEvent("killMonsterCreatePortal") function killMonsterCreatePortal.onKill(creature, target) if not target:isMonster() or target:getMaster() then return true end local player = Player(creature:getGuid()) local k = t[target:getName():lower()] if not k then return true end local pos, cPos = target:getPosition() if type(k.config.createPos) == 'table' then if next(k.config.createPos) == nil then cPos = pos else cPos = k.config.createPos end end if Tile(cPos):getItemById(portalId) then return true end local item = Game.createItem(portalId, 1, cPos) if item:isTeleport() then item:setDestination(k.config.toPos) end local pt = k.config.portalTime addEvent(spectatorStartCountdown, 500, pt * 60, cPos) addEvent(removePortal, pt * 60 * 1000, cPos) return true end killMonsterCreatePortal:type("kill") killMonsterCreatePortal:register() --------------------------------------------------------------------------------------- -- Register script onLogin --------------------------------------------------------------------------------------- local monsterKillLogin = CreatureEvent("monsterKillLogin") function monsterKillLogin.onLogin(player) player:registerEvent("killMonsterCreatePortal") return true end monsterKillLogin:type("login") monsterKillLogin:register() Você tem alguma imagem que possa auxiliar no problema? Se sim, coloque-a aqui.
-
[MY-AAC-GATEWAY + GESIOR BY CLYFE] MercadoPago Pix 100% Automático e Livre de SQL Injection (GRATIS!)
olá meu amigo! é um script excelente para sairmos do tão pagseguro! Deixa eu te perguntar uma dúvida: Só vai funcionar se o retorno for em HTPPS? não da pra por em HTTP? pois estou com server XAMPP em casa mesmo e não consigo por nada no mundo liberar o HTTPS nele
-
[pedido] Regen Stamina Trainer
Galera, como o tópico não foi fechado! Estou com a dúvida acima, já tentei muitas vezes e nenhuma surtiu efeito, as vezes ele até heala uma vez ao pisar no tile, depois não heala mais, teria que ser um loop sabe? É possível converter de tile para ao atacar o monstro "Training Machine"? Distro Canary 3.1.2 (Protocolo: 13.40) Estou tentando usar esse código: local configuration = { storage = 263696, -- storage regenTime = 1 * 1000, -- tempo em milissegundos timeDisplay = "10 seconds", -- tempo em texto staminaGain = 10, -- minutos ganhos de Stamina manaGain = 20, -- mana dada tpPos = Position(32365, 32236, 7) -- posição de teleporte } local function applyRegeneration(player) if player then -- Adiciona stamina e mana após o tempo player:addStamina(configuration.staminaGain) player:addMana(configuration.manaGain) player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You've regenerated " .. configuration.staminaGain .. " minutes of stamina and some mana.") -- Aplica efeito mágico player:getPosition():sendMagicEffect(CONST_ME_MAGIC_BLUE) end end local function teleportPlayerBack(player, fromPosition) if player then player:teleportTo(fromPosition) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) end end local function onStepIn(creature, item, position, fromPosition) local player = creature:getPlayer() if not player then return false end if player:getStorageValue(configuration.storage) == -1 then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You entered an area of regeneration. In " .. configuration.timeDisplay .. " you will regenerate 60 minutes of Stamina.") player:setStorageValue(configuration.storage, 0) -- Inicia regeneração de stamina e mana após o tempo definido addEvent(applyRegeneration, configuration.regenTime, player) -- Teleporta o jogador de volta para a posição anterior após o tempo definido addEvent(teleportPlayerBack, configuration.regenTime, player, fromPosition) else player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You're regenerating stamina and mana again! In " .. configuration.timeDisplay .. " you will receive another load.") addEvent(applyRegeneration, configuration.regenTime, player) addEvent(teleportPlayerBack, configuration.regenTime, player, fromPosition) end return true end local function onStepOut(creature, item, position, fromPosition) local player = creature:getPlayer() if player then player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "You failed to regenerate stamina.") player:setStorageValue(configuration.storage, -1) end return true end -- Registrar o MoveEvent para 'StepIn' e 'StepOut' local regenTile = MoveEvent() regenTile:type("stepin") regenTile:aid(50033) -- AID para o tile regenTile:onStepIn(onStepIn) regenTile:register() regenTile:type("stepout") regenTile:aid(50033) -- Mesmo AID para o 'stepout' regenTile:onStepOut(onStepOut) regenTile:register()