Graymatter Posted November 4, 2006 Posted November 4, 2006 expandcollapse popup;-------------------------------------------------- SCRIPT MOB COLOR ----------------------------------------------- Global $MBC = 0 Global $MOB2 = "GREEN" Global $MOB3 = "WHITE" Global $MOB4 = "ORANGE" Global $MOB5 = "RED" Global $MOB = 0 WHILE 1 CheckMobType() sleep(1000) Tooltip("",0,0); I put this to make it flash sleep(1000) WEND Func CheckMobType() $mobcolor = PixelSearch(424,15,437,28,0x084364,20) IF NOT @ERROR THEN $MBC = 1 ENDIF $mobcolor = PixelSearch(424,15,437,28,0x48AA7B,20) IF NOT @ERROR THEN $MBC = 2 $MOB = $MOB2 ENDIF $mobcolor = PixelSearch(424,15,437,28,0x717171,20) IF NOT @ERROR THEN $MBC = 3 $MOB = $MOB3 ENDIF $mobcolor = PixelSearch(424,15,437,28,15644512,20) IF NOT @ERROR THEN $MBC = 4 $MOB = $MOB4 ENDIF $mobcolor = PixelSearch(424,15,437,28,14832443,20) IF NOT @ERROR THEN $MBC = 5 $MOB = $MOB5 ENDIF For $i=1 to 5 Step +1 if $MBC <> $i AND $MBC > 0 then Tooltip("Mob color is",0,0,$MOB) sleep(500) elseif $MOB <> 0 AND $MBC < 1 then sleep(500) Tooltip("No Mob Found.",0,0);should be executed in normal state even if game isnt running EndIf next Very simple script works for resolution picture or ingame (1024 x 768 ). Problem is if you dont execute it ingame (you know just regular execution) , it should not be finding any mob (monster) so it should display "No Mob found". #2. I dont know how to make tool tip disappear (withing 1 or 2 secs max as the mobs would be selected every now and then). What i did was make it flashing so atleast i dont keep on seeing it. I need help with this issues: a) elseif $MOB <> 0 AND $MBC < 1 then sleep(500) Tooltip("No Mob Found.",0,0) EndIfNeeds to be executed in default condition. Need to make tool tip dissapear. [quote]I am so clever that sometimes I don't understand a single word of what I am saying.[/quote]
4gotn1 Posted November 5, 2006 Posted November 5, 2006 (edited) to make the tooltip disappear then return it to its original value elseif $MOB <> 0 AND $MBC < 1 then sleep(500) Tooltip("No Mob Found.",0,0) Sleep(1000) ;Or whatever you want ToolTip() EndIf Edited November 5, 2006 by 4gotn1
Graymatter Posted November 5, 2006 Author Posted November 5, 2006 to make the tooltip disappear then return it to its original value elseif $MOB <> 0 AND $MBC < 1 then sleep(500) Tooltip("No Mob Found.",0,0) Sleep(1000) ;Or whatever you want ToolTip() EndIf Aight thanks will try. [quote]I am so clever that sometimes I don't understand a single word of what I am saying.[/quote]
Graymatter Posted November 5, 2006 Author Posted November 5, 2006 Aight thanks will try.Tried it had to be ToolTip("","") [quote]I am so clever that sometimes I don't understand a single word of what I am saying.[/quote]
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now