View Full Version : User::SendUserInfo(bool GMPacket)
goodtimeshaxor
20.06.2009, 15:38
I don't know how it works and don't know how to experiment with it but... Is there a way to make 'SendUserInfo' update location information?
I teleportedTo x,y,z but my character still looks like he's in the original location and SendUserInfo doesn't fix that.
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-20-2009, 03:38 PM. Открыть источник (https://web.archive.org/web/20100324123501id_/http://www.postpacific.com:80/archive/index.php/t-529.html).
User info is sending position .. but maybe it isn't enough, did you try calling method: User::TeleportToLocation - 0x8151E0 ?
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-20-2009, 04:08 PM. Открыть источник (https://web.archive.org/web/20100324123501id_/http://www.postpacific.com:80/archive/index.php/t-529.html).
you prolly updated XYZ in shareddata didn't ya ? :P
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-20-2009, 04:13 PM. Открыть источник (https://web.archive.org/web/20100324123501id_/http://www.postpacific.com:80/archive/index.php/t-529.html).
goodtimeshaxor
20.06.2009, 16:43
User info is sending position .. but maybe it isn't enough, did you try calling method: User::TeleportToLocation - 0x8151E0 ?
If I use TeleportToLocation(x,y,z) then the problem is targetting. My skill is supposed to teleport to the target and then continue attacking them. With what I've written here:
[X] It teleports
[X] It attacks target
[ ] Keeps pTargetCreature targetted
Last one doesn't work. I end up teleporting to the target and start to attack him but targetting status is removed and I have to push esc then target him again to get it to work.
pUser->TeleportToLocation(x, y, z);
pUser->ChangeTarget(pTargetCreature, true);
pUser->SD->nTargetObjId = pTargetCreature->SD->nObjectID;
pUser->SendUserInfo(false);
Here is the original method that I posted the problem about:
pUser->SD->x = x;
pUser->SD->y = y;
pUser->SD->z = z;
pUser->Unlock();
pUser->SendUserInfo(false);
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-20-2009, 04:43 PM. Открыть источник (https://web.archive.org/web/20100324123501id_/http://www.postpacific.com:80/archive/index.php/t-529.html).
trying to do shadow step ?
Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-22-2009, 05:54 AM. Открыть источник (https://web.archive.org/web/20100324123501id_/http://www.postpacific.com:80/archive/index.php/t-529.html).