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.IEnumerable1[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)