Register for your free account! | Forgot your password?

You last visited: Today at 05:01

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

Advertisement



Autopot for THQICE 1.0.8

Discussion on Autopot for THQICE 1.0.8 within the Dragonica Hacks, Bots, Cheats & Exploits forum part of the Dragonica category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2009
Posts: 9
Received Thanks: 0
Autopot for THQICE 1.0.8

Useful for using inexpensive portions. Only for THQICE 1.0.8.

I don't know how to get the max HP/MP. So, instead of potting to full HP/MP, it pots to keep the HP/MP to the value of the moment you started auto potting.
Attached Images
File Type: png 1.png (11.1 KB, 141 views)
Attached Files
File Type: zip DAutoPot_108.zip (21.7 KB, 87 views)
bestnego is offline  
Old 11/14/2009, 01:31   #2
 
elite*gold: 0
Join Date: May 2008
Posts: 9
Received Thanks: 0
I don't really wanna be a guinea pig. It seems harmless but I would like some higher ups to vouch this for us little ones
kipster is offline  
Old 11/14/2009, 03:19   #3
 
elite*gold: 0
Join Date: Sep 2009
Posts: 138
Received Thanks: 14
VirusScan:

It seems to be clean but i cant really test it cuz i dont have the THQ*ICE version installed
Neyoel is offline  
Old 11/15/2009, 20:50   #4
 
elite*gold: 0
Join Date: Oct 2009
Posts: 4
Received Thanks: 1
doesnt work well sorry i tested it When your fighting it will pot on nerly full hp
and when you need mana it doesnt pot at all
drkieran123 is offline  
Old 11/19/2009, 17:25   #5
 
elite*gold: 0
Join Date: Dec 2008
Posts: 25
Received Thanks: 5
Is this a pixel bot, because I know a good way to get an "approximite" full hp that I developed myself.

meh, i'll come up with a macromonkey script and post it here, how about that :]

Edit: Got it working.

The rest I'll keep for personal use, however I cannot get this to work fullscreen without bypassing HS and modifying some winapi conditions of the client.

But, here is how to read your hp value in windowed mode. Note, for this example you need to have the dragonica game client window positioned at 0,0. To overcome this you simply need to get the x,y value of the location of the client window, then to add that value to pixel read (so it works dynamically). For this example im not doing that for yall, learn how (or ask in MM forums fo rhelp )

anyways...

You can find MM at
Umm... not trying to advertise, its just a badass game macro system. lol

all thats left is creating a function to look at mp, then to create the key presses and conditions. Pretty easy, its pretty accurate, could use a bit of tweaking but meh.

For instance, you may be at 50% and it could report 49.78878787%, or like 47%. I've used this script in other games and it worked well enough anyways, and it should for dragonica

Code:
local game_win = win.Find("Dragonica Online (Client Ver : 1.0.8)", nil, 0,0, win.FIND_TILE_INSIDE) 
--IMPORTANT: Change "GameWindowTitle" to the title of the window your game uses or this won't work

-- We could do without this, but I worked around the example pixel read of MM so I just use it.
function printf(...) 
	io.write(string.format(...)) 
end

-- Found this Online somewhere... Needed it to round out the health as it can be quite long.
function round(num, idp)
  local mult = 10^(idp or 0)
  return math.floor(num * mult + 0.5) / mult
end

