event onPlayerSummon (server-side)
Available since version: 0.3.0
This event is triggered when a player summons an NPC using a game's spell.
Parameters
void onPlayerSummon(number playerId, number spellId, string summonInstance, number npcId)
numberplayerId: The id of the player who summoned the NPC.numberspellId: The id of the spell used to summon the NPC.stringsummonInstance: The instance name of the summoned NPC.numbernpcId: The id of the summoned NPC.