cmd

package
v0.0.0-...-5996917 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ScriptList = map[string]string{
	"$TELEPORTTO": "Usage: $TELEPORTO room_id, message; send player to a different room",
	"$TELEPORT":   "Usage: $TELEPORT message; invokes a randomized teleport with a message",
	"$REPAIR":     "Usage: $REPAIR, allows a player to repair weapons and armor",
	"$POOF":       "Usage: $POOF, announces an arrival of a player",
	"$BALANCE":    "Usage: $BALANCE, provides the player their bank information",
	"$DEPOSIT":    "Usage: $DEPOSIT, Deposits a value from primary gold to bank gold",
	"$WITHDRAW":   "Usage: $WITHDRAW, Withdraws gold from the bank and places it in the users gold pouch",
	"$BUY":        "Usage: $BUY item_name, will exchange a store list item for users gold",
	"$LIST":       "Usage: $LIST, lists all of the items for sale in the store",
	"$SELL":       "Usage: $SELL,  ALlows the user to pawn items.",
	"$ECHO":       "Usage: $ECHO, sends a message to the actor using the command",
	"$ECHOALL":    "Usage: $ECHOALL, sends a messae to the actor and everyone in the room",
	"$TEACH":      "Usage: $TEACH, teaches a spell to the actor",
	"$MELD":       "Usage: $MELD, melds 2 like items together",
	"$SOULBIND":   "Usage: $SOULBIND, binds an item to a player",
	"$RENAME":     "Usage: $RENAME, renames an item",
	"$SELLCHEST":  "Usage: $SELLCHEST, sells the contents of a chest/container",
	"$SLOT":       "Usage: $SLOT, adds slot machine",
	"$BAGLIST":    "Usage: $BAGLIST, list bag purchasing options",
	"$BUYBAG":     "Usage: $BUYBAG, buys a bag",
	"$MODBAG":     "Usage: $MODBAG, modifies a bag",
	"$SPLIT":      "Usage: $SPLIT, generates a split order for items",
}

Functions

func CalculateTimeToNext

func CalculateTimeToNext() (string, string, int)

func DeathCheck

func DeathCheck(s *state, m *objects.Mob)

DeathCheck Universal death check for mobs on whatever the current state is

func DetermineArmorEnchant

func DetermineArmorEnchant(tier int) int

func DetermineMissChance

func DetermineMissChance(s *state, lvlDiff int) int

DetermineMissChance Determine Miss Chance based on weapon Skills

func DetermineWeaponEnchant

func DetermineWeaponEnchant(tier int) int

func Parse

func Parse(o *objects.Character, input string) string

Parse initiates processing of the input string for the specified Thing. The input string is expected to be input from a player. The actual command processed will be returned. For example GET or DROP.

Parse runs with state.scripting set to false, disallowing scripting specific commands from being executed by players directly.

When sync handles a command the command may determine it needs to hold additional locks. In this case sync will return false and should be called again. This repeats until the list of locks is complete, the command processed and sync returns true.

func Script

func Script(o *objects.Character, input string) string

Script processes the input string the same as Parse.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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