Jump to content

gmedannik

Members
  • Content Count

    7
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by gmedannik

  1. Так сказать доработка, доработки (сразу говорю, все что написано выше - вам не понадобиться), это независимая модификация просто позволит сделать то, что хотел @Knight - без затрагивания другого функционала! Открываем OllyDBG наш Game.exe Сочетание клавиш CTRL + G, пишем 6009f0. Далее нажимаем и вбиваем следующее: DD 1030CEA0 В итоге выходит следующее: Сочетание клавиш CTRL + G, пишем 4cc342. Далее нажимаем и заменяем на строку: CALL DWORD PTR DS:[6009F0] Не забудьте сохранить изменения! Ну и на последок добавляем патченый MindPower В итоге получаем то, что хотел сделать автор темы, не затрагивая ничего лишнего, на здоровье!
  2. --------------------------------- -- Авто-фрукты by GreM -- --------------------------------- -- [1 Шаг] Добавляем в cha_timer local ElfItem, FruitItem = GetChaItem(role, 2, 1), GetChaItem(role, 2, 3) local ElfType, FruitID = GetItemType(ElfItem), GetItemID(FruitItem) if (ElfType == 59) then if (AutoFruit[FruitID] ~= nil) then local ChaIsBoat = GetCtrlBoat(role) if (ChaIsBoat == nil) then local Elf_Str = GetItemAttr(ElfItem, ITEMATTR_VAL_STR) local Elf_Con = GetItemAttr(ElfItem, ITEMATTR_VAL_CON) local Elf_Agi = GetItemAttr(ElfItem, ITEMATTR_VAL_AGI) local Elf_Dex = GetItemAttr(ElfItem, ITEMATTR_VAL_DEX) local Elf_Sta = GetItemAttr(ElfItem, ITEMATTR_VAL_STA) local Elf_Lv = Elf_Str + Elf_Con + Elf_Agi + Elf_Dex + Elf_Sta if (Elf_Lv >= AutoFruit[FruitID].min_lv and (Elf_Lv + AutoFruit[FruitID].count_up) <= AutoFruit[FruitID].max_lv) then local Check_Exp = CheckElf_EXP(role, ElfItem) if (Check_Exp == 1) then if (DelBagItem2(role, FruitItem, 1)) then AutoFruit[FruitID].func(role, FruitID, ElfItem) end end end end end end -- [2 Шаг] Заменяем стандартные функции фруктов Ищем: Lvup_Dex(role, Item_Num, Item_Traget) Заменяем на: Lvup_Dex = function(role, Item_Num, Item_Traget) Внимание: Это нужно проделать для всех функций фруктов. -- [3 Шаг] Добавляем в variable. AutoFruit = {} AutoFruit[226] = {func = Lvup_Dex, min_lv = 0, max_lv = 100, count_up = 1} Что бы добавить новый фрукт, просто создайте новую строку. Формат строки: AutoFruit[id фрукта] {func = название функции фрукта, min_lv = мин. ур. феи, max_lv = макс. ур. феи, count_up = на сколько увеличит фрукт уровень феи}
  3. ----------------------------- -- Auto Fruit by GreM -- ----------------------------- -- [1 Step] Add into cha_timer local ElfItem, FruitItem = GetChaItem(role, 2, 1), GetChaItem(role, 2, 3) local ElfType, FruitID = GetItemType(ElfItem), GetItemID(FruitItem) if (ElfType == 59) then if (AutoFruit[FruitID] ~= nil) then local ChaIsBoat = GetCtrlBoat(role) if (ChaIsBoat == nil) then local Elf_Str = GetItemAttr(ElfItem, ITEMATTR_VAL_STR) local Elf_Con = GetItemAttr(ElfItem, ITEMATTR_VAL_CON) local Elf_Agi = GetItemAttr(ElfItem, ITEMATTR_VAL_AGI) local Elf_Dex = GetItemAttr(ElfItem, ITEMATTR_VAL_DEX) local Elf_Sta = GetItemAttr(ElfItem, ITEMATTR_VAL_STA) local Elf_Lv = Elf_Str + Elf_Con + Elf_Agi + Elf_Dex + Elf_Sta if (Elf_Lv >= AutoFruit[FruitID].min_lv and (Elf_Lv + AutoFruit[FruitID].count_up) <= AutoFruit[FruitID].max_lv) then local Check_Exp = CheckElf_EXP(role, ElfItem) if (Check_Exp == 1) then if (DelBagItem2(role, FruitItem, 1)) then AutoFruit[FruitID].func(role, FruitID, ElfItem) end end end end end end -- [2 Step] Change fruit default function Search: Lvup_Dex(role, Item_Num, Item_Traget) Change to: Lvup_Dex = function(role, Item_Num, Item_Traget) Warning: This needs to be done for all the fruit default function. -- [3 Step] Add into variable AutoFruit = {} AutoFruit[226] = {func = Lvup_Dex, min_lv = 0, max_lv = 100, count_up = 1} To add a new fruit, just add a new line. Line formate: AutoFruit[fruit id] {func = function name, min_lv = min fairy lv, max_lv = max fairy lv, count_up = count add param}
×
×
  • Create New...