Advertisement
cressidagp

Jenal

Jul 21st, 2023 (edited)
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.75 KB | None | 0 0
  1. '''
  2.  
  3. Engine: APE
  4. Zone: Teldrassil
  5. Creature: Jenal
  6. .npc portto 51320
  7.  
  8. '''
  9.  
  10. import arcemu
  11. from arcemu import GossipMenu
  12.  
  13. NPC_ID_JENAL = 9047
  14.  
  15. def Jenal_onHello( unit, event, player ):
  16.  
  17.     menu = GossipMenu( 2313, unit, arcemu.GOSSIP_AUTOSEND_FALSE )
  18.  
  19.     menu.addItem( arcemu.ICON_CHAT, "What are you doing out here?", 0, 0 )
  20.  
  21.     menu.addQuests( unit, player )
  22.  
  23.     menu.sendToPlayer( player )
  24.  
  25. def Jenal_onSelectOption( unit, player, id, enteredCode ):
  26.  
  27.     menu = GossipMenu( 2314, unit, arcemu.GOSSIP_AUTOSEND_FALSE )
  28.  
  29.     menu.sendToPlayer( player )
  30.  
  31. arcemu.RegisterUnitGossipEvent( NPC_ID_JENAL, arcemu.GOSSIP_EVENT_HELLO, Jenal_onHello )
  32. arcemu.RegisterUnitGossipEvent( NPC_ID_JENAL, arcemu.GOSSIP_EVENT_SELECT, Jenal_onSelectOption )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement