• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

RevScripts help converting this movements: to revscripts

miguelshta

Member
Joined
Mar 21, 2009
Messages
351
Solutions
1
Reaction score
13
Location
Toronto, Canada
Script 1.-
actionid: 45000

Lua:
local conditionRed = Condition(CONDITION_OUTFIT)
conditionRed:setTicks(120 * 60 * 1000)
conditionRed:setOutfit({lookType = 465, lookHead = 94, lookBody = 94, lookLegs = 94, lookFeet = 94})

local conditionBlack = Condition(CONDITION_OUTFIT)
conditionBlack:setTicks(120 * 60 * 1000)
conditionBlack:setOutfit({lookType = 465, lookHead = 114, lookBody = 114, lookLegs = 114, lookFeet = 114})

function onStepIn(creature, item, position, fromPosition)
    local player = creature:getPlayer()
    if player == nil then return false end
    
    if player:getLevel() < 100 then
    local vazaa = {x = 32365, y = 32462, z = 6} 
    player:teleportTo(vazaa)
    player:sendTextMessage(MESSAGE_INFO_DESCR, "YOU NEED LEVEL 100+ TO ENTER.")
    return false
    end   
    
    
    if player:getGroup():getId() >= 3 then
        return player:teleportTo(_Lib_Battle_Info.TeamOne.pos)
    end

    if Game.getStorageValue(_Lib_Battle_Info.storage_count) > 0 then
        local getMyTeam = Game.getStorageValue(_Lib_Battle_Info.TeamOne.storage) < Game.getStorageValue(_Lib_Battle_Info.TeamTwo.storage) and {_Lib_Battle_Info.TeamOne.storage,_Lib_Battle_Info.TeamOne.pos,_Lib_Battle_Info.TeamOne.name,conditionBlack} or {_Lib_Battle_Info.TeamTwo.storage,_Lib_Battle_Info.TeamTwo.pos, _Lib_Battle_Info.TeamTwo.name, conditionRed}
        player:addCondition(getMyTeam[4])
        player:setStorageValue(getMyTeam[1], 1)
        Game.setStorageValue(getMyTeam[1], Game.getStorageValue(getMyTeam[1])+1)
        player:teleportTo(getMyTeam[2])
        player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce entrou para os " .. getMyTeam[3] .. "!")
        Game.setStorageValue(_Lib_Battle_Info.storage_count, Game.getStorageValue(_Lib_Battle_Info.storage_count)-1)
    end

    if Game.getStorageValue(_Lib_Battle_Info.storage_count) == 0 then
    removeBattleTp()
    broadcastMessage("Battlefield vai comecar em 2 minutos, comece a criar sua estrategia de combate!", MESSAGE_EVENT_ADVANCE)
    addEvent(broadcastMessage, 2 * 60 * 1000 - 500, "BattleField vai comecar agora!", MESSAGE_EVENT_ADVANCE)
    addEvent(OpenWallBattle, 2 * 60 * 1000)
    end
    return true
end
action 2.-
action id: 45550

Lua:
local conditionRed1 = Condition(CONDITION_OUTFIT)
conditionRed1:setTicks(120 * 60 * 1000)
conditionRed1:setOutfit({lookType = 432, lookHead = 94, lookBody = 94, lookLegs = 94, lookFeet = 94})


local conditionBlack1 = Condition(CONDITION_OUTFIT)
conditionBlack1:setTicks(120 * 60 * 1000)
conditionBlack1:setOutfit({lookType = 432, lookHead = 114, lookBody = 114, lookLegs = 114, lookFeet = 114})

function onStepIn(creature, item, position, fromPosition)
    local player = creature:getPlayer()
    if player == nil then return false end
    
    
    if player:getLevel() < 100 then
    local vazaa = {x = 32365, y = 32462, z = 6} 
    player:teleportTo(vaza)
    player:sendTextMessage(MESSAGE_INFO_DESCR, "YOU NEED LEVEL 100+ TO ENTER.")
    return false
    end   
    
    if player:getGroup():getId() >= 3 then
        return player:teleportTo(_Lib_Battle_Info1.TeamOne1.pos1)
    end

    if Game.getStorageValue(_Lib_Battle_Info1.storage_count1) > 0 then
        local getMyTeam1 = Game.getStorageValue(_Lib_Battle_Info1.TeamOne1.storage1) < Game.getStorageValue(_Lib_Battle_Info1.TeamTwo1.storage1) and {_Lib_Battle_Info1.TeamOne1.storage1,_Lib_Battle_Info1.TeamOne1.pos1,_Lib_Battle_Info1.TeamOne1.name1,conditionBlack1} or {_Lib_Battle_Info1.TeamTwo1.storage1,_Lib_Battle_Info1.TeamTwo1.pos1, _Lib_Battle_Info1.TeamTwo1.name1, conditionRed1}
        player:addCondition(getMyTeam1[4])
        player:setStorageValue(getMyTeam1[1], 1)
        Game.setStorageValue(getMyTeam1[1], Game.getStorageValue(getMyTeam1[1])+1)
        player:teleportTo(getMyTeam1[2])
        player:sendTextMessage(MESSAGE_INFO_DESCR, "Voce entrou para os " .. getMyTeam1[3] .. "!")
        Game.setStorageValue(_Lib_Battle_Info1.storage_count1, Game.getStorageValue(_Lib_Battle_Info1.storage_count1)-1)
    end

    if Game.getStorageValue(_Lib_Battle_Info1.storage_count1) == 0 then
    removeBattleTp1()
    broadcastMessage("Battlefield vai comecar em 2 minutos, comece a criar sua estrategia de combate!", MESSAGE_EVENT_ADVANCE)
    addEvent(broadcastMessage, 2 * 60 * 1000 - 500, "BattleField vai comecar agora!", MESSAGE_EVENT_ADVANCE)
    addEvent(OpenWallBattle1, 2 * 60 * 1000)
    end
    return true
end
[CENTER]
action 3.-
actionid: 45110
[/CENTER]
Lua:
-- <movevent event="StepIn" actionid="45000" script="ZE_movements.lua" />

dofile('data/lib/ZE_config.lua')

function onStepIn(cid, item, position, fromPosition)
    local player = Player(cid)

    if player:getLevel() < 100 then
    local vazumbi = {x = 32374, y = 32461, z = 6}
    player:teleportTo(vazumbi)
    player:sendTextMessage(MESSAGE_INFO_DESCR, "YOU NEED LEVEL 100+ TO ENTER.")
    return false
    end   
    
    player:sendTextMessage(MESSAGE_STATUS_WARNING, "Get ready for the Zombie Event!")
    player:teleportTo(ZE.posEnterEvent)
    player:registerEvent("ZumbiDeath")
    
    player:setStorageValue(357812, 1)
    
    setGlobalStorageValue(ZE.storage, getGlobalStorageValue(ZE.storage) + 1)

    return true
end

 
Back
Top