events

package
v0.0.0-...-b0deb01 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BankBalance

func BankBalance(receiver, source game.Object, v any) bool

BankBalance says the source's account balance.

func BankCheck

func BankCheck(receiver, source game.Object, v any) bool

BankCheck creates a bank check for the given amount.

func BankDeposit

func BankDeposit(receiver, source game.Object, v any) bool

BankDeposit deposits the amount of gold into the bank.

func BankWithdraw

func BankWithdraw(receiver, source game.Object, v any) bool

BankWithdraw withdraws the amount of gold from the bank.

func BeginMining

func BeginMining(receiver, source game.Object, v any) bool

func CashCheck

func CashCheck(receiver, source game.Object, v any) bool

func ClaimAllPets

func ClaimAllPets(receiver, source game.Object, v any) bool

ClaimAllPets presents a GUMP for claiming pets

func CommandDrop

func CommandDrop(receiver, source game.Object, v any) bool

CommandDrop commands a pet to drop all inventory contents at their feet.

func CommandFollow

func CommandFollow(receiver, source game.Object, v any) bool

CommandFollow allows commanding a pet to follow another mobile with a targeting cursor.

func CommandFollowMe

func CommandFollowMe(receiver, source game.Object, v any) bool

CommandFollowMe commands a pet to follow the source mobile if that mobile can command the receiving mobile.

func CommandRelease

func CommandRelease(receiver, source game.Object, v any) bool

CommandRelease commands a pet to drop all inventory contents at their feet.

func CommandStay

func CommandStay(receiver, source game.Object, v any) bool

CommandStay commands a pet to stay in its current location command the receiving mobile.

func ContinueMining

func ContinueMining(receiver, source game.Object, v any) bool

func DropToContainer

func DropToContainer(receiver, source game.Object, v any) bool

func DropToPackAnimal

func DropToPackAnimal(receiver, source game.Object, v any) bool

func DropToPlayer

func DropToPlayer(receiver, source game.Object, v any) bool

func Edit

func Edit(receiver, source game.Object, v any) bool

func FinishMining

func FinishMining(receiver, source game.Object, v any) bool

func GetEventHandlerIndex

func GetEventHandlerIndex(which string) uint16

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 HarvestCrop

func HarvestCrop(receiver, source game.Object, v any) bool

func KeywordsBanker

func KeywordsBanker(receiver, source game.Object, v any) bool

KeywordsBanker handles banker speech triggers.

func KeywordsCommand

func KeywordsCommand(receiver, source game.Object, v any) bool

KeywordsCommand handles command-able creature speech triggers.

func KeywordsStablemaster

func KeywordsStablemaster(receiver, source game.Object, v any) bool

KeywordsStablemaster handles stablemaster speech triggers.

func KeywordsVendor

func KeywordsVendor(receiver, source game.Object, v any) bool

KeywordsVendor handles common vendor speech triggers.

func Mount

func Mount(receiver, source game.Object, v any) bool

Mount attempts to mount the source mobile onto the receiver.

func OpenBackpack

func OpenBackpack(receiver, source game.Object, v any) bool

OpenBackpack attempts to open the backpack of the receiver as in snooping or pack animals.

func OpenBankBox

func OpenBankBox(receiver, source game.Object, v any) bool

OpenBankBox attempts to open the bank box of the source.

func OpenContainer

func OpenContainer(receiver, source game.Object, v any) bool

OpenContainer opens this container for the mobile. As an additional restriction it checks the Z distance against the uo.ContainerOpen* limits.

func OpenPaperDoll

func OpenPaperDoll(receiver, source game.Object, v any) bool

OpenPaperDoll opens the paper doll of the receiver mobile to the source.

func OpenTeleportGUMP

func OpenTeleportGUMP(receiver, source game.Object, v any) bool

func PlayerDoubleClick

func PlayerDoubleClick(receiver, source game.Object, v any) bool

PlayerDoubleClick selects between the open paper doll and dismount actions based on the identity of the source.

func PlayerLogout

func PlayerLogout(receiver, source game.Object, v any) bool

PlayerLogout logs out the player mobile receiver.

func SmeltOre

func SmeltOre(receiver, source game.Object, v any) bool

func StablePet

func StablePet(receiver, source game.Object, v any) bool

StablePet presents a targeting cursor for stabling a pet

func TransferHue

func TransferHue(receiver, source game.Object, v any) bool

func UseDoor

func UseDoor(receiver, source game.Object, v any) bool

func VendorBuy

func VendorBuy(receiver, source game.Object, v any) bool

VendorBuy opens the vendor buy screen for a vendor.

func VendorSell

func VendorSell(receiver, source game.Object, v any) bool

VendorSell opens the vendor sell screen for a vendor.

func WhisperTime

func WhisperTime(receiver, source game.Object, v any) bool

WhisperTime whispers the current Sossarian time to the source.

Types

type EventHandler

type EventHandler func(game.Object, game.Object, any) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL