Advertisement
Brownies

smntest

Aug 3rd, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.03 KB | None | 0 0
  1. -----------------------------------
  2. -- onMobFight Action
  3. -----------------------------------
  4.  
  5. function onMobFight(pet,target,player)
  6.        
  7.     local pmjob = player:getMainJob();
  8.     local pmLvL = player:getMainLvl();
  9.     local psjob = player:getSubJob();
  10.     local psLvL = player:getSubLvl();
  11.     --local pet = player:hasPet(PET_AIR_SPIRIT);
  12.     local recast = (48 + (utils.clamp(summoner:getMaxSkillLevel(SKILL_SUM) - summoner:getSkillLevel(SKILL_SUM))) / 3);
  13.     local Y = 0
  14.     local rand = math.random( 0, Y );
  15.     local Spell_list = [spell list here]
  16.     if (pmjob == 15) then
  17.         if (psjob == 15) then
  18.             pmLvl = (floor(pmLvl/2))
  19.         else
  20.             pmLvL = {
  21.             [9] = function (x) Y = 1 end,
  22.             [15] = function (x) Y = 2 end,
  23.             [20] = function (x) Y = 3 end,
  24.             [21] = function (x) Y = 4 end,
  25.             [34] = function (x) Y = 5 end,
  26.             [52] = function (x) Y = 6 end,
  27.             [59] = function (x) Y = 7 end,
  28.             [83] = function (x) Y = 8 end,
  29.             }
  30.         end
  31.     end
  32.      if (Y = 1) then
  33.         if (rand == Y) then
  34.         pet:castSpell
  35.     elseif ...
  36.    
  37. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement