16
Scripting Chat / Re: Easyuo workaround
« on: April 02, 2012, 02:37:03 PM »
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
set %pix1-x xxx
set %pix1-y yyy
set %pix2-x xxx
set %pix2-y yyy
set %conctime 10
set %divinetime 20
set %enemytime 200
set %conc #scnt
set %divine #scnt
set %enemy #scnt
main:
if #enemyid <> N/A
{
set #scnt 0
set %divine 0
set %conc 0
set %enemy 0
set #ltargetid #enemyid
set #ltargetkind 1
event macro 49 1
target
event macro 22
event macro 27
goto second
}
wait 10
goto main
second:
if #enemyid = N/A
{
goto main
}
savepix %pix1-x %pix1-y 1
set %color1 #pixcol
savepix %pix2-x %pix2-y 1
set %color2 #pixcol
if #color1 <> 1575011 && #color2 <> 1575011
{
if #mana > 20 && %special => 2
{
event macro 35
wait 10
set %special 0
goto specialout
}
if #mana > 7
{
event macro 15 149
wait 10
set %special %special + 1
}
}
if %conc < #scnt
{
event macro 15 203
set %conc #scnt + %conctime
wait 50
}
if %divine < #scnt
{
event macro 15 205
set %divine #scnt + %divinetime
wait 80
}
if %enemy < #scnt
{
event macro 15 206
set %enemy #scnt + %enemytime
wait 80
}
goto second
set %x1 xxx
set %y1 xxx
set %x2 xxx
set %y2 xxx
set %red xxxxxxxxx
;------------------------
main:
if %1 > %2
{
set %time #scnt2
gosub toggle
}
goto main
;-------------------------
sub toggle
subtoggle:
if #enemyid = N/A
{
return
}
savepix %x1 %y1 1
set %pix1 #pixcol
savepix %x2 %y2 1
set %pix2 #pixcol
if %pix1 <> %red && %pix2 <> %red && #enemyid <> N/A
{
if #scnt2 => %time && #mana > 20
{
event macro 35
wait 5
set %time #scnt2 + 30
}
else
{
if #mana > 8
{
event macro 15 149
wait 5
}
}
}
goto subtoggle
;startup:
;things i only gotta do once before the scrypt kicks in
;
;item change:
;if the main loop needs to perform a diffrent function
;
;mainloop:
;what the sctypt does
;goto mainloop
;
;Sub a
;
;sub b
;
;sub c