# Gollux portals fields = { # Main map id : main portal id : [to field id, to field portal] 863010100 : { 3 : [863010400, 2], 6 : [863010300, 2], 7 : [863010300, 2], 9 : [863010220, 1], }, 863010200 : { 0 : [863010100, 2], 1 : [863010220, 2], 2 : [863010240, 2], }, 863010210 : { 1 : [863010200, 1], 2 : [863010240, 0], }, 863010220 : { 1 : [863010100, 1], 2 : [863010230, 1], }, 863010230 : { 1 : [863010220, 2], 2 : [863010240, 0], }, 863010240 : { 1 : [863010230, 2], 2 : [863010210, 2], 3 : [863010500, 0], }, 863010300 :{ 1 : [863010310, 1], 2 : [863010100, 7], }, 863010310 : { 1 : [863010300, 1], 2 : [863010320, 1], }, 863010320 : { 1 : [863010500, 1], 2 : [863010310, 2], 3 : [863010330, 0], }, 863010330 : { 1 : [863010320, 3], 3 : [863010500, 0], }, 863010400 : { 1 : [863010410, 1], 2 : [863010100, 6], }, 863010410 : { 1 : [863010400, 1], 2 : [863010420, 1], }, 863010420 : { 1 : [863010410, 5], 2 : [863010500, 5], 3 : [863010430, 0], }, 863010430 : { 1 : [863010420, 3], 3 : [863010500, 0], }, 863010500 : { 1 : [863010320, 1], 2 : [863010240, 0], 3 : [863010600, 0], 4 : [863010330, 0], 5 : [863010420, 2], 6 : [863010430, 0], }, 863010600 : { 2 : [863010500, 0], }, } fieldID = sm.getFieldID() if fieldID not in fields: sm.chat("This portal (giantBossPortal.py) is not yet coded for this map (" + str(fieldID) + ")") else: innerDict = fields[fieldID] if parentID not in innerDict: sm.chat("This portal (giantBossPortal, " + str(parentID) + ") is not yet coded for this map (" + str(fieldID) + ")") elif sm.getAmountOfMobsInField() > 2 and fieldID != 863010600: sm.chat("Defeat all monsters first.") else: sm.warp(innerDict[parentID][0], innerDict[parentID][1])