dami1310
◄ Unidentified ►
I use tfs 0.3.6 <-
When I use
players can't move with a little exception.
If player had a target and auto follow mode he will keep following the target even if nomove is active.
If he stops targeting/tries to move etc. etc. he won't be able to move anymore even if he checks the auto follow again.
I want to block that of course, but I can't think of/find the right solution.
Any ideas?
PS. It would be good if that player could keep his target. Just stop moving.
If it helps you:
When I use
Code:
doCreatureSetNoMove(target, false)
If player had a target and auto follow mode he will keep following the target even if nomove is active.
If he stops targeting/tries to move etc. etc. he won't be able to move anymore even if he checks the auto follow again.
I want to block that of course, but I can't think of/find the right solution.
Any ideas?
PS. It would be good if that player could keep his target. Just stop moving.
If it helps you:
Code:
int32_t LuaScriptInterface::luaDoCreatureSetNoMove(lua_State* L)
{
//doCreatureSetNoMove(cid, block)
bool block = popNumber(L);
ScriptEnviroment* env = getEnv();
if(Creature* creature = env->getCreatureByUID(popNumber(L)))
{
creature->setNoMove(block);
lua_pushboolean(L, true);
}
else
{
errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND));
lua_pushboolean(L, false);
}
return 1;
}