• 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!

Some Rquests

Sir Islam

Never Give Up
Joined
Jun 6, 2008
Messages
504
Solutions
1
Reaction score
116
Location
Suez , Egypt
1 ) I Want To Break Monsters' Hp Limit ... In My Server Max Hp Is About 12 Billion

2 ) unlimited Health and mana of Player the max is About 2.4 Billion i need up it

3 ) after level xxx no gain level and EXPERIENCE
 
Last edited:
I just know how to make level more than 717217

but I won't be lair it's not mine
Cykotitan told me before

in player.h
Code:
//
		static uint64_t getExpForLevel(uint32_t lv)
		{
			lv--;
			return ((50ULL * lv * lv * lv) - (150ULL * lv * lv) + (400ULL * lv)) / 3ULL;
		}

if u change 50 and 150 and 400 and 3 level will be more but what is relation about it idk. xD
 
I just know how to make level more than 717217

but I won't be lair it's not mine
Cykotitan told me before

in player.h
Code:
//
		static uint64_t getExpForLevel(uint32_t lv)
		{
			lv--;
			return ((50ULL * lv * lv * lv) - (150ULL * lv * lv) + (400ULL * lv)) / 3ULL;
		}

if u change 50 and 150 and 400 and 3 level will be more but what is relation about it idk. xD


ty for try help me but this for Changing Experience to next level not more levels
 
Code:
void Creature::onGainExperience(double& gainExp, bool fromMonster, bool multiplied)
{
	if(gainExp <= 0)
		return;
		

	if(master)
	{
		gainExp = gainExp / 2;
		master->onGainExperience(gainExp, fromMonster, multiplied);
	}
	else if(!multiplied)
		gainExp *= g_config.getDouble(ConfigManager::RATE_EXPERIENCE);

	int16_t color = g_config.getNumber(ConfigManager::EXPERIENCE_COLOR);
	if(color < 0)
		color = random_range(0, 255);

	std::stringstream ss;
	ss << (uint64_t)gainExp;
	g_game.addAnimatedText(getPosition(), (uint8_t)color, ss.str());
}

Replace it with and msg me



Code:
void Creature::onGainExperience(double& gainExp, bool fromMonster, bool multiplied)
{
	if(gainExp <= 0)
		return;
		
		if(gainExperience(gainExp, target))
		Creature::onGainExperience(gainExp, target, true);
		if (Player* player = this->getPlayer()) 
	{
		if (player->getPlayerInfo(PLAYERINFO_LEVEL) >= [COLOR="#FF0000"]150[/COLOR])
			return;
	}

	if(master)
	{
		gainExp = gainExp / 2;
		master->onGainExperience(gainExp, fromMonster, multiplied);
	}
	else if(!multiplied)
		gainExp *= g_config.getDouble(ConfigManager::RATE_EXPERIENCE);

	int16_t color = g_config.getNumber(ConfigManager::EXPERIENCE_COLOR);
	if(color < 0)
		color = random_range(0, 255);

	std::stringstream ss;
	ss << (uint64_t)gainExp;
	g_game.addAnimatedText(getPosition(), (uint8_t)color, ss.str());
}

for max level

- - - Updated - - -

the max level is in red
 
i use tfs r5963 but any way i use ur but not work and more error

i have this
Code:
void Creature::onGainExperience(double& gainExp, Creature* target, bool multiplied)
{
	if(gainExp <= 0)
		return;

	if(master)
	{
		gainExp = gainExp / 2;
		master->onGainExperience(gainExp, target, multiplied);
	}
	else if(!multiplied)
		gainExp *= g_config.getDouble(ConfigManager::RATE_EXPERIENCE);

	int16_t color = g_config.getNumber(ConfigManager::EXPERIENCE_COLOR);
	if(color < 0)
		color = random_range(0, 255);

	const Position& targetPos = getPosition();

	SpectatorVec list;
	g_game.getSpectators(list, targetPos, false, false, Map::maxViewportX, Map::maxViewportX,
		Map::maxViewportY, Map::maxViewportY);

	std::stringstream ss;
	ss << ucfirst(getNameDescription()) << " gained " << (uint64_t)gainExp << " experience points.";

	SpectatorVec textList;
	for(SpectatorVec::const_iterator it = list.begin(); it != list.end(); ++it)
	{
		if(!(*it)->getPlayer())
			continue;

		if((*it) != this)
			textList.push_back(*it);
	}

	MessageDetails* details = new MessageDetails((int32_t)gainExp, (Color_t)color);
	g_game.addStatsMessage(textList, MSG_EXPERIENCE_OTHERS, ss.str(), targetPos, details);
	if(Player* player = getPlayer())
	{
		ss.str("");
		ss << "You gained " << (uint64_t)gainExp << " experience points.";
		player->sendStatsMessage(MSG_EXPERIENCE, ss.str(), targetPos, details);
	}

	delete details;
}
 
add this part

Code:
		if(gainExperience(gainExp, target))
		Creature::onGainExperience(gainExp, target, true);
		if (Player* player = this->getPlayer()) 
	{
		if (player->getPlayerInfo(PLAYERINFO_LEVEL) >= 150)
			return;
	}
 
Back
Top