Skip to content

Gumps pl PL

Reetus edited this page Sep 2, 2024 · 273 revisions

Lista komend makr

Utworzono na 02.09.2024 22:46:49
Wersja: 4.425.19+0c26057dbb7e7e285dbbb7378d1639f9d9112e29
Aru (ŁCh)

Gumps

CloseGump

Sygnatura metody:

Void CloseGump(Int32)

Parametry

  • serial: Numer serial dla entity, np. 0xf00f0x0.

Opis:

Zamyka podanego gumpa.

Przykład:

CloseGump(0x454ddef)  

ConfirmPrompt

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")  

GumpExists

Sygnatura metody:

Boolean GumpExists(UInt32)

Opis:

Sprawdza czy gump istnieje czy nie

Przykład:

if GumpExists(0xff):  

InGump

Sygnatura metody:

Boolean InGump(UInt32, System.String)

Parametry

  • 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"):  

ItemArrayGump

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)
  

MessagePrompt

Sygnatura metody:

System.ValueTuple`2[System.Boolean,System.String] MessagePrompt(System.String, System.String, Boolean)

Parametry

  • 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)  

OpenGuildGump

Sygnatura metody:

Void OpenGuildGump()

Opis:

Otwiera gump Gildii.

Przykład:

OpenGuildGump()  

OpenHelpGump

Sygnatura metody:

Void OpenHelpGump()

Opis:

Opens the Help gump

Przykład:

OpenHelpGump()  

OpenQuestsGump

Sygnatura metody:

Void OpenQuestsGump()

Opis:

Otwiera ugump Questów.

Przykład:

OpenQuestsGump()  

OpenVirtueGump

Sygnatura metody:

Void OpenVirtueGump(System.Object)

Parametry

  • 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")  

ReplyGump

Sygnatura metody:

Void ReplyGump(UInt32, Int32, Int32[], System.Collections.Generic.Dictionary`2[System.Int32,System.String])

Parametry

  • 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)  

SelectionPrompt

Sygnatura metody:

System.ValueTuple2[System.Boolean,System.Int32] SelectionPrompt(System.Collections.Generic.IEnumerable1[System.String], System.String, Boolean)

Parametry

  • 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'  

WaitForGump

Sygnatura metody:

Boolean WaitForGump(UInt32, Int32)

Parametry

  • 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)  
Clone this wiki locally