Gumps ko KR - Reetus/ClassicAssist GitHub Wiki
ν΄λμμ΄μμ€νΈ 맀ν¬λ‘ λͺ λ Ήμ΄
μμ±λ 2024-12-15 μ€μ 3:30:41
λ²μ : 4.425.22+b9a337759d26b9d39ae8ccaac75a36c4255be94a
Translated by Mark Hunt & Andy H.
κ²ν
CloseGump
λ©μλ μκ·Έλμ²:
Void CloseGump(Int32)
νλΌλ―Έν°
- serial: μλ¦¬μΌ μμ) 0xf00ff00f .
μ€λͺ :
μ§μ λ κ²ν μλ¦¬μΌ λ«μ΅λλ€.
μμ:
CloseGump(0x454ddef)
ConfirmPrompt
λ©μλ μκ·Έλμ²:
Boolean ConfirmPrompt(System.String, Boolean)
μ€λͺ :
λ©μμ§μ ν¨κ» κ²μ λ΄ ν둬ννΈλ₯Ό νμνκ³ , Okayλ₯Ό λλ₯΄λ©΄ Trueλ‘, κ·Έλ μ§ μμΌλ©΄ Falseλ‘ λμν©λλ€.
μμ:
res = ConfirmPrompt("Play macro?")
if res:
PlayMacro("Macro")
GumpExists
λ©μλ μκ·Έλμ²:
Boolean GumpExists(UInt32)
μ€λͺ :
κ²ν IDκ° μλμ§ νμΈν©λλ€.
μμ:
if GumpExists(0xff):
InGump
λ©μλ μκ·Έλμ²:
Boolean InGump(UInt32, System.String)
νλΌλ―Έν°
- gumpid: μ μ λλ 16μ§μ νμμ μ€μ μ리μΌ, λλ "self"μ κ°μ μ΄λ¦ λ¬Έμμ΄.
- text: λ¬Έμμ΄ κ° - μ¬μ© λ°©λ²μ λν μ€λͺ μ 보μΈμ.
μ€λͺ :
κ²ν ν μ€νΈλ₯Ό νμΈν©λλ€.
μμ:
if InGump(0xf00f, "lethal darts"):
ItemArrayGump
λ©μλ μκ·Έλμ²:
Int32[] ItemArrayGump(System.Collections.Generic.IList`1[System.Object], Boolean, Int32, Int32, Boolean)
μ€λͺ :
Displays a gump with the selected serials / aliases in a grid, similar to the UOSteam loot grid, returns array of serials selected
μμ:
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
λ©μλ μκ·Έλμ²:
System.ValueTuple`2[System.Boolean,System.String] MessagePrompt(System.String, System.String, Boolean)
νλΌλ―Έν°
- message: λ¬Έμμ΄ κ° - μ¬μ© λ°©λ²μ λν μ€λͺ μ 보μΈμ.
- initialtext: λ¬Έμμ΄ κ° - μ¬μ© λ°©λ²μ λν μ€λͺ μ 보μΈμ. (μ΅μ )
- closable: Ture/False κ°, μ¬μ© λ°©λ²μ λν μ€λͺ μ 보μΈμ. (μ΅μ )
μ€λͺ :
λ©μμ§μ λν μΈκ²μ κ²ν ν둬ννΈ νμ
μμ:
res, name = MessagePrompt("Enter Name?", "Whiskers")
if res:
Rename(0xc1b, name)
OpenGuildGump
λ©μλ μκ·Έλμ²:
Void OpenGuildGump()
μ€λͺ :
κΈΈλ κ²νλ₯Ό μ½λλ€
μμ:
OpenGuildGump()
OpenHelpGump
λ©μλ μκ·Έλμ²:
Void OpenHelpGump()
μ€λͺ :
ν¬ν κ²νλ₯Ό μ½λλ€.
μμ:
OpenHelpGump()
OpenQuestsGump
λ©μλ μκ·Έλμ²:
Void OpenQuestsGump()
μ€λͺ :
νμ€νΈ κ²νλ₯Ό μ½λλ€
μμ:
OpenQuestsGump()
OpenVirtueGump
λ©μλ μκ·Έλμ²:
Void OpenVirtueGump(System.Object)
νλΌλ―Έν°
- obj: μ μ λλ 16μ§μ νμμ μ€μ μ리μΌ, λλ "self"μ κ°μ μ΄λ¦ λ¬Έμμ΄. (μ΅μ )
μ€λͺ :
μλ¦¬μΌ / μ΄λ¦μ λ―Έλ κ²νλ₯Ό μ½λλ€. (κΈ°λ³Έκ°μ νμ¬ νλ μ΄μ΄)
μμ:
OpenVirtueGump("enemy")
ReplyGump
λ©μλ μκ·Έλμ²:
Void ReplyGump(UInt32, Int32, Int32[], System.Collections.Generic.Dictionary`2[System.Int32,System.String])
νλΌλ―Έν°
- gumpid: μμ΄ν ID/κ·Έλν½ μμ) 0x3db .
- buttonid: κ²νλ²νΌ ID.
- switches: μ μ κ° - μ¬μ© λ°©λ²μ λν μ€λͺ μ 보μΈμ. (μ΅μ )
- textentries: μ§μ λμ§ μμ - μ¬μ© λ°©λ²μ λν μ€λͺ μ 보μΈμ. (μ΅μ )
μ€λͺ :
μλ² κ²νμμ λ²νΌ μλ΅μ 보λ λλ€. λ§€κ° λ³μλ κ²νID λ° λ²νΌIDμ λλ€.
μμ:
ReplyGump(0xff, 0)
SelectionPrompt
λ©μλ μκ·Έλμ²:
System.ValueTuple2[System.Boolean,System.Int32] SelectionPrompt(System.Collections.Generic.IEnumerable
1[System.String], System.String, Boolean)
νλΌλ―Έν°
- options: 맀κ°λ³μ_μ€λͺ _λ¬Έμμ΄ λ°°μ΄.
- message: λ¬Έμμ΄ κ° - μ¬μ© λ°©λ²μ λν μ€λͺ μ 보μΈμ. (μ΅μ )
- closable: Ture/False κ°, μ¬μ© λ°©λ²μ λν μ€λͺ μ 보μΈμ. (μ΅μ )
μ€λͺ :
**μ΅μ λͺ©λ‘μμ μ νν μ μλ κ²μ λ΄ λ©λ΄(gump)λ₯Ό μμ±ν©λλ€
OKλ²νΌ ν΄λ¦ ν΄λ¦ μ¬λΆλ₯Ό λνλ΄λ tupleκ³Ό μ νλ entry indexλ₯Ό λ°νν©λλ€.**
μμ:
res, index = SelectionPrompt(['Sex', 'Drugs', 'Rock and Roll'])
if res:
print 'Option {} was selected'.format(index)
else:
print 'Cancel was pressed'
WaitForGump
λ©μλ μκ·Έλμ²:
Boolean WaitForGump(UInt32, Int32)
νλΌλ―Έν°
- gumpid: μμ΄ν ID/κ·Έλν½ μμ) 0x3db . (μ΅μ )
- timeout: milliseconds μ§μ λ μκ°μ΄κ³Όλ¨. (μ΅μ )
μ€λͺ :
κ²ν ν¨ν·μ΄ μμ λ λκΉμ§ μΌμ μ μ§ λ©λλ€.
μμ:
WaitForGump(0xff, 5000)