Skip to content

event onPlayerEquipAmulet

This event is triggered when player equips or unequips amulet. When item is unequiped, empty str is returned instead.

Original: onPlayerEquipAmulet

Parameters

  • dict kwargs:
    • int playerid: the id of the player who equips a amulet.
    • str instance: the item instance from Daedalus scripts.

Usage

import pyg2o as g2o

@g2o.event('onPlayerEquipAmulet')
async def onEquip(playerid, instance):
    print(f'Player {playerid} equipped {instance}')