Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Tuskarr_OnChat(event, plr, message, mtype, language)
- if message == "[CU-ADDON] JoinAlliance" and mtype == 7 then
- plr:CastSpell(11)
- plr:SetFaction(1)
- plr:SendBroadcastMessage("You selected Alliance.")
- plr:SendBroadcastMessage("|cFFFF0000Cutscene showing Tuskarr leaving the isle via ship.")
- elseif message == "[CU-ADDON] JoinHorde" then
- plr:CastSpell(11)
- plr:SendBroadcastMessage("|cFFFF0000Cutscene showing Tuskarr leaving the isle via ship.")
- plr:SetFaction(2)
- plr:SendBroadcastMessage("You selected Horde.")
- end
- -- debug
- if message == "#faction" then
- plr:SendBroadcastMessage("[CU-ADDON] OpenMenuFactionChoose")
- end
- if message == "#test" then
- plr:SendBroadcastMessage("CHAOTIC:SCENARIO-TESTING-1-3-Test-This is a test scenario")
- return false
- end
- if message == "#test2" then
- plr:SendBroadcastMessage("CHAOTIC:SCENARIO-The Kitchen-3-3-Stage 1-Make a sandwich!")
- return false
- end
- -- So Syntax is: "CHAOTIC:UNITED-Title-Stage-FinalStage-StageName-Description
- -- CHAOTIC:UNITED- | cannot change, this is for the client to listen for.
- -- Title- | This is the title of the scenario.
- -- Stage- | This MUST be the number and is stage number
- -- FinalStage- | This is the final stage number, and MUST be a number.
- -- StageName- | Can't remember what this is for
- -- StageDescription | This is the description of the stage.
- end
- RegisterServerHook(16, "Tuskarr_OnChat")
Advertisement
Add Comment
Please, Sign In to add comment