Gossip Lua + Gossip Text menu

Shout-Out

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    cello1993's Avatar Member
    Reputation
    4
    Join Date
    Sep 2006
    Posts
    121
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, I'm close enought to talk to him, that I'm sure.... and

    NPCFlags: 1 (Gossip) => what appears in-game, so I suppose it is alright >.<

    what now?

    Gossip Lua + Gossip Text
  2. #17
    Jotox's Avatar Contributor
    Reputation
    250
    Join Date
    Mar 2008
    Posts
    282
    Thanks G/R
    0/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Found the problem. A 1 was meant to be a 2.

    Try this:
    Code:
    VermithraxAlive = 1;
    
    function Icharyus_On_Gossip(pUnit, event, player)
    	if(VermithraxAlive == 1) then
    		pUnit:GossipCreateMenu(12000, player, 0)
    		pUnit:GossipMenuAddItem(0, "TEXT.", 1, 0)
    		pUnit:GossipSendMenu(player)
    	else
    		pUnit:GossipCreateMenu(12009, player, 0)
    		pUnit:GossipMenuAddItem(0, "TEXT2.", 1, 0)
    		pUnit:GossipSendMenu(player)
    	end
    end
    
    function Icharyus_Submenus(pUnit, event, player, id, intid, code)
    	if( VermithraxAlive == 1 ) then
    		Icharyus_Submenus_ALIVE(pUnit, event, player, id, intid, code)
    	else
    		Icharyus_Submenus_DEAD(pUnit, event, player, id, intid, code)
    	end
    end
    
    function Icharyus_Submenus_ALIVE(pUnit, event, player, id, intid, code)
    	if (intid==1) then
    		pUnit:GossipCreateMenu(12001, player, 0)
    		pUnit:GossipMenuAddItem(0, "TEXT.", 2, 0)
    		pUnit:GossipSendMenu(player)
    	end
    end
    
    function Icharyus_Submenus_DEAD(pUnit, event, player, id, intid, code)
    	if( intid==1) then
    		player:Teleport(1, 5494.641113, -2620.294922, 1480.592651)
    		pUnit:GossipComplete(player)
    	end
    end
    
     
    function Vermithrax_OnDeath(pUnit, Event)
    	VermithraxAlive = 0;
    	pUnit:Despawn(1,0);
    end
    
    function Vermithrax_OnLoad(pUnit, Event)
    	VermithraxAlive = 1;
    end
    
    function Vermithrax_OnAggro(pUnit, Event)
    	VermithraxAlive = 1
    	pUnit:SendChatMessage (14, 0, "You will die!")
    end
     
    RegisterUnitEvent(99002, 1, "Vermithrax_OnAggro")
    RegisterUnitEvent(99002, 4, "Vermithrax_OnDeath")
    RegisterUnitEvent(99002, 18, "Vermithrax_OnLoad")
    RegisterUnitGossipEvent(98017, 1, "Icharyus_On_Gossip")
    RegisterUnitGossipEvent(98017, 2, "Icharyus_Submenus")

  3. #18
    cello1993's Avatar Member
    Reputation
    4
    Join Date
    Sep 2006
    Posts
    121
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hey Jotox1! Thanks a lot, lol didn't notice it x] but that was right, it works fine now :P

    Thanks veeeeeeeeeryyyyyyyy much x] you saved me ^^'

    sorry I tried to +rep you but it says that you was the last person I +rep and won't let me do it again x] =S

    But, thanks again man!

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Gossip Text help
    By distructobob in forum WoW EMU Questions & Requests
    Replies: 0
    Last Post: 08-23-2009, 09:30 PM
  2. LUA: Understanding Gossip Menus
    By SectorSeven in forum WoW EMU Guides & Tutorials
    Replies: 46
    Last Post: 08-16-2008, 09:27 AM
  3. [Lua] Gossip Script
    By LJN in forum World of Warcraft Emulator Servers
    Replies: 9
    Last Post: 07-20-2008, 04:38 AM
  4. [share] mini-tut on gossip scripts lua
    By b!atch in forum World of Warcraft Emulator Servers
    Replies: 2
    Last Post: 05-29-2008, 05:11 AM
  5. Unit Event Lua Question (Gossip Talk)
    By moongo in forum World of Warcraft Emulator Servers
    Replies: 4
    Last Post: 05-22-2008, 07:49 PM
All times are GMT -5. The time now is 03:43 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search