.playll npc ? menu

Shout-Out

User Tag List

Results 1 to 4 of 4
  1. #1
    Pieterkii's Avatar Member
    Reputation
    7
    Join Date
    Jan 2009
    Posts
    89
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .playll npc ?

    hello is there any .playll npc out there...
    the use of this npc will be you choose a sound he must make then that
    sound/song plays through the whole server..
    i have never seen one.. and i think ir would be awsomke if sum1 could poste something here (3.0.9)
    :wave:

    .playll npc ?
  2. #2
    Scubast3ve's Avatar Member
    Reputation
    55
    Join Date
    Apr 2009
    Posts
    125
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    :playall(soundid)
    is the code you are going for

    and just to give you a basic template use:

    Code:
    function Music_OnGossip(pUnit,event,player)
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(2, "Play Sound One, 1, 0)
    pUnit:GossipMenuAddItem(2, "Play Sound Two", 2, 0)
    pUnit:GossipSendMenu(player)
    end
    
    function Music_OnSelect(pUnit,event,player)
    if intid == 1 then
    pUnit:PlaySoundToSet(1000)
    end
    if intid == 2 then
    pUnit:PlaySoundToSet(1001)
    end
    end
    
    RegisterUnitGossipEvent(35000,1,"Music_OnGossip")
    RegisterUnitGossipEvent(35000,2,"Music_OnSelect")
    Good luck btw i made the ids up so i would suggest adding your own
    Last edited by Scubast3ve; 04-26-2009 at 09:09 AM.
    Don't Forget To Give Rep To People Who Help You.

  3. #3
    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)
    Code:
    function Music_OnGossip(pUnit,event,player)
    pUnit:GossipCreateMenu(100, player, 0)
    pUnit:GossipMenuAddItem(2, "Play Sound", 1, 1)
    pUnit:GossipSendMenu(player)
    end
    
    function Music_OnSelect(pUnit, event, player, id, intid, code, pMisc)
    pUnit:PlaySoundToSet(code)
    pUnit:GossipComplete(player)
    end
    
    RegisterUnitGossipEvent(35000,1,"Music_OnGossip")
    RegisterUnitGossipEvent(35000,2,"Music_OnSelect")
    this allows the player who's talking to the npc to select which code they want to lpay.

  4. #4
    Scubast3ve's Avatar Member
    Reputation
    55
    Join Date
    Apr 2009
    Posts
    125
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lol thx jotox... plus its usually better if you have a predefined set of codes because very few players know any good codes. gl
    Don't Forget To Give Rep To People Who Help You.

Similar Threads

  1. Make Alliance NPCs kill Alliance in IF
    By Cloud in forum World of Warcraft Exploits
    Replies: 27
    Last Post: 08-23-2006, 11:52 AM
  2. Kill your own factions NPC's
    By Matt in forum World of Warcraft Exploits
    Replies: 9
    Last Post: 08-18-2006, 04:05 PM
  3. Make NPC Guards Mad!
    By Tbone in forum World of Warcraft Exploits
    Replies: 19
    Last Post: 07-14-2006, 10:34 PM
  4. Bug the AD NPC's in IF
    By KuRIoS in forum World of Warcraft Exploits
    Replies: 3
    Last Post: 06-30-2006, 07:57 PM
  5. Attack your own NPC's
    By oninuva in forum World of Warcraft Guides
    Replies: 0
    Last Post: 04-23-2006, 02:24 PM
All times are GMT -5. The time now is 06:07 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