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