i can't understand "out of sequence" handling :)

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
ultek
New User
Posts: 15
Joined: Tue Jul 25, 2006 5:16 am

i can't understand "out of sequence" handling :)

Post by ultek »

Well i have polerr.log in /pol/ and many entries:

Code: Select all

acc/char used out of sequnce cursor.
My idea is to wrote a script kicking players every time the "out of sequence" thing happen.

Don't have idea how to handle this. Any help would be appreciated.
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

Use a hook as discussed in the bug thread of 096. In 097 this was fixed.
ultek
New User
Posts: 15
Joined: Tue Jul 25, 2006 5:16 am

Post by ultek »

you mean packet hook?
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

Correct.

The previous changes (before 097) were simply "informative" that you are looking at. There was never anything implemented in order to directly address the issue. In 097 we moved to handle them more like how Origin and EA have done so, thus not only fixing this issue, but in my opinion, making the targeting system a much better system overall.
ultek
New User
Posts: 15
Joined: Tue Jul 25, 2006 5:16 am

Post by ultek »

can you give me example of using this packet?

I searched through packet list and found nothing.

As you say - it's possible to do in pol97 (and I have 097) but no idea how to "catch" that...
ultek
New User
Posts: 15
Joined: Tue Jul 25, 2006 5:16 am

Post by ultek »

ok. I wrote something like this: (packethook)
uopacket.cfg wrote:Packet 0x6C
{
Length 0x13
SendFunction anty:SendAntyMacro
}
and
anty.src wrote:use uo;
use os;

Program Install()
print("Anty Out-Of-Sync Target Activated");
return 1;
Endprogram


exported function SendAntyMacro(who, byref packet)

who := who;

syslog("SendAntyMacro");

return 1;

endfunction
Now, when I use (i.e.) animal taming, the cursor appears. Then if I click something - nothing happens. When I try after that use animal taming again - sysmessage appears "you already doing something else" (something goes wrong, and server still wait for target packet). What i've done wrong?
ultek
New User
Posts: 15
Joined: Tue Jul 25, 2006 5:16 am

Post by ultek »

Bump..


Still have no idea with that error :cry:
Post Reply