That should work, i'm not entirely sure how that gwa2/censored logic works but that $longbow_range should work in as it does the regular logic.
I did 1 run with these changes an it looks good based on this would prolly be a good idea to change all the way point functions to match this to some degree. I would like to observe the bot more when I have time to confirm.
I also had plans to:
move the entire materials and rare materials list to the gwa constants so that it can pick up diamonds and onyx.
See if removing the enitre code for adding heros doesn't just mess the whole thing up this way anyone can just run whatever heros they want
these are plans I had for future
I have a lot of free time these days atm so we'll see
I did 1 run with these changes an it looks good based on this would prolly be a good idea to change all the way point functions to match this to some degree. I would like to observe the bot more when I have time to confirm.
I also had plans to:
move the entire materials and rare materials list to the gwa constants so that it can pick up diamonds and onyx.
See if removing the enitre code for adding heros doesn't just mess the whole thing up this way anyone can just run whatever heros they want
these are plans I had for future
I have a lot of free time these days atm so we'll see
I went into the logic censured and searched for the part I was talking about and it does seem all the ranges are in there, just search $longbow_range and it'll bring you to this
; RANGES
Global $adjacent_range = 156
Global $nearby_range = 240
Global $area_range = 312
Global $run_by_range = 500 ; use to run past undangerous mobs, for example to gain time just before a portal
Global $earshot_range = 1000 ;
Global $danger_range = 1015 + 50 ; accounts for 50 random movement around destination pooints + 15
Global $spellcasting_range = 1085 +156 ; furthest possible casting range
Global $longbow_range = 1320 ; typical long bow pulling range on flat ground
Global $bowpull_range = 1500 ; custom pull range to flag heroes and start pulling mobs
Global $spirit_range = 2500
Global $room_range = 3000
Global $map_range = 4000
Global $compass_range = 5000
It's because of the fact the bot checks for REQ and Damage on the golds, only picking up Q8 and below. You'd have to remove those checks from the Switch in CanPickUp function i believe.
Quote:
Originally Posted by Smoke DZA
I have added the gold item ID to the canpickup function yet the bot isnt picking up anything. Please help im new to this
The problem with that though is once your loot is full the bot will travel back to town instead of waiting the few minutes and restarting the bot then re running to the dungeon.
It's because of the fact the bot checks for REQ and Damage on the golds, only picking up Q8 and below. You'd have to remove those checks from the Switch in CanPickUp function i believe.
The problem with that though is once your loot is full the bot will travel back to town instead of waiting the few minutes and restarting the bot then re running to the dungeon.
I see, i guess the mod functions are in the bot to determine if a q8 is worth keeping instead of just keeping good mods.
Stats of one night 1x Froggy q13:
Running offensive Mesmerway with 1x Ele with blinding surge. (since i dont have a third or 4th Mesmer)
A/RT SoS build with Ebon Escape so the bot replaces ghost out of aoe. Also noticed having ebon escape makes your heroes less balled op leading to less wipes.
Lot of potential on this bot! I took the liberty of fixing what was causing issues/wipes and delaying completion.
I've tried with mesmer but for some reason the bot doesn't like the class and doesn't use all skills, so I ended up using a SoS Rt with this build
OACjAaiM5S0gXT+glTnNQTVTtlA
-- NEW --
1. Most of the coordinates where the bot goes have been changed and some of them removed.
2. Aggro ranges have all been modified, because the bot keeps aggroing whole rooms resulting in wipes. The very reason why OP suggests DP removal.
3. Path to dungeon has been changed. Now it takes 8 min to get there.
4. Hero builds have been modified and also from Hero 1 to 6 will now only use defend mode instead of aggressive. I recommend to manually set Xandra as Avoid Combat so she can focus on pure casting (this will remain unless you change it again).
5. Adjusted coords so the team fights outside of the poison throwers range.
Heroes builds are on the script but if you want to know what they use, here they are:
OAhjYoHYIPW7qqdwSc9kmTuhJA ; Resto Livia
OAhjQkGZIT3BVVCPSTTODTjTciA ; BiP Master
OANEUshd9JJHUFoAiGUVFQY0sFC ; MM Olias
OQhjAwBc4QvArAIg5Z9UkA5AXMA ; Inep Norgu
OQhjAwCc4M0gcw0z0hTLqDhLGA ; Panic Razah
OQhkAsC8gFKzJY6lDMd40hQG4iB ; E-Surge Gwen
OAOj8YgM5OYTrX48xBNRuOz7KA ; ST Xandra
As OP stated don't be cheap with their gear.
--
The only area where the bot may run into some issues is 2nd floor where the roaming Succubus groups are, because a bot basically goes here and there and kills, so I adjusted aggro ranges and coordinates, but as mobs move they are never in the same spot when the team gets there. I've done a couple of runs and didn't need any DP removal items.
It seems to only loot lockpicks, event items and of course Frogs, but since my knowledge is limited I've no idea how to change that to make it more customizable or even add the option to loot golds and stuff. So, if anybody want's to do that, at least with Onix or Diamonds from boss chest that would be great.
I didn't test the Consets option simple because I don't think it's worth, specially if no Froggy is found.
Lot of potential on this bot! I took the liberty of fixing what was causing issues/wipes and delaying completion.
I've tried with mesmer but for some reason the bot doesn't like the class and doesn't use all skills, so I ended up using a SoS Rt with this build
OACjAaiM5S0gXT+glTnNQTVTtlA
-- NEW --
1. Most of the coordinates where the bot goes have been changed and some of them removed.
2. Aggro ranges have all been modified, because the bot keeps aggroing whole rooms resulting in wipes. The very reason why OP suggests DP removal.
3. Path to dungeon has been changed. Now it takes 8 min to get there.
4. Hero builds have been modified and also from Hero 1 to 6 will now only use defend mode instead of aggressive. I recommend to manually set Xandra as Avoid Combat so she can focus on pure casting (this will remain unless you change it again).
5. Adjusted coords so the team fights outside of the poison throwers range.
Heroes builds are on the script but if you want to know what they use, here they are:
OAhjYoHYIPW7qqdwSc9kmTuhJA ; Resto Livia
OAhjQkGZIT3BVVCPSTTODTjTciA ; BiP Master
OANEUshd9JJHUFoAiGUVFQY0sFC ; MM Olias
OQhjAwBc4QvArAIg5Z9UkA5AXMA ; Inep Norgu
OQhjAwCc4M0gcw0z0hTLqDhLGA ; Panic Razah
OQhkAsC8gFKzJY6lDMd40hQG4iB ; E-Surge Gwen
OAOj8YgM5OYTrX48xBNRuOz7KA ; ST Xandra
As OP stated don't be cheap with their gear.
--
The only area where the bot may run into some issues is 2nd floor where the roaming Succubus groups are, because a bot basically goes here and there and kills, so I adjusted aggro ranges and coordinates, but as mobs move they are never in the same spot when the team gets there. I've done a couple of runs and didn't need any DP removal items.
It seems to only loot lockpicks, event items and of course Frogs, but since my knowledge is limited I've no idea how to change that to make it more customizable or even add the option to loot golds and stuff. So, if anybody want's to do that, at least with Onix or Diamonds from boss chest that would be great.
I didn't test the Consets option simple because I don't think it's worth, specially if no Froggy is found.
Average clear time is 30 min.
On a whole, great improvements! Only issue I have found is on the boss floor, you can miss the lass res shrine which I don't believe happened before, so on wipe you get stuck. Will pin point which waypoint I need to change and post back.
On a whole, great improvements! Only issue I have found is on the boss floor, you can miss the lass res shrine which I don't believe happened before, so on wipe you get stuck. Will pin point which waypoint I need to change and post back.
Ahhh I see, so that was causing that Issue, i reverted some coords there and also at level 1 specially where the poison throwers are. Gonna upload it soon, and thanks a lot for the shrine thing at boss.
Wipes at boss are kinda random because they are up to the MM summoning something that just pulls everything lol, if it wasn't for that it would take grp by grp.
Ahhh I see, so that was causing that Issue, i reverted some coords there and also at level 1 specially where the poison throwers are. Gonna upload it soon, and thanks a lot for the shrine thing at boss.
Wipes at boss are kinda random because they are up to the MM summoning something that just pulls everything lol, if it wasn't for that it would take grp by grp.
Here it is, wiped on purpose on last boss to test it.
Ver 1.2
-- Fixes --
1. Charged coords in lvl1 where poison throwers are (sometimes team started fighting besides them taking massive dmg)
2. Takes shrine on the way to boss so it can go back if wipe.
Next I want to find out how to loot Diamonds and Onyx
Here it is, wiped on purpose on last boss to test it.
Ver 1.2
-- Fixes --
1. Charged coords in lvl1 where poison throwers are (sometimes team started fighting besides them taking massive dmg)
2. Takes shrine on the way to boss so it can go back if wipe.
Next I want to find out how to loot Diamonds and Onyx
I modified the CanPickUpEx function so it picks up the both materials. Its not pretty but it works. I modified two sections, one does nothing, the other one causes to pick up.
Code:
Func CanPickUpEx($aItem, $PickupTorch = False)
Local $lType = MemoryRead(GetItemPtr($aItem) + 32, "byte")
Local $lExtraID = MemoryRead(GetItemPtr($aItem) + 34, "short")
Local $lModelID = MemoryRead(GetItemPtr($aItem) + 44, "long")
Local $lRarity = GetRarity(GetItemPtr($aItem))
Local $lQuantity = GetQuantity($aItem), $lValue = GetItemValue($aItem)
Local $lReq = GetItemReq($aItem), $lDmg = GetItemMaxDmg(GetItemPtr($aItem))
If CountFreeSlots() < 2 And $lType <> $TYPE_BUNDLE And $lType <> $TYPE_GOLD_COINS Then Return False
If $lModelID = 935 Or $lModelID = 936 Then ; Diamond and Onyx
Return True
EndIf
Switch $lModelID
Case 2619, 36985 ;Unholy text from Fow, misterial commendations
Return True
Case 1953, 1956, 1957, 1958, 1959, 1960, 1961, 1962, 1963, 1964, 1965, 1966, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1975 ; All Froggy's
Out("Picking up " & $aRareSkin[$lModelID])
$RareSkinsCount += 1
GUI_SetRareSkins($RareSkinsCount)
Return True
Case 2605, 2606, 501 to 503, 2566, 2607, 6102, 6104, 6531, 15564, 15565, 15867, 15869 to 15871, 17054, 17055 _
,17075, 22781, 22782, 25410, 25413, 25416, 24628, 24582 ; General quest items: Prison key (25413), etc.
Return True
Case 910, 2513, 5585, 6049, 6366, 6367, 6375, 15477, 19171, 19172, 19173, 22190, 24593, 28435, 30855, 31145, 31146, 35124, 36682 _ ; alcohol
, 15528, 15479, 19170, 21492, 21812, 22644, 30208, 31150, 35125, 36681 _ ; sweets
, 17060, 17061, 17062, 22269, 28431, 28432, 28436, 29431, 31151, 31152, 31153, 35121 _ ; Sweet Pcons
, 6370, 19039, 21488, 21489, 22191, 26784, 28433, 35127 _ ; DP Removal Sweets
, 556, 18345, 21491, 37765, 21833, 28433, 28434 _ ; Special Drops
, 935, 936 ; Diamond and Onyx
Return True
EndSwitch
I modified the CanPickUpEx function so it picks up the both materials. Its not pretty but it works. I modified two sections, one does nothing, the other one causes to pick up.
Code:
Func CanPickUpEx($aItem, $PickupTorch = False)
Local $lType = MemoryRead(GetItemPtr($aItem) + 32, "byte")
Local $lExtraID = MemoryRead(GetItemPtr($aItem) + 34, "short")
Local $lModelID = MemoryRead(GetItemPtr($aItem) + 44, "long")
Local $lRarity = GetRarity(GetItemPtr($aItem))
Local $lQuantity = GetQuantity($aItem), $lValue = GetItemValue($aItem)
Local $lReq = GetItemReq($aItem), $lDmg = GetItemMaxDmg(GetItemPtr($aItem))
If CountFreeSlots() < 2 And $lType <> $TYPE_BUNDLE And $lType <> $TYPE_GOLD_COINS Then Return False
If $lModelID = 935 Or $lModelID = 936 Then ; Diamond and Onyx
Return True
EndIf
Switch $lModelID
Case 2619, 36985 ;Unholy text from Fow, misterial commendations
Return True
Case 1953, 1956, 1957, 1958, 1959, 1960, 1961, 1962, 1963, 1964, 1965, 1966, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1975 ; All Froggy's
Out("Picking up " & $aRareSkin[$lModelID])
$RareSkinsCount += 1
GUI_SetRareSkins($RareSkinsCount)
Return True
Case 2605, 2606, 501 to 503, 2566, 2607, 6102, 6104, 6531, 15564, 15565, 15867, 15869 to 15871, 17054, 17055 _
,17075, 22781, 22782, 25410, 25413, 25416, 24628, 24582 ; General quest items: Prison key (25413), etc.
Return True
Case 910, 2513, 5585, 6049, 6366, 6367, 6375, 15477, 19171, 19172, 19173, 22190, 24593, 28435, 30855, 31145, 31146, 35124, 36682 _ ; alcohol
, 15528, 15479, 19170, 21492, 21812, 22644, 30208, 31150, 35125, 36681 _ ; sweets
, 17060, 17061, 17062, 22269, 28431, 28432, 28436, 29431, 31151, 31152, 31153, 35121 _ ; Sweet Pcons
, 6370, 19039, 21488, 21489, 22191, 26784, 28433, 35127 _ ; DP Removal Sweets
, 556, 18345, 21491, 37765, 21833, 28433, 28434 _ ; Special Drops
, 935, 936 ; Diamond and Onyx
Return True
EndSwitch
Oh holy, ur the boss. I was playing around there but failed till now. Tested and works great. Thanks.
IDK why when I close and relaunch the bot for testing near last boss it moves to -18 instead of resuming there. Ill check, this bot is good practice.
If $lModelID == 2511 And GetGoldCharacter() < 99000 Then Return True - Would this do if I want it to pickup gold? (( NVM, found that line gon play with it))
-- v1.4 --
Picks up Diamonds and Onyx
Picks up Gold Coins if there is space. If not you must empty it manually whenever you choose to go to town. Id like to have this automated but need a little help
New SoS build: OACjAaiM5S0gXT+glTUOVTQT4iA
-- What makes this work so well? --
Ebon Battle Standard of Wisdom buffs the whole party (%60 chance to %50HSR for spells casted inside the skill area).
2nd Healer has "Well of Darkness" (hexed foes have %50 chance to miss). This synergizes well with Lamentation (Character) and Panic + Arcane Conundrum (Heroes) as they are AoE Hexes. Plus, MM and ST have Aegis (party members have %50 chance to block).
Since non-DPS heroes use them, the balance between damage and survivability is optimal.
Best I've found to deal with roaming groups, in case they happen to aggro, and random mass pulls in final Boss room.
[RELEASE] HACK BY FROGGY S4LEAGUE INA (6/24/13) 12/15/2013 - S4 League Hacks, Bots, Cheats & Exploits - 45 Replies INA :
HALO...
KALI INI SAYA MEMBAGIKAN CHEAT S4 INDO
English :
Hallo...
Now I Share My Hack for S4League Indo NOT EU
Screen :
By Froggy
http://i43.tinypic.com/vmsqis.jpg
Trainer