[ITEMDEF i_gate_maps]
ID=i_moongate_blue
NAME=Moongate
DEFNAME=i_gate_maps
TYPE=t_normal

ON=@Create
attr=attr_static

ON=@Step
IF (<SRC.ISPLAYER>)
	IF !(<ARGN1>)
		IF !(<REGION.FLAGS>&REGION_FLAG_SAFE)
			IF !(<SRC.FLAGS>&statf_dead)
				IF (<SRC.FLAGS>&STATF_WAR)
				SRC.SYSMESSAGELOC -1,501955
				LOCAL.NAOPODE=1
				ENDIF
			ENDIF
		ENDIF
		IF !(<LOCAL.NAOPODE>)
		SDIALOG d_travel_sys 1
		ELSE
		SRC.DIALOGCLOSE d_travel_sys
		ENDIF
	ENDIF
ENDIF

ON=@Dclick
IF !(<DISTANCE>)
	IF !(<REGION.FLAGS>&REGION_FLAG_SAFE)
		IF !(<SRC.FLAGS>&statf_dead)
			IF (<SRC.FLAGS>&STATF_WAR)
			SRC.SYSMESSAGELOC -1,501955
			LOCAL.NAOPODE=1
			ENDIF
		ENDIF
	ENDIF
	IF !(<LOCAL.NAOPODE>)
	SDIALOG d_travel_sys 1
	ELSE
	SRC.DIALOGCLOSE d_travel_sys
	ENDIF
	IF !(<LOCAL.NAOPODE>)
	SDIALOG d_travel_sys 1
	ELSE
	SRC.DIALOGCLOSE d_travel_sys
	ENDIF
ENDIF
RETURN 1

[DIALOG d_travel_sys]
230,130
src.closealldialogs
PAGE 0
resizepic 20 20 5054 415 280
xmfhtmlgump 25 25 200 20 1012011 0 0
button 30 60 2117 2118 0 1 1
xmfhtmlgump 50 60 50 20 1012001 0 0
button 30 85 2117 2118 0 2 1
xmfhtmlgump 50 85 50 20 1012002 0 0
button 30 110 2117 2118 0 3 1
xmfhtmlgump 50 110 50 20 1060643 0 0
button 30 135 2117 2118 0 4 1
xmfhtmlgump 50 135 100 20 1063258 0 0
button 30 235 4005 4006 1 0 4
button 30 260 4005 4006 1 0 0
xmfhtmlgump 65 235 100 20 1011036 0 0
xmfhtmlgump 65 260 100 20 1011012 0 0

PAGE 1
xmfhtmlgump 50 60 200 20 1012013 0 0
radio 220 60 210 211 0 1
xmfhtmlgump 245 60 100 20 1012003 0 0 //Moonglow
radio 220 85 210 211 0 2
xmfhtmlgump 245 85 100 20 1012004 0 0 //Britain
radio 220 110 210 211 0 3
xmfhtmlgump 245 110 100 20 1012005 0 0 //Jhelom
radio 220 135 210 211 0 4
xmfhtmlgump 245 135 100 20 1012006 0 0 //Yew
radio 220 160 210 211 0 5
xmfhtmlgump 245 160 100 20 1012007 0 0 //Minoc
radio 220 185 210 211 0 6
xmfhtmlgump 245 185 100 20 1012008 0 0 //Trinsic
radio 220 210 210 211 0 7
xmfhtmlgump 245 210 100 20 1012009 0 0 //Skara Brae
radio 220 235 210 211 0 8
xmfhtmlgump 245 235 100 20 1012010 0 0 //Magincia
radio 220 260 210 211 0 9
dtext 245 260 0 Heartwood
radio 320 60 210 211 0 21
xmfhtmlgump 345 60 100 20 1072238 0 0 //Serpent's Hold
radio 320 85 210 211 0 22
xmfhtmlgump 345 85 100 20 1016054 0 0 //Bank of Ocllo
radio 320 110 210 211 0 23
xmfhtmlgump 345 110 100 20 1011033 0 0 //Cove

