alloc

fun alloc(idx: Int, oldSchoolClientType: OldSchoolClientType): NpcInfo

Allocates a new npc info object, or re-uses an older one if possible.

Parameters

idx

the index of the player allocating the npc info object.

oldSchoolClientType

the client on which the player has logged into.