- Joined
- Oct 21, 2006
- Messages
- 3
- Reaction score
- 0
can somwone give me the kobolt coordiantes for GM island?
thx in advance
thx in advance
# COPYRIGHT (C) 2006 LUDMILLA TEAM
from Ludmilla import * # Import server environment
from random import * # Randomiser Import
import config as cfg # Import of configuration constants
reload(cfg)
import consts as co # Import of constants
reload(co)
import const_skills as skill_co # Import of constants (skills)
reload(skill_co)
import const_spells as spell_co # Import of constants (skills)
reload(spell_co)
import player_class as player_cls
reload(player_cls)
ENABLE = TRUE = co.TRUE
DISABLE = FALSE = NULL = co.FALSE
# Set's up Correct coordinate limits of known maps, also definitions to Instances (executed on server start only!)
def SetMapProperties(map_id):
#SetMapSafeLoc(map_id, minX, maxX, minY, maxY, Instance, Instance Lifetime)
d = None
# *BG_Team_Size - normally if set to 0 then Battle Ground team size will be taken by server from DBC storage automatically
# only in case you experience that server has low population but you still are willing to offer BG to players
# you shall change this value from 0 to desired player MAX count per 1 team, thus overwritting server defaults.
# Example: setting for 2, will allow to enter from each side for 1 player min.
# map_id minX maxX minY maxY Lifetime AreaTrig1 AreaTrig2 Team_Size* Score_Max
#Normal maps (0)
if map_id == 0: d = map_id, -15470, 15470, -15470, 15470, 0, 0, 0, 0, 0 #Azaroth
elif map_id == 1: d = map_id, -11870, 16470, -15470, 16470, 0, 0, 0, 0, 0 #Kalimdor
elif map_id == 13: d = map_id, -11870, 12470, -15470, 15470, 0, 0, 0, 0, 0 #Test
elif map_id == 25: d = map_id, -11870, 12470, -15470, 15470, 0, 0, 0, 0, 0 #ScottTest
elif map_id == 35: d = map_id, -15470, 12470, -15470, 15470, 0, 0, 0, 0, 0 #Stormwind Prison
elif map_id == 37: d = map_id, -15470, 12470, -15470, 15470, 0, 0, 0, 0, 0 #Azshara Crater
elif map_id == 42: d = map_id, -15470, 12470, -15470, 15470, 0, 0, 0, 0, 0 #Collin
elif map_id == 369: d = map_id, -15470, 12470, -15470, 15470, 0, 0, 0, 0, 0 #Deeprun Tram
elif map_id == 530: d = map_id, -15470, 12470, -15470, 15470, 0, 0, 0, 0, 0 #Expansion01
elif map_id == 169: d = map_id, -15470, 15470, -15470, 15470, 0, 0, 0, 0, 0 #Emerald Dream
#Dungeons (1)
elif map_id == 29: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Test
elif map_id == 33: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Shadowfang Keep
elif map_id == 34: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Stormwind Jail
elif map_id == 36: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #The Deadmines
elif map_id == 43: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Wailing Caverns
elif map_id == 47: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Razorfen Kraul
elif map_id == 48: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Blackfathom Deeps
elif map_id == 70: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Uldaman
elif map_id == 90: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Gnomeregan
elif map_id == 109: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #The Sunken Temple
elif map_id == 129: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Razorfen Downs
elif map_id == 189: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Scarlet Monastery
elif map_id == 209: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Tanaris
elif map_id == 229: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Blackrock Spire
elif map_id == 230: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Blackrock Depths
elif map_id == 269: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #The Dark Portal
elif map_id == 289: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Scholomance
elif map_id == 329: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Stratholme
elif map_id == 349: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Maraudon
elif map_id == 389: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Ragefire Chasm
elif map_id == 429: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Dire Maul
elif map_id == 449: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Champions' Hall
elif map_id == 534: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Hyjal Summit
elif map_id == 540: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #The Shattered Halls
elif map_id == 542: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #The Blood Furnace
elif map_id == 543: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Hellfire Ramparts
elif map_id == 552: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #TempestKeepArcane
elif map_id == 553: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #TempestKeepAtrium
elif map_id == 554: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #TempestKeepFactory
elif map_id == 555: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #AuchindounShadow
elif map_id == 556: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #AuchindounDemon
elif map_id == 557: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #AuchindounEthereal
elif map_id == 558: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #AuchindounDraenei
elif map_id == 560: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #HillsbradPast
elif map_id == 564: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Black Temple
elif map_id == 568: d = map_id,-15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Zul Aman
# Raids (2)
elif map_id == 249: d = map_id, -15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Onyxia's Lair
elif map_id == 309: d = map_id, -15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Zul'Gurub
elif map_id == 409: d = map_id, -15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Molten Core
elif map_id == 469: d = map_id, -15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Blackwing Lair
elif map_id == 509: d = map_id, -15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Ruins of Ahn'Qiraj
elif map_id == 531: d = map_id, -15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Ahn'Qiraj
elif map_id == 532: d = map_id, -15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Karazhan
elif map_id == 533: d = map_id, -15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Naxxramas
elif map_id == 544: d = map_id, -15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Magtheridon's Lair
elif map_id == 548: d = map_id, -15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Coilfang Raid
elif map_id == 550: d = map_id, -15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 #Tempest Keep Raid
# PvP_zone_I (3)
elif map_id == 30: d = map_id, -8000, 8000, -8000, 8000, 0, 95, 2606, 0, 0 #PVP Zone 1 Alterac Valley
elif map_id == 489: d = map_id, -8000, 8000, -8000, 8000, 0, 3646, 3647, 0, 0 #PVP Zone 4 Warsong Gulch
elif map_id == 529: d = map_id, -8000, 8000, -8000, 8000, 0, 3866, 3867, 0, 0 #PVP Zone 3 Arathi Basin
elif map_id == 566: d = map_id, -8000, 8000, -8000, 8000, 0, 0, 0, 0, 0 #NetherstormArena
# PvP_zone_II (4)
elif map_id == 559: d = map_id, -8000, 8000, -8000, 8000, 0, 0, 0, 0, 0 #PVPZone05
elif map_id == 566: d = map_id, -8000, 8000, -8000, 8000, 0, 0, 0, 0, 0 #bladesedgearena
#undefined
else: d = map_id, -15470, 15470, -15470, 15470, 1, 0, 0, 0, 0 # Default Setting
# print "mapdefenition [%d] -X[%d] +X[%d] -Y[%d] +Y[%d] L[%d]" % (d[0], d[1], d[2], d[3], d[4], d[5], d[6], d[7], d[8], d[9])
SetMapDefinition( d[0], d[1], d[2], d[3], d[4], d[5], d[6], d[7], d[8], d[9] )
# Called by core on every Round Start
def OnBattleGroundRoundStart(instance_id, map_id):
print "OnBattleGroundRoundStart: instance[%d] map[%d]" % (instance_id, map_id)
text = "|cdf20af20Get prepared! Round starts..."
SendBattleGroundMessage(text, co.SIDE_ALLIANCE, instance_id)
SendBattleGroundMessage(text, co.SIDE_HORDE, instance_id)
# Warsong Gulch
if map_id == 489:
go_list = GetInstanceGOList(instance_id)
for go in go_list:
if go == NULL: continue
else: entry_id = go.GetEntry()
print "GetInstanceGOList: found GameObject[%d]" % ( entry_id )
# Delete Flag Drops if any (due to dirty BD this is an easy way to make some cleanup on BG round start, shall be removed if DB is ok)
if entry_id == co.BATTLEGROUND_ALLIANCE_FLAG_DROP or entry_id == co.BATTLEGROUND_HORDE_FLAG_DROP or entry_id == co.BATTLEGROUND_HORDE_FLAG or entry_id == co.BATTLEGROUND_ALLIANCE_FLAG: go.Die()
if go.GetType() == co.GO_TYPE_DOOR and ( go.GetFlags() == 32 or go.GetFlags() == 34 ):
# Open door (33 - open door, 34 - close door)
go.SetFlags(33)
go.SetState(0)
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# Called by core on every Round End
def OnBattleGroundRoundEnd(instance_id, map_id):
print "OnBattleGroundRoundEnd: instance[%d] map[%d]" % (instance_id, map_id)
text = "|cdf20af20The round is ended! You have 2 minutes to leave BattleGround..."
SendBattleGroundMessage(text, co.SIDE_ALLIANCE, instance_id)
SendBattleGroundMessage(text, co.SIDE_HORDE, instance_id)
# Warsong Gulch (close Doors)
if map_id == 489:
go_list = GetInstanceGOList(instance_id)
for go in go_list:
if go == NULL: continue
entry_id = go.GetEntry()
print "GetInstanceGOList: found GameObject[%d]" % ( entry_id )
#if entry_id == 179918:
if go.GetType() == co.GO_TYPE_DOOR and go.GetFlags() == 33:
# Open door (33 - open door, 34 - close door)
go.SetFlags(34)
go.SetState(1)
#------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# This const's used KremLiN AI Molten Core
INSTANCE_MC_GOLEMAGG_BUFFER_INDEX=0
INSTANCE_MC_CR1_BUFFER_INDEX=1
INSTANCE_MC_CR2_BUFFER_INDEX=2
INSTANCE_MC_ACH_SPAWN_BUFFER_INDEX=3
INSTANCE_MC_FIRESWORN1_STATUS_BUFFER_INDEX=4
INSTANCE_MC_FIRESWORN2_STATUS_BUFFER_INDEX=5
INSTANCE_MC_FIRESWORN3_STATUS_BUFFER_INDEX=6
INSTANCE_MC_FIRESWORN4_STATUS_BUFFER_INDEX=7
INSTANCE_MC_FIRESWORN5_STATUS_BUFFER_INDEX=8
INSTANCE_MC_FIRESWORN6_STATUS_BUFFER_INDEX=9
INSTANCE_MC_FIRESWORN7_STATUS_BUFFER_INDEX=10
INSTANCE_MC_FIRESWORN8_STATUS_BUFFER_INDEX=11
INSTANCE_MC_GARR_GUID_BUFFER_INDEX=12
# Called by core on every instance init
def OnInstanceInit(instance_id, map_id):
if map_id==409:
#0=No init
#1=Death
#GUID=Active
SetInstanceBufferValue(instance_id,INSTANCE_MC_GOLEMAGG_BUFFER_INDEX,0)
SetInstanceBufferValue(instance_id,INSTANCE_MC_CR1_BUFFER_INDEX,0)
SetInstanceBufferValue(instance_id,INSTANCE_MC_CR2_BUFFER_INDEX,0)
#Ancient Core Hound Spawn=TRUE/ 0 after Die Magmadar FALSE
SetInstanceBufferValue(instance_id,INSTANCE_MC_ACH_SPAWN_BUFFER_INDEX,1)
#Set=0 :No Init
#Set=1:Death
#Set=GUID:Active/Banished
SetInstanceBufferValue(instance_id,INSTANCE_MC_FIRESWORN1_STATUS_BUFFER_INDEX,0)
SetInstanceBufferValue(instance_id,INSTANCE_MC_FIRESWORN2_STATUS_BUFFER_INDEX,0)
SetInstanceBufferValue(instance_id,INSTANCE_MC_FIRESWORN3_STATUS_BUFFER_INDEX,0)
SetInstanceBufferValue(instance_id,INSTANCE_MC_FIRESWORN4_STATUS_BUFFER_INDEX,0)
SetInstanceBufferValue(instance_id,INSTANCE_MC_FIRESWORN5_STATUS_BUFFER_INDEX,0)
SetInstanceBufferValue(instance_id,INSTANCE_MC_FIRESWORN6_STATUS_BUFFER_INDEX,0)
SetInstanceBufferValue(instance_id,INSTANCE_MC_FIRESWORN7_STATUS_BUFFER_INDEX,0)
SetInstanceBufferValue(instance_id,INSTANCE_MC_FIRESWORN8_STATUS_BUFFER_INDEX,0)
SetInstanceBufferValue(instance_id,INSTANCE_MC_GARR_GUID_BUFFER_INDEX,0)
print "OnInstanceInit: instance[%d] map[%d]" % (instance_id, map_id)
# -- EOF --