Advertisement
Aodai

mohamad512_system_ENG.lua

Feb 1st, 2018
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 17.57 KB | None | 0 0
  1. function get_module_name()
  2.              return "Mohamad512_System"
  3. end
  4. function Mohamad512_System()
  5.  getAttemptsFight()
  6.  Special_Card_Fight()
  7.  CheckOnlineFight(1)
  8.  RemoveFightPunish()
  9.  name = gv("name")
  10.  WarIsOn   = get_global_variable("FightStarted")
  11.  Attempt   = get_global_variable("FightAttempt_"..name)
  12.  if Attempt == "" then Attempt = 0 end
  13.  P_Attempt = get_global_variable("P_FightAttempt_"..name)
  14.  if P_Attempt == "" then P_Attempt = 0 end
  15.  IsInFight   = get_global_variable("IsInFight_"..name)
  16.  dlg_title("Duelling system")
  17.  ptime = get_global_variable('FightPunish_'..name)
  18.  if ptime == "" then ptime =0 end
  19.  if ptime == 0 or ptime <= get_os_time() then
  20.  if WarIsOn ~=1 then
  21.   if IsInFight == "" then -- Not registered
  22.    dlg_text("Welcome to the duelling system..!!")
  23.    if Attempt == 0 and P_Attempt == 0 then
  24.     dlg_menu("Apply for duelling","NoAttemptFight()")
  25.    
  26.    else
  27.     dlg_menu("Apply for duelling","GetInFight()")
  28.    
  29.    end
  30.    dlg_menu("Who applied for duelling?","WhoRegInFight()")
  31.    
  32.   else -- Registered
  33.   dlg_text("Welcome to the duelling system")--When registered !!
  34.   dlg_menu("Leave duel","dlg_special('confirm_window','GetOutFight()','Do you want to leave the duel?')")
  35.   dlg_menu("Who applied for duelling?","WhoRegInFight()")
  36.  
  37.   end
  38.  
  39.  else
  40.  dlg_text("There is already a battle going on, please try again later...")--Registering during battle
  41.  --dlg_menu("How many people left?","HowMany()")
  42.  dlg_menu("Who is fighting right now?","WhoRegInFight()")
  43.  
  44.  end
  45. else
  46.  
  47. --dlg_text(get_os_date("لقد تمت معاقبتك لمخالفة قوانين الحرب تنتهي عقوبتك في تاريخ %x الساعة %M : %H",ptime))
  48. dlg_text(get_os_date("You have been punished for breaking the battle rules, your punishment will expire in %H:%M \nYou can remove this part %x",ptime)) --Can't really see the format properly since it's RTL(Right to left) and I threw %x(character class for hexadecimal digits) in since it was there
  49. dlg_menu("Punishment reason and expiration date?","")
  50.  
  51. end
  52. dlg_menu("Check your fight attempts","CheckFightAttempts()")
  53. --dlg_menu("Copyrights","mohamad512_informatin()")--Please don't remove it!
  54. dlg_menu("Bye!","")
  55. dlg_show()
  56. end
  57.  
  58.  
  59. function CheckFightAttempts()
  60. name = gv("name")
  61. dlg_title("Fight System")
  62. Attempt   = get_global_variable("FightAttempt_"..name)
  63. P_Attempt = get_global_variable("P_FightAttempt_"..name)
  64. if Attempt == "" then Attempt = 0 end
  65. if P_Attempt == "" then P_Attempt = 0 end
  66. dlg_text("You have"..Attempt.." Attempts and "..P_Attempt.." Golden Attempts")
  67. dlg_menu("Exit","")
  68. dlg_show()
  69. end
  70.  
  71.  
  72. function mohamad512_informatin()
  73. private_notice('<#00FF00>All rights reserved to ')
  74. private_notice('<b><#00FF00>Mohamad512')
  75. end
  76.  
  77. function getAttemptsFight()
  78.     name = gv("name")
  79.     tval = get_flag("FightTimeFight")
  80.     h = tonumber(get_os_date("%H",get_os_time()))
  81.     m = tonumber(get_os_date("%M",get_os_time()))
  82.     ha = 0
  83.     if tval == "" then tval = get_os_time()-50 end
  84.     if get_os_time() > tval  then
  85.         if h < 8 then ha = 8 - h else ha = 24 - h + 8 end
  86.         flag = get_os_time()+3600*ha-m*60
  87.         set_global_variable("FightAttempt_"..name,3)
  88.         set_flag("FightTimeFight",flag)
  89.         message("<#FF0000>Fight attempts received")
  90.         return 1
  91.     else
  92.     if h < 8 then ha = 8 - h else ha = 24 - h + 8 end
  93.         ma = 60-m
  94.         remain = get_os_time() +3600*ha -3600 +ma*60 -m*60
  95.         return remain
  96.     end
  97. end
  98.  
  99. function ReadyAgainFight()
  100.     dlg_title("Duelling System")
  101.     name = gv("name")
  102.     timeval = getAttemptsFight()
  103.     if timeval == 1 then
  104.         dlg_text("You received your attempts")
  105.     else
  106.         remain = timeval
  107.         --dlg_text(get_os_date("تبقى %H ساعة و %M دقيقة و %S ثانية",remain))
  108.         dlg_text(get_os_date("Remaining time: %H:%M:%S",remain))
  109.     end
  110.     dlg_menu("Bye!" ,'' )
  111.     dlg_show()
  112.  
  113. end
  114.  
  115. function NoAttemptFight()
  116.     dlg_title("Duelling System")
  117.     dlg_text("You have used up all of your fighting attempts for today, you need to wait until tomorrow to receive more attempts.")
  118.     dlg_menu("When will I receive my fight attempts?","ReadyAgainFight()")
  119.     dlg_menu("Bye!" ,'' )
  120.     dlg_show()
  121. end
  122.  
  123. function FightKick(name)
  124. --name = gv("name")
  125. countFighters = get_global_variable("FightSCount")
  126. guild = gv("guild_id")
  127. guild_variable =get_global_variable("FightGuildMem_"..guild)
  128. RegOutFight(name)
  129. del_global_variable("IsInFight_"..name)
  130. del_global_variable("FightLife_"..name)
  131. if countFighters =="" then countFighters =1 end
  132. set_global_variable("FightSCount",countFighters-1)
  133. warp_to_revive_position(name)
  134. if guild_variable ~= "" then
  135.  if guild_variable == 1 then
  136.   del_global_variable("FightGuildMem_"..guild)
  137.  else
  138.   guild_mem_c = get_global_variable("FightGuildMem_"..guild)
  139.   set_global_variable("FightGuildMem_"..guild , guild_mem_c-1)
  140.  end
  141. end
  142. CheckFightWinner()
  143. end          
  144. function FightPunish(Type,name)
  145.  tval = get_os_time()
  146.  if Type == 1 then
  147.  flag = get_os_time()+3600*24*2
  148.  elseif Type == 2 then
  149.  flag = get_os_time()+3600*24*1
  150.  elseif Type == 3 then
  151.  --flag = get_os_time()+3600*12
  152.  flag = 0
  153.  elseif Type == 4 then
  154.  flag = get_os_time()+3600*24*3
  155.  end
  156.  set_global_variable('FightPunish_'..name,flag)
  157.  set_global_variable('FightPunishType_'..name,Type)
  158.  whisper(name,"<b><FF0000>You have been punished for breaking the rules!")
  159. end  
  160.  
  161.  
  162. function IsPunishedFight()
  163. name = gv("name")
  164. ptime = get_global_variable('FightPunish_'..name)
  165. if ptime ~= "" and  ptime < get_os_time() then
  166. t = {}
  167. at = ptime - get_os_time()
  168. da = math.floor(at /86400)--/3600 / 24)
  169. ha = math.floor(at /3600 - da * 24)
  170. ma = math.floor(at /60 - ha*60 - da *1440)--*24*60)
  171. t[1] = da
  172. t[2] = ha
  173. t[3] = ma
  174. return t
  175. else return 0
  176. end
  177.  
  178. end
  179.  
  180.  
  181. function Check_Each_Fight_Party()
  182. name  = gv("name")
  183. party = gv("party_id")
  184.  for i = 1 ,2 do
  185.  pname = get_global_variable('FightSMem_'..i)
  186.   if gv("party_id",pname) ~= 0 then
  187.    FightKick(pname)
  188.    FightPunish(2,pname)
  189.   end
  190.  end
  191. end
  192.  
  193.  
  194. function Check_Target()
  195.  
  196. if get_target_value("name") ~= 0 then
  197. do_something()
  198. end
  199. end
  200.  
  201.  
  202. function Special_Card_Fight()
  203. x=gv("x")
  204. y=gv("y")
  205. layer=gv("layer")
  206. if get_global_variable("FightStarted") ==1 then --and x >= 203567 and x <= 209067 and y >= 115300 and y <= 121700 and layer == 3 then
  207. Check_Each_Fight_Party()
  208. Check_Each_Fight_Position()
  209. --Check_Target()
  210. CheckFightWinner()
  211. --else
  212. --delete_item(get_item_handle(1234),1)
  213. end
  214. end
  215.  
  216.  
  217. function GetInFight()
  218. if get_global_variable("FightStarted") ~= 1 then
  219. party = gv("party_id")
  220. name  = gv("name")
  221. guild = gv("guild_id")
  222. guild_mem_c = get_global_variable("FightGuildMem_"..guild)
  223. if guild_mem_c == "" then guild_mem_c = 0 end
  224.  if party == 0 then
  225.   if guild_mem_c < 1 or guild == 0 then
  226.  
  227.    set_global_variable("IsInFight_"..name,1)
  228.    if guild ~= 0 then
  229.     set_global_variable("FightGuildMem_"..guild , guild_mem_c+1)
  230.     Set_Guild_Variable()
  231.    end
  232.    countFighters = get_global_variable("FightSCount")
  233.    set_global_variable("FightSCount",countFighters+1)
  234.  
  235.    RegInFight()
  236.    
  237.    --insert_item(1234,1)
  238.  
  239.    --do_for_each_Fight(1,private_notice,name..'قد قام بالتسجيل تبقى'..CheckOnlineFight(1)..'متنافس حتى البداية . !')
  240.    do_for_each_Fight(25,whisper,'<b><#FFFF00>'..name..' has registered for the battle!\n'..CheckOnlineFight(1)..' applicants until the start of the battle!')
  241.   -- notice('<b><#FFFF00>'..name..' قد قآم بآلتسجيل للمبآرزة تبقى'..CheckOnlineFight(1)..' متنافس حتى البداية . !') --Same thing as above but this one sends a notice instead
  242.     if CheckOnlineFight(1) == 0 then
  243.      FightGo()
  244.      else
  245.      Offline = CheckOnlineFight(1)
  246.      dlg_general("You have been successfully registered for the battle "..Offline.." applicants left until battle start!")
  247.     end
  248.   else dlg_general("Only 1 member of the same guild is allowed!") end
  249.  else private_notice("<#FF0000>Teaming up is forbidden, if you team up with anyone you'll lose and get punished!")
  250. end
  251. end
  252. end
  253.  
  254.  
  255.  function RegInFight()
  256. name = gv("name")
  257.  for i = 1 ,2 do
  258.    if get_global_variable("FightSMem_"..i) == "" and i <= 2 then
  259.    set_global_variable("FightSMem_"..i,name)
  260.    set_flag("FightNum",i)
  261.    break
  262.    end
  263.  end
  264. end
  265.  
  266.  
  267. function FightRandomWarp()
  268. X = {213225,213208}
  269. Y = {144360,142945}
  270. Ran = math.random(1,2)
  271. warp(X[Ran],Y[Ran],3)
  272. end
  273.  
  274.  
  275. function CheckGuildWinnerFight()
  276. CO1 = CheckOnlineFight(1)
  277.  if CO1 == 17 then
  278.   if gv("guild_id",GetOnline()[1]) == gv("guild_id",GetOnline()[2]) and gv("guild_id",GetOnline()[3]) == gv("guild_id",GetOnline()[2])
  279.   then return 3
  280.   end
  281.  elseif CO1 == 18 then
  282.   if gv("guild_id",GetOnline()[1]) == gv("guild_id",GetOnline()[2])
  283.   then return 2
  284.   end
  285.  else return 0
  286.  end
  287. end
  288.  
  289. -------------------------------------------------------------------------
  290.  
  291. function CheckOnlineFight(num)
  292. if num == 1 then
  293.  Offline = 0
  294.  for i = 1 ,2 do
  295.  p = get_global_variable('FightSMem_'..i)
  296.   if gv("name",p) == 0 then
  297.    del_global_variable('FightSMem_'..i)
  298.    del_global_variable('IsInFight_'..p)
  299.    countFighters = get_global_variable("FightSCount")
  300.    guild = gv("guild_id")
  301.    if countFighters =="" then countFighters=0 end
  302.    set_global_variable("FightSCount",countFighters-1)
  303.    if guild ~= 0 then
  304.     if get_global_variable("FightGuildMem_"..guild) == 1 then
  305.      del_global_variable("FightGuildMem_"..guild)
  306.     else
  307.      guild_mem_c = get_global_variable("FightGuildMem_"..guild)
  308.     if guild_mem_c == "" then guild_mem_c = 1 end
  309.      set_global_variable("FightGuildMem_"..guild , guild_mem_c-1)
  310.     end
  311.    end
  312.    Offline = Offline + 1
  313.    if Offline==2 then set_global_variable("FightStarted",0) end
  314.   elseif get_global_variable('FightSMem_'..i) == "" then
  315.    Offline = Offline + 1
  316.  
  317.   end
  318.  end
  319.  --if Offline ==19 and get_global_variable("FightStarted") == 1 then FightWin() end
  320. return Offline
  321.  
  322. elseif num == 2 then
  323. Online =""
  324. c = 0
  325.  for i = 1 ,2 do
  326.  p=get_global_variable('FightSMem_'..i)
  327.   if gv("name",p) ~= 0 then
  328.    c = c+1
  329.    if c == 1 then
  330.     Online = get_global_variable('FightSMem_'..i)
  331.    else
  332.     Online = Online..' - '..get_global_variable('FightSMem_'..i)
  333.    end  
  334.   end
  335.  
  336.  end
  337. return Online
  338. end
  339. end
  340.  
  341.  
  342.  
  343. function FightGo()
  344. if get_global_variable("FightStarted") ~= 1 then
  345. notice("<#FF0000>Registration complete, battle started!")
  346. do_for_each_Fight(1,set_pk_mode,1)
  347. FightWarp()
  348. set_global_variable("FightStarted",1)
  349. SetFightLife()
  350. Check_Each_Fight_Party()
  351. FightWarrning()
  352. UpdateAttemptsFight()
  353. end
  354. end
  355.  
  356. function UpdateAttemptsFight()
  357.     for i = 1,3 do
  358.     name = get_global_variable('FightSMem_'..i)
  359.         if gv("name",name) ~= 0 then
  360.             Attempt   = get_global_variable("FightAttempt_"..name)
  361.             P_Attempt = get_global_variable("P_FightAttempt_"..name)
  362.                 if P_Attempt == "" then P_Attempt = 0 end
  363.                 if Attempt == "" then Attempt = 0 end
  364.             if Attempt ~= 0 and P_Attempt == 0 then
  365.                 set_global_variable("FightAttempt_"..name,Attempt-1)
  366.             elseif Attempt == 0 and P_Attempt ~= 0 then
  367.                 set_global_variable("P_FightAttempt_"..name,P_Attempt-1)
  368.             elseif Attempt ~= 0 and P_Attempt ~= 0 then
  369.                 set_global_variable("FightAttempt_"..name,Attempt-1)
  370.             end
  371.         end
  372.     end
  373. end
  374.  
  375. function SetFightLife()
  376.  for i = 1 ,2 do
  377.  d=get_global_variable('FightSMem_'..i)
  378.   if gv('name',d) ~= 0 then
  379.    set_global_variable("FightLife_"..d,9)  ---Sets participants's life, if they die 10 times they lose
  380.   end
  381.  end
  382. end
  383.  
  384.  
  385. function WhoRegInFight()
  386. Online = CheckOnlineFight(2)
  387. private_notice(Online)
  388. end
  389.  
  390.  
  391. function FightWin()
  392. CheckOnlineFight(1)
  393. WinnerName =CheckOnlineFight(2)
  394. if WinnerName ~= "" then
  395. warp_to_revive_position(WinnerName)
  396.  
  397. P_Attempt = get_global_variable("P_FightAttempt_"..WinnerName)
  398. if P_Attempt =="" then P_Attempt=0 end
  399. set_global_variable("P_FightAttempt_"..WinnerName,P_Attempt+1)
  400. --add_state(145720,10,1080000,WinnerName)
  401. --r = math.random(1,2)
  402. --if r == 1 then
  403. --add_state(4502,1,1080000,WinnerName)
  404. --else
  405. --add_state(9003,1,1080000,WinnerName)
  406. --end
  407. ---sv("ap",+1000,WinnerName)
  408. notice('<#F0000> Congrajulations <#FF0000>'..WinnerName..'</#FF0000> for winning the battle ..!')
  409. set_value( "ap", tonumber(get_value( "ap" )) + 300,WinnerName)
  410. delete_all_variableFight()
  411. Del_Guild_VariableFight()
  412.  
  413. set_global_variable("FightStarted",0)
  414. end
  415. end
  416.  
  417. function FightLost()
  418. name = gv("name")
  419. countFighters = get_global_variable("FightSCount")
  420. guild = gv("guild_id")
  421. guild_variable =get_global_variable("FightGuildMem_"..guild)
  422. RegOutFight(name)
  423. del_global_variable("IsInFight_"..name)
  424. del_global_variable("FightLife_"..name)
  425. set_global_variable("FightSCount",countFighters-1)
  426. if guild_variable ~= "" then
  427.  if guild_variable == 1 then
  428.   del_global_variable("FightGuildMem_"..guild)
  429.  else
  430.   guild_mem_c = get_global_variable("FightGuildMem_"..guild)
  431.   set_global_variable("FightGuildMem_"..guild , guild_mem_c-1)
  432.  end
  433. end
  434. --delete_item(get_item_handle(1234),1)
  435. warp_to_revive_position()
  436. CO1 =CheckOnlineFight(1)
  437. if CO1 == 1 then
  438. notice('<#FF0000>~~Battle System~~')
  439. notice('<#FF0000>'..name..' has lost.. !')
  440. end
  441. Special_Card_Fight()
  442. end
  443.  
  444.  
  445. function CheckFightWinner()
  446. WarIsOn   = get_global_variable("FightStarted")
  447.  if WarIsOn == 1 then
  448.   CO1 =CheckOnlineFight(1)
  449.   if CO1 == 1 then
  450.    FightWin()
  451.   elseif CO1 == 17 then
  452.    if gv("guild_id",GetOnline()[1]) == gv("guild_id",GetOnline()[2]) and gv("guild_id",GetOnline()[3]) == gv("guild_id",GetOnline()[2])
  453.    then GuildWinFight()
  454.    end
  455.   elseif CO1 == 18 then
  456.    if gv("guild_id",GetOnline()[1]) == gv("guild_id",GetOnline()[2])
  457.    then GuildWinFight()
  458.    end
  459.   end
  460.  end
  461. end
  462.  
  463.  
  464. function GetOutFight()
  465.  name = gv("name")
  466.  guild = gv("guild_id")
  467.  del_global_variable("IsInFight_"..name)
  468.  if guild ~= 0 then
  469.   if get_global_variable("FightGuildMem_"..guild) == 1 then
  470.    del_global_variable("FightGuildMem_"..guild)
  471.   else
  472.    guild_mem_c = get_global_variable("FightGuildMem_"..guild)
  473.    if guild_mem_c == "" then guild_mem_c = 1 end
  474.    set_global_variable("FightGuildMem_"..guild , guild_mem_c-1)
  475.   end
  476.  end
  477.  countFighters = get_global_variable("FightSCount")
  478.  set_global_variable("FightSCount",countFighters-1)
  479.  RegOutFight(name)
  480.  end
  481. function RegOutFight(name)
  482. -- name = gv("name")
  483.  for i = 1 , 3 do
  484.   if get_global_variable('FightSMem_'..i) == name then
  485.    del_global_variable('FightSMem_'..i)
  486.   end
  487.  end
  488. end
  489.  
  490.  
  491. function RemoveFightPunish()
  492. name = gv("name")
  493. ptime = get_global_variable('FightPunish_'..name)
  494. if ptime ~="" then
  495.  if ptime <= get_os_time() or ptime >= get_os_time() or ptime == get_os_time() then
  496.   del_global_variable('FightPunish_'..name)
  497.   del_global_variable('FightPunishType_'..name)
  498.  end
  499. end
  500. del_global_variable('FightPunish_'..name)
  501.   del_global_variable('FightPunishType_'..name)
  502. end
  503.  
  504.  
  505. function Check_Each_Fight_Position()
  506. name  = gv("name")
  507.  for i = 1 ,2 do
  508.  pname = get_global_variable('FightSMem_'..i)
  509.   if gv("name",pname) ~= "" then
  510.    x = gv("x",pname)
  511.    y=gv("y",pname)
  512.    layer=gv("layer",pname)
  513.    --if x <= 203567 or x >= 209067 or y <= 115300 or y >= 121700 and layer ~= 3 then
  514.    if x >= 212270 and x <= 214105 and y >= 142899 and y <= 144518 and layer ==3  then do_nothing() else
  515.    if x ~= 0 and y ~=0 then
  516.     FightKick(pname)
  517.     FightPunish(1,pname)  
  518.    end
  519.    end
  520.   end
  521.  end
  522. end
  523.  
  524. function do_nothing()
  525. end
  526.  
  527. function CheckInFight()
  528. x=gv("x")
  529. y=gv("y")
  530. c = get_flag("FightNum")
  531. name  = gv("name")
  532. layer = gv("layer")
  533.  if  get_global_variable("FightSMem_"..c) == gv("name")
  534.  and get_global_variable("IsInFight_"..name) == 1
  535.  and get_global_variable("FightLife_"..name) ~= "" then
  536.   if x >= 212270 and x <= 214105 and y >= 142899 and y <= 144518 and layer ==3 then
  537.   return 1 else return 2
  538.   end
  539.  elseif x <= 212270 and x >= 214105 and y <= 142899 and y >= 144518 and layer ~= 3 then return 3
  540.  else return 0
  541.  end
  542. end
  543. function FightWarrning()
  544. do_for_each_Fight(25,whisper,',<b><#00FF00>Welcome to the battle system')
  545. do_for_each_Fight(25,whisper,'<#FF0000>Rules :-')
  546. do_for_each_Fight(25,whisper,'<#FF0000>1. Teams are forbidden .')
  547. do_for_each_Fight(25,whisper,'<#FF0000>2. You are not allowed to leave the battleground using a recall scroll or any other item .')
  548. do_for_each_Fight(25,whisper,'<#FF0000>If you break any of these rules you will be punished')
  549. do_for_each_Fight(25,whisper,'<#FF0000>We\'re not responsible in the case of losing experience or items. You may use God Mother Fairy\'s Bottles and/or Fairy\'s Locks')
  550. end
  551. function do_for_each_Fight(countFighters,command,x,y,z)
  552.  for i = 1 ,2 do
  553.  d=get_global_variable('FightSMem_'..i)
  554.   if gv('name',d) ~= 0 then
  555.    if countFighters == 3 then
  556.     command(x,y,z,get_global_variable('FightSMem_'..i))
  557.    elseif countFighters == 1 then
  558.     command(x,get_global_variable('FightSMem_'..i))
  559.    elseif countFighters == 2 then
  560.     command(x,y,get_global_variable('FightSMem_'..i))
  561.    elseif countFighters== 25 then
  562.    command(get_global_variable('FightSMem_'..i),x)
  563.    end
  564.   end
  565.   end
  566. end
  567. function delete_all_variableFight()
  568. del_global_variable("FightSCount")
  569.  for i = 1 ,2 do
  570.    if get_global_variable('FightSMem_'..i) ~= "" then
  571.    name = get_global_variable('FightSMem_'..i)
  572.    del_global_variable("FightLife_"..name)  
  573.    del_global_variable("IsInFight_"..name)  
  574.    del_global_variable("WarGuildLight_"..name)
  575.    del_global_variable('FightSMem_'..i)  
  576.   end
  577.  end
  578. end
  579. function Del_Guild_VariableFight()
  580.  for i = 1 ,2 do
  581.   if get_global_variable("WarGuildId_"..i) ~= "" then
  582.    GuildId = get_global_variable("WarGuildId_"..i)
  583.    del_global_variable("FightGuildMem_"..GuildId)
  584.    del_global_variable("WarGuildId_"..i)
  585.    end
  586.  end
  587. end
  588. function FightWarp()
  589. X = {213225,213208}
  590. Y = {144360,142945}
  591. for i = 1,3 do
  592. d=get_global_variable('FightSMem_'..i)
  593. if gv('name',d) ~= 0 then
  594. warp(X[i],Y[i],3,d)  
  595. end
  596. end
  597. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement