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
Please HELP REP++
actually I use this MOD
- - - Updated - - -
bump
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
Please HELP REP++
actually I use this MOD
HTML:
?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>
- - - Updated - - -
bump