Ir para conteúdo

WooX

Campones
  • Total de itens

    64
  • Registro em

  • Última visita

  • Dias Ganhos

    3

WooX venceu a última vez em Maio 3 2019

WooX had the most liked content!

3 Seguidores

Sobre WooX

Perfil

  • Gênero
    Masculino

Informações

  • Forma que conheci o xTibia
    Otservs
  • Sou
    Scripter

Últimos Visitantes

4624 visualizações

WooX's Achievements

  1. Você tem que por o actionid pra funcionar.
  2. Estive sem tempo pra fazer nos últimos dias, caso ainda esteja precisando. --<action itemid="5985" event="script" value="dungeon_door.lua"/>-- local levelNeeded = 100 local enterPosition = {x=795, y=500, z=7} -- Position que o player será levado local timeToSendBack = 15 * 60 -- Tempo para retornar o player pro templo function onUse(cid, item, fromPosition, itemEx, toPosition) if item.aid == 5985 and getPlayerLevel(cid) >= levelNeeded then setPlayerStorageValue(cid, 79932, 0) doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT) doTeleportThing(cid, enterPosition) doSendMagicEffect(getThingPos(cid), CONST_ME_TELEPORT) addEvent(function() if getPlayerStorageValue(cid, 79932) < 1 then doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) end end, timeToSendBack*100) end return true end --<action actionid="5986" event="script" value="teleport_back.lua"/>-- local timeToSendBack = 15 -- Tempo para retornar o player pro templo function onUse(cid, item, fromPosition, itemEx, toPosition) if item.aid == 5986 then addEvent(function() doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) setPlayerStorageValue(cid, 79932, 1) end, timeToSendBack*1000) end return true end
  3. É só mudar a função de addVipDays para doPlayerAddPremiumDays, mas esse código gera 1 globalStorage pra cada acc, eu não acho 1 boa ideia.
  4. WooX

    piso anti push

    Coloca o Action ID 7955 no ground. --<event type="push" name="AntiPush" event="script" value="antipush.lua"/>-- --<event type="login" name="RegisterAntiPush" event="script" value="antipush.lua"/>-- function onPush(cid, target, ground, position) local groundAid = getTileInfo(getThingPos(target)).aid if isPlayer(cid) and isPlayer(target) and cid ~= target and groundAid == 7955 then doPlayerSendCancel(cid, "You can't push someone out of this ground.") return false end return true end function onLogin(cid) registerCreatureEvent(cid, "AntiPush") return true end
  5. WooX

    piso anti push

    Eu posso fazer. Você quer que quando o player estiver em cima desse piso ele não possa ser puxado é isso?
  6. Bem legal! Se fosse abrir um servidor brasileiro também eu jogaria com gosto.
  7. O script não vai rodar a menos que o Uptime seja maior que 20 horas. Tenta assim. <globalevent name="globalsave" time="17:06" event="script" value="save.lua"/> function prepareShutdown(minutes) if(minutes <= 0) then doSetGameState(GAMESTATE_CLOSED) return false end if(minutes == 1) then doBroadcastMessage("Server is going down in " .. minutes .. " minute for global save, please log out now!") elseif(minutes <= 3) then doBroadcastMessage("Server is going down in " .. minutes .. " minutes for global save, please log out.") else doBroadcastMessage("Server is going down in " .. minutes .. " minutes for global save.") end shutdownEvent = addEvent(prepareShutdown, 60000, minutes - 1) return true end function onTime(interval) return prepareShutdown(10) end
  8. Tinha esquecido 1 return true no login, editei o código de novo, testa ai.
  9. Deixei as tags as serem usadas no XML nas primeiras linhas do script. Você provavelmente configurou algo errado, o script está funcional.
  10. Não nesse caso, você pode encontrar os skills e stats que podem ser alterados na lib 000-constant.lua do seu servidor.
  11. CONDITION_PARAM_STAT_MAGICLEVEL CONDITION_PARAM_SKILL_FIST CONDITION_PARAM_SKILL_CLUB CONDITION_PARAM_SKILL_SWORD CONDITION_PARAM_SKILL_AXE CONDITION_PARAM_SKILL_DISTANCE CONDITION_PARAM_SKILL_SHIELD
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...