Sign in to follow this  
Followers 0
gasfather

Help with Loop Structure and Pixelget func

2 posts in this topic

can anyone see if this makes any sense ? new to this so i imagine im doing something stupid. trouble is it always executes the heals.

While 1

; Create a Listening "SOCKET"

;==============================================

$MainSocket = -1

While $MainSocket < 0

$MainSocket = TCPListen($g_IP, 5001, 100 )

WEnd

; look for client connection

;--------------------

$ConnectedSocket = -1

While $ConnectedSocket < 0

$dif = TimerDiff($begin)

if $dif > 600000 And $LocalToon = "Bullya" And WinActive("World of Warcraft","") Then

Druid_Bullya_Buff_Party_Thorns()

$begin = TimerInit()

EndIf

$ConnectedSocket = TCPAccept( $MainSocket)

if PixelGetColor(99,447) <> 55296 AND WinActive("World of Warcraft","") Then

Heal_Dedlock()

EndIf

If PixelGetColor(82,504) <> 55296 AND WinActive("World of Warcraft","") Then

Heal_Valkyrie()

EndIf

Wend

$data = TCPRecv($ConnectedSocket, 3)

TCPCloseSocket($ConnectedSocket)

TCPCloseSocket($MainSocket)

Switch $data

Case "001"

Warlock_Dedlock_Attack()

Case "002"

Druid_Bullya_Attack()

Case "003"

Hunter_Furion_Attack()

Case "004"

Priest_Vanic_Attack()

Case "005"

Warlock_Dedlock_Debuff_DOT()

Case "006"

Druid_Bullya_Debuff_DOT()

Case "007"

Warlock_Dedlock_AOE()

Case "008"

Druid_Bullya_AOE()

Case "999"

FollowMainToon()

Case "998"

AcceptGroupInvite()

EndSwitch

WEND

Share this post


Link to post
Share on other sites



if the color is in hex it shudl be 0x55296

Share this post


Link to post
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
Sign in to follow this  
Followers 0