Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- LOTTERY_COST = 1000
- Dialog["City Hall Man"] = {}
- Dialog["City Hall Man"][1] = {
- Text = "Hello sir, would you like purchase a lottery ticket for $"..LOTTERY_COST.."?",
- 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
- }
- Dialog["City Hall Man"][2] = {
- Text = "Have a good day sir.",
- Replies = {5}
- }
- Dialog["City Hall Man"][3] = {
- Text = "And you do know what to do as mayor, right?",
- Replies = {9,12}
- }
- Dialog["City Hall Man"][4] = {
- Text = "Alright, good luck.",
- Replies = {10,11}
- }
- Dialog["City Hall Man"][5] = {
- 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?",
- Replies = {13,11}
- }
- Replies["City Hall Man"] = {}
- Replies["City Hall Man"][1] = {
- Text = "Yes.",
- OnUse = function(pl) BuyTicket(pl) end
- }
- Replies["City Hall Man"][2] = {
- Text = "No thanks.",
- OnUse = function(pl) return 2 end
- }
- Replies["City Hall Man"][3] = {
- Text = "I would like to be the mayor.",
- OnUse = function(pl) return 3 end
- }
- Replies["City Hall Man"][4] = {
- Text = "I wish to retire.",
- OnUse = function(pl) ClassChange(pl,TEAM_CITIZEN) end
- }
- Replies["City Hall Man"][5] = {
- Text = "See you later.",
- OnUse = function(pl) end
- }
- Replies["City Hall Man"][6] = {
- Text = "I would like to pick up my paycheck.",
- 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
- }
- Replies["City Hall Man"][7] = {
- Text = "I would like to pick up my welfare check.",
- 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
- }
- Replies["City Hall Man"][8] = {
- Text = "I would like to be a congressman.",
- OnUse = function(pl) ClassChange(pl,TEAM_CONGRESS) end
- }
- Replies["City Hall Man"][9] = {
- Text = "Of course I do!",
- OnUse = function(pl) return 4 end
- }
- Replies["City Hall Man"][10] = {
- Text = "Umm, thanks?",
- OnUse = function(pl) ClassChange(pl,TEAM_MAYOR) end
- }
- Replies["City Hall Man"][11] = {
- Text = "Nevermind, I don't want to be the mayor.",
- OnUse = function(pl) end
- }
- Replies["City Hall Man"][12] = {
- Text = "No, not really.",
- OnUse = function(pl) return 5 end
- }
- Replies["City Hall Man"][13] = {
- Text = "I'll do it!",
- OnUse = function(pl) return 4 end
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement