Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.56 KB | None | 0 0
  1. /*-don't touch-*/ local _blackberry = _blackberry or {};
  2. /*-don't touch-*/ _blackberry.character_base = _blackberry.character_base or {};
  3. /*-don't touch-*/ local core = _blackberry.character_base;
  4. /*-don't touch-*/ core.config = core.config or {};
  5.  
  6. /*---------------------------------------------------------------------------
  7. Base config
  8. ---------------------------------------------------------------------------*/
  9. core.config["title"] = "Artex-Roleplay"; // Name of window
  10. core.config["main_color"] = Color(255, 209, 55); // Default: Color(255, 209, 55)
  11. core.config["start_points"] = 40; // Start points for attributes
  12. core.config["create_sound"] = "sound/music/hl2_song19.mp3"; // Music in char creation menu
  13. core.config["need_recognize"] = true; // Enable recognze system
  14. core.config["hunger"] = true; // Hunger mod enabled
  15. core.config["disable_defult_hud"] = true; // Disable default hud
  16. core.config["max_jail_time"] = 10; // Optional time for arres by Karma of player. The smaller the karma, the longer the arrest
  17. core.config["karma_kills_point"] = 2; // How many kills for 1 karma point. minimum 1 kill for 1 point
  18. core.config["recognize_area"] = 300; // Recognize area
  19. core.config["change_name_price"] = 5000; // Price for changename - 0 for free or false for disable
  20. core.config["mysqloo_enabled"] = false; // False for local db or true for MySQLOO v9.x https://forum.facepunch.com/gmodgd/jjdq/gmsv-mysqloo-v9-Rewritten-MySQL-Module-prepared-statements-transactions/1/
  21. core.config["disable_notify"] = true; // Disable blackberry message with status notify
  22. core.config["custom_stamina"] = true; // True for disable stamina by this addon
  23. core.config["hud_dark_particles"] = true; // particles for darkside of hud
  24. ---- HP Regen settings
  25. core.config["regeneration_health"] = false; // Regeneration health by attribute - every 5 - 15 sec (by attribute status) +core.config["regeneration_hp_val"] hp;
  26. core.config["regeneration_hp_val"] = 2; // how much regen hp in some tick; use ceil number
  27. core.config["regeneration_hp_min"] = 5; // time in sec. Min of tick with regeneration = 100; - in 5 sec +2 hp
  28. core.config["regeneration_hp_max"] = 15; // time in sec. Max of tick with regeneration = 0; - in 15 sec +2 hp
  29. core.config["perma_models"] = true; // setting for one model for all teams non isCP
  30. /*---------------------------------------------------------------------------
  31. Mysql settings for core.config["mysqloo_enabled"]
  32. ---------------------------------------------------------------------------*/
  33. core.config["mysql_host"] = "localhost"; // host ip
  34. core.config["mysql_database"] = "bd_name"; // database name
  35. core.config["mysql_user"] = "root"; // user name
  36. core.config["mysql_password"] = "pass"; // user password
  37. core.config["mysql_port"] = 3306; // Port. default: 3306
  38.  
  39. /*---------------------------------------------------------------------------
  40. Admin access in F2
  41. ---------------------------------------------------------------------------*/
  42. core.config["access_groups"] = {"superadmin"}; // Groups for access in F2 admin menu
  43.  
  44. /*---------------------------------------------------------------------------
  45. Stamina config
  46. ---------------------------------------------------------------------------*/
  47. core.config["stamina_min_run_speed"] = 240; // Speed when player ran with strenght attribute is 0
  48. core.config["stamina_max_run_speed"] = 320; // when strengt attribute is max
  49.  
  50. core.config["staming_jump_power"] = 200; // attribute is 0
  51. core.config["staming_max_jump_power"] = 260; // max attribute
  52.  
  53. /*---------------------------------------------------------------------------
  54. Advanced config
  55. ---------------------------------------------------------------------------*/
  56. core.config["bot_default"] = { // Default bot character name and description
  57. ["name"] = "Gabe Newell",
  58. ["description"] = "Ich bin bloß ein Bot"
  59. }
  60.  
  61. core.config["models"] = { // Models for choose
  62. ["male"] = {
  63. "models/player/clanny/male_06.mdl",
  64. "models/player/eric_summer/male_06.mdl",
  65. "models/player/fin/male_02.mdl",
  66. "models/player/kenbondsummer/male_09.mdl",
  67. "models/player/peter/male_02.mdl",
  68. "models/player/peterdavid/male_06.mdl",
  69. "models/player/rhileysummer/male_06.mdl",
  70. "models/player/rosenjohnson/male_09.mdl",
  71. "models/player/yves/male_06.mdl",
  72. "models/humans/group02/tale_01.mdl",
  73. "models/humans/group02/tale_03.mdl",
  74. "models/humans/group02/tale_04.mdl",
  75. "models/humans/group02/tale_08.mdl",
  76. [-TEAM_Rettungsdienst] = "models/player/portal/male_02_medic.mdl"
  77. },
  78. ["female"] = {
  79. "models/humans/group02/temale_01.mdl",
  80. "models/humans/group02/temale_02.mdl",
  81. "models/humans/group02/temale_07.mdl"
  82. }
  83. }
  84.  
  85. core.config["default_appearance"] = {
  86. "Untergewichtig",
  87. "Dünn",
  88. "Stabil",
  89. "Übergewichtig"
  90. };
  91.  
  92. core.config["default_eyes_color"] = {
  93. "Blau",
  94. "Grün",
  95. "Braun",
  96. "Schwarz"
  97. };
  98.  
  99. /*-don't touch-*/ core.config["steps"] = {};
  100. /*-don't touch-*/ local store = core.config["steps"];
  101. /*---------------------------------------------------------------------------
  102. Steps names
  103. ---------------------------------------------------------------------------*/
  104. store[#store + 1] = {
  105. ["name"] = "Basisinformationen",
  106. ["description"] = "Basisinformationen zu deinem Charakter"
  107. };
  108. store[#store + 1] = {
  109. ["name"] = "Wähle dein Aussehen",
  110. ["description"] = "Aussehen von deiner Person"
  111. };
  112. store[#store + 1] = {
  113. ["name"] = "Eigenschaften",
  114. ["description"] = "Wähle deine Eigenschaften"
  115. };
  116. store[#store + 1] = {
  117. ["name"] = "Regeln",
  118. ["description"] = "Regeln vom Server",
  119. ["subtext"] = "Ja, ich habe alle Regeln gelesen und verstehe die volle Verantwortung meiner Handlungen."
  120. };
  121.  
  122. /*-don't touch-*/ core.config["commands"] = {};
  123. /*-don't touch-*/ local store = core.config["commands"];
  124. /*-don't touch-*/ core.config["commands_groups"] = {};
  125. /*-don't touch-*/ local groups = core.config["commands_groups"];
  126. /*---------------------------------------------------------------------------
  127. Char menu commands
  128. ---------------------------------------------------------------------------*/
  129. groups[0] = "Befehle";
  130. groups["admin"] = "Admin";
  131.  
  132. store[#store + 1] = {
  133. ["name"] = "Ändere Beschreibung",
  134. ["callback"] = function(lply)
  135. Derma_StringRequest("Ändere Beschreibung", "Gebe eine andere Charakter Beschreibung ein", LocalPlayer():getChar():GetVar("description", ""), function(text)
  136. netstream.Start("_blackberry.character_base.change_description", text);
  137. core.derma:close();
  138. end);
  139. end
  140. };
  141.  
  142. if (core.config["change_name_price"]) then
  143. store[#store + 1] = {
  144. ["name"] = "Änder dein Namen ("..core.config["change_name_price"].."€)",
  145. ["callback"] = function(lply)
  146. Derma_StringRequest("Änder dein Namen", "Gebe ein neuen Namen ein", LocalPlayer():getChar():GetVar("name", ""), function(text)
  147. netstream.Start("_blackberry.character_base.change_name", text);
  148. core.derma:close();
  149. end);
  150. end
  151. };
  152. end;
  153.  
  154. store[#store + 1] = {
  155. ["name"] = "Editiere Spieler Beschreibung",
  156. ["group"] = "admin",
  157. ["callback"] = function(lply, ply)
  158. if (!ply and !IsValid(ply)) then
  159. core.derma.openPlayerMenu(function(ply)
  160. Derma_StringRequest("Ändere Beschreibung von "..ply:Name(true).." - "..ply:getChar():GetVar("name"), "Gebe neue Beschreibung ein", ply:getChar():GetVar("description"), function(text)
  161. netstream.Start("_blackberry.character_base.admin.description", {ply, text});
  162. core.derma:close();
  163. end)
  164. end);
  165. else
  166. Derma_StringRequest("Ändere Beschreibung von "..ply:Name(true).." - "..ply:getChar():GetVar("name"), "Gebe neue Beschreibung ein", ply:getChar():GetVar("description"), function(text)
  167. netstream.Start("_blackberry.character_base.admin.description", {ply, text});
  168. core.derma:close();
  169. end)
  170. end;
  171. end,
  172. ["access"] = core.config["access_groups"]
  173. };
  174. store[#store + 1] = {
  175. ["name"] = "Editiere Spieler Name",
  176. ["group"] = "admin",
  177. ["callback"] = function(lply, ply)
  178. if (!ply and !IsValid(ply)) then
  179. core.derma.openPlayerMenu(function(ply)
  180. Derma_StringRequest("Ändere Name von "..ply:Name(true).." - "..ply:getChar():GetVar("name"), "Gebe neuen Namen ein", ply:getChar():GetVar("name"), function(text)
  181. netstream.Start("_blackberry.character_base.admin.name", {ply, text});
  182. core.derma:close();
  183. end)
  184. end);
  185. else
  186. Derma_StringRequest("Ändere Namen von "..ply:Name(true).." - "..ply:getChar():GetVar("name"), "Gebe neuen Namen ein", ply:getChar():GetVar("name"), function(text)
  187. netstream.Start("_blackberry.character_base.admin.name", {ply, text});
  188. core.derma:close();
  189. end)
  190. end;
  191. end,
  192. ["access"] = core.config["access_groups"]
  193. };
  194.  
  195. /*-don't touch-*/ core.config["rules"] = {};
  196. /*-don't touch-*/ local store = core.config["rules"];
  197. /*---------------------------------------------------------------------------
  198. Rules
  199. ---------------------------------------------------------------------------*/
  200. store[#store + 1] = "All default laws are always in effect, even without a Mayor";
  201. store[#store + 1] = "Do not commit acts of Random Death Match (RDM)";
  202. store[#store + 1] = "Do not break the New Life Rule (NLR)";
  203. store[#store + 1] = "Do not demote players randomly or for false reasons. You may not demote players while staff are online";
  204. store[#store + 1] = "Do not prop minge";
  205. store[#store + 1] = "Do not break the FearRP rules";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement