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

Tfs 0.3.6 pvp-enf + aol

demonlight

New Member
Joined
Aug 18, 2007
Messages
29
Reaction score
0
hi =]

Apparently the Amulet of Loss was configured to not work on PVP-ENF in TFS...

Is it possible to make it work again? On pvp-enforced mode?:confused:


ty! ;)
 
player.cpp & remove bold red
Code:
bool Player::onDeath()
{
	Item* preventLoss = NULL;
	Item* preventDrop = NULL;
	if(getZone() == ZONE_PVP)
	{
		setDropLoot(LOOT_DROP_NONE);
		setLossSkill(false);
	}
	else if(skull < SKULL_RED[B][COLOR="Red"] && g_game.getWorldType() != WORLD_TYPE_PVP_ENFORCED[/COLOR][/B])
 
player.cpp & remove bold red
Code:
bool Player::onDeath()
{
	Item* preventLoss = NULL;
	Item* preventDrop = NULL;
	if(getZone() == ZONE_PVP)
	{
		setDropLoot(LOOT_DROP_NONE);
		setLossSkill(false);
	}
	else if(skull < SKULL_RED[B][COLOR="Red"] && g_game.getWorldType() != WORLD_TYPE_PVP_ENFORCED[/COLOR][/B])

thank u so much! =D now im just figuring out how to work with sources... but, i wont piss u off anymore... i will search for it! thanks again! =]
 
dev++, download the sources from a thread that you got the your server from, then read a tutorial on how to compile the latest sources for tfs.



Nothing hard, but if you still need help please ask :]
 
dev++, download the sources from a thread that you got the your server from, then read a tutorial on how to compile the latest sources for tfs.



Nothing hard, but if you still need help please ask :]


Yeah, Ive learned how to compile, but after this change in player.cpp one error ocurred:

../player.cpp: In member function `virtual bool Player::eek:nDeath()':
../player.cpp:2119: error: expected `)' before '{' token

make.exe: *** [obj//player.o] Error 1

can anyone help me?? =[

things are like this:

bool Player::eek:nDeath()
{
Item* preventLoss = NULL;
Item* preventDrop = NULL;
if(getZone() == ZONE_PVP)
{
setDropLoot(LOOT_DROP_NONE);
setLossSkill(false);
}
else if(skull < SKULL_RED
{
Item* item = NULL;
for(int32_t i = SLOT_FIRST; ((skillLoss || lootDrop == LOOT_DROP_FULL) && i < SLOT_LAST); ++i)
{
 
Code:
bool Player::onDeath()
{
	Item* preventLoss = NULL;
	Item* preventDrop = NULL;
	if(getZone() == ZONE_PVP)
	{
		setDropLoot(LOOT_DROP_NONE);
		setLossSkill(false);
	}
	else if(skull < SKULL_RED)
	{
		for(int32_t i = SLOT_FIRST; ((skillLoss || lootDrop == LOOT_DROP_FULL) && i < SLOT_LAST); ++i)
 
player.cpp, remove bold red:
Code:
void Player::dropLoot(Container* corpse)
{
	if(corpse && lootDrop)
	{
		if(inventory[SLOT_NECKLACE] && inventory[SLOT_NECKLACE]->getID() == ITEM_AMULETOFLOSS &&
			getSkull() != SKULL_RED[B][COLOR="Red"] && g_game.getWorldType() != WORLD_TYPE_PVP_ENFORCED[/COLOR][/B])
		{
			g_game.internalRemoveItem(inventory[SLOT_NECKLACE], 1);
		}
 
Well i've tried to compile it but everytime i do i get like a shit load of errors, so idk.

I followed the tutorial to the line and still get errors.
 
Back
Top