Code:
001 $Local.Check = 'XTM.JUMP.P2P.CHECKVAR'
002 $Check = $ship -> get local variable: name=$Local.Check
003 if $Check == 1
004 return [CmdConCheck.Available]
005 else if $Check == 2
006 return 0
007 end
008
009 $ST.Leviathan = Leviathan
010 $ST.Valhalla = Valhalla
011 $ST.Tyr = Tyr
012 $ST.Odin = Odin
013 $ST.Asgard = Asgard
014 $ST.GMSY = Aran
015 $ST.Pioneer = Lilith
016 $ST.Observer = Oriax
017 $ST.Hauler = Charon
018 $ST.Defender = Zepar
019 $ST.Guardian = Seth
020 $ST.Olympus = Olympos
021 $ST.Castrum = Otas Castrum
022
023 if $ship -> is of type $ST.Leviathan
024 $ship -> set local variable: name=$Local.Check value=1
025 return [CmdConCheck.Available]
026
027 else if $ship -> is of type $ST.Valhalla
028 $ship -> set local variable: name=$Local.Check value=1
029 return [CmdConCheck.Available]
030 else if $ship -> is of type $ST.Tyr
031 $ship -> set local variable: name=$Local.Check value=1
032 return [CmdConCheck.Available]
033 else if $ship -> is of type $ST.Odin
034 $ship -> set local variable: name=$Local.Check value=1
035 return [CmdConCheck.Available]
036 else if $ship -> is of type $ST.Asgard
037 $ship -> set local variable: name=$Local.Check value=1
038 return [CmdConCheck.Available]
039
040 else if $ship -> is of type $ST.GMSY
041 $ship -> set local variable: name=$Local.Check value=1
042 return [CmdConCheck.Available]
043
044 else if $ship -> is of type $ST.Pioneer
045 $ship -> set local variable: name=$Local.Check value=1
046 return [CmdConCheck.Available]
047 else if $ship -> is of type $ST.Defender
048 $ship -> set local variable: name=$Local.Check value=1
049 return [CmdConCheck.Available]
050 else if $ship -> is of type $ST.Guardian
051 $ship -> set local variable: name=$Local.Check value=1
052 return [CmdConCheck.Available]
053 else if $ship -> is of type $ST.Hauler
054 $ship -> set local variable: name=$Local.Check value=1
055 return [CmdConCheck.Available]
056 else if $ship -> is of type $ST.Observer
057 $ship -> set local variable: name=$Local.Check value=1
058 return [CmdConCheck.Available]
059
060 else if $ship -> is of type $ST.Olympus
061 $ship -> set local variable: name=$Local.Check value=1
062 return [CmdConCheck.Available]
063
064 else if $ship -> is of type $ST.Castrum
065 $ship -> set local variable: name=$Local.Check value=1
066 return [CmdConCheck.Available]
067
068 end
069
070 $ship -> set local variable: name=$Local.Check value=2
071 return 0
einfach mal die eigene Schiffsklasse in scripts/plugin.XTM.Cmd.Jump.PoinTtoPoint.Check.xml einfuegen und sehen was passiert wuerde ich vorschlagen (backup machen vorher)
Bookmarks