chokehold said:Monster choosing issue fixed, great work thanks
Some minor issues atm:
Killed all 40 gobbos (count was a bit off..by 2 or so too many kills ,
chokehold said:hailed hostages..lslooter toons looted a shard.. lsmain just kept warping about and fading...
Sub start
/declare t int local 0
:StartOver
/if (${Zone.ID}==31) /goto :Bigloop
/call Reset
:Bigloop
/target myself
/If (!${Target.ID} || !${Spawn[${Group.Member[1]}].Type.Equal[pc]}) /goto :BigLoop
/doevents
:Checkgobs
/if (${Goblincount}<42) {
/call DoGoblins
/goto :Checkgobs
}
/if (${Spawn[npc "goblin" radius 20].ID}) /call Fight
/if (${Spawn[npc "Solusek Mining Co"].ID}) /call Loot
[COLOR="Red"]/if (${Spawn[corpse "Solusek Mining Co"].ID}) /call Loot [/COLOR] |-- Remove that line
/if (${Zone.ID}==27) /return
/delay 2s
/target clear
|--
|##Hailing Hostages now
|------------------------------------------------
/call GM
/echo ! Saving the Hostages !
:1
/target hostage01
/if (!${Target.ID}) /goto :2
/delay 5
/warp t
/keypress h
/delay 1s
/keypress h
/delay 5
:2
/target hostage02
/if (!${Target.ID}) /goto :3
/delay 5
/warp t
/keypress h
/delay 25
/keypress h
/delay 5
:3
/target hostage03
/if (!${Target.ID}) /goto :4
/delay 5
/warp t
/keypress h
/delay 25
/keypress h
/delay 5
:4
/target hostage04
/if (!${Target.ID}) /goto :5
/delay 5
/warp t
/keypress h
/delay 25
/keypress h
/delay 5
:5
/target hostage05
/if (!${Target.ID}) /goto :6
/delay 5
/warp t
/keypress h
/delay 25
/keypress h
/delay 5
:6
/target hostage06
/if (!${Target.ID}) /goto :7
/delay 5
/warp t
/keypress h
/delay 25
/keypress h
/delay 5
:7
/target hostage07
/if (!${Target.ID}) /goto :8
/delay 5
/warp t
/keypress h
/delay 25
/keypress h
/delay 5
:8
/target hostage08
/if (!${Target.ID}) /goto :9
/delay 5
/warp t
/keypress h
/delay 25
/keypress h
/delay 5
:9
/target hostage09
/if (!${Target.ID}) /goto :10
/delay 5
/warp t
/keypress h
/delay 25
/keypress h
/delay 5
:10
/target hostage10
/if (!${Target.ID}) /goto :None
/delay 5
/warp t
/keypress h
/delay 25
/keypress h
/delay 5
:None
/if (${Me.PctHPs}>40) {
/warp succor
}
/doevents
/delay 2s
/call fade
/delay 5s
/autoinventory
[COLOR="red"] /goto :StartOver [/COLOR] |-- Remove that line
[COLOR="Lime"] /delay 5
/call loot[/COLOR]
/return
Sub Loot
:again
/if (${Zone.ID}==31) {
/If (${Cursor.ID}) /autoinventory
/call Fight
/target [COLOR="lime"]npc[/COLOR]
/delay 1s
/If (${Target.Distance}>8) /warp target
/delay 1s
/open
/delay 1s
/target corpse
/if (${Target.Type.NotEqual[corpse]}) /call Fade
/delay 3s
/loot
/delay 3s
/doevents Hostile
/itemnotify loot2 rightmouseup
/delay 3s
/notify ConfirmationDialogBox Yes_Button leftmouseup
/delay 2s
/notify LootWnd DoneButton Leftmouseup
/delay 3s
/notify LootWnd DoneButton Leftmouseup
/if (!${FindItem[Shard of Wisdom].InvSlot.ID}) /goto :again
/varcalc WinCount ${WinCount}+1
/echo Successful Mission = (${WinCount})
/popup Success! Like Woah
/warp loc ${Math.Calc[${Math.Rand[7]}+-401]}, ${Math.Calc[${Math.Rand[7]}+-352]}, 17
/varset Goblincount 0
/delay 4m
/call Fight
:Forever
/if (${Currentzone}!=${Zone.ID}) /call Event_Lava
/doevents
/goto :Forever
} else {
/call Reset
}
/return
chokehold said:none of them told the zi npc to evac them.had to do that manually myself.
chokehold said:After all zoned out and lsmain grabbed a new expedition he immidiately started hailing hostages and fading instead of doing the goblins again
Rubtub said:Just ran it, It started good, killed till 20, then zoned out to LS.. got a new mission..
Rubtub said:Also the Main , when he warps back he always faces the wall, and says "Can't see target" anyway to make him face forward?
If the mob is in camp, it will face toward it or ?
:OMGWAIT2
/if (${Window[TaskTemplateSelectWnd].Open}) {
/notify TaskTemplateSelectWnd TaskTemplateSelectListOptional listselect ${Window[TaskTemplateSelectWnd].Child[TaskTemplateSelectListOPtional].List[Juggernaut]}
/delay 1s
/notify TaskTemplateSelectWnd TaskTemplateSelectAcceptButton leftmouseup
/delay 3s
/goto :Okyourgood2
Rubtub said:I changed it from what the code was.. to that.
No i didn't change it they all zoned after he got killed 10+ im guessing. But while the jugger was fighting he didnt turn to the goblins at all.. could you tell me the code i need to check.. He would warp back up and face the while and get nuked..
Also is there a way to set a list of which goblins to kill first? Example: Shm/wiz/rogue/war.. The Shm kept healing the wiz while i was running it that accounted for 9 deaths
|--
|##Attack mobs if they prevent you from looting
|----------------------------------------------
Sub Fight
/exchange "Reinforced Armor Plating" Chest
/delay 1s
/exchange "Diamond Tipped Drill Bit" mainhand
/delay 2s
:Checkfight
/If (${Zone.ID}!=31) /return
/If (${Spawn[npc "goblin" radius 25].LineOfSight}) {
[COLOR="lime"] /if (${Spawn[npc Wizard radius 25].ID}) { This the script to choose the mobs first.
/target Wizard npc
/goto :Targeted
} else /if (${Spawn[npc Rogue radius 24].ID}) {
/target Rogue npc
/goto :Targeted
} else {
/tar Goblin npc
}[/COLOR]
:Targeted
/delay 1s
[COLOR="Lime"]/stick 10[/COLOR] This the command which u face to the Gobo
:Mob
/attack on
/doevents
/If (${Target.Type.Equal[NPC]} && ${Spawn[npc "goblin" radius 24].LineOfSight}) {
/goto :Mob
} else {
/attack off
/squelch /stick off
/doevents
}
/goto :Checkfight
}
/doevents
/return
|--
|##Loot Sub, checks for nearby mob
|---------------------------------
Sub Loot
:again
/if (${Zone.ID}==31) {
/If (${Cursor.ID}) /autoinventory
/call Fight
/target npc
/delay 1s
/If (${Target.Distance}>8) /warp target
/delay 1s
/open
/delay 1s
/target corpse
/if (${Target.Type.NotEqual[corpse]}) /call Fade
/delay 3s
/loot
/delay 3s
/doevents Hostile
/itemnotify loot2 rightmouseup
/delay 3s
/notify ConfirmationDialogBox Yes_Button leftmouseup
/delay 2s
/notify LootWnd DoneButton Leftmouseup
/delay 3s
/notify LootWnd DoneButton Leftmouseup
/if (!${FindItem[Shard of Wisdom].InvSlot.ID}) /goto :again
/varcalc WinCount ${WinCount}+1
/echo Successful Mission = (${WinCount})
/popup Success! Like Woah
/warp loc ${Math.Calc[${Math.Rand[7]}+-401]}, ${Math.Calc[${Math.Rand[7]}+-352]}, 17
/varset Goblincount 0
/delay 4m
/call Fight
:Forever
/if (${Currentzone}!=${Zone.ID}) /call Event_Lava
/doevents
/goto :Forever
} else {
/call Reset
}
/return
Booges said:lslooter has been using /target Chest and since they've been looting the shards fine I imagine that's been working as well.
The lsmain mac is already coded to hail twice, tho, that might make it a little smarter to include the blocked check.
shaddock said:Guys, you are great. I get lost in all the posts as to what the code should actually be. Is their a download of the 2 macros to get the latest versions? Or where can we get that?
Rubtub said:how do i load
- MQ2Exchange
- MQ2MoveUtils
- MQ2MMOBUGSTOOLS
cant seem to find em...
/plugin [pluginName] load/unload
MQ2MoveUtils
MQ2MMOBUGSTOOLS
MQ2EXchange
Spell_Routines.inc
chokehold said:The "mystical presence is preventing blabla" thingie is still being an arse.. lsmain is tryin to rehail after a short while..but if he gets the same msg he turns and tries to get a new mission again.