BERKYT

Script example

Jan 7th, 2022
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.69 KB | None | 0 0
  1. --=================================================================================================================================================================
  2. --  Script By: BERKYT
  3. --  Links: VK: https://vk.com/b_e_r_k_y_t Discord: https://discord.gg/amMreCC YouTube: https://www.youtube.com/channel/UCaPBjmrAYO6p-ksHNaymwLg?view_as=subscriber
  4. --  The script is distributed freely, provided that the author of the script is indicated - BERKYT
  5. --  Tutorial: https://www.youtube.com/watch?v=PY-KsR1P6l0&feature=youtu.be
  6. --=================================================================================================================================================================
  7.  
  8. import("ScarUtil.scar")
  9. import("WXPScarUtil.scar")
  10.  
  11.  
  12. function OnGameSetup()
  13.     local max = 999
  14.     g_Player3 = World_GetPlayerAt(2)
  15.     g_table_players =
  16.     {
  17.     }  
  18.     g_table_sgroup_players =
  19.     {
  20.     }
  21.     ------------------------------------------------------------------------Interface:
  22.         --NEW[07.01.2022]!
  23.         --[
  24.             -- Table of enemy army
  25.             g_table_warriors =
  26.             {
  27.                 --Config enemy army
  28.                 waves =
  29.                 {
  30.                     --Config wave
  31.                     wave_1 =
  32.                     {
  33.                         --Type of warriors
  34.                         type_one =
  35.                         {
  36.                             "ork_squad_grot", -- Type of warrior
  37.                             3, -- Quantity of squads in the type
  38.                             10, -- Quantity of warriors in the squad
  39.                             {"default", 0}, -- Add weapons {type, quantity}  
  40.                             leader = false -- Add leader
  41.                         },
  42.                     },
  43.                 },
  44.                 -- WARNING! SKIP PLAYER NUMBER THREE! BECAUSE HE IS ENEMY!
  45.                 -- Table of reinforcements
  46.                 reinforcements =
  47.                 {  
  48.                     --Config reinforcements for player 1
  49.                     reinforcement_to_player_1 =
  50.                     {
  51.                         --Type of warriors
  52.                         type_one =
  53.                         {
  54.                             "guard_squad_guardsmen_advance_sp", -- Type of warrior
  55.                             3, -- Quantity of squads in the type
  56.                             max, -- Quantity of warriors in the squad
  57.                         },
  58.                     }, 
  59.                 }
  60.             }
  61.            
  62.             --Set team color of enemy
  63.             local team_color_enemy = "default_2"
  64.            
  65.             --Race of waves
  66.             local name_race_enemy = "BERKYT"
  67.             local type_race_enemy = "ork_race"
  68.         --]
  69.        
  70.        
  71.         --Count point attack
  72.         g_attack_point = 3
  73.        
  74.         --Interval between attacks in seconds
  75.         g_interval = 90
  76.        
  77.         --Interval between reinforcement in seconds
  78.         g_t_interval_reinforcement = 5 * 60
  79.        
  80.         --ONLY FOR TEST'S BATTLES
  81.         Debug_mod = false
  82.     ------------------------------------------------------------------------End.
  83.    
  84.     --Don't touch:
  85.     --{
  86.         Setup_Player(2, name_race_enemy, type_race_enemy, 1)
  87.         Misc_PlayerTeamColor(g_Player3, team_color_enemy)
  88.     --}
  89. end
  90.  
  91. --Don't touch:
  92. --{
  93. function OnInit()
  94.     Rule_AddOneShot(Advertising, 15)
  95.    
  96.     Rule_AddInterval(bm_CreateWaves, 1)
  97.     Rule_AddInterval(bm_SpawnReinforcement, 1)
  98.     Rule_AddInterval(bm_Timer, 1)
  99. end
  100.  
  101. Scar_AddInit(OnInit)
  102.  
  103. function Advertising()
  104.     local rand_ad = World_GetRand(0, 4)
  105.    
  106.     if rand_ad == 0 then
  107.         Sberbank()
  108.     elseif rand_ad == 1 then
  109.         VKontakte()
  110.     elseif rand_ad == 2 then
  111.         Site_En_Link()
  112.     elseif rand_ad == 3 then
  113.         Site_En()
  114.     elseif rand_ad == 4 then
  115.         WebMoney()
  116.     end
  117. end
  118.  
  119. function WebMoney()
  120.     Util_MissionTitle("WebMoney: R515364081475(RUB) or Z262863085617(USD)(Check ReadMe - file)")
  121. end
  122.  
  123. function Sberbank()
  124.     Util_MissionTitle("If you want to thank the author for the script, then here's how to do it: Sberbank: 5469 4000 2976 6750 (Check ReadMe - file)")
  125. end
  126.  
  127. function VKontakte()
  128.     Util_MissionTitle("VKontakte: https://vk.com/club177090833 (Check ReadMe - file)")
  129. end
  130.  
  131. function Site_En_Link()
  132.     Util_MissionTitle("Visit my website and receive exclusive information! Link: http://bit.ly/3glPSP7")
  133. end
  134.  
  135. function Site_En()
  136.     Util_MissionTitle("Visit my website and receive exclusive information!(Check ReadMe - file)")
  137. end
  138. --}
  139.  
Add Comment
Please, Sign In to add comment