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. Открыть источник.