Jump to content

Game - Mob color check - sro


Recommended Posts

;-------------------------------------------------- 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

:whistle: 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)

EndIf

Needs 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]

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...