|
Сообщение #1
|
|
В этой теме прошу без обсуждений, без комментариев, без вопросов и любого иного оффтопа выкладывать рабочие макросы для инжекта, проверенные на нашем шарде, которыми вам не жалко поделиться. Учитывайте, что скрипты, содержащие команду UO.Moveitem, не могут считаться рабочими, так как эта команда некорректно работает на нашем сервере. Заменяйте её на UO.Grab. Сообщения должны быть должным образом оформлены: Название скрипта Примечания, если необходимо Код скрипта Скачать Injection_09_08_2015.rar Популярный набор скриптов от Zombie -------------------- |
|
|
|
|
Сообщений: 2468 Рег. 12.08.2012 |
Сообщение #2
|
Скрипт на лут Вместо дагера использует нож бутчера, что значительно экономит время sub loot() DIM R[15] var a R[1] = '0x0EED';gold R[2] = '0x0F82';drag blood R[3] = '0x09B5';EKO R[4] = '0x1E89';drag meat R[5] = '0x1078';skin R[6] = '0x0F87';eye R[7] = '0x0F83';Crossbow Bolt R[8] = '0x0F3F';Arrow R[9] = '0x0F90'; dedwood R[10] = '0x1869'; enchant R[11] = '0x0F78'; batwings R[12] = '0x0F7E'; bones R[13] = '0x1CED'; heart R[14] = '0x0E34'; fertil dirt R[15] = '0x1BD1'; periy UO.UseObject('lastcorpse') uo.waittargetobject('lastcorpse') uo.usetype(0x13F6) wait(500) for a=1 to 15 uo.findtype(R[a],"-1","lastcorpse") if UO.FindCount()>0 and Uo.GetDistance("lastcorpse")<=2 then UO.Grab("0","finditem") wait(1100) end if wait(10) next wait(300) if uo.count('0x1078') then uo.waittargettype('0x1078') wait(100) endif wait(300) end sub |
|
|
|
|
Сообщений: 2468 Рег. 12.08.2012 |
Сообщение #3
|
Скрипт на сбор регов (хлопка и прочего) sub Sbor() UO.AddType('food') wait(500) while UO.Targeting() wait(200) wend UO.Set('finddistance','3') UO.FindType('food','-1','ground') while UO.FindCount() UO.UseObject('finditem') UO.FindType('food','-1','ground') UO.Ignore('finditem') wend UO.Ignorereset() end sub |
|
|
|
|
Сообщений: 2468 Рег. 12.08.2012 |
Сообщение #4
|
Трекинг игроков sub tracking() uo.useskill('Tracking') UO.WaitMenu('Tracking','Players') end sub |
|
|
|
|
Сообщений: 2468 Рег. 12.08.2012 |
Сообщение #5
|
Тинкер-Бутылки Делает из того, что есть в паке sub Tinkering() uo.cancelmenu() uo.automenu('Tinkering','Miscellaneous') uo.automenu('Miscellaneous','Empty Bottle') while UO.Count('0x1BEF')>3 UO.DeleteJournal() UO.UseType('0x1EBC') while NOT UO.InJournal("You put") AND NOT UO.InJournal("failed") wait(300) wend wend end sub |
|
|
|
|
Сообщений: 2468 Рег. 12.08.2012 |
Сообщение #6
|
Спаринг. Запускать скрипт на обоих чарах участвующих в спаринге. sub Sparring() var oppHpThreshold = 50/100 #????? ?? ?????????, ??? ??????? ???????? var selfHpThreshold = 50/100 #????? ?????? ??, ??? ??????? ???????? uo.AddObject('opponent') while uo.targeting() wait(100) wend var done = 0 var oppHpLow = 0 var selfHpLow = 0 var selfX = uo.GetX() var selfY = uo.GetY() var oppX = uo.GetX('opponent') var oppY = uo.GetY('opponent') var dx = oppX - selfX var dy = oppY - selfY var Rhand = uo.GetGraphic(uo.ObjAtLayer('Rhand')) #??? ??????? ? ?????? ???? (0x0000 ???? ?????) var Lhand = uo.GetGraphic(uo.ObjAtLayer('Lhand')) #??? ??????? ? ????? ???? (0x0000 ???? ?????) uo.WarMode(1) uo.Attack('opponent') repeat if (uo.GetHP('opponent') < uo.GetMaxHP('opponent') * oppHpThreshold) then oppHpLow = 1 end if if (uo.Life < uo.str * selfHpThreshold) then selfHpLow = 1 end if #???? ? ????-?? ???? ??, ?????? ? ??????? if (oppHpLow or selfHpLow) then Step(-dx, -dy) uo.WarMode(0) if (oppHpLow) then HealOpponent() oppHpLow = 0 end if if (selfHpLow) then HealSelf() selfHpLow = 0 end if Step(dx, dy) uo.WarMode(1) uo.Attack('opponent') end if wait(500) #?????? ?? ?????? ??????? ??? if (not uo.WarMode()) then uo.WarMode(1) uo.Attack('opponent') end if #???? ? ?????? ???? ?? ??, ??? ???? ? ????? ??????, #? ???? ? ????? ?????? ??? ???-?? ????, ???????? ????? ???? ????? #???? ????-?? ?????? ???, ?????? ???? ?????????? if (uo.GetGraphic(uo.ObjAtLayer('Rhand')) <> Rhand and Rhand <> '0x0000') then uo.FindType(Rhand) if (uo.FindCount()) then uo.Equipt('Rhand', Rhand) uo.print('Equip Rhand device') else done = 1 uo.print('no more Rhand devices') end if end if #?????????? ?????? ???? if (uo.GetGraphic(uo.ObjAtLayer('Lhand')) <> Lhand and Lhand <> '0x0000') then uo.FindType(Lhand) if (uo.FindCount()) then uo.Equipt('Lhand', Lhand) uo.print('Equip Lhand device') else done = 1 uo.print('no more Lhand devices') end if end if #???????? ?? ???????? if (uo.GetHP('opponent') == 0 or uo.Life == 0) then done = 1 uo.print('somebody is dead') end if #???? ????? ?????????, ??????????? if (uo.B == 0) then done = 1 uo.print('no more bandages') end if until done Step(-dx, -dy) uo.WarMode(0) uo.print('Done traning') end sub #--------------------------------------------- #??????????????? ??????? Sub HealOpponent() uo.print('heal opponent') repeat uo.waittargetobject('opponent') uo.usetype('0x0E21') #????? wait(5000) until uo.getHP('opponent') == uo.getMaxHP('opponent') uo.print('opponent heal complete') end Sub Sub HealSelf() uo.print('heal self') repeat uo.bandageself() wait(5100) until uo.Life == uo.STR uo.print('self heal complete') uo.usetype(0x097B) wait(100) end Sub Sub Step(dx, dy) var direction dim directions[9] directions[1] = 8 directions[2] = 7 directions[3] = 4 directions[4] = 9 directions[5] = 5 directions[6] = 1 directions[7] = 6 directions[8] = 3 directions[9] = 2 var idx = (sign(dx) + 1) * 3 + (sign(dy) + 1) + 1 uo.AddStep(directions[idx]) end Sub Sub sign(n) if (n < 0) then n = -1 end if if (n > 0) then n = 1 end if return n end Sub |
|
|
|
|