Advertisement
cressidagp

Knight Defender Zunade

Jul 21st, 2023 (edited)
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.81 KB | None | 0 0
  1. '''
  2.  
  3. Engine: APE
  4. Zone: Bloodmyst Isle
  5. Creature: Knight Defender Zunade
  6. .npc portto 74750
  7.  
  8. '''
  9.  
  10. import arcemu
  11. from arcemu import GossipMenu
  12.  
  13. NPC_ID_K_D_ZUNADE = 18030
  14.  
  15. def KnightDefenderZunade_onHello( unit, event, player ):
  16.  
  17.     menu = GossipMenu( 9172, unit, arcemu.GOSSIP_AUTOSEND_FALSE )
  18.  
  19.     menu.addItem( arcemu.ICON_CHAT, "Tell me about the Defenders.", 0, 0 )
  20.  
  21.     menu.sendToPlayer( player )
  22.  
  23. def KnightDefenderZunade_onSelectOption( unit, player, id, enteredCode ):
  24.  
  25.     menu = GossipMenu( 9206, unit, arcemu.GOSSIP_AUTOSEND_FALSE )
  26.  
  27.     menu.sendToPlayer( player )
  28.  
  29. arcemu.RegisterUnitGossipEvent( NPC_ID_K_D_ZUNADE, arcemu.GOSSIP_EVENT_HELLO, KnightDefenderZunade_onHello )
  30. arcemu.RegisterUnitGossipEvent( NPC_ID_K_D_ZUNADE, arcemu.GOSSIP_EVENT_SELECT, KnightDefenderZunade_onSelectOption )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement