-
-
Notifications
You must be signed in to change notification settings - Fork 46
Gumps pl PL
Utworzono na 02.09.2024 22:46:49
Wersja: 4.425.19+0c26057dbb7e7e285dbbb7378d1639f9d9112e29
Aru (ŁCh)
Sygnatura metody:
Void CloseGump(Int32)
- serial: Numer serial dla entity, np. 0xf00f0x0.
Opis:
Zamyka podanego gumpa.
Przykład:
CloseGump(0x454ddef)
Sygnatura metody:
Boolean ConfirmPrompt(System.String, Boolean)
Opis:
Displays an ingame prompt with the specified message, returns True if Okay was pressed, False if not.
Przykład:
res = ConfirmPrompt("Play macro?")
if res:
PlayMacro("Macro")
Sygnatura metody:
Boolean GumpExists(UInt32)
Opis:
Sprawdza czy gump istnieje czy nie
Przykład:
if GumpExists(0xff):
Sygnatura metody:
Boolean InGump(UInt32, System.String)
- gumpid: identyfikator lub liczba lub hex albo alias np 'self'.
- text: Zmienna typu string - zobacz opis, aby zobaczyć użycie.
Opis:
Sprawdza czy podany tekst występuje w gumpie
Przykład:
if InGump(0xf00f, "lethal darts"):
Sygnatura metody:
Int32[] ItemArrayGump(System.Collections.Generic.IList`1[System.Object], Boolean, Int32, Int32, Boolean)
Opis:
Displays a gump with the selected serials / aliases in a grid, similar to the UOSteam loot grid, returns array of serials selected
Przykład:
from Assistant import Engine
#single select, specified items
result = ItemArrayGump([0x462d3373, 0x462d6029])
if result.Length == 0:
print 'Nothing was selected'
else:
print 'Serial {} was selected'.format(result[0])
#showing backpack items, multi select, at coords 200, 200
items = Engine.Player.Backpack.Container.GetItems()
results = ItemArrayGump(items, True, 200, 200)
if results.Length == 0:
print 'Nothing was selected'
else:
print '{} item(s) were selected'.format(results.Length)
for serial in results:
print 'Serial {} was selected'.format(serial)
Sygnatura metody:
System.ValueTuple`2[System.Boolean,System.String] MessagePrompt(System.String, System.String, Boolean)
- message: Zmienna typu string - zobacz opis, aby zobaczyć użycie.
- initialtext: Zmienna typu string - zobacz opis, aby zobaczyć użycie. (Opcjonalny)
- closable: Wartość True/False - zobacz opis, aby zobaczyć użycie. (Opcjonalny)
Opis:
Wyświetla w grze okno z informacją
Przykład:
res, name = MessagePrompt("Enter Name?", "Whiskers")
if res:
Rename(0xc1b, name)
Sygnatura metody:
Void OpenGuildGump()
Opis:
Otwiera gump Gildii.
Przykład:
OpenGuildGump()
Sygnatura metody:
Void OpenHelpGump()
Opis:
Opens the Help gump
Przykład:
OpenHelpGump()
Sygnatura metody:
Void OpenQuestsGump()
Opis:
Otwiera ugump Questów.
Przykład:
OpenQuestsGump()
Sygnatura metody:
Void OpenVirtueGump(System.Object)
- obj: identyfikator lub liczba lub hex albo alias np 'self'. (Opcjonalny)
Opis:
Otwiera gump Cnót podanego serialu/aliasu (domyślnie wybrana jest postać gracza).
Przykład:
OpenVirtueGump("enemy")
Sygnatura metody:
Void ReplyGump(UInt32, Int32, Int32[], System.Collections.Generic.Dictionary`2[System.Int32,System.String])
- gumpid: ItemId/Grafika np. 0x3db.
- buttonid: ID przycisku Gump.
- switches: Zmianna typu integer - zobacz opis, aby zobaczyć użycie. (Opcjonalny)
- textentries: Nie zdefiniowano - zobacz opis, aby zobaczyć użycie. (Opcjonalny)
Opis:
Wysyła polecenie ponownego wciśnięcia przycisku. Parametrami są gumpID i buttonID
Przykład:
ReplyGump(0xff, 0)
Sygnatura metody:
System.ValueTuple2[System.Boolean,System.Int32] SelectionPrompt(System.Collections.Generic.IEnumerable
1[System.String], System.String, Boolean)
- options: lista stringów.
- message: Zmienna typu string - zobacz opis, aby zobaczyć użycie. (Opcjonalny)
- closable: Wartość True/False - zobacz opis, aby zobaczyć użycie. (Opcjonalny)
Opis:
**Tworzy gump w grze z wyborem opcji z listy
Zwraca boolean'a oznaczającego czy przycisk OK został wciśnięty oraz index wybranej pozycji z listy**
Przykład:
res, index = SelectionPrompt(['Sex', 'Drugs', 'Rock and Roll'])
if res:
print 'Option {} was selected'.format(index)
else:
print 'Cancel was pressed'
Sygnatura metody:
Boolean WaitForGump(UInt32, Int32)
- gumpid: ItemId/Grafika np. 0x3db. (Opcjonalny)
- timeout: Timeout w milisekundach. (Opcjonalny)
Opis:
Czeka na pakiet gumpa, opcjonalne parametry to gumpID oraz timeout.
Przykład:
WaitForGump(0xff, 5000)