Page 1 of 1
New Syshook
Posted: Mon Sep 18, 2006 2:04 am
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.
Posted: Mon Sep 18, 2006 2:15 am
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?
Posted: Mon Sep 18, 2006 3:04 am
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.
Posted: Mon Sep 18, 2006 3:23 am
by Lagoon
That's exactly what you can do with a packethook on movement packet
Posted: Mon Sep 18, 2006 3:24 am
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