648 B
648 B
event onPlayerEquipAmulet
This event is triggered when player equips or unequips amulet. When item is unequiped, null is returned instead.
Original: onPlayerEquipAmulet
Parameters
dictkwargs:intplayerid: the id of the player who equips a amulet.strstr | null: instance: the item instance from Daedalus scripts.
Usage
import g2o
@g2o.event('onPlayerEquipAmulet')
def onEquip(**kwargs):
print(f'Player {kwargs['playerid']} equipped {kwargs['instance']}')