stoneharry

Untitled

Aug 21st, 2012
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.41 KB | None | 0 0
  1.  
  2. function Tuskarr_OnChat(event, plr, message, mtype, language)
  3.     if message == "[CU-ADDON] JoinAlliance" and mtype == 7 then
  4.         plr:CastSpell(11)
  5.         plr:SendBroadcastMessage("You selected Alliance.")
  6.         plr:SendBroadcastMessage("|cFFFF0000Cutscene showing Tuskarr leaving the isle via ship.")
  7.     elseif message == "[CU-ADDON] JoinHorde" then
  8.         plr:CastSpell(11)
  9.         plr:SendBroadcastMessage("|cFFFF0000Cutscene showing Tuskarr leaving the isle via ship.")
  10.         plr:SendBroadcastMessage("You selected Horde.")
  11.     end
  12.     -- debug
  13.     if message == "#faction" then
  14.         plr:SendBroadcastMessage("[CU-ADDON] OpenMenuFactionChoose")
  15.     end
  16.     if message == "#test" then
  17.         plr:SendBroadcastMessage("CHAOTIC:SCENARIO-TESTING-1-3-Test-This is a test scenario")
  18.         return false
  19.     end
  20.     if message == "#test2" then
  21.         plr:SendBroadcastMessage("CHAOTIC:SCENARIO-The Kitchen-3-3-Stage 1-Make a sandwich!")
  22.         return false
  23.     end
  24.     -- So Syntax is: "CHAOTIC:UNITED-Title-Stage-FinalStage-StageName-Description
  25.     -- CHAOTIC:UNITED-  | cannot change, this is for the client to listen for.
  26.     -- Title-           | This is the title of the scenario.
  27.     -- Stage-           | This MUST be the number and is stage number
  28.     -- FinalStage-      | This is the final stage number, and MUST be a number.
  29.     -- StageName-       | Can't remember what this is for
  30.     -- StageDescription | This is the description of the stage.
  31. end
  32.  
  33.  
  34. RegisterServerHook(16, "Tuskarr_OnChat")
Advertisement
Add Comment
Please, Sign In to add comment