Advertisement
poxipox

Untitled

Feb 4th, 2024 (edited)
970
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.96 KB | None | 0 0
  1.     rateSpellCriticalTab = {
  2.         [0] = 1.04, -- {name = "Glove"},
  3.         [1] = 1.20, -- {name = "Wave"},
  4.         [2] = 1.2, -- {name = "Distanse"},
  5.         [3] = 1.4, -- {name = "Area"},
  6.         [4] = 1.4, -- {name = "Area_one"}, -- attack to see pos
  7.         [5] = 1.0,-- {name = "Blast"}, -- sp/ki blast / makanskosappo
  8.         [6] = 1.2, -- {name = "Runes"}, -- Spells
  9.         [7] = 1.0, -- {name = "Bolt"}, -- bolt ammo
  10.         [8] = 1.0, -- {name = "Sword"}, -- sword
  11.         [9] = 1.0, -- = {name = "Distanse"}, -- Distanse_ mana absrob
  12.     }
  13.    
  14.    
  15.     skillConfigTab = { -- rateSkill = 70.0
  16.     --[sID] = {rate, baseSkill, maxLevel} ~= baseSkill skill change only reset!!
  17.         [0] = {1.0, 50, 150}, -- rateSkill_glove
  18.         [2] = {1.0, 50, 150}, -- rateSkill_sword
  19.         [4] = {1.0, 50, 150}, -- rateSkill_distance
  20.         [1] = {1.0, 50, 60}, -- rateSkill_speed
  21.         [9] = {1.0, 500, 75}, -- rateSkill_fattack
  22.         [7] = {1.0, 1000, 10}, -- rateSkill_critical
  23.         [8] = {1.0, 1000, 20}, -- rateSkill_criticalspell
  24.        
  25.         [5] = {1.0, 450, 100}, -- rateSkill_shield rateSkillDef = 0.5   --only defense/shield skill
  26.  
  27.         [6] = {1.0, 50, 100}, -- rateSkill_fish
  28.  
  29.         [10] = {1.0, 400, 100}, -- rateSkill_magic -- rateMagic = 27.0
  30.         [11] = {14.0, 0, 100}, -- rateSkill_experience rateExperience == 14
  31.         [12] = {1.0, 0, 1000}, -- SKILL__HELLLEVEL
  32.        
  33.     -- unsles
  34.         [3] = {1.0, 1, 100}, -- rateSkill_ypower
  35.     }
  36.  
  37.  
  38. galobalevent start.lua?
  39.  
  40. przed: : function onStartup()
  41. local skillConfigTab = getConfigValue('skillConfigTab')
  42. local rateSpellCriticalTab = getConfigValue('rateSpellCriticalTab')
  43.  
  44.  
  45. po function onStartup()
  46.  
  47.     if skillConfigTab and type(skillConfigTab) == 'table' then
  48.         print('>>>>>> skillConfigTab')
  49.         for skill, data in pairs(skillConfigTab) do
  50.             setServerRate(skill, data[1], data[2], data[3])
  51.         end
  52.     end
  53.    
  54.     if rateSpellCriticalTab and type(rateSpellCriticalTab) == 'table' then
  55.         print('>>>>>> rateSpellCriticalTab')
  56.         for skillId, data in pairs(rateSpellCriticalTab) do
  57.             doSetRateCriticaSpell(skillId, data)
  58.         end
  59.     end
  60.  
  61.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement