Przejdź do treści

MOB functions

Functions for creating and checking items in a oCMobContainers (chests etc.).

Functions

Mob_CreateItems

Mob_CreateItems

Creates a specified number of items in a oCMobContainer

func void Mob_CreateItems(var string mobname, var int iteminstance, var int amount) 

Parameters

  • mobname - name of the oCMobContainer
  • iteminstance - instance of the item
  • amount - number of items to create

Mob_HasItems

Mob_HasItems

Checks if a oCMobContainer has a specified number of items

func int Mob_HasItems(var string mobname, var int iteminstance) 

Parameters

  • mobname - name of the oCMobContainer
  • iteminstance - instance of the item

Return value
The function returns number of these items in the container