Advertisement
cressidagp

Sputtervalve

Jul 21st, 2023 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.79 KB | None | 0 0
  1. '''
  2.  
  3. Engine: APE
  4. Zone: Barrens
  5. Creature: Sputtervalve
  6. .npc portto 28362
  7.  
  8. '''
  9.  
  10. import arcemu
  11. from arcemu import GossipMenu
  12.  
  13. NPC_ID_SPUTTERVALVE = 3442
  14.  
  15. def Sputtervalve_onHello( unit, event, player ):
  16.  
  17.     menu = GossipMenu( 519, unit, arcemu.GOSSIP_AUTOSEND_FALSE )
  18.  
  19.     menu.addItem( arcemu.ICON_CHAT, "How can I help?", 0, 0 )
  20.  
  21.     menu.addQuests( unit, player )
  22.  
  23.     menu.sendToPlayer( player )
  24.  
  25. def Sputtervalve_onSelectOption( unit, player, id, enteredCode ):
  26.  
  27.     menu = GossipMenu( 518, unit, arcemu.GOSSIP_AUTOSEND_FALSE )
  28.  
  29.     menu.sendToPlayer( player )
  30.  
  31. arcemu.RegisterUnitGossipEvent( NPC_ID_SPUTTERVALVE, arcemu.GOSSIP_EVENT_HELLO, Sputtervalve_onHello )
  32. arcemu.RegisterUnitGossipEvent( NPC_ID_SPUTTERVALVE, arcemu.GOSSIP_EVENT_SELECT, Sputtervalve_onSelectOption )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement