Why bot choosing farest mobs instead of nearest ? And mby put also some priority list.
Let's fix it shall we?
Code:
Func GetMob() ;finds and sets nearest target in a training area, feel free to replace it frozenburn!
Dim $idTemp[200], $distanceTemp[200], $z = 0
For $i = 0 To UBound($mob_list) - 1
If $mob_list[$i] = "" Then
ExitLoop
Else
$info = StringSplit($mob_list[$i], ",", 2)
Dim $id = $info[0], $x = $info[1], $y = $info[2], $distance = $info[3], $type = $info[4]
If Distance(GUICtrlRead($xInput), $x, GUICtrlRead($yInput), $y) <= GUICtrlRead($rInput) Then
If $type = "giant" OR $type = "party" Then
If GUICtrlRead($targetgiantCbox) = 1 Then
;nothing for now
Else
If $id <> $killedId AND $id <> "" AND $id <> $targetId AND $id <> $ignoreId Then
$idTemp[$z] = $id
$distanceTemp[$z] = $distance
$z += 1
EndIf
EndIf
Else
If $id <> $killedId AND $id <> "" AND $id <> $targetId AND $id <> $ignoreId Then
$idTemp[$z] = $id
$distanceTemp[$z] = $distance
$z += 1
EndIf
EndIf
EndIf
EndIf
Next
$index = _ArrayMinIndex($distanceTemp, 0, 0, $z-1)
If $idTemp[$index] <> "" Then SetTarget($idTemp[$index])
EndFunc
Thank you for keeping us updated ))
Still will be good to make few things like :
-Party buffs
-Auto revive , accept auto revive
-Send party invitation and accept it
-Run on horse
-Leave party if leader not ......
It would be great if you helped you with this little reminder ^_^
Look forward to hear you !
WTT Rsro (venera, venus,behapa) chars to Rsro (Zeus,caan) any builds !! 06/20/2011 - Silkroad Online Trading - 5 Replies Hello Epvpers,
I want to trade my chars on Rsro venera to chars on rsro caan(zeus) !!
You can offer ANY build here(but prefer nukers or warriors) , i will decide wich build is better for me :)
What i have to offer: 2 chars on server Venera
1st : Xbow/Cleric lvl 101, skills lvl 100 xbow maxed, cleric lvl 90 ff set +4/+5.
2nd: Spear Nuker lvl 94 (almost 95), skills fire/ice/heuksal maxed and 600k sp left, set +4/+5, one part sos. good blues.
We will trade with a middleman, to make...
WTT 86lvl Rogue/cleric on RSRO Clan for ISRO Zeus or RSRO Venus 12/29/2010 - Silkroad Online Trading - 5 Replies Server: RSRO Clan(or what?!)
Char: http://img257.imageshack.us/img257/1418/sro2010122 721410810.jpg
Lvl: 86
Build: Rogue 81 FF(Important Skills) Cleric 80FF(Important Skills)
SP: 6K SP
WTT Wizzard/Bard 83 RSRO Artemist For 2000 Silk Rsro Ares(25$) 10/24/2010 - Silkroad Online Trading - 0 Replies Name:эанаве 089;
Lv: 83
Build: Wizz/Bard
Server: Artemist
Guild:http://gyazo.com/e2af363cffe11aa968f99f0a57 302e6e.png
Item: Set +4+5 Blue, Wolf 79, Grab Pet 5 Days, Ticket 14 days 100% Staff 80+7 FB mag 100%
WTT For Silk 2000 Ares or 25$