Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Guild Wars > GW Bots
You last visited: Today at 21:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



CA_GetNumberOfFoesInRangeOfAgent frage

Discussion on CA_GetNumberOfFoesInRangeOfAgent frage within the GW Bots forum part of the Guild Wars category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 5
Received Thanks: 0
CA_GetNumberOfFoesInRangeOfAgent frage

hi,
wollte mir heute mal was schönes schreiben aba irgendwie läuft da was falsch.
also irgenwie komme ich mit dem befehl ned klar: CA_GetNumberOfFoesInRangeOfAgent der gibt mir die feinde ned richtig zurück um das zu testen habe ich ne msgbox etrstellt aba ich bekomme immer -1 zurück

Code:
			CmdCB($CA_GetNumberOfFoesInRangeOfAgent,-2,915)
			MsgBox(1,"test",$CBVar[0])
vielen dank im vorraus
mfg
neuer55 is offline  
Old 05/24/2010, 15:36   #2
 
[SineX]'s Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 100
Received Thanks: 20
Quote:
Originally Posted by neuer55 View Post
hi,
wollte mir heute mal was schönes schreiben aba irgendwie läuft da was falsch.
also irgenwie komme ich mit dem befehl ned klar: CA_GetNumberOfFoesInRangeOfAgent der gibt mir die feinde ned richtig zurück um das zu testen habe ich ne msgbox etrstellt aba ich bekomme immer -1 zurück

Code:
			CmdCB($CA_GetNumberOfFoesInRangeOfAgent,-2,915)
			MsgBox(1,"test",[COLOR="Red"]$cbVar[0][/COLOR])
vielen dank im vorraus
mfg
probiers mal so
[SineX] is offline  
Old 05/24/2010, 15:38   #3
 
elite*gold: 0
Join Date: Mar 2010
Posts: 5
Received Thanks: 0
mhhh nein ich bekomme immer noch -1 zurück habe es auch schon mit _FloatToInt probiert aba das funzt auch ned bin voll am verzweifeln.
mfg
neuer55 is offline  
Old 05/24/2010, 15:47   #4
 
[SineX]'s Avatar
 
elite*gold: 0
Join Date: May 2010
Posts: 100
Received Thanks: 20
Das Command ist neu oder? Vielleicht bugged...
[SineX] is offline  
Old 05/24/2010, 15:56   #5
 
elite*gold: 0
Join Date: Mar 2010
Posts: 5
Received Thanks: 0
gibt es denn etwas was ähnliches um, den aggrokreis auf gegner zu überprüfen?
mfg
neuer55 is offline  
Old 05/24/2010, 16:56   #6
 
Neon™'s Avatar
 
elite*gold: 50
Join Date: Feb 2009
Posts: 2,173
Received Thanks: 1,765
Quote:
Originally Posted by [SineX] View Post
Das Command ist neu oder? Vielleicht bugged...
Neon™ is offline  
Old 05/30/2010, 19:43   #7
 
elite*gold: 0
Join Date: May 2010
Posts: 6
Received Thanks: 0
$CA_GetNumberOfFoesInRangeOfAgent does not work for me either. DOnt know why...

I noticed your range is high. So your not looking for how many mobs are surrounding a target Range (100-300?)

So...
Its longer but you can use $CA_GetNextFoe and stick all the enemys in an array. I think the max distance is 5000 or around that.

Then cycle the array and grab a variable if $CA_GetMyDistanceToAgent < 915

Code:
Func GetNextAliveFoe($AgentID)
	$GetNextAliveFoe = CmdCB($CA_GetNextFoe, $AgentID)
	Return $GetNextAliveFoe[0]
EndFunc
Code:
Func GetDistanceToAgent($AgentID)
	$GetDistanceToAgent = CmdCB($CA_GetMyDistanceToAgent, $AgentID)
	Return _IntToFloat($GetDistanceToAgent[0])
EndFunc
Code:
Func MobScan($Distance)
	Global $Mob[50]
	Global $NumberOfTargets
	$i = 0
	$Mob[$i] = GetNextAliveFoe(0)
	Do
		$i = $i + 1
		$Mob[$i] = GetNextAliveFoe($Mob[$i - 1])
		$MaxMobs = $i - 1
	Until GetNextAliveFoe($Mob[$i - 1]) = 0
	For $i = 0 To $MaxMobs Step 1
		If GetDistanceToAgent($Mob[$i]) <= $Distance Then
			$NumberOfTargets = $NumberOfTargets + 1
		EndIf
	Next
	Return $NumberOfTargets
EndFunc
Code:
If MobScan(915) Then

EndIf
JohnM1983 is offline  
Old 05/30/2010, 19:55   #8
 
Killerzwerg829's Avatar
 
elite*gold: 30
Join Date: Feb 2009
Posts: 1,296
Received Thanks: 451
@JohnM1983

Pls don´t use GWCA. You get banned.
Killerzwerg829 is offline  
Old 05/30/2010, 20:01   #9
 
elite*gold: 0
Join Date: May 2010
Posts: 6
Received Thanks: 0
No offence mate.
But please dont hijack peoples threads. I know im new and everything, but people are here to learn aswell.

If people are hacking/botting they should be aware of the risks.
End of story.
JohnM1983 is offline  
Old 06/03/2010, 15:44   #10


 
buFFy!'s Avatar
 
elite*gold: 1826
Join Date: Mar 2009
Posts: 4,310
Received Thanks: 6,283
Quote:
Originally Posted by Killerzwerg829 View Post
@JohnM1983

Pls don´t use GWCA. You get banned.
Please stop warning everyone in every thread.. they know it.
buFFy! is offline  
Old 06/08/2010, 22:00   #11
 
elite*gold: 0
Join Date: Feb 2008
Posts: 191
Received Thanks: 135
$CA_GetNumberOfXInRangeOfAgent takes the distance parameter as a packed float. Therefore, you will need to do _FloatToInt() your distance value
Code:
CmdCB($CA_GetNumberOfFoesInRangeOfAgent, -2, _FloatToInt(915))
SuneC is offline  
Reply




All times are GMT +2. The time now is 21:05.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.