Advertisement
Clotic

EditMyChar

Aug 15th, 2019
1,163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.58 KB | None | 0 0
  1. local npcid = 14121
  2. local MenuId = 14121
  3.  
  4. local function GossipHelloThere(event, player, object)
  5.     player:GossipClearMenu()
  6.     player:GossipMenuAddItem(10, "|TInterface/icons/INV_Misc_Gift_01:35|t|r Character Name Change", 0, 2)
  7.     player:GossipMenuAddItem(10, "|TInterface/icons/INV_Misc_Gift_02:35|t|r Character My Appearance", 0, 3)
  8.     player:GossipMenuAddItem(10, "|TInterface/icons/INV_Misc_Gift_03:35|t|r Character Race Change", 0, 4)
  9.     player:GossipMenuAddItem(10, "|TInterface/icons/INV_Misc_Gift_04:35|t|r Change Faction Change", 0, 5)
  10.     player:GossipSendMenu(1, object, MenuId)
  11. end
  12.  
  13. local function GossipSelectThere(event, player, object, sender, intid, code, menu_id)
  14.     if (intid == 2) then
  15.         player:SetAtLoginFlag(1)
  16.         player:SendBroadcastMessage("Relog")
  17.         player:GossipSendMenu(1, object, MenuId)
  18.         player:GossipComplete()
  19.     end
  20.     if (intid == 3) then
  21.         player:SetAtLoginFlag(8)
  22.         player:SendBroadcastMessage("Relog")
  23.         player:GossipSendMenu(1, object, MenuId)
  24.         player:GossipComplete()
  25.     end
  26.     if (intid == 4) then
  27.         player:SetAtLoginFlag(128)
  28.         player:SendBroadcastMessage("Relog")
  29.         player:GossipSendMenu(1, object, MenuId)
  30.         player:GossipComplete()
  31.     end
  32.     if (intid == 5) then
  33.         player:SetAtLoginFLag(64)
  34.         player:SendBroadcastMessage("Relog")
  35.         player:GossipSendMenu(1, object, MenuId)
  36.         player:GossipComplete()
  37.     end
  38. end
  39.  
  40. RegisterCreatureGossipEvent(npcid, 1, GossipHelloThere)
  41. RegisterCreatureGossipEvent(npcid, 2, GossipSelectThere)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement