Hi guys !
I'm restarting in script after 2 years of break.
I update them so, but I miss some function.
I started several bot to finish the different stories and I use mainly GwBible for it.
So I have a function to "wait" at a given location ( Useful to wait mobs and kill them)
But this function calls on another that I do not.
It is really useful because it allows me to follow a NPC or camp at coord.
If anyone among you got it?
I send you the part of the script for camp:
; Will camp location for given amount of time, or until map loading / end of mission if no time given
Func CampCoords($cX, $cY, $Time = 0)
Local $MyMap = GetMapID(), $MyOldMap, $lMapLoading = GetMapLoading(), $lMapLoadingOld, $timer = 0
If $Time <> 0 Then
$timer = TimerInit()
EndIf
Do
SmartCast()
MoveTo($cX, $cY)
Sleep(5000)
$lMapLoadingOld = $lMapLoading
$lMapLoading = GetMapLoading()
$MyOldMap = $MyMap
$MyMap = GetMapID()
If $timer > $Time Then ExitLoop
If $MyOldMap <> $MyMap Then ExitLoop
If XLocation() == 0 Then ExitLoop
If $lMapLoading <> $lMapLoadingOld Then ExitLoop
Until IsPartyAlive() == False
EndFunc ;==>CampCoords
And for follow npc:
; Will Camp or follow NPC of given ID for given amount of time, or until map loading / end of mission if no time given
Func CampNPC($NPCID, $Time = 0)
Local $MyMap = GetMapID(), $MyOldMap, $lMapLoading = GetMapLoading(), $lMapLoadingOld, $timer = 0
If $Time <> 0 Then
$timer = TimerInit()
EndIf
Do
SmartCast()
GoToNPC($NPCID)
Sleep(5000)
$lMapLoadingOld = $lMapLoading
$lMapLoading = GetMapLoading()
$MyOldMap = $MyMap
$MyMap = GetMapID()
If $timer > $Time Then ExitLoop
If $MyOldMap <> $MyMap Then ExitLoop
If XLocation() == 0 Then ExitLoop
If $lMapLoading <> $lMapLoadingOld Then ExitLoop
Until IsPartyAlive() == False
EndFunc ;==>CampNPC
And my problem is that, the bot crash because I do not have this function :
IsPartyAlive()
I think that it allows to continue the action, to follow or to wait, until change of map or the team dies.
If someone got it or use a different function ?
I can send you the complete script but there is a lot of work to be done.
And if someone wants to work with me to finish it quickly, it'll be really cool