Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local quest = {}
- quest.uiq = 'datskid_noskillz'
- quest.name = 'DatSKID der Gott'
- quest.type = 'Errand'
- quest.npc = 'bob'
- quest.state = 0
- quest.price = 50000
- quest.target = quest.npc
- quest.Start = function(self,ply)
- local dialogue = {'Hey, du!\nDu musst jedem etwas Sagen','Also hör mir mal zu Großer','Es gibt da einen jungen Gott\nDer heißt DatSKID','Bitte gehe zu Wendy und sag ihr das\nDu kriegst für deine Mühe natürlich auch was.','Also los los!\nDu bist ja immer noch da! Los!'}
- manolis.popcorn.quests.SendDialogue(ply,self.npc,dialogue, function()
- self.target = 'wendy'
- local simon = manolis.popcorn.quests.FindNPC(self.target)
- DarkRP.notify(ply,0,4,'Geh, und verkünde was DatSKID für ein toller Typ ist')
- manolis.popcorn.alerts.NewAlert(ply, 'datskid_noskillz'..ply:UserID(), self.target, simon:GetPos(), 1000)
- manolis.popcorn.alerts.NewTimeAlert(ply,200,'Rede mit Wendy', function()
- self:Fail(ply)
- end)
- self.state = 1
- end)
- end
- quest.Fail = function(self,ply)
- ply.quest = false
- manolis.popcorn.alerts.RemoveAlert(ply,'datskid_noskillz'..ply:UserID())
- manolis.popcorn.quests.CompleteQuest(ply,true)
- end
- quest.Next = function(self,ply)
- if(self.state==1) then
- local dialogue = {
- 'Yooooo was geht ab bro?',
- 'DatSKID der Noskillz Leiter?\nWeiss doch schon das der Bosshaft ist.',
- 'Geh mal zu Simon und erzähl ihm das.',
- }
- manolis.popcorn.quests.SendDialogue(ply,self.target,dialogue, function()
- self.state = 2
- self.target = 'simon'
- local bob = manolis.popcorn.quests.FindNPC(self.target)
- manolis.popcorn.alerts.NewAlert(ply, 'datskid_noskillz'..ply:UserID(), "Bob", bob:GetPos(), 1000)
- DarkRP.notify(ply,0,4,'Lauf zu Simon')
- end)
- elseif(self.state==2) then
- local dialogue = {
- 'Hey was geht?\n DatSKID? Ja denn kenn ich',
- 'Hat er dir einen Rang für das schleimen versprochen?\noder warum machst du das?',
- '...',
- 'Geh mal bitte \nKeine Lust auf Schleimer',
- }
- manolis.popcorn.quests.SendDialogue(ply,self.target,dialogue, function()
- self.state = 3
- self.target = 'bob'
- local wendy = manolis.popcorn.quests.FindNPC(self.target)
- manolis.popcorn.alerts.NewAlert(ply, 'datskid_noskillz'..ply:UserID(), "Wendy", wendy:GetPos(), 1000)
- DarkRP.notify(ply,0,4,'Rede wieder mit Bob')
- end)
- elseif(self.state==3) then
- local dialogue = {
- 'Oh '..ply:Name()..'!\nWeiß es jeder?',
- 'Das du wirklich jedem das erzählt hast\nHaha.',
- 'Hier hast du deine Belohnung haha.'
- }
- manolis.popcorn.quests.SendDialogue(ply,self.target,dialogue, function()
- manolis.popcorn.quests.CompleteQuest(ply)
- manolis.popcorn.alerts.RemoveTimeAlert(ply)
- manolis.popcorn.alerts.RemoveAlert(ply,'datskid_noskillz'..ply:UserID())
- end)
- end
- end
- manolis.popcorn.quests.NewQuest(quest)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement