Documentation ¶
Index ¶
- Variables
- func CalculateTimeToNext() (string, string, int)
- func DeathCheck(s *state, m *objects.Mob)
- func DetermineArmorEnchant(tier int) int
- func DetermineMissChance(s *state, lvlDiff int) int
- func DetermineWeaponEnchant(tier int) int
- func Parse(o *objects.Character, input string) string
- func Script(o *objects.Character, input string) string
Constants ¶
This section is empty.
Variables ¶
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 DeathCheck ¶
DeathCheck Universal death check for mobs on whatever the current state is
func DetermineArmorEnchant ¶
func DetermineMissChance ¶
DetermineMissChance Determine Miss Chance based on weapon Skills
func DetermineWeaponEnchant ¶
func Parse ¶
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.
Types ¶
This section is empty.
Source Files ¶
- about.go
- act.go
- actwith.go
- afk.go
- appeal.go
- autolevel.go
- broadcast.go
- bug.go
- build_command_add.go
- build_command_list.go
- build_command_remove.go
- build_copy.go
- build_create.go
- build_destroy.go
- build_dig.go
- build_drops_add.go
- build_drops_list.go
- build_drops_mod.go
- build_drops_remove.go
- build_edit.go
- build_examine.go
- build_link.go
- build_moveto.go
- build_rename.go
- build_scripts.go
- build_search.go
- build_spawn.go
- build_spawn_add.go
- build_spawn_list.go
- build_spawn_mod.go
- build_spawn_remove.go
- build_teleport.go
- build_types.go
- close.go
- cmd.go
- combat_backstab.go
- combat_bash.go
- combat_berserk.go
- combat_burst.go
- combat_cast.go
- combat_circle.go
- combat_equip.go
- combat_equipment.go
- combat_hamstring.go
- combat_haste.go
- combat_hide.go
- combat_kill.go
- combat_meditate.go
- combat_peek.go
- combat_pray.go
- combat_shieldslam.go
- combat_sing.go
- combat_sneak.go
- combat_steal.go
- combat_tod.go
- combat_turn.go
- combat_unequip.go
- combat_use.go
- description.go
- dm_activate.go
- dm_bonus.go
- dm_deactivate.go
- dm_encounters.go
- dm_msgall.go
- dm_msgdirect.go
- dm_puppet.go
- dm_quest.go
- dm_questmode.go
- dm_roomall.go
- dm_shift.go
- drop.go
- enchant.go
- eval.go
- experience.go
- get.go
- give.go
- gm_ban.go
- gm_perm.go
- gm_shutdown.go
- godir.go
- handler.go
- health.go
- help.go
- ic.go
- info.go
- inventory.go
- look.go
- memorize.go
- menu_add_option.go
- menu_create.go
- menu_remove_option.go
- mob_ability.go
- mob_attack.go
- mob_cast.go
- mob_follow.go
- mob_move.go
- mob_take.go
- mob_wander.go
- monster.go
- move.go
- objects.go
- ooc.go
- open.go
- osay.go
- party_follow.go
- party_list.go
- party_lose.go
- party_tell.go
- party_unfollow.go
- people.go
- pick.go
- pose.go
- position.go
- prompt.go
- put.go
- quit.go
- read.go
- redeem.go
- reply.go
- reroll.go
- resist.go
- roll.go
- save.go
- say.go
- sayto.go
- script_attract.go
- script_bank_balance.go
- script_bank_deposit.go
- script_bank_withdraw.go
- script_death.go
- script_echo.go
- script_echoall.go
- script_meld.go
- script_pawn_chest.go
- script_pawn_sell.go
- script_poof.go
- script_rename.go
- script_repair.go
- script_slot.go
- script_soulbind.go
- script_split.go
- script_store_bag_buy.go
- script_store_bag_list.go
- script_store_bag_mod.go
- script_store_buy.go
- script_store_list.go
- script_teach.go
- script_teleport.go
- script_teleportto.go
- search.go
- show.go
- skill.go
- spells.go
- stat.go
- state.go
- store_additem.go
- store_removeitem.go
- suicide.go
- teach.go
- tell.go
- time.go
- toss.go
- track.go
- train.go
- victim.go
- whisper.go
- who.go
- yell.go