Advertisement
Guest User

Untitled

a guest
Jul 17th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MPASM 2.66 KB | None | 0 0
  1. LOTTERY_COST = 1000
  2.  
  3. Dialog["City Hall Man"] = {}
  4. Dialog["City Hall Man"][1] = {
  5.     Text        = "Hello sir, would you like purchase a lottery ticket for $"..LOTTERY_COST.."?",
  6.     Replies     = function(pl) if pl:Team() == TEAM_CITIZEN then return {1,2,3,8,7,5} elseif pl:Team() != TEAM_MAYOR and pl:Team() != TEAM_CONGRESS then return {1,2,3,8,5} else return {1,2,4,5,6} end end
  7. }
  8. Dialog["City Hall Man"][2] = {
  9.     Text        = "Have a good day sir.",
  10.     Replies     = {5}
  11. }
  12. Dialog["City Hall Man"][3] = {
  13.     Text        = "And you do know what to do as mayor, right?",
  14.     Replies     = {9,12}
  15. }
  16. Dialog["City Hall Man"][4] = {
  17.     Text        = "Alright, good luck.",
  18.     Replies     = {10,11}
  19. }
  20. Dialog["City Hall Man"][5] = {
  21.     Text        = "Well, while you're the mayor, you make sure that every cop is doing his job, and you get more money per paycheck than anyone else. However, if people don't like you, you may end up in the hospital. So, what do you say?",
  22.     Replies     = {13,11}
  23. }
  24.  
  25. Replies["City Hall Man"] = {}
  26. Replies["City Hall Man"][1] = {
  27.     Text        = "Yes.",
  28.     OnUse       = function(pl) BuyTicket(pl) end
  29. }
  30. Replies["City Hall Man"][2] = {
  31.     Text        = "No thanks.",
  32.     OnUse       = function(pl) return 2 end
  33. }
  34. Replies["City Hall Man"][3] = {
  35.     Text        = "I would like to be the mayor.",
  36.     OnUse       = function(pl) return 3 end
  37. }
  38. Replies["City Hall Man"][4] = {
  39.     Text        = "I wish to retire.",
  40.     OnUse       = function(pl) ClassChange(pl,TEAM_CITIZEN) end
  41. }
  42. Replies["City Hall Man"][5] = {
  43.     Text        = "See you later.",
  44.     OnUse       = function(pl)  end
  45. }
  46. Replies["City Hall Man"][6] = {
  47.     Text        = "I would like to pick up my paycheck.",
  48.     OnUse       = function(pl) pl:AddMoney(pl.Paycheck) pl:SendNotify("You have picked up $"..pl.Paycheck.." from your employer!",NOTIFY_GENERIC,5) pl.Paycheck = 0 pl.PickedUp = 0 end
  49. }
  50. Replies["City Hall Man"][7] = {
  51.     Text        = "I would like to pick up my welfare check.",
  52.     OnUse       = function(pl) pl:AddMoney(pl.Paycheck) pl:SendNotify("You have picked up $"..pl.Paycheck.." for your welfare check!",NOTIFY_GENERIC,5) pl.Paycheck = 0 pl.PickedUp = 0 end
  53. }
  54. Replies["City Hall Man"][8] = {
  55.     Text        = "I would like to be a congressman.",
  56.     OnUse       = function(pl) ClassChange(pl,TEAM_CONGRESS) end
  57. }
  58. Replies["City Hall Man"][9] = {
  59.     Text        = "Of course I do!",
  60.     OnUse       = function(pl) return 4 end
  61. }
  62. Replies["City Hall Man"][10] = {
  63.     Text        = "Umm, thanks?",
  64.     OnUse       = function(pl) ClassChange(pl,TEAM_MAYOR) end
  65. }
  66. Replies["City Hall Man"][11] = {
  67.     Text        = "Nevermind, I don't want to be the mayor.",
  68.     OnUse       = function(pl) end
  69. }
  70. Replies["City Hall Man"][12] = {
  71.     Text        = "No, not really.",
  72.     OnUse       = function(pl) return 5 end
  73. }
  74. Replies["City Hall Man"][13] = {
  75.     Text        = "I'll do it!",
  76.     OnUse       = function(pl) return 4 end
  77. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement