New Syshook

Archive of the older Feature Request Forum Posts
Locked
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

New Syshook

Post by Tomi »

a new syshook for when a character is moving would be nice.
Should help if you for example are making a rpg shard and wan't dex to gain when moving.
I know all this can be done with packethooks but... hooking a packet like this that is used almost all the time is not good, that's why I'm asking for this.
Lagoon
Grandmaster Poster
Posts: 118
Joined: Sun Mar 05, 2006 7:25 am

Post by Lagoon »

I can't see a big difference in performance in syshookl rather than syshook packethook. Both would be run critically, both would be scritps with code fired whenever one moves... So why a make a syshook?
Tomi
POL Developer
Posts: 478
Joined: Tue Feb 21, 2006 5:08 pm

Post by Tomi »

maybe a script that runs when char is moving like moving.ecl in scripts/misc.
Should work the same way as death.exl and those scripts.
Lagoon
Grandmaster Poster
Posts: 118
Joined: Sun Mar 05, 2006 7:25 am

Post by Lagoon »

That's exactly what you can do with a packethook on movement packet
Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am

Post by Shinigami »

he asked, why u don't use a simple packethook? would do the same job without needing to change the core - and yes, it is hookable:

Code: Select all

// Move Char to direction
Packet 0x22
{
    Length 3
    SendFunction packethook:MoveACK
}
btw: your dex is gaining while u move? sounds like u use a hook to let it gain - can't remember that the core will gain dex

Shinigami

p.s.: u can hook Packet 0x2 too, but it's hooking the move request, not the successfull move
Locked