• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

How to make your server client 8.61 Tutorial

Am I the only one who thinks there may be a significant number of people who will want some of the new content but not this new stackable rune sh$t? >.< The beauty of OTs is things like custom spells. I prefer spell for rune merging that has variable mana depending on current charges versus default. If you want a 100 uses of SD in a single slot you gotta work for it. =/

JuanC ->
http://otland.net/f19/stians-dev-cpp-repack-0-2-crypto-64bit-62455/
 
Guys, how do I do these updates? For example, for the luascript.cpp; where am I supposed to put that?! No red text, no indications.

Please let me know where I have to put stuff where you've just posted the code.

Thanks
 
Guys, how do I do these updates? For example, for the luascript.cpp; where am I supposed to put that?! No red text, no indications.

Please let me know where I have to put stuff where you've just posted the code.

Thanks

You're supposed to add the highlighted parts to the code ._.
 
luascript.cpp and .h both have no highlighted codes?
heres a small explination:
under/before:
Code:
	//getCreatureHealth(cid)
	lua_register(m_luaState, "getCreatureHealth", LuaScriptInterface::luaGetCreatureHealth);
add:
Code:
	//getItemParent(uid)
	lua_register(m_luaState, "getItemParent", LuaScriptInterface::luaGetItemParent);
and
under/before:
Code:
int32_t LuaScriptInterface::luaGetCreatureHealth(lua_State* L)
{
	//getCreatureHealth(cid)
	ScriptEnviroment* env = getEnv();
	if(Creature* creature = env->getCreatureByUID(popNumber(L)))
		lua_pushnumber(L, creature->getHealth());
	else
	{
		errorEx(getError(LUA_ERROR_CREATURE_NOT_FOUND));
		lua_pushboolean(L, false);
	}
	return 1;
}
add:
Code:
int32_t LuaScriptInterface::luaGetItemParent(lua_State* L)
{
	//getItemParent(uid)
	ScriptEnviroment* env = getEnv();

	Item* item = env->getItemByUID(popNumber(L));
	if(!item)
	{
		errorEx(getError(LUA_ERROR_ITEM_NOT_FOUND));
		lua_pushnil(L);
		return 1;
	}

	Item* container = item->getParent()->getItem();
	pushThing(L, container, env->addThing(container));
	return 1;
}
thats the .cpp
the .h:
before/after:
Code:
static int32_t luaDoRemoveItem(lua_State* L);
add:
Code:
static int32_t luaGetItemParent(lua_State* L);
thats it
 
someone who has managed to later add the tag in (luascript.cpp) could posted?
I tried to later add the tag and could not:(
 
Guys, I tried to fix the bug on the target so that it can not and was still giving debug when I attacked the monster and climbed a ladder

help me please
 
My fiend told me about protocol change in stop attack
msg->AddByte(0xA3);
0xA3 has changed to 0xA7 but i cant tested it yet :S
can someone check?
 
My fiend told me about protocol change in stop attack
msg->AddByte(0xA3);
0xA3 has changed to 0xA7 but i cant tested it yet :S
can someone check?

Uh, no? This works fine:
Fix for sendCancelTarget (protocolgame.cpp):
Code:
void ProtocolGame::sendCancelTarget()
{
	NetworkMessage_ptr msg = getOutputBuffer();
	if(msg)
	{
		TRACK_MESSAGE(msg);
		msg->AddByte(0xA3);
		[B][COLOR="Red"]msg->AddU32(0);[/COLOR][/B]
	}
}
Credits to Holix!
 
It doesnt count all potions how to fix it ? it says Using one of 50 xxx potions ( 50 is cout of first stack with these potions) when 1. stack count is 100 then it says using one of 1200 mana potions whhich is good

edit1
I think my server doesnt have compiled these new parent variables? Why??

edit2
I noticed i must compile it myself. now im just compiling ( i hope it will work)

edit3

20:19 Using one of 200 ultimate health potions...
20:19 Using one of 99 ultimate health potions...
20:19 Using one of 99 ultimate health potions...

stil doesnt work, how to fix?
 
Last edited:
Back
Top