User Tools

Site Tools


scripting:system_functions

System Functions

“Rand”, SF_RAND e.g. $var = Rand(500) Returns a random number between 1 and the value specified “PlayerSkillLevel”, SF_PLAYERSKILLLEVEL e.g $var = PlayerSkillLevel(“Farmer”) Returns the current player's skill level for the skill named “PlayerInventory”, SF_PLAYERINVENTORY e.g. $var = PlayerInventory(“Bongos”) Returns the amount of the item the current player has in their inventory “NumPlayersOnTeam”, SF_NUMPLAYERSONTEAM e.g. $var = NumPlayersOnTeam(3) Returns the number of players currently online and in the specified team “IsInSpawnZone”, SF_ISINSPAWNZONE e.g. $var = IsInSpawnZone(2) Returns 1 if the current player is in the specified spawn zone, 0 if not “IsPlayerIDOnline”, SF_ISPLAYERIDONLINE e.g. $var = IsPlayerIDOnline(32) Returns 1 if the specified player (BillingID) is currently online, 0 if not “IsInTown”, SF_ISINTOWN e.g. $var = IsInTown(“Home Town”) Returns 1 if the current player is within the boundaries of the specified town, 0 if not “RealTime”, SF_REALTIME e.g. $var = RealTime(“month”) TODO “AddToInventory”, SF_ADDTOINVENTORY e.g. $var = AddToInventory(“Bongos” ) Returns the number of the item that was actually added

scripting/system_functions.txt · Last modified: 2020/01/28 17:50 by 127.0.0.1

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki