I have posted a couple times and tried my fair share of attempts at fixing bots... to my honest defense i suck miserably at it. (NO coding experience what so ever)
Needless to say, I made it one of my goals to learn a little bit more than what i know now about how to code some scripts. Not expecting to learn how to code a full DOA run, just small scripts like killing a boss or simple farm.
I have many questions that come to my mind....
1) i understand that GWA2 has a sh** ton of code in it, and i learned that theres alot of functions inside of it. so does that mean that when you write a script, it searches through GWA2 for that function that your calling?
2) im trying to figure out how i should start learning about how to make my own small scripts. i know there is a tool out there for simple IDs and travelto points, but what about a master list of functions to learn first before moving on to the whole weird number thingys.
i know eventually i will be able to write something useful.
Func test()
If GetMapLoading() == 2 Then Disconnected()
While GetMapID() == $Test
If GetMapLoading() == 2 Then Disconnected()
If GUICtrlRead($pause) = 1 Then
out("Bot paused")
sleep(2000)
Else
Out("I am in the testmap!")
Sleep (10000)
SendChat('resign', '/')
WaitMapLoading()
EndIf
WEnd
will result in spamming all chat with "esign" Instead of resigning. i've tried calling the same function with Resign() to GWA2, had the same result. re-compiled it too, GWA2 is uptodate. Because it's sending chat but just not the R. i'm out of idea's.
Might this be lag or something? Or have somebody an idea how to fix this?
Func test()
If GetMapLoading() == 2 Then Disconnected()
While GetMapID() == $Test
If GetMapLoading() == 2 Then Disconnected()
If GUICtrlRead($pause) = 1 Then
out("Bot paused")
sleep(2000)
Else
Out("I am in the testmap!")
Sleep (10000)
SendChat('resign', '/')
WaitMapLoading()
EndIf
WEnd
will result in spamming all chat with "esign" Instead of resigning. i've tried calling the same function with Resign() to GWA2, had the same result. re-compiled it too, GWA2 is uptodate. Because it's sending chat but just not the R. i'm out of idea's.
Might this be lag or something? Or have somebody an idea how to fix this?
i Just have test the resign function and it's working as intended.
Be sure to have all function updated in GWA2 like Sendchat :
Code:
$SendChatHeader = 0x6A
Code:
;~ Description: Send a message to chat.
Func SendChat($aMessage, $aChannel = '!')
Local $lMessage
Local $lAddress = 256 * $mQueueCounter + $mQueueBase
If $mQueueCounter = $mQueueSize Then
$mQueueCounter = 0
Else
$mQueueCounter = $mQueueCounter + 1
EndIf
If StringLen($aMessage) > 120 Then
$lMessage = StringLeft($aMessage, 120)
Else
$lMessage = $aMessage
EndIf
;MemoryWrite($lAddress + 8, $aChannel & $lMessage, 'wchar[122]')
MemoryWrite($lAddress + 12, $aChannel & $lMessage, 'wchar[122]')
DllCall($mKernelHandle, 'int', 'WriteProcessMemory', 'int', $mGWProcHandle, 'int', $lAddress, 'ptr', $mSendChatPtr, 'int', 8, 'int', '')
If StringLen($aMessage) > 120 Then SendChat(StringTrimLeft($aMessage, 120), $aChannel)
EndFunc ;==>SendChat
#EndRegion Chat
just a question (and a good question ) :
Somebody have found the reason why a bot behave strangely during a "no rendering" ?? most of bots don't have problem with that, seem happen for dungeon bots : Raven's point, voltaic spear or BDS bots.
The event system does not function while render is off... so any function using events such as names of NPC's / signpost, etc... will not be recognized. I also think that functions such as haseffect() and some environmental checks may not work while rendering is off... Merchant trading may also be affected... this info is off the top of my head and may be incorrect or need verification, but I believe this issue was never fixed, however some function workarounds have been made in some bots me or the crew have touched !
I think like CoderHandy said, the best for this 3 bots would be to transfer them on the GWapi... but i don't have time and particulary tools and the knowedge to do it properly
i have a problem with the donate function. The bot travels to Cavalon, talks to the faction reward guy and then doesn't donate the points. I can't find the mistake. Maybe someone can help me.
i have a problem with the donate function. The bot travels to Cavalon, talks to the faction reward guy and then doesn't donate the points. I can't find the mistake. Maybe someone can help me.
Thanks in advance!
Seem found error here; replace DonateFaction(1) by DonateFaction(l) (k for kurzick l for luxon and not 1 the number)
Hello guys, i got hacked and gm didnt help me :( so i ask for help here 12/22/2009 - Kal Online - 25 Replies Hello guys, i got hacked 7 days ago, i sent a c/s to gms connected my id card, they told me twrite back after 7 days...
GM Reply
Hello.
This is Kalonline.
We checked over your report and blocked hackers.
HELP! I need help scripting 02/06/2007 - Conquer Online 2 - 1 Replies OK, I want to know how u ppl do it! I what program do u use to make them? cause i wanna help but i dun know how... somone plz reply!
L2Walker, scripting questions/help 12/13/2006 - Lineage 2 - 0 Replies Hey, just asking a few questions hope you don't mind ^_^
I'm looking to make a script so when I cast magic on something, the walker bot will cast, say Wind Strike, on the same thing, at the same time.
I've looked through the options in walker and have it setup now, but it doesn't cast at the same time, but when I've finished casting.
If this isn't possible, last time I checked Walker scripts could not pickup what was said in chat, is this still the case?
Thanks. ^_^
Note: If you...
I need help scripting 09/05/2006 - General Coding - 0 Replies Ok I am tired of leeching I am ready to try my hand at scripting but I dont know where to start and I was wondering if someone could help me get started or tell me a website that can help me learn so I can make my own hacks and contribute to the epvp community that we all love :D