Functions
This is a list of all functions provided by Ratchet, except for object methods that are not listed here but on the objects page. You can also use any Lua functions provided by the standard libraries.
Global
- fileExists
- readFile
- writeFile
- appendFile
- getFilePath
- getVersion
- getSecret
- include
- export
- getPlayerFromID
- getPlayerFromName
- getPlayersInRadius
- getAllPlayers
- getPlayerCount
- getGuildFromID
- getAllGuilds
- spawnActor
- findActor
- getActorsInRadius
- getActorsByClass
- getInventoryByType
- dbConnect
- setTimer
- isTimer
- killTimer
- on
- off
- once
- emit
- sendToClient
- isServerLoaded
- getType
- base64Encode
- base64Decode
- friendlyTime
- getRealTime
- traceLine
- printDebug
- printInfo
- printSuccess
- printWarning
- printError
- dumpAllObjects
String
- string.explode
- string.split
- string.startsWith
- string.endsWith
- string.trimLeft
- string.trimRight
- string.trim
- string.join
- string.padLeft
- string.padRight
- string.isEmpty
- string.isAlpha
- string.isNumeric
- string.isAlphaNumeric
- string.count
- string.capitalize
- string.levenshtein
- string.removePrefix
- string.removeSuffix
- string.slugify
- string.random
Math
Table
- table.copy
- table.merge
- table.swap
- table.reverse
- table.shuffle
- table.keys
- table.values
- table.unique
- table.contains
- table.isEmpty
- table.count
- table.random
Dice
Web
JSON
World
Tot ! Chat
- TotChat.Alert
- TotChat.Broadcast
- TotChat.SendLocal
- TotChat.SendMessage
- TotChat.ReceiveMessage
- TotChat.Notify
- TotChat.NotifyLocal
- TotChat.Warn
- TotChat.GetLanguages
- TotChat.SetLanguage
- TotChat.RemoveLanguage
Tot ! Sudo
- TotSudo.HasRole
- TotSudo.GrantRole
- TotSudo.RevokeRole
- TotSudo.GetRoles
- TotSudo.HasPermission
- TotSudo.HasCharTag
- TotSudo.AddCharTag
- TotSudo.RemoveCharTag
- TotSudo.GetCharFloat
- TotSudo.SetCharFloat
- TotSudo.RemoveCharFloat
- TotSudo.GetCharString
- TotSudo.SetCharString
- TotSudo.RemoveCharString
- TotSudo.HasGlobTag
- TotSudo.AddGlobTag
- TotSudo.RemoveGlobTag
- TotSudo.GetGlobFloat
- TotSudo.SetGlobFloat
- TotSudo.RemoveGlobFloat
- TotSudo.GetGlobString
- TotSudo.SetGlobString
- TotSudo.RemoveGlobString
Tot ! Admin
- TotAdmin.RunScript
- TotAdmin.Teleport
- TotAdmin.Warp
- TotAdmin.GiveKit
- TotAdmin.GetZone
- TotAdmin.GetPuppet
- TotAdmin.GetPuppetsInRadius
- TotAdmin.GetMapMarkers
- TotAdmin.SetMapMarker
- TotAdmin.DeleteMapMarker
- TotAdmin.SendHome
- TotAdmin.SetHome
- TotAdmin.ClearHome
- TotAdmin.ListHomes
Tot ! Custom
- TotCustom.GetBody
- TotCustom.GetArmor
- TotCustom.GetAccessories
- TotCustom.SetBody
- TotCustom.SetArmor
- TotCustom.SetAccessories
- TotCustom.GetSliderValue
- TotCustom.SetSliderValue
- TotCustom.GetArmorPieces
- TotCustom.GetArmorPiece
- TotCustom.SetArmorPiece
- TotCustom.ClearArmorSlot
Roleplay Redux
- RPR.Roll
- RPR.GetSkill
- RPR.GetStat
- RPR.HasPerk
- RPR.AddPerk
- RPR.RemovePerk
- RPR.ModifySkill
- RPR.ModifyStat
- RPR.SetStat
- RPR.SetStatMax
- RPR.HasRune
- RPR.HasBuff
- RPR.RemoveBuff
- RPR.GiveBuff
- RPR.BuffSkill
- RPR.BuffStat
- RPR.BuffPerk
- RPR.BuffAbility
- RPR.BuffStatus
- RPR.HasItem
- RPR.TakeItem
- RPR.GiveItem
- RPR.GetBuffs
- RPR.GetSheet
- RPR.ResetSheet
- RPR.ExportSheet
- RPR.ImportSheet
- RPR.HasSpell
- RPR.LearnSpell
- RPR.ForgetSpell
- RPR.Refresh
- RPR.GetAbilities
- RPR.GetEquippedRunes
- RPR.SetEquippedRunes
- RPR.GetUserStatus
- RPR.SetUserStatus
- RPR.GetBio
- RPR.GetConsents
- RPR.ClearPerks
- RPR.ClearSpells
- RPR.ClearBuffs
- RPR.GetAssignedPerks
- RPR.GetLearnedSpells
- RPR.GetActiveBuffs
- RPR.GetLFRP
- RPR.SetLFRP
- RPR.GetWaypoints
Knight's Sanity
- KS.PushCharacter
- KS.SelectCharacters
- KS.SelectPoint
- KS.SelectMultiPoint
- KS.SelectDirection
- KS.ProcessAoE
- KS.ProcessMultiPointAoE
- KS.ProcessDirectionalAoE
- KS.GetSelectedPoints
- KS.GetSelectedCharacters
- KS.InfoBox
- KS.CombatTracker