rafaeru
Active Member
Hello, i have big problem.
I added walkthrough in protection zone and it work but only if i use right click on map or push on player.
If i use arrow keys i cant walkthrough.
I think its here becaouse i compare with tfs 0.3.6:
what is getInstance() ?
I added walkthrough in protection zone and it work but only if i use right click on map or push on player.
If i use arrow keys i cant walkthrough.

I think its here becaouse i compare with tfs 0.3.6:
Code:
void Player::setNextWalkActionTask(SchedulerTask* task)
{
if(walkTaskEvent)
{
Scheduler::getScheduler().stopEvent(walkTaskEvent);
walkTaskEvent = 0;
}
delete walkTask;
walkTask = task;
setIdleTime(0);
}
void Player::setNextWalkTask(SchedulerTask* task)
{
if(nextStepEvent)
{
Scheduler::getScheduler().stopEvent(nextStepEvent);
nextStepEvent = 0;
}
if(task)
{
nextStepEvent = Scheduler::getScheduler().addEvent(task);
setIdleTime(0);
}
}
void Player::setNextActionTask(SchedulerTask* task)
{
if(actionTaskEvent)
{
Scheduler::getScheduler().stopEvent(actionTaskEvent);
actionTaskEvent = 0;
}
if(task)
{
actionTaskEvent = Scheduler::getScheduler().addEvent(task);
setIdleTime(0);
}
}
what is getInstance() ?
Last edited: