[5173] - Python bot interface with loadable memory functions. (w/ Melee demo)

10/28/2009 05:08 miko49#16
hi clinton, is there any way i can DL the bot?
10/29/2009 00:22 elgarfy22#17
plz i neet it upload in anther site
10/29/2009 15:05 miko49#18
please help us clint!
10/30/2009 18:46 elgarfy22#19
plz i need program this site give me bandel plz send to me in my mail or upload in anther site [Only registered and activated users can see links. Click Here To Register...]
11/03/2009 17:02 Hassan28#20
Well,

I've just registered at the site your reffering to (Like 2 days ago). I'm not sure if high6 checks the introductions daily but I would love to join the forum. Not just for this bot, which would be a bit greedy but also to help people.

Anyway. if high6 reads this post. Please would you reply to my PM on your forum?
Best regards,

Hassan28
aka Biatch.
11/03/2009 22:16 Schneepisser#21
Quote:
Originally Posted by miko49 View Post
hi clinton, is there any way i can DL the bot?
Quote:
Originally Posted by elgarfy22 View Post
plz i neet it upload in anther site
Quote:
Originally Posted by miko49 View Post
please help us clint!
Quote:
Originally Posted by elgarfy22 View Post
plz i need program this site give me bandel plz send to me in my mail or upload in anther site [Only registered and activated users can see links. Click Here To Register...]
plzzzzzzzzzzzzz Im a stupid eggy... send t me in my emal



the forum is overloaded with eggys ... How embarrassing!
11/04/2009 22:49 ViRuSeXy#22
lol
11/06/2009 15:24 elgarfy22#23
where the programes man
11/06/2009 21:40 julienabade#24
sry if i am being noob but it works for parch 5065? ^^, ??
11/06/2009 22:13 clintonselke#25
M O V E D _ T O _ C O D E X P L O S I O N
11/06/2009 23:58 elgarfy22#26
Quote:
Originally Posted by clintonselke View Post
R35 - working w/ 5180... still working on the crash bug.
plz clintonselk send melee to my email [Only registered and activated users can see links. Click Here To Register...] or upload in anther site i need it man plz
11/07/2009 08:44 clintonselke#27
M O V E D _ T O _ C O D E X P L O S I O N
11/07/2009 09:38 clintonselke#28
M O V E D _ T O _ C O D E X P L O S I O N
11/07/2009 15:15 elgarfy22#29
Quote:
Originally Posted by clintonselke View Post
Also guys,

Replace the code in Melee.py with the following... it stops the crashing, but its goes a bit slower... maybe u guys can play w/ the delays to perfect it.
Code:
import math

def distance(x1,y1,x2,y2):
    dx = x2 - x1
    dy = y2 - y1
    return dx*dx + dy*dy

class CMob:
    def __init__(self, mobBase):
        self.X   = GetXCoord(mobBase)
        self.Y   = GetYCoord(mobBase)
        self.UID = RoleUID(mobBase)

nextTime = TimeStamp()

def update():
    global nextTime
    if TimeStamp() < nextTime:
        return
    #print "Melee bot update()"

    heroBase = HeroBase()
    hx = GetXCoord(heroBase)
    hy = GetYCoord(heroBase)

    num = NumMobs()
    mobs = []
    for i in range(0, num-1):
        mobBase = GetMob(i)
        if mobBase == 0:
            break
        if AniFlag(mobBase) == 32:
            continue
        if RoleUID(mobBase) > 0x0F423F:
            continue
        mobs.append(CMob(GetMob(i)))
    
    #print repr(num) + " mobs are on the screen."
    #print "The hero is positioned at (" + repr(hx) + ", " + repr(hy) + ")"
    nearMob = 0
    nearDist = 100*100
    for mob in mobs:
        mx = mob.X
        my = mob.Y
        if mx > 1000 or my > 1000 or mx < 0 or my < 0:
            break
        #print "A mob is seen at (" + repr(mx) + ", " + repr(my) + ")"
        dist = distance(hx,hy,mx,my)
        #print "he is " + repr(dist) + " units squared away"
        if dist < nearDist:
            nearMob = mob
            nearDist = dist
    if nearMob != 0:
        if nearDist > 16*16:
            dx = nearMob.X+1 - hx
            dy = nearMob.Y+1 - hy
            a = 16.0 / math.sqrt(dx*dx+dy*dy)
            dx = int(a * dx)
            dy = int(a * dy)
            Jump(hx + dx, hy + dy)
            nextTime = TimeStamp() + 1000
        elif nearDist <= 4*4:
            Melee(nearMob.UID, nearMob.X, nearMob.Y)
            nextTime = TimeStamp() + 200
        else:
            Jump(nearMob.X+1,nearMob.Y+1)
            nextTime = TimeStamp() + 1000

print "Melee bot loaded."
Good Luck
man help me i have melee but i dont have update for it when patch 5173 i need Conquer that it can work in it
11/08/2009 02:02 darkgod999#30
do u have an auto zapper bot?