![]() |
#12
|
|||
|
|||
![]()
it doesnt work with KBMasterMod, because there is another arena.lua file in that mod. I am not sure if I can do this, because the KBMasterMod is made by another, but if you want to make it work do this:
1. Open KBMaster_2.2.2 file with winzip/winrar (in your data/mods directory) 2. in prescript 2.2 directory in the .kfs file open arena.lua (open it with notepad) 3. ctrl+g (or the command go) go to line 345 4. after function calc_bonus( fake_win ) --ftag:bonus insert this local hero_class=Game.HSP_class() if hero_class == 0 then if (Game.Random(1,100) <= 3) then Bonus.add("rune_might",2) end if (Game.Random(1,100) <= 3) then Bonus.add("rune_mind",3) end if (Game.Random(1,100) <= 5) then Bonus.add("rune_magic",4) end if (Game.Random(1,100) <= tonumber(Logic.hero_lu_skill("rage_control"))*10) then if (Game.Random(1,100)<=50) then Logic.hero_add_item("mana_potion",2) else Logic.hero_add_item("rage_potion",2) end end elseif hero_class==2 then if (Game.Random(1,100) <= 5) then Bonus.add("rune_might",4) end if (Game.Random(1,100) <= 3) then Bonus.add("rune_mind",3) end if (Game.Random(1,100) <= 3) then Bonus.add("rune_magic",2) end if (Game.Random(1,100) <= tonumber(Logic.hero_lu_skill("alchemist"))*10) then if (Game.Random(1,100)<=50) then Logic.hero_add_item("mana_potion",2) else Logic.hero_add_item("rage_potion",2) end end elseif hero_class== 1 then if (Game.Random(1,100) <= 4) then Bonus.add("rune_might",3) end if (Game.Random(1,100) <= 3) then Bonus.add("rune_mind",3) end if (Game.Random(1,100) <= 4) then Bonus.add("rune_magic",3) end if (Game.Random(1,100) <= tonumber(Logic.hero_lu_skill("holy_rage"))*10) then if (Game.Random(1,100)<=50) then Logic.hero_add_item("mana_potion",2) else Logic.hero_add_item("rage_potion",2) end end end 5. save file and enjoy |
Thread Tools | |
Display Modes | |
|
|