function ReadHp()
	--128,762 to 181,762. There is 53 pixels, so 53 == 100%
	local sX   = 475  -- Starting Pixel
	local eX   = 762  -- Ending Pixel
	local Row  = 743  -- The row we'll use
	local tHP  = 287  -- Total Hp
	local xNum = 1    -- Just a counter for whichever pixel we are on
	local gHP  = 0    -- Good Hp
	local bHP  = 0    -- Bad Hp, not used, but it places a countable value of areas where your hp is "not". Such as when the health bar changes color as it "decreases".
	local cR = 236    -- Your red, green, and blue value of your target bar pixel color
	local cG = 76
	local cB = 44
	
	
	-- We increase the starting pixel and read that pixel each round of the loop
	while sX < eX do 
		local R,G,B = win.GetPixel(fWin, sX, Row)
		cColor = color.RGB(R,G,B)
		if R then -- if there is color data for this pixel, continue
			--printf("\nPixel #"..xNum..":\n")
			--printf("R: %d, G: %d, B: %d.\n", R,G,B)
			--printf("H: %.1f, S: %.1f, L: %.1f.\n", color.RGBtoHSL(R,G,B))
			if  color.DeltaRGB(color.RGB(cR,cG, cB), cColor) < 0.1 then 
				gHP = gHP + 1
			else 
				bHP = bHP + 1
			end
		end
		sX = sX + 1
		xNum = xNum + 1
	end
	local pHealth = gHP / tHP
	
	-- We will round the HP to 2 decimal places. Make note that it will show in decimal form, so you won't see a "30%", but rather a "0.30"
	--pHealth = round(pHealth, 2)
	print("\nHealth is currently at "..pHealth)
	return pHealth
end




-- This will examine a range of pixels and return the value of hp



if (game_win == nil) then
	print("\n** Game window not found! **")
else
	-- The window needs to be into focus for a proper screen shot
	win.SetState(game_win, win.SW_SHOW)
	time.Sleep(0.200) -- Some time for window to come in focus..
	
	while true do
		ReadHp()
		console.KeyPause()
	end
console.KeyPause()
end
deadlyp99 is offline  
Old 11/19/2009, 18:12   #6
 
elite*gold: 0
Join Date: Oct 2009
Posts: 9
Received Thanks: 0
This is a memory-reading-based autopot.
bestnego is offline  
Old 11/19/2009, 18:45   #7
 
elite*gold: 0
Join Date: Dec 2008
Posts: 25
Received Thanks: 5
So your able to read the memory... but not find the max hp?
deadlyp99 is offline  
Old 11/19/2009, 19:16   #8
 
elite*gold: 0
Join Date: Oct 2009
Posts: 9
Received Thanks: 0
I got the offset for current HP/MP from Kane49's source code. I don't know how to get the offset for Max HP/MP. I could try to find it but I don't really need it. If you turn on the autopot when your HP/MP is full, the program will autopot to max HP/MP. That is good enough for me.
bestnego is offline  
Old 11/21/2009, 20:56   #9
 
sarez's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 15
Received Thanks: 1
hm... wont work for me :S
sarez is offline  
Old 11/22/2009, 18:16   #10
 
elite*gold: 0
Join Date: Oct 2009
Posts: 9
Received Thanks: 0
You have to open the program when your game window is already running. It looks for the game window only once on the startup.
bestnego is offline  
Reply


Similar Threads Similar Threads
lAH,THQIce,Gpotato?
07/11/2010 - Dragonica - 0 Replies
Hey, ich wollte mal fragen was der Unterschied zwischen den Dreien ist.Ich hab echt keine Ahnung aber mich interessiert es schon seit langem. Gibt es auf lAH und THQIce noch das alte Setteilsystem?Also werden die Setteile da noch in den Missionen gedroppt oder brauch man da auch GadaMünzen und Edelsteine? Ich hab nämlich kein Bock mehr auf dieses neue System.Das regt doch voll auf. MfG Beathoven
S > 5X Shaman THQIce
02/27/2010 - Dragonica - 0 Replies
Sold...
Just a thqice question
02/16/2010 - Dragonica Hacks, Bots, Cheats & Exploits - 0 Replies
is there sum1 working on the hacks or bypass for thqice dragonica 1.1.28 +? or what.. so should we be patients and stuff.. thx a lot. cuz i searched all over the place no 1 has anything.. so i hoping sum1 is working on sumthing.. =)
[Question} ThqIce Hack
10/27/2009 - Dragonica - 4 Replies
My vac doesnt work properly for my thief, its vacing the monster a little below my thief so i cant hit the monster properly. But the vac is working well for my archer. Does anyone else have this problem?



All times are GMT +1. The time now is 05:02.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.