make diffent teles for ally and horde? menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    bomsemannen's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    make diffent teles for ally and horde?

    hi i got an lua scripted teleporter but its two main problems i want to get rid of.

    1. Make him so you cant tele if in combat

    2. i have two malls, one horde and one ally, how can i make so allys just can go to ally mall, and horde just to horde mall? ty

    hers the script btw:

    Code:
    function Tele_OnGossipTalk(pUnit, event, player, pMisc)
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Instances", 1, 0)
    pUnit:GossipMenuAddItem(0,"Arenas", 2, 0)
    pUnit:GossipSendMenu(player)
    end
    
    function Tele_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 1) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Bridge of Souls", 50, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 2) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Pvp Arena", 60, 0)
    pUnit:GossipMenuAddItem(0,"The Maul", 61, 0)
    pUnit:GossipMenuAddItem(0,"Arena floor", 62, 0)
    pUnit:GossipMenuAddItem(0,"Circle of blood", 63, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 50) then
    player:Teleport(530, -3361.398193, 5194.372070, -101.048965)
    end
    if(intid == 60) then
    player:Teleport(1, 4598.74, -4592.56, 885.70)
    end
    if(intid == 61) then
    player:Teleport(1, -3738.57, 1093.54, 131.96)
    end
    if(intid == 62) then
    player:Teleport(530, -2039.733, 6657.005, 13.051)
    end
    if(intid == 63) then
    player:Teleport(530, 2837.33, 5928.33, 11.129)
    end
    end
    
    RegisterUnitGossipEvent(959591, 1, "Tele_OnGossipTalk")
    RegisterUnitGossipEvent(959591, 2, "Tele_OnGossipSelect")

    make diffent teles for ally and horde?
  2. #2
    baptizein's Avatar Member
    Reputation
    16
    Join Date
    Jul 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this... You'll need to edit the rest of the script accordingly to the new intid numbers.

    Code:
    function Tele_OnGossipTalk(pUnit, event, player, pMisc)
    if (player:IsInCombat() == true) then
    	player:SendAreaTriggerMessage("You are currently in combat.")
    else
    pUnit:GossipCreateMenu(100, player, 0)
    if player:GetPlayerFaction() == 0  then
    pUnit:GossipMenuAddItem(0,"Instances", 1, 0)
    pUnit:GossipMenuAddItem(0,"Arenas", 2, 0)
    pUnit:GossipSendMenu(player)
    elseif player:GetPlayerFaction() == 1  then
    pUnit:GossipMenuAddItem(0,"Instances", 3, 0)
    pUnit:GossipMenuAddItem(0,"Arenas", 4, 0)
    pUnit:GossipSendMenu(player)
    end
    end
    end
    Last edited by baptizein; 10-05-2008 at 03:39 PM.

  3. #3
    bomsemannen's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function Tele_OnGossipTalk(pUnit, event, player, pMisc)
    if (player:IsInCombat() == true) then
    	player:SendAreaTriggerMessage("You are currently in combat.")
    else
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Instances", 1, 0)
    pUnit:GossipMenuAddItem(0,"Arenas", 2, 0)
    pUnit:GossipMenuAddItem(0,"Event Zones", 3, 0)
    if player:GetPlayerFaction() == 1801  then
    pUnit:GossipMenuAddItem(0,"Horde Mall", 80, 0)
    elseif player:GetPlayerFaction() == 1802  then
    pUnit:GossipMenuAddItem(0,"Alliance Mall", 90, 0)
    pUnit:GossipSendMenu(player)
    end
    
    function Tele_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 1) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Bridge of Souls", 50, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 2) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Pvp Arena", 60, 0)
    pUnit:GossipMenuAddItem(0,"The Maul", 61, 0)
    pUnit:GossipMenuAddItem(0,"Arena floor", 62, 0)
    pUnit:GossipMenuAddItem(0,"Circle of blood", 63, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 3) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Stormwind", 70, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 50) then
    player:Teleport(530, -3361.398193, 5194.372070, -101.048965)
    end
    if(intid == 60) then
    player:Teleport(1, 4598.74, -4592.56, 885.70)
    end
    if(intid == 61) then
    player:Teleport(1, -3738.57, 1093.54, 131.96)
    end
    if(intid == 62) then
    player:Teleport(530, -2039.733, 6657.005, 13.051)
    end
    if(intid == 63) then
    player:Teleport(530, 2837.33, 5928.33, 11.129)
    end
    if(intid == 70) then
    player:Teleport(0, -9092.272, 396.938, 93.219)
    end
    if(intid == 80) then
    player:Teleport(450, 243.174, 84.988, 25.807)
    end
    if(intid == 90) then
    player:Teleport(449, -0.157, 30.251, 2.429)
    end
    end
    
    RegisterUnitGossipEvent(959591, 1, "Tele_OnGossipTalk")
    RegisterUnitGossipEvent(959591, 2, "Tele_OnGossipSelect")
    dont work

  4. #4
    bomsemannen's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    help please?

  5. #5
    baptizein's Avatar Member
    Reputation
    16
    Join Date
    Jul 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this...

    Code:
    function Tele_OnGossipTalk(pUnit, event, player, pMisc)
    if (player:IsInCombat() == true) then
    	player:SendAreaTriggerMessage("You are currently in combat.")
    else
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Instances", 1, 0)
    pUnit:GossipMenuAddItem(0,"Arenas", 2, 0)
    pUnit:GossipMenuAddItem(0,"Event Zones", 3, 0)
    if player:GetPlayerFaction() == 0  then
    pUnit:GossipMenuAddItem(0,"Horde Mall", 80, 0)
    elseif player:GetPlayerFaction() == 1  then
    pUnit:GossipMenuAddItem(0,"Alliance Mall", 90, 0)
    pUnit:GossipSendMenu(player)
    end
    end
    
    function Tele_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 1) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Bridge of Souls", 50, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 2) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Pvp Arena", 60, 0)
    pUnit:GossipMenuAddItem(0,"The Maul", 61, 0)
    pUnit:GossipMenuAddItem(0,"Arena floor", 62, 0)
    pUnit:GossipMenuAddItem(0,"Circle of blood", 63, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 3) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Stormwind", 70, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 50) then
    player:Teleport(530, -3361.398193, 5194.372070, -101.048965)
    end
    if(intid == 60) then
    player:Teleport(1, 4598.74, -4592.56, 885.70)
    end
    if(intid == 61) then
    player:Teleport(1, -3738.57, 1093.54, 131.96)
    end
    if(intid == 62) then
    player:Teleport(530, -2039.733, 6657.005, 13.051)
    end
    if(intid == 63) then
    player:Teleport(530, 2837.33, 5928.33, 11.129)
    end
    if(intid == 70) then
    player:Teleport(0, -9092.272, 396.938, 93.219)
    end
    if(intid == 80) then
    player:Teleport(450, 243.174, 84.988, 25.807)
    end
    if(intid == 90) then
    player:Teleport(449, -0.157, 30.251, 2.429)
    end
    end
    
    RegisterUnitGossipEvent(959591, 1, "Tele_OnGossipTalk")
    RegisterUnitGossipEvent(959591, 2, "Tele_OnGossipSelect")
    I think that should work for you... If not, let me know and I'll test it on my server for you. Also, make sure you have Lua enabled in your configs, as well.
    Lead Project Developer and Administrator of Team WoWfare · Developers of scripts and programs for World of Warcraft private servers

  6. #6
    bomsemannen's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    function Tele_OnGossipTalk(pUnit, event, player, pMisc)
    if (player:IsInCombat() == true) then
    	player:SendAreaTriggerMessage("You are currently in combat.")
    else
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Instances", 1, 0)
    pUnit:GossipMenuAddItem(0,"Arenas", 2, 0)
    pUnit:GossipMenuAddItem(0,"Event Zones", 3, 0)
    if player:GetPlayerFaction() == 0  then
    pUnit:GossipMenuAddItem(0,"Horde Mall", 80, 0)
    elseif player:GetPlayerFaction() == 1  then
    pUnit:GossipMenuAddItem(0,"Alliance Mall", 90, 0)
    pUnit:GossipSendMenu(player)
    end
    end
    
    function Tele_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 1) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Bridge of Souls", 50, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 2) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Pvp Arena", 60, 0)
    pUnit:GossipMenuAddItem(0,"The Maul", 61, 0)
    pUnit:GossipMenuAddItem(0,"Arena floor", 62, 0)
    pUnit:GossipMenuAddItem(0,"Circle of blood", 63, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 3) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Stormwind", 70, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 50) then
    player:Teleport(530, -3361.398193, 5194.372070, -101.048965)
    end
    if(intid == 60) then
    player:Teleport(1, 4598.74, -4592.56, 885.70)
    end
    if(intid == 61) then
    player:Teleport(1, -3738.57, 1093.54, 131.96)
    end
    if(intid == 62) then
    player:Teleport(530, -2039.733, 6657.005, 13.051)
    end
    if(intid == 63) then
    player:Teleport(530, 2837.33, 5928.33, 11.129)
    end
    if(intid == 70) then
    player:Teleport(0, -9092.272, 396.938, 93.219)
    end
    if(intid == 80) then
    player:Teleport(450, 243.174, 84.988, 25.807)
    end
    if(intid == 90) then
    player:Teleport(449, -0.157, 30.251, 2.429)
    end
    end
    
    RegisterUnitGossipEvent(959591, 1, "Tele_OnGossipTalk")
    RegisterUnitGossipEvent(959591, 2, "Tele_OnGossipSelect")
    The code in red make the script wont load, when i remove i still cant talk to the npc (it works correctly without the horde and ally mall)

    Last edited by bomsemannen; 10-05-2008 at 03:56 PM.

  7. #7
    baptizein's Avatar Member
    Reputation
    16
    Join Date
    Jul 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try...

    Code:
    function Tele_OnGossipTalk(pUnit, event, player, pMisc)
    if (player:IsInCombat() == true) then
    	player:SendAreaTriggerMessage("You are currently in combat.")
    else
    player:GetPlayerFaction()
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Instances", 1, 0)
    pUnit:GossipMenuAddItem(0,"Arenas", 2, 0)
    pUnit:GossipMenuAddItem(0,"Event Zones", 3, 0)
    if player:GetPlayerFaction() == 0  then
    pUnit:GossipMenuAddItem(0,"Horde Mall", 80, 0)
    elseif player:GetPlayerFaction() == 1  then
    pUnit:GossipMenuAddItem(0,"Alliance Mall", 90, 0)
    pUnit:GossipSendMenu(player)
    end
    end
    
    function Tele_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 1) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Bridge of Souls", 50, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 2) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Pvp Arena", 60, 0)
    pUnit:GossipMenuAddItem(0,"The Maul", 61, 0)
    pUnit:GossipMenuAddItem(0,"Arena floor", 62, 0)
    pUnit:GossipMenuAddItem(0,"Circle of blood", 63, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 3) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Stormwind", 70, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 50) then
    player:Teleport(530, -3361.398193, 5194.372070, -101.048965)
    end
    if(intid == 60) then
    player:Teleport(1, 4598.74, -4592.56, 885.70)
    end
    if(intid == 61) then
    player:Teleport(1, -3738.57, 1093.54, 131.96)
    end
    if(intid == 62) then
    player:Teleport(530, -2039.733, 6657.005, 13.051)
    end
    if(intid == 63) then
    player:Teleport(530, 2837.33, 5928.33, 11.129)
    end
    if(intid == 70) then
    player:Teleport(0, -9092.272, 396.938, 93.219)
    end
    if(intid == 80) then
    player:Teleport(450, 243.174, 84.988, 25.807)
    end
    if(intid == 90) then
    player:Teleport(449, -0.157, 30.251, 2.429)
    end
    end
    
    RegisterUnitGossipEvent(959591, 1, "Tele_OnGossipTalk")
    RegisterUnitGossipEvent(959591, 2, "Tele_OnGossipSelect")
    The error that you are receiving means that when GetPlayerFaction is called its not receiving an integer, so by calling the function in the beginning, you can get the integer, then call the event to check to see if the integer matches up.
    Lead Project Developer and Administrator of Team WoWfare · Developers of scripts and programs for World of Warcraft private servers

  8. #8
    bomsemannen's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    still same error-.-

  9. #9
    baptizein's Avatar Member
    Reputation
    16
    Join Date
    Jul 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, I adjusted some things in order to get IsInCombat() to work correctly.

    Code:
    local ncpid = 959591
    
    function Tele_Start(pUnit, event, player)
    if (player:IsInCombat() == true) then
    	player:SendAreaTriggerMessage("You are currently in combat.")
    else	
    	Tele_OnGossipTalk(pUnit, event, player, pMisc)
    end
    
    function Tele_OnGossipTalk(pUnit, event, player, pMisc)
    player:GetPlayerFaction()
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Instances", 1, 0)
    pUnit:GossipMenuAddItem(0,"Arenas", 2, 0)
    pUnit:GossipMenuAddItem(0,"Event Zones", 3, 0)
    if player:GetPlayerFaction() == 0  then
    pUnit:GossipMenuAddItem(0,"Horde Mall", 80, 0)
    elseif player:GetPlayerFaction() == 1  then
    pUnit:GossipMenuAddItem(0,"Alliance Mall", 90, 0)
    pUnit:GossipSendMenu(player)
    end
    end
    
    function Tele_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 1) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Bridge of Souls", 50, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 2) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Pvp Arena", 60, 0)
    pUnit:GossipMenuAddItem(0,"The Maul", 61, 0)
    pUnit:GossipMenuAddItem(0,"Arena floor", 62, 0)
    pUnit:GossipMenuAddItem(0,"Circle of blood", 63, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 3) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Stormwind", 70, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 50) then
    player:Teleport(530, -3361.398193, 5194.372070, -101.048965)
    end
    if(intid == 60) then
    player:Teleport(1, 4598.74, -4592.56, 885.70)
    end
    if(intid == 61) then
    player:Teleport(1, -3738.57, 1093.54, 131.96)
    end
    if(intid == 62) then
    player:Teleport(530, -2039.733, 6657.005, 13.051)
    end
    if(intid == 63) then
    player:Teleport(530, 2837.33, 5928.33, 11.129)
    end
    if(intid == 70) then
    player:Teleport(0, -9092.272, 396.938, 93.219)
    end
    if(intid == 80) then
    player:Teleport(450, 243.174, 84.988, 25.807)
    end
    if(intid == 90) then
    player:Teleport(449, -0.157, 30.251, 2.429)
    end
    end
    
    RegisterUnitGossipEvent(npcid, 1, "Tele_Start")
    RegisterUnitGossipEvent(npcid, 2, "Tele_OnGossipSelect")
    Lead Project Developer and Administrator of Team WoWfare · Developers of scripts and programs for World of Warcraft private servers

  10. #10
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Erm
    How about

    Code:
    if race==1 or race==3 or race==4 or race==7 or race==11 then
    pUnit:GossipMenuAddItem(0, "Alliance Mall", 1, 0)
    end
    local race=player:GetPlayerRace()
    if race==2 or race==5 or race==6 or race==8 or race==10 then
    pUnit:GossipMenuAddItem(0, "Horde Mall", 2, 0)
    end
    Edit it to what you want..


    Code:
    local ncpid = 959591
    local race=player:GetPlayerRace()
    
    function Tele_Start(pUnit, event, player)
    if (player:IsInCombat() == true) then
        player:SendAreaTriggerMessage("You are currently in combat.")
    else    
        Tele_OnGossipTalk(pUnit, event, player, pMisc)
    end
    
    function Tele_OnGossipTalk(pUnit, event, player, pMisc)
    player:GetPlayerFaction()
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Instances", 1, 0)
    pUnit:GossipMenuAddItem(0,"Arenas", 2, 0)
    pUnit:GossipMenuAddItem(0,"Event Zones", 3, 0)
    if race==2 or race==5 or race==6 or race==8 or race==10 then
    pUnit:GossipMenuAddItem(0,"Horde Mall", 80, 0)
    end
    if race==1 or race==3 or race==4 or race==7 or race==11 then
    pUnit:GossipMenuAddItem(0,"Alliance Mall", 90, 0)
    end
    pUnit:GossipSendMenu(player)
    end
    end
    
    function Tele_OnGossipSelect(pUnit, event, player, id, intid, code, pMisc)
    if(intid == 1) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Bridge of Souls", 50, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 2) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Pvp Arena", 60, 0)
    pUnit:GossipMenuAddItem(0,"The Maul", 61, 0)
    pUnit:GossipMenuAddItem(0,"Arena floor", 62, 0)
    pUnit:GossipMenuAddItem(0,"Circle of blood", 63, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 3) then
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(0,"Stormwind", 70, 0)
    pUnit:GossipSendMenu(player)
    end
    if(intid == 50) then
    player:Teleport(530, -3361.398193, 5194.372070, -101.048965)
    end
    if(intid == 60) then
    player:Teleport(1, 4598.74, -4592.56, 885.70)
    end
    if(intid == 61) then
    player:Teleport(1, -3738.57, 1093.54, 131.96)
    end
    if(intid == 62) then
    player:Teleport(530, -2039.733, 6657.005, 13.051)
    end
    if(intid == 63) then
    player:Teleport(530, 2837.33, 5928.33, 11.129)
    end
    if(intid == 70) then
    player:Teleport(0, -9092.272, 396.938, 93.219)
    end
    if(intid == 80) then
    player:Teleport(450, 243.174, 84.988, 25.807)
    end
    if(intid == 90) then
    player:Teleport(449, -0.157, 30.251, 2.429)
    end
    end
    
    RegisterUnitGossipEvent(npcid, 1, "Tele_Start")
    RegisterUnitGossipEvent(npcid, 2, "Tele_OnGossipSelect")
    Last edited by Sounddead; 10-05-2008 at 09:56 PM.

    I live in a shoe

  11. #11
    Thunderheart2's Avatar Member
    Reputation
    2
    Join Date
    Aug 2008
    Posts
    6
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow cool!!

  12. #12
    baptizein's Avatar Member
    Reputation
    16
    Join Date
    Jul 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Sounddead View Post

    Code:
    if race==1 or race==3 or race==4 or race==7 or race==11 then
    pUnit:GossipMenuAddItem(0, "Alliance Mall", 1, 0)
    end
    local race=player:GetPlayerRace()
    if race==2 or race==5 or race==6 or race==8 or race==10 then
    pUnit:GossipMenuAddItem(0, "Horde Mall", 2, 0)
    end
    That would work, too. However, I don't know if 'or' is valid in Lua, so here's another way to do it, as well...

    Code:
    local race = player:GetPlayerRace()
    if (race == 1 || race == 3 || race == 4 || race == 7 || race == 11) then
    pUnit:GossipMenuAddItem(0, "Alliance Mall", 1, 0)
    end
    if (race == 2 || race ==5 || race == 6 || race == 8 || race == 10) then
    pUnit:GossipMenuAddItem(0, "Horde Mall", 2, 0)
    end
    Try them both and see which one, or if both work, so others may know, also.
    Last edited by baptizein; 10-05-2008 at 11:11 PM.
    Lead Project Developer and Administrator of Team WoWfare · Developers of scripts and programs for World of Warcraft private servers

  13. #13
    Sounddead's Avatar Contributor
    Reputation
    160
    Join Date
    Sep 2007
    Posts
    1,126
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks baptizein.

    I live in a shoe

  14. #14
    baptizein's Avatar Member
    Reputation
    16
    Join Date
    Jul 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Sounddead View Post
    Thanks baptizein.
    No problem. One of these days this script will work... I swear it.
    Lead Project Developer and Administrator of Team WoWfare · Developers of scripts and programs for World of Warcraft private servers

  15. #15
    bomsemannen's Avatar Member
    Reputation
    1
    Join Date
    Mar 2008
    Posts
    30
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    None of em works-.-:S

Page 1 of 2 12 LastLast

Similar Threads

  1. Ally and Horde bases.
    By Thelordofsummon in forum World of Warcraft Emulator Servers
    Replies: 26
    Last Post: 02-26-2009, 09:26 AM
  2. How to get alli and horde to under stand each other with out learning the skill
    By project anthrax in forum WoW EMU Guides & Tutorials
    Replies: 13
    Last Post: 07-07-2008, 07:51 PM
  3. Ally and Horde in Same Raid ?
    By s1urpee in forum WoW EMU Exploits & Bugs
    Replies: 12
    Last Post: 04-19-2008, 12:25 AM
  4. [mount swap] Ally and Horde PvP mounts to SPIDERPIGS!
    By 1337person in forum World of Warcraft Model Editing
    Replies: 16
    Last Post: 03-24-2008, 09:55 PM
  5. Sweet AV spot, both ally and horde.
    By Thidan in forum World of Warcraft Exploration
    Replies: 3
    Last Post: 01-11-2008, 08:35 PM
All times are GMT -5. The time now is 05:49 PM. 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