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