Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. local quest = {}
  2. quest.uiq = 'datskid_noskillz'
  3. quest.name = 'DatSKID der Gott'
  4. quest.type = 'Errand'
  5. quest.npc = 'bob'
  6. quest.state = 0
  7. quest.price = 50000
  8. quest.target = quest.npc
  9.  
  10. quest.Start = function(self,ply)
  11.  
  12.  
  13. 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!'}
  14. manolis.popcorn.quests.SendDialogue(ply,self.npc,dialogue, function()
  15. self.target = 'wendy'
  16.  
  17. local simon = manolis.popcorn.quests.FindNPC(self.target)
  18. DarkRP.notify(ply,0,4,'Geh, und verkünde was DatSKID für ein toller Typ ist')
  19. manolis.popcorn.alerts.NewAlert(ply, 'datskid_noskillz'..ply:UserID(), self.target, simon:GetPos(), 1000)
  20. manolis.popcorn.alerts.NewTimeAlert(ply,200,'Rede mit Wendy', function()
  21. self:Fail(ply)
  22. end)
  23. self.state = 1
  24. end)
  25.  
  26. end
  27.  
  28. quest.Fail = function(self,ply)
  29. ply.quest = false
  30. manolis.popcorn.alerts.RemoveAlert(ply,'datskid_noskillz'..ply:UserID())
  31. manolis.popcorn.quests.CompleteQuest(ply,true)
  32. end
  33.  
  34. quest.Next = function(self,ply)
  35. if(self.state==1) then
  36. local dialogue = {
  37. 'Yooooo was geht ab bro?',
  38. 'DatSKID der Noskillz Leiter?\nWeiss doch schon das der Bosshaft ist.',
  39. 'Geh mal zu Simon und erzähl ihm das.',
  40. }
  41. manolis.popcorn.quests.SendDialogue(ply,self.target,dialogue, function()
  42. self.state = 2
  43. self.target = 'simon'
  44.  
  45. local bob = manolis.popcorn.quests.FindNPC(self.target)
  46. manolis.popcorn.alerts.NewAlert(ply, 'datskid_noskillz'..ply:UserID(), "Bob", bob:GetPos(), 1000)
  47.  
  48. DarkRP.notify(ply,0,4,'Lauf zu Simon')
  49. end)
  50.  
  51. elseif(self.state==2) then
  52.  
  53. local dialogue = {
  54. 'Hey was geht?\n DatSKID? Ja denn kenn ich',
  55. 'Hat er dir einen Rang für das schleimen versprochen?\noder warum machst du das?',
  56. '...',
  57. 'Geh mal bitte \nKeine Lust auf Schleimer',
  58. }
  59. manolis.popcorn.quests.SendDialogue(ply,self.target,dialogue, function()
  60. self.state = 3
  61. self.target = 'bob'
  62.  
  63. local wendy = manolis.popcorn.quests.FindNPC(self.target)
  64. manolis.popcorn.alerts.NewAlert(ply, 'datskid_noskillz'..ply:UserID(), "Wendy", wendy:GetPos(), 1000)
  65.  
  66.  
  67. DarkRP.notify(ply,0,4,'Rede wieder mit Bob')
  68. end)
  69.  
  70.  
  71.  
  72. elseif(self.state==3) then
  73. local dialogue = {
  74. 'Oh '..ply:Name()..'!\nWeiß es jeder?',
  75. 'Das du wirklich jedem das erzählt hast\nHaha.',
  76. 'Hier hast du deine Belohnung haha.'
  77. }
  78. manolis.popcorn.quests.SendDialogue(ply,self.target,dialogue, function()
  79. manolis.popcorn.quests.CompleteQuest(ply)
  80. manolis.popcorn.alerts.RemoveTimeAlert(ply)
  81. manolis.popcorn.alerts.RemoveAlert(ply,'datskid_noskillz'..ply:UserID())
  82. end)
  83. end
  84. end
  85.  
  86. manolis.popcorn.quests.NewQuest(quest)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement