Advertisement
dahhoovy

sv_attatchment_vendor.lua

Sep 28th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.62 KB | None | 0 0
  1. ATTACHMENT_VENDOR.persistent = {
  2. enabled = false, // Should bought attachments be saved to a database?
  3. module = "sqlite",// What database module should be used? (CURRENTLY ONLY SQLITE WORKS)
  4. auth = { // Authentication for a remote MYSQL server (CURRENTLY NOT USED)
  5. host = "localhost",
  6. port = 3306,
  7. user = "root",
  8. pass = ""
  9. }
  10. };
  11.  
  12. ATTACHMENT_VENDOR.locations = {
  13. {pos = Vector(), ang = Angle(), id = "mySpecialVendorID", destructible = false}
  14. };
  15.  
  16. ATTACHMENT_VENDOR.malfunction = { // When a vendor is damaged, it CAN malfunction but is not guaranteed.
  17. allow = true, // Should the vendor malfunction?
  18. chance = 25, // 40% that a malfunctioning vendor will actually malfunction.
  19.  
  20. steal = false, // Should a malfunctioning vendor randomly take money without giving attachments?
  21. stealChance = 25, // 25% chance that a malfunctioning vendor will steal.
  22.  
  23. free = true, // Should a malfunctioning vendor randomly give attachments for free?
  24. freeChance = 15, // 15% chance that a malfunctioning vendor will give free attachments.
  25.  
  26. extra = true, // Should a malfunctioning vendor randomly give extra attachments for free?
  27. extraChance = 10, // 10% chance a that a malfunctioning vendor will give extra attachments for free.
  28. extraMax = 2 // Maximum number of extra attachments to give.
  29. };
  30.  
  31. // Percentage of the price of the attachment that goes back to the owner of the attachment vendor
  32. ATTACHMENT_VENDOR.ownerPricePercentage = function(ply, attname, price)
  33. return 85; // 100% of the price goes to the owner
  34. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement