stoneharry

Untitled

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