Documentation
¶
Index ¶
- func BankBalance(receiver, source game.Object, v any) bool
- func BankCheck(receiver, source game.Object, v any) bool
- func BankDeposit(receiver, source game.Object, v any) bool
- func BankWithdraw(receiver, source game.Object, v any) bool
- func BeginMining(receiver, source game.Object, v any) bool
- func CashCheck(receiver, source game.Object, v any) bool
- func ClaimAllPets(receiver, source game.Object, v any) bool
- func CommandDrop(receiver, source game.Object, v any) bool
- func CommandFollow(receiver, source game.Object, v any) bool
- func CommandFollowMe(receiver, source game.Object, v any) bool
- func CommandRelease(receiver, source game.Object, v any) bool
- func CommandStay(receiver, source game.Object, v any) bool
- func ContinueMining(receiver, source game.Object, v any) bool
- func DropToContainer(receiver, source game.Object, v any) bool
- func DropToPackAnimal(receiver, source game.Object, v any) bool
- func DropToPlayer(receiver, source game.Object, v any) bool
- func Edit(receiver, source game.Object, v any) bool
- func FinishMining(receiver, source game.Object, v any) bool
- func GetEventHandlerIndex(which string) uint16
- func GetEventIndex(fn *EventHandler) uint16
- func GetEventName(fn *EventHandler) string
- func HarvestCrop(receiver, source game.Object, v any) bool
- func KeywordsBanker(receiver, source game.Object, v any) bool
- func KeywordsCommand(receiver, source game.Object, v any) bool
- func KeywordsStablemaster(receiver, source game.Object, v any) bool
- func KeywordsVendor(receiver, source game.Object, v any) bool
- func Mount(receiver, source game.Object, v any) bool
- func OpenBackpack(receiver, source game.Object, v any) bool
- func OpenBankBox(receiver, source game.Object, v any) bool
- func OpenContainer(receiver, source game.Object, v any) bool
- func OpenPaperDoll(receiver, source game.Object, v any) bool
- func OpenTeleportGUMP(receiver, source game.Object, v any) bool
- func PlayerDoubleClick(receiver, source game.Object, v any) bool
- func PlayerLogout(receiver, source game.Object, v any) bool
- func SmeltOre(receiver, source game.Object, v any) bool
- func StablePet(receiver, source game.Object, v any) bool
- func TransferHue(receiver, source game.Object, v any) bool
- func UseDoor(receiver, source game.Object, v any) bool
- func VendorBuy(receiver, source game.Object, v any) bool
- func VendorSell(receiver, source game.Object, v any) bool
- func WhisperTime(receiver, source game.Object, v any) bool
- type EventHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BankBalance ¶
BankBalance says the source's account balance.
func BankDeposit ¶
BankDeposit deposits the amount of gold into the bank.
func BankWithdraw ¶
BankWithdraw withdraws the amount of gold from the bank.
func ClaimAllPets ¶
ClaimAllPets presents a GUMP for claiming pets
func CommandDrop ¶
CommandDrop commands a pet to drop all inventory contents at their feet.
func CommandFollow ¶
CommandFollow allows commanding a pet to follow another mobile with a targeting cursor.
func CommandFollowMe ¶
CommandFollowMe commands a pet to follow the source mobile if that mobile can command the receiving mobile.
func CommandRelease ¶
CommandRelease commands a pet to drop all inventory contents at their feet.
func CommandStay ¶
CommandStay commands a pet to stay in its current location command the receiving mobile.
func GetEventHandlerIndex ¶
GetEventHandlerIndex returns the event handler index by name. A return value of 0 means nil or event handler not found. NOTE: This index number can change when events are added. DO NOT PERSIST THIS VALUE!
func GetEventIndex ¶
func GetEventIndex(fn *EventHandler) uint16
GetEventIndex returns the index number of the event handler. A return value of 0 means nil or event handler not found. NOTE: This index number can change when events are added. DO NOT PERSIST THIS VALUE!
func GetEventName ¶
func GetEventName(fn *EventHandler) string
GetEventName returns the name of the event handler
func KeywordsBanker ¶
KeywordsBanker handles banker speech triggers.
func KeywordsCommand ¶
KeywordsCommand handles command-able creature speech triggers.
func KeywordsStablemaster ¶
KeywordsStablemaster handles stablemaster speech triggers.
func KeywordsVendor ¶
KeywordsVendor handles common vendor speech triggers.
func OpenBackpack ¶
OpenBackpack attempts to open the backpack of the receiver as in snooping or pack animals.
func OpenBankBox ¶
OpenBankBox attempts to open the bank box of the source.
func OpenContainer ¶
OpenContainer opens this container for the mobile. As an additional restriction it checks the Z distance against the uo.ContainerOpen* limits.
func OpenPaperDoll ¶
OpenPaperDoll opens the paper doll of the receiver mobile to the source.
func PlayerDoubleClick ¶
PlayerDoubleClick selects between the open paper doll and dismount actions based on the identity of the source.
func PlayerLogout ¶
PlayerLogout logs out the player mobile receiver.
func VendorSell ¶
VendorSell opens the vendor sell screen for a vendor.
Types ¶
type EventHandler ¶
EventHandler is the function signature of event handlers
func GetEventHandler ¶
func GetEventHandler(which string) *EventHandler
GetEventHandler returns the named event handler or nil if it does not exist
func GetEventHandlerByIndex ¶
func GetEventHandlerByIndex(idx uint16) *EventHandler
GetEventHandlerByIndex returns the event handler by index or nil if it does not exist.