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

Forever aol for tfs 0.2.5

wrsson

New Member
Joined
Jan 31, 2009
Messages
28
Reaction score
0
Right ive tried using

Code:
function PrepareDeath(cid, lastHitKiller, mostDamageKiller)
    if isPlayer(cid) == true then
        if (getPlayerSlotItem(cid, 2).itemid == 2196) then
                doCreatureSetDropLoot(cid, false)      
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)
        return true
        end
    end
    return true
end

But it doesnt seem to work ive added all needed to login.lua and creaturescripts but it doesnt seem to work or isnt this right script for 0.2.5? Any help appreciated :)
 
Or a source edit .. player.cpp
Code:
void Player::dropLoot(Container* corpse)
{
	if(corpse && lootDrop)
	{
		if(inventory[SLOT_NECKLACE] && inventory[SLOT_NECKLACE]->getID() == ITEM_AMULETOFLOSS &&
			getSkull() != SKULL_RED && g_game.getWorldType() != WORLD_TYPE_PVP_ENFORCED)
		{
[B][COLOR="Red"]			g_game.internalRemoveItem(inventory[SLOT_NECKLACE], 1);[/COLOR][/B]
		}
		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));
}
(remove bold red)
 
Back
Top