president vankk
Web Developer & AuraOT Owner
- Joined
- Jul 10, 2009
- Messages
- 5,719
- Solutions
- 9
- Reaction score
- 339
Everyone know this bug exist, is the stranger to anyone. A guy called Bruno Minervino posted it on Otland's GitHub and nobody give attention to this seriously bug. Has this bug on last commit of TFS 1.2!
To the people who don't know the bug is this:
He was trying it:
GitHub
If anyone interested to help the community will be happy!
To the people who don't know the bug is this:
He was trying it:
Code:
bool MoveEvent::executeStep(Creature* creature, Item* item, const Position& pos, const Position& fromPos)
{
//onStepIn(creature, item, pos, fromPosition)
//onStepOut(creature, item, pos, fromPosition)
if (!m_scriptInterface->reserveScriptEnv()) {
std::cout << "[Error - MoveEvent::executeStep] Call stack overflow" << std::endl;
return false;
}
ScriptEnvironment* env = m_scriptInterface->getScriptEnv();
env->setScriptId(m_scriptId, m_scriptInterface);
lua_State* L = m_scriptInterface->getLuaState();
m_scriptInterface->pushFunction(m_scriptId);
LuaScriptInterface::pushUserdata<Creature>(L, creature);
LuaScriptInterface::setCreatureMetatable(L, -1, creature);
LuaScriptInterface::pushThing(L, item);
LuaScriptInterface::pushPosition(L, pos);
Tile* tile = g_game.map.getTile(fromPos);
Player* player = creature->getPlayer();
LuaScriptInterface::pushPosition(L, !tile->getGround()->isBlocking ? fromPos : player->getTemplePosition());
return m_scriptInterface->callFunction(4);
}
GitHub
If anyone interested to help the community will be happy!