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

[HELP] How can i make AOL (amulet of loss) work in pvp-enforced?

GarneT

Silence
Joined
Apr 7, 2010
Messages
190
Reaction score
1
Location
Egypt
How can i make AOL
(amulet of loss) work in
pvp-enforced? in TFS
mystic srite ?
 
Remove the red code from player.cpp and compile:
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);
		}
		else
		{
			for(int32_t i = SLOT_FIRST; i < SLOT_LAST; ++i)
			{
				Item* item = inventory[i];
				if(item)
				{
					if(((item->getContainer()) || random_range(1, 100) <= 10 || getSkull() == SKULL_RED))
					{
						g_game.internalMoveItem(this, corpse, INDEX_WHEREEVER, item, item->getItemCount(), 0);
						sendRemoveInventoryItem((slots_t)i, inventory[(slots_t)i]);
					}
				}
			}
		}
	}

	if(!inventory[SLOT_BACKPACK])
		__internalAddThing(SLOT_BACKPACK, Item::CreateItem(1987));
}
There might be a way to do it in Lua, but this is technically the fastest one.
 
can u tell me how i make source work ? I have my ot and downloaded sources of it but when i change any thing in sources . N0thing change . Where i put it to make it work or what should i do ? . I hope u understood me . Or tell me every thing about sources.
 
when i make compile and it start , after s0me seconds . It say er0rr what should i do ? Or where i get sources to tfs 0.2rc10 . Please need help
 
Back
Top