Лесорубство, Помогите сделать скриптик |
Лесорубство, Помогите сделать скриптик |
Сообщений: 1870 Рег. 21.06.2013 |
29 октября 2015 21:04
Сообщение #21
|
в гильде спросил бы, понимаю еще еслиб одиночкой был ) |
|
|
|
3 ноября 2015 17:52
Сообщение #22
|
|
правда это под изю а не под инжу :) ;ID сундуков в которых лежат итемы для работы с макросом set %box_big EBBHAOF set %box_mage JNRHZNF set %box_band UBQJUTF set %box_item WHFZKWF set %findband 10 set %maxhits #HITS / 2 ;=====================================================================* Event Macro 8 1 wait 10 contpos 808 2 set %char #ContID Event macro 8 2 wait 10 contpos 776 290 Event macro 8 7 wait 10 contpos 788 415 set %BACKPACKID #CONTID GoSub House lumberstart: ;координаты деревьев - узнаются командой ,infotile GoSub Drees 3277 1012 1629 0 GoSub Drees 3299 1016 1632 0 GoSub Drees 3280 1012 1635 0 GoSub Drees 3280 1012 1644 0 GoSub Drees 3299 1016 1644 0 GoSub Drees 3296 1020 1644 0 GoSub Drees 3299 1024 1644 0 GoSub Drees 3277 1032 1650 0 GoSub Drees 3286 1032 1656 0 GoSub Drees 3299 1024 1656 0 GoSub Drees 3283 1020 1656 0 wait 65 Msg 'resend $ wait 60 goto lumberstart Sub House ;=====================================================================* ; ???????????? ??? ??????? ??? ????? ??????? set %max #str * 3 ;=====================================================================* ;? ?????? ???????? ??? ??????????? ?????? ?? ????? set %max_str #STR * 3 + 30 ;=====================================================================* House: if #WEIGHT > %max_str { finditem MMK C_ , %backpackid wait 5s msg ,drop 5 0 0 -1 #FINDID $ Goto House } wait 10 ;=========================================================================* ;кооржинаты ведущие к сундуку - можно использовать и одну, но что;бы чар не петлял впишите промежуточную. move 1015 1655 0 move 1013 1648 0 ;=========================================================================* set #LOBJECTID %box_big Event Macro 17 0 wait 10 contpos 0 0 Event macro 8 7 wait 10 contpos 788 415 set #LOBJECTID %box_band Event Macro 17 0 wait 10 contpos 190 25 Moveitem: finditem ZLF C_ , %backpackid if #FINDSTACK < 10 { set %band %findband - #FINDSTACK finditem ZLF C_ , %box_band if #FINDID = X { Event SysMessage ?? ?? ???????? ? ?????? ??????, ???????? ????? ? ????????????? ?????? wait 30 GoTo Moveitem } wait 10 finditem ZLF C_ , %box_band if #FINDID <> X { wait 10 msg ,grab %band #FINDID $ GoTo Moveitem } } ;====================================================================* finditem HND C_ , %BACKPACKID if #FINDID = X { set #LOBJECTID %box_band Event Macro 17 0 wait 10 finditem HND C_ , %box_band if #FINDID = X { Display ok ? ??? ??? ??? ? ??????? ???????? ??? ? ????????????? ?????? GoTo Moveitem } msg ,grab 1 #FINDID $ wait 10 GoTo Moveitem } ;=================================================================* finditem FSF C_ , %BACKPACKID if #FINDID = X { set #LOBJECTID %box_band Event Macro 17 0 wait 10 finditem FSF C_ , %box_band if #FINDID = X { Display ok ? ??? ??? ?????? ? ??????? ???????? ?????? ? ????????????? ?????? GoTo Moveitem } msg ,grab 0 #FINDID $ wait 10 GoTo Moveitem } ;================================================================* finditem MMK_MZF_WZF C_ , %BACKPACKID if #FINDID <> X { msg ,moveitem #FINDID 0 %box_item $ wait 10 GoTo Moveitem } finditem KUF_JUF_KZF_JZF_MZF_WZF_SZF_RZF_DUF_OZF_POF_OZF_LZF_DUF C_ , %backpackid if #FINDID <> X { msg ,moveitem #FINDID 0 %box_mage $ wait 10 GoTo Moveitem } FINDITEM WUF C_ , %backpackid if #FINDID <> X { wait 10 msg ,moveitem #FINDID 0 %box_band $ GoTo Moveitem } FINDITEM UUF C_ , %backpackid if #FINDID = X { finditem UUF C_ , %box_band if #FINDID <> X { msg ,grab 0 #FINDID $ wait 10 } finditem UUF C_ , %backpackid if #FINDID <> X { Event SysMessage ?? ????? ????? ??? ????????????? HITS } finditem UUF C_ , %backpackid if #FINDID = X { Event SysMessage ?? ?? ????? ????? ??? ????????????? HITS } } hitshouse: if %lefttime > #TIME GoTo hitshouse if #HITS <> #MAXHITS { if #HITS < 50 { FINDITEM UUF C_ , %BACKPACKID if #FINDID <> X { msg 'pc quaf heal $ wait 8s GoTo moveitem } } msg $'pc heal self $ set %lefttime #TIME + 9 wait 10 GoTo moveitem } move %2 %3 1 Return Sub Drees msg $ Drees: move %2 %3 1 finditem BSF_FSF C_ , %BACKPACKID if #FINDID = X { wait 10 GoSub House GoTo Drees } set #LOBJECTID #FINDID Event Macro 17 0 set #LTARGETKIND 3 wait 10 set #LTARGETX %2 set #LTARGETY %3 set #LTARGETTILE %1 Event Macro 22 0 Journal: for %i 1 45 { wait 1s finditem BSF_FSF C_ , %BACKPACKID if #FINDID = X { wait 10 GoSub House GoTo Drees } for %scanj 1 10 { ScanJournal %scanj if [202]_45AL_=5B_1> in #Journal { deleteJournal wait 3s Return } } if #WEIGHT > %max { GoSub House GoSub Move GoTo Drees } if #HITS <> #MAXHITS { GoSub Healing GoTo Drees } if #HITS <> #MAXHITS { GoSub Healing GoTo Drees } } GoTo Drees Sub Healing HEALING: FINDITEM ZLF C_ , %BACKPACKID if #FINDID = X { GoSub House } if %lefttime > #TIME GoTo HEALING if #HITS <> #MAXHITS { if #HITS < %maxhits { FINDITEM UUF C_ , %BACKPACKID if #FINDID <> X { msg 'pc quaf heal $ wait 8s GoTo HEALING } } msg $'pc heal self $ set %lefttime #TIME + 9 finditem JE_GD_HS_WE_YD_WD if #FINDID <> X { msg $,waittargetobject #FindID self $ wait 1s msg $,useskill Enticement $ wait 1s ignoreitem #FINDID GoTo HEALING } if #HITS < 60 GoSub House GoTo HEALING } CORPSE: FINDITEM YFM if #FINDID <> X { if #FINDDIST < 8 { set %corpse #FindID set %Corpsex #FindX set %CorpseY #FindY move %Corpsex %CorpseY 1 FINDITEM WRH_SOH_NMH_ATF_KPH C_ , %char if #FINDID <> X { set #LOBJECTID #FINDID set #LTargetKind 1 set #LTARGETID %corpse Event macro 17 0 target 1s Event macro 22 0 wait 3s set #LOBJECTID %corpse Event Macro 17 0 wait 1s REGI: FINDITEM KUF_JUF_KZF_JZF_MZF_WZF_SZF_RZF_DUF_OZF_POF_OZF_LZF_DUF C_ , %corpse if #FINDID <> X { msg ,grab 0 #FINDID $ wait 1s GoTo REGI } ignoreitem %corpse 3 GoTo CORPSE } } } wait 3s return |
|
|
|
Сейчас: 24 ноября 2024 09:50 |