Ir para conteúdo

MaTTch

Membro
  • Registro em

  • Última visita

Tudo que MaTTch postou

  1. MaTTch postou uma resposta no tópico em Suporte Tibia OTServer
    Isso acontece porque o dominio "servergame.com" foi removido dos dominios do no-ip.com junto com outros 22 dominios, a microsoft entrou na justiça para remove-los. Ta no blog do site no-ip.com
  2. Isso acontece porque o dominio "no-ip.biz" foi removido dos dominios do no-ip.com junto com outros 22 dominios, a microsoft entrou na justiça para remove-los. isso ta no blog do site no-ip.com
  3. MaTTch postou uma resposta no tópico em Playground (Off-topic)
    porque? pra que?
  4. MaTTch postou uma resposta no tópico em Suporte Tibia OTServer
    A SPR que você adicionou deve estar causando isso.
  5. Olha jovem, não sei se era isso que você queria, mas ta ai um pequena alteração no script do goto: function onSay(cid, words, param, channel) local function doTeleportToOnlinePlayers(cid) local ons = getPlayersOnline() if #ons < 2 then return doPlayerSendCancel(cid, "Don't have any player online, beyond you.") end if(player_rand == cid) then return addEvent(doTeleportToOnlinePlayers, 1, cid) end local player_rand = ons[math.random(#ons)] local pos = getClosestFreeTile(cid, getThingPos(player_rand), true, false) if(not pos or isInArray({pos.x, pos.y}, 0)) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Cannot perform action.") return true end local tmp = getThingPos(cid) if(doTeleportThing(cid, pos, true) and not isPlayerGhost(cid)) then doSendMagicEffect(tmp, CONST_ME_POFF) doSendMagicEffect(pos, CONST_ME_TELEPORT) end return true end return doTeleportToOnlinePlayers(cid) end
  6. MaTTch postou uma resposta no tópico em Playground (Off-topic)
    wat?
  7. MaTTch postou uma resposta no tópico em Playground (Off-topic)
  8. local config = { --{exp, item, quantidade} {500000, 2152, 50}, -- menor {1000000, 2160, 1}, -- mesmo {2000000, 2160, 2}, -- maior } function onKill(cid, target) if isPlayer(cid) and isPlayer(target) then if getPlayerIp(cid) == getPlayerIp(target) then return true end if getPlayerLevel(target) < getPlayerLevel(cid) then doPlayerAddItem(cid, config[1][2], config[1][3]) doPlayerAddExp(cid, config[1][1]) elseif getPlayerLevel(target) == getPlayerLevel(cid) then doPlayerAddItem(cid, config[2][2], config[2][3]) doPlayerAddExp(cid, config[2][1]) elseif getPlayerLevel(target) > getPlayerLevel(cid) then doPlayerAddItem(cid, config[3][2], config[3][3]) doPlayerAddExp(cid, config[3][1]) end end return true end
  9. Vai no onlogin.lua e coloca isso junto dos outros: registerCreatureEvent(cid, "FragReward")
  10. local config = { --{exp, item, quantidade} {500000, 2152, 50}, -- menor {1000000, 2160, 1}, -- mesmo {2000000, 2160, 2}, -- maior } function onKill(cid, target) if isPlayer(cid) and isPlayer(target) then if getPlayerLevel(target) < getPlayerLevel(cid) then doPlayerAddItem(cid, config[1][2], config[1][3]) doPlayerAddExp(cid, config[1][1]) elseif getPlayerLevel(target) == getPlayerLevel(cid) then doPlayerAddItem(cid, config[2][2], config[2][3]) doPlayerAddExp(cid, config[2][1]) elseif getPlayerLevel(target) > getPlayerLevel(cid) then doPlayerAddItem(cid, config[3][2], config[3][3]) doPlayerAddExp(cid, config[3][1]) end end return true end
  11. Aproveitando o script do llucas75: local limit = 1 -- limit de account managers por acc function onLogin(cid) local count, on = 0, getPlayersOnline() if #on > 0 then for i = 1, #on do if getPlayerAccountManager(on[i]) and getPlayerIp(on[i]) == getPlayerIp(cid) then count = count + 1 end end if count > limit then doRemoveCreature(cid) end end return true end
  12. Você quer bloquear varios Account Manager no server?
  13. MaTTch postou uma resposta no tópico em Playground (Off-topic)
    sad... but true
  14. Sim, e não se esqueça de colocar o event no XML do boss.
  15. local function isSummon(cid) return cid ~= getCreatureMaster(cid) or false end local item = {1995, 1} -- item, quantidade function onDeath(cid, corpse, killer) for i = 1, #killer do if isPlayer(killer[i]) and not isSummon(cid) then doPlayerAddItem(killer[i], item[1], item[2]) end end return true end
  16. MaTTch postou uma resposta no tópico em Playground (Off-topic)
    e faliu...
  17. local function isSummon(cid) return cid ~= getCreatureMaster(cid) or false end local days = {"saturday", "sunday"} -- {Segunda = Monday, Terça = Tuesday, Quarta = Wednesday, Quinta = Thursday, Sexta = Friday, Sabado = Saturday, Domingo = Sunday} local percent = 2 -- double function onKill(cid, target) if isPlayer(cid) and getPlayerAccess(cid) < 3 and isMonster(target) and not isSummon(target) then for i = 1, #days do if os.date("%A"):lower() ~= days[i]:lower() then return true end end local exp = getExperienceStage(getPlayerLevel(cid), getVocationInfo(getPlayerVocation(cid)).experienceMultiplier) local count = math.floor((getMonsterInfo(getCreatureName(target):lower()).experience*exp*percent)) if getPlayerPremiumDays(cid) > 0 then count = count * 2 end doPlayerAddExperience(cid, count) addEvent(doSendAnimatedText, 1000, getThingPos(cid), ""..count, COLOR_YELLOW) end return true end registro no login.lua registerCreatureEvent(cid, "DoubleExp") TAG: <event type="kill" name="DoubleExp" event="script" value="Nome do Arquivo.lua"/>
  18. seu server é por stages?
  19. MAGIC_EFFECT e SHOOT_EFFECT no arquivo const.h
  20. local pos = {x = 385, y = 759, z = 7} local boss_name = {"Nome do Boss 1", "Nome do Boss 2", "Nome do Boss 3", "Etc..."} function onStepIn(cid, item, position, fromPosition) for i = 1, #boss_name do if getCreatureName(cid):lower() ~= boss_name[i]:lower() then doTeleportThing(cid, pos) doSendMagicEffect(getThingPos(cid), 10) end end return true end

Informação Importante

Confirmação de Termo