Das scripten an sich stellt für mich kein Problem dar. Logik, Programmablauf, etc.
Mein Problem ist folgendes:
Ich möchte einen Ausrüstungsgegenstand erstellen, einen Preis definieren und dieser Ausrüstungsgegenstand soll es in den A-Docks der Split geben.
Wie mache ich das?
--------------------------
Ich habe mir mal das script von tickaci´s BPH angeschaut. Wenn ich richtig liege, ist folgender Codeteil dafür verantwortlich, die BPH mit Preis und als Ausrüstungsgegenstand einzufügen.
Code: Select all
- <page id="17" title="Boardcomp. objects" descr="Product Names">
<t id="5823">BPH-Erweiterungskit MK1</t>
<t id="5824">{17,5665}</t>
</page>
Und dieser Code fügt das BPH in die Boronen A-Docks ein (Das ist die Datei plugin.ticaki.bphe.raumdock.init.xml:
Code: Select all
001 @ = wait 4 ms
002 $Koenigstal = get sector from universe index: x=0, y=0
003 $Dock = Boron Ausrüstungsdock
004 $e = 0
005 while $e < 15
006 $TheStation = find station in galaxy: startsector=$Koenigstal class or type=$Dock race=null flags=[Find.Random] refobj=null serial=null max.jumps=null
007 if $TheStation -> exists
008 if not $TheStation -> trades with ware $Upgrade
009 $TheStation -> add product to factory or dock: $Upgrade
010 $dummy = $TheStation -> add 1 units of $Upgrade
011 end
012 else
013 break
014 end
015 inc $e =
016 end
017 $Dock = Equipment Dock
018 $e = 8
019 while $e < 15
020 $TheStation = find station in galaxy: startsector=$Koenigstal class or type=$Dock race=null flags=[Find.Random] refobj=null serial=null max.jumps=$e
021 if $TheStation -> exists
022 if not $TheStation -> trades with ware $Upgrade
023 $TheStation -> add product to factory or dock: $Upgrade
024 $dummy = $TheStation -> add 1 units of $Upgrade
025 end
026 else
027 break
028 end
029 inc $e =
030 end
031 return null
So, nun zu meiner Frage. Wie muß ich vorgehen, wenn ich einen Ausrüstungsgegenstand "BLA" in Split-A-Docks zu einem Preis von 250.000 Credits einfügen möchte?
Ich bin für Eure Antworten dankbar.
mfG
Ricola