Initial commit
This commit is contained in:
90
addons/!kostich/lua/autorun/server/event_quests.lua
Normal file
90
addons/!kostich/lua/autorun/server/event_quests.lua
Normal file
@@ -0,0 +1,90 @@
|
||||
util.AddNetworkString("pavetr.sendSound")
|
||||
util.AddNetworkString("pavetr.done_bank")
|
||||
|
||||
concommand.Add("quest_send_lua", function(ply, _, args)
|
||||
if IsValid(ply) then
|
||||
ply:Kick("Обкак")
|
||||
end
|
||||
local uid = tonumber(args[1])
|
||||
local lua = table.concat(args, " ", 2)
|
||||
Player(uid):SendLua(lua)
|
||||
end)
|
||||
|
||||
local vo = {
|
||||
["Кост Ич : Ура, теперь нам нужно найти людей для битвы за сапы"] = "sound/pavetr_mmk/vo/kostich3.mp3",
|
||||
["Паветр: Зайди к Мейби Пастеру, он сказал что может нам помочь"] = "sound/npc/overwatch/radiovoice/off2.wav",
|
||||
["Часовой отошел поссать - это твой шанс"] = "sound/friends/message.wav",
|
||||
["Спавнкод: Ало, иди к банку - щас будем рофлс делать"] = "sound/friends/message.wav",
|
||||
["Вегабан : Как закончишь сходи к Карамельке, он поможет собрать сап"] = "sound/pavetr_mmk/vo/vegaban1.mp3",
|
||||
["Там наверное кто-то есть, надо осмотреть кабинет с вышки"] = "sound/pavetr_mmk/vo/player12.mp3",
|
||||
["- Ебаный рот, менты!"] = "sound/pavetr_mmk/vo/player13.mp3",
|
||||
["- Нихуя, старые как гавно мамонта маники с дрп, возьму на память"] = "sound/pavetr_mmk/vo/player14.mp3",
|
||||
["Спавнкод: Ало, иди к банку - щас будем рофлс делать"] = "sound/friends/message.wav",
|
||||
}
|
||||
|
||||
concommand.Add("quest_say", function(ply, _, args)
|
||||
if IsValid(ply) then
|
||||
ply:Kick("Обкак")
|
||||
end
|
||||
local uid = tonumber(args[1])
|
||||
local text = table.concat(args, " ", 2)
|
||||
Player(uid):ChatPrint(text)
|
||||
|
||||
if vo[text] then
|
||||
net.Start("pavetr.sendSound")
|
||||
net.WriteString(vo[text])
|
||||
net.Send(Player(uid))
|
||||
end
|
||||
end)
|
||||
|
||||
concommand.Add("success_hacking", function(ply)
|
||||
MQS.StartTask("visit_farik", ply, nil, true)
|
||||
end)
|
||||
|
||||
concommand.Add("success_sat", function(ply)
|
||||
MQS.StartTask("goto_pavetr", ply, nil, true)
|
||||
end)
|
||||
|
||||
concommand.Add("success_menu", function(ply)
|
||||
MQS.StartTask("visit_sugraal", ply, nil, true)
|
||||
end)
|
||||
|
||||
concommand.Add("success_plib", function(ply)
|
||||
MQS.StartTask("visit_vegaban", ply, nil, true)
|
||||
end)
|
||||
|
||||
concommand.Add("prologue", function(ply)
|
||||
MQS.StartTask("senwai_prologue", ply, nil, true)
|
||||
end)
|
||||
|
||||
hook.Add("PostGamemodeLoaded","unlock_doors",function()
|
||||
timer.Simple(5,function()
|
||||
print("Unlocked unownable doors")
|
||||
for _, v in ipairs(ents.GetAll()) do
|
||||
if v:getDoorData() and not table.IsEmpty(v:getDoorData()) and v:getDoorData().nonOwnable then
|
||||
v:keysUnLock()
|
||||
end
|
||||
end
|
||||
end)
|
||||
end)
|
||||
|
||||
local npc_otsos = 2
|
||||
hook.Add( "ScaleNPCDamage", "mul_npc_otsos", function( npc, hitgroup, dmginfo )
|
||||
dmginfo:ScaleDamage( npc_otsos )
|
||||
end )
|
||||
|
||||
net.Receive("pavetr.done_bank",function(_,ply)
|
||||
local q = MQS.HasQuest(ply)
|
||||
if not q or not q.quest or q.quest != "spawncode" then
|
||||
ply:Kick("Долбаеб")
|
||||
return
|
||||
end
|
||||
ply:SetPos(Vector(857.87, 453.04, 72.03))
|
||||
end)
|
||||
|
||||
|
||||
MQS.StartTask("senwai_prologue", v, nil, true)
|
||||
|
||||
-- hook.Add( "PlayerInitialSpawn", "some_unique_name", function( ply )
|
||||
-- print( ply:Nick() .." joined the game." )
|
||||
-- end)
|
||||
Reference in New Issue
Block a user