Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.45 KB | None | 0 0
  1. if string.lower(arguments[1]) == "energy" then
  2. Clockwork.kernel:PrintLog(LOGTYPE_GENERIC, player:Name() .. " has preformed an Energy Weapons skill check, they rolled " .. roll .. " out of " .. number .. "! Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm))
  3. Clockwork.chatBox:AddInRadius(player, "roll", "has preformed an Energy Weapons skill check, they rolled " .. roll .. " out of " .. number .. " Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm) .. "!", player:GetPos(), Clockwork.config:Get("talk_radius"):Get())
  4.  
  5. return
  6. end
  7.  
  8. if string.lower(arguments[1]) == "unarmed" then
  9. Clockwork.kernel:PrintLog(LOGTYPE_GENERIC, player:Name() .. " has preformed an Unarmed skill check, they rolled " .. roll .. " out of " .. number .. "! Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm))
  10. Clockwork.chatBox:AddInRadius(player, "roll", "has preformed an Unarmed skill check, they rolled, they rolled " .. roll .. " out of " .. number .. " Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm) .. "!", player:GetPos(), Clockwork.config:Get("talk_radius"):Get())
  11.  
  12. return
  13. end
  14.  
  15. if string.lower(arguments[1]) == "explosives" then
  16. Clockwork.kernel:PrintLog(LOGTYPE_GENERIC, player:Name() .. " has preformed an Explosives skill check, they rolled " .. roll .. " out of " .. number .. "! Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm))
  17. Clockwork.chatBox:AddInRadius(player, "roll", "has preformed an Explosives skill check, they rolled " .. roll .. " out of " .. number .. " Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm) .. "!", player:GetPos(), Clockwork.config:Get("talk_radius"):Get())
  18.  
  19. return
  20. end
  21.  
  22. if string.lower(arguments[1]) == "guns" then
  23. Clockwork.kernel:PrintLog(LOGTYPE_GENERIC, player:Name() .. " has preformed a Guns skill check, they rolled " .. roll .. " out of " .. number .. "! Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm))
  24. Clockwork.chatBox:AddInRadius(player, "roll", "has preformed a Guns skill check, they rolled " .. roll .. " out of " .. number .. " Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm) .. "!", player:GetPos(), Clockwork.config:Get("talk_radius"):Get())
  25.  
  26. return
  27. end
  28.  
  29. if string.lower(arguments[1]) == "lockpick" then
  30. Clockwork.kernel:PrintLog(LOGTYPE_GENERIC, player:Name() .. " has preformed a Lockpick skill check, they rolled " .. roll .. " out of " .. number .. "! Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm))
  31. Clockwork.chatBox:AddInRadius(player, "roll", "has preformed a Lockpick skill check, they rolled " .. roll .. " out of " .. number .. " Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm) .. "!", player:GetPos(), Clockwork.config:Get("talk_radius"):Get())
  32.  
  33. return
  34. end
  35.  
  36. if string.lower(arguments[1]) == "medicine" then
  37. Clockwork.kernel:PrintLog(LOGTYPE_GENERIC, player:Name() .. " has preformed a Medicine skill check, they rolled " .. roll .. " out of " .. number .. "! Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm))
  38. Clockwork.chatBox:AddInRadius(player, "roll", "has preformed a Medicine skill check, they rolled " .. roll .. " out of " .. number .. " Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm) .. "!", player:GetPos(), Clockwork.config:Get("talk_radius"):Get())
  39.  
  40. return
  41. end
  42.  
  43. if string.lower(arguments[1]) == "melee" then
  44. Clockwork.kernel:PrintLog(LOGTYPE_GENERIC, player:Name() .. " has preformed a Melee Weapons skill check, they rolled " .. roll .. " out of " .. number .. "! Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm))
  45. Clockwork.chatBox:AddInRadius(player, "roll", "has preformed a Melee Weapons skill check, they rolled " .. roll .. " out of " .. number .. " Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm) .. "!", player:GetPos(), Clockwork.config:Get("talk_radius"):Get())
  46.  
  47. return
  48. end
  49.  
  50. if string.lower(arguments[1]) == "repair" then
  51. Clockwork.kernel:PrintLog(LOGTYPE_GENERIC, player:Name() .. " has preformed a Repair skill check, they rolled " .. roll .. " out of " .. number .. "! Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm))
  52. Clockwork.chatBox:AddInRadius(player, "roll", "has preformed a Repair skill check, they rolled " .. roll .. " out of " .. number .. " Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm) .. "!", player:GetPos(), Clockwork.config:Get("talk_radius"):Get())
  53.  
  54. return
  55. end
  56.  
  57. if string.lower(arguments[1]) == "science" then
  58. Clockwork.kernel:PrintLog(LOGTYPE_GENERIC, player:Name() .. " has preformed a Science skill check, they rolled " .. roll .. " out of " .. number .. "! Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm))
  59. Clockwork.chatBox:AddInRadius(player, "roll", "has preformed a Science skill check, they rolled " .. roll .. " out of " .. number .. " Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm) .. "!", player:GetPos(), Clockwork.config:Get("talk_radius"):Get())
  60.  
  61. return
  62. end
  63.  
  64. if string.lower(arguments[1]) == "sneak" then
  65. Clockwork.kernel:PrintLog(LOGTYPE_GENERIC, player:Name() .. " has preformed a Sneak skill check, they rolled " .. roll .. " out of " .. number .. "! Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm))
  66. Clockwork.chatBox:AddInRadius(player, "roll", "has preformed a Sneak skill check, they rolled " .. roll .. " out of " .. number .. " Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm) .. "!", player:GetPos(), Clockwork.config:Get("talk_radius"):Get())
  67.  
  68. return
  69. end
  70.  
  71. if string.lower(arguments[1]) == "speech" then
  72. Clockwork.kernel:PrintLog(LOGTYPE_GENERIC, player:Name() .. " has preformed a Speech skill check, they rolled " .. roll .. " out of " .. number .. "! Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm))
  73. Clockwork.chatBox:AddInRadius(player, "roll", "has preformed a Speech skill check, they rolled " .. roll .. " out of " .. number .. " Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm) .. "!", player:GetPos(), Clockwork.config:Get("talk_radius"):Get())
  74.  
  75. return
  76. end
  77.  
  78. if string.lower(arguments[1]) == "survival" then
  79. Clockwork.kernel:PrintLog(LOGTYPE_GENERIC, player:Name() .. " has preformed a Survival skill check, they rolled " .. roll .. " out of " .. number .. "! Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm))
  80. Clockwork.chatBox:AddInRadius(player, "roll", "has preformed a Survival skill check, they rolled " .. roll .. " out of " .. number .. " Adding " .. math.Round(atbm) .. " from their skill roll, the total is " .. roll + math.Round(atbm) .. "!", player:GetPos(), Clockwork.config:Get("talk_radius"):Get())
  81.  
  82. return
  83. end
  84.  
  85. if arguments[1] ~= "barter" or arguments[1] ~= "energy" or arguments[1] ~= "unarmed" or arguments[1] ~= "explosives" or arguments[1] ~= "guns" or arguments[1] ~= "lockpick"or arguments[1] ~= "medicine"or arguments[1] ~= "melee"or arguments[1] ~= "repair"or arguments[1] ~= "science"or arguments[1] ~= "sneak"or arguments[1] ~= "speech"or arguments[1] ~= "survival" then
  86. player:Notify(arguments[1] .. " is not a valid attribute!")
  87. player:Notify("The following attributes are valid: Barter, Energy Weapons, Explosives, Guns, Lockpick, Medicine, Melee Weapons, Repair, Science, Sneak, Speech, Survival, Unarmed.")
  88.  
  89. return
  90. end
  91.  
  92. end
  93.  
  94. if not arguments[1] then
  95. player:Notify("The following attributes are valid: Barter, Energy Weapons, Explosives, Guns, Lockpick, Medicine, Melee Weapons, Repair, Science, Sneak, Speech, Survival, Unarmed.")
  96. end
  97. end
  98.  
  99. COMMAND:Register()
  100. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement