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

Changemap by Teleport

Ghazer

Member
Joined
Mar 13, 2009
Messages
350
Reaction score
6
I need a changemap, with this feature
that works for teleport, teleport to the temple all players and change the position of teleport in the temple every 30 minutes. (in differents towns ID)
I want this because I want use only main temple...

I view one server with that system... its possible to create? help please


actually I use this MOD
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>   
<mod name="ChangeMap" version="2.0" author="Vodkart" contact="none.com" enabled="yes">  
<config name="map_func"><![CDATA[  
                                                                                  info = {  
                                                                                                [0] = 1,
                                                                                                [1] = 2,  
                                                                                                [2] = 3,
																								[3] = 4,
																								[4] = 5,
																								[5] = 6
                                                                                                }
                                                                                                storage = 789520

]]></config>
<event type="login" name="Check Map" event="script"><![CDATA[  
domodlib('map_func')  
function onLogin(cid)
if getGlobalStorageValue(storage) == -1 then setGlobalStorageValue(storage, 0)  end
doTeleportThing(cid, getTownTemplePosition(info[getGlobalStorageValue(storage)]))  
return true  
end  
]]></event>
                                <globalevent name="ChangeMap" interval="1800000" event="script"><![CDATA[  
                                domodlib('map_func')  
                                function onThink(interval, lastExecution)  
                                                                doBroadcastMessage('The map will be changed again in 30 minutes.')
                                                                setGlobalStorageValue(storage, getGlobalStorageValue(storage) < #info and getGlobalStorageValue(storage)+1 or 0)
                                                                for _, pid in ipairs(getPlayersOnline()) do
         doPlayerSetTown(pid, info[getGlobalStorageValue(storage)])
                                                                doRemoveConditions(pid, true)
doCreatureAddHealth(pid, getCreatureMaxHealth(pid))
doCreatureAddMana(pid, getCreatureMaxMana(pid))
                  doTeleportThing(pid, getTownTemplePosition(getPlayerTown(pid)))  
                                                                end
                                 return true  
end]]></globalevent>
</mod>
 
I think that no is hard because I see that script in simple war server... can someone create the script? please! I give REP++
 
The map is changed automatically in 30 minutes, but he wants to create a teleport, and that teleport will change the position every 30 minutes (to a different town id)
 
Its change towns, those are the townid. You can see your town ids by use rme ctrl + t. Its starting from townid 1 -> 6
 
The map is changed automatically in 30 minutes, but he wants to create a teleport, and that teleport will change the position every 30 minutes (to a different town id)

I looking that feature in one simple ot war... Any Ideas?

BUMP, Any ave one idea PLEASE?
 
Last edited:
Back
Top