• 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!

change map

xLosT

Member
Joined
Jan 11, 2010
Messages
1,021
Reaction score
13
Location
Brasil, Rio Grande do Sul
need kick player 1second before change map

PHP:
<?xml version="1.0" encoding="UTF-8"?>  
<mod name="ChangeMap" version="1.0" author="Vodkart" contact="xtibia.com" enabled="yes">  
<config name="map_func"><![CDATA[  
 
                      info = {  
                      [0] = {x=693,y=848,z=7},
                      [1] = {x=518,y=602,z=7},
                      [2] = {x=552,y=226,z=7},
                      [3] = {x=789,y=308,z=7},
                      [4] = {x=250,y=179,z=7},
                      [5] = {x=413,y=804,z=7}
                        }

                        storage = 50555  
 
]]></config> 
<event type="login" name="Check Map" event="script"><![CDATA[  
domodlib('map_func')  
        function onLogin(cid) 
        if getGlobalStorageValue(storage) == -1 then 
        setGlobalStorageValue(storage,getGlobalStorageValue(storage)+1)  
        end 
        doTeleportThing(cid,info[getGlobalStorageValue(storage)])   
        return true  
end  
]]></event> 
        <globalevent name="ChangeMap" interval="7200000" event="script"><![CDATA[  
        domodlib('map_func')  
        function onThink(interval, lastExecution)  
                doBroadcastMessage('O mapa sera mudado novamente em 2 horas.')
                if getGlobalStorageValue(storage) < 5 then  
                setGlobalStorageValue(storage,getGlobalStorageValue(storage)+1)   
                else  
                setGlobalStorageValue(storage,getGlobalStorageValue(storage)-5)
                end  
                for _, pid in ipairs(getPlayersOnline()) do
                doRemoveConditions(pid, true)   
                doTeleportThing(pid,info[getGlobalStorageValue(storage)])    
                end   
         return TRUE  
end]]></globalevent> 
</mod>

please help need add

Map change in
10
9
8
7
6
5
4
3
2
1 kick all player
mapa changed



sry for double post, server crash in change map, need kick first and second change map
 
Last edited:
Back
Top