PAGE 2
xmfhtmlgump 50 85 100 20 1012014 0 0
radio 220 60 210 211 0 10
xmfhtmlgump 245 60 100 20 1012015 0 0 //Compassion
radio 220 85 210 211 0 11
xmfhtmlgump 245 85 100 20 1012016 0 0 //Honesty
radio 220 110 210 211 0 12
xmfhtmlgump 245 110 100 20 1012017 0 0 //Honor
radio 220 135 210 211 0 13
xmfhtmlgump 245 135 100 20 1012018 0 0 //Humility
radio 220 160 210 211 0 14
xmfhtmlgump 245 160 100 20 1012019 0 0 //Justice
radio 220 185 210 211 0 15
xmfhtmlgump 245 185 100 20 1012020 0 0 //Sacrifice
radio 220 210 210 211 0 16
xmfhtmlgump 245 210 100 20 1012021 0 0 //Spirituality
radio 220 235 210 211 0 17
xmfhtmlgump 245 235 100 20 1012022 0 0 //Valor
radio 220 260 210 211 0 18
xmfhtmlgump 245 260 100 20 1019000 0 0 //Chaos

PAGE 3
xmfhtmlgump 50 110 50 20 1062039 0 0
radio 220 60 210 211 0 19
xmfhtmlgump 245 60 100 20 1060641 0 0 //Luna
radio 220 85 210 211 0 20
xmfhtmlgump 245 85 100 20 1060642 0 0 //Umbra

PAGE 4
xmfhtmlgump 50 135 100 20 1063415 0 0

[DIALOG d_travel_sys BUTTON]
ON=4
IF (<DISTANCE> <= 1)
SRC.REMOVEFROMVIEW
IF (<ARGCHK[1]>)
SRC.go moonglow moongate
ELIF (<ARGCHK[2]>)
SRC.go britain moongate
ELIF (<ARGCHK[3]>)
SRC.go jhelom moongate
ELIF (<ARGCHK[4]>)
SRC.go yew moongate
ELIF (<ARGCHK[5]>)
SRC.go 2702,692,5,0
ELIF (<ARGCHK[6]>)
SRC.go trinsic moongate
ELIF (<ARGCHK[7]>)
SRC.go skara brae moongate
ELIF (<ARGCHK[8]>)
SRC.go magincia moongate
ELIF (<ARGCHK[9]>)
SRC.go 7025,382
ELIF (<ARGCHK[10]>)
SRC.go shrine of compassion
ELIF (<ARGCHK[11]>)
SRC.go shrine of honesty
ELIF (<ARGCHK[12]>)
SRC.go shrine of honor
ELIF (<ARGCHK[13]>)
SRC.go shrine of Humility
ELIF (<ARGCHK[14]>)
SRC.go 987,1011,-32,2
ELIF (<ARGCHK[15]>)
SRC.go shrine of Sacrifice
ELIF (<ARGCHK[16]>)
SRC.go 1531,1341,-3,2
ELIF (<ARGCHK[17]>)
SRC.go shrine of Valor
ELIF (<ARGCHK[18]>)
SRC.go 1748,236,58,2 //chaos
ELIF (<ARGCHK[19]>)
SRC.go 1015,527,-65,3
ELIF (<ARGCHK[20]>)
SRC.go 1997,1386,-85,3
ELIF (<ARGCHK[21]>)
SRC.go 2790,3563
ELIF (<ARGCHK[22]>)
SRC.go 3472,2649,8
ELIF (<ARGCHK[23]>)
SRC.go 2252,1036
ENDIF
SRC.REMOVEFROMVIEW
SRC.FLAGS |= statf_invisible
IF !(<SRC.ISGM>)
COLOR {0480 048d}
ENDIF
SRC.FIX
ENDIF

[EOF]