• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Is this possible?

Status
Not open for further replies.

Portals

Banned
I am just wondering if it is possible to sell an item and give it no gold, for example if I remove the buy and sell price from all items I want players to be able to sell the items instead of having to destroy them but I want them to get 0 gold in return.
 

Mathex

Respected Member
With a core edit I guess that'd be possible.

So what you want to do is go into ItemHandler..

More incoming helping him on Livestream and posting the rest here in 5 minutes for further refferences.


..Guide thingy:

Go into ItemHandler.cpp

Delete this code around line 591-594
Code:
            else
                _player->SendSellError(SELL_ERR_CANT_SELL_ITEM, creature, itemguid, 0);
            return;

and this code at around 560
Code:
            if (pProto->SellPrice > 0)
            {

and it should work. :)
 
Last edited:
Status
Not open for further replies.
Top