mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[9957] Alow sell item for money and extanded coset without momey in same time.
npc_vendor.ExtandedCost can be negative now that meaning: price excluded default item BuyPrice and use only abs(ExtandedCost) items). For example expected used for item 36908.
This commit is contained in:
parent
94f7a7709d
commit
67b8ca03b5
13 changed files with 51 additions and 31 deletions
|
|
@ -1129,7 +1129,7 @@ bool ChatHandler::HandleNpcAddVendorItemCommand(const char* args)
|
|||
incrtime = atol(fincrtime);
|
||||
|
||||
char* fextendedcost = strtok(NULL, " "); //add ExtendedCost, default: 0
|
||||
uint32 extendedcost = fextendedcost ? atol(fextendedcost) : 0;
|
||||
int32 extendedcost = fextendedcost ? atol(fextendedcost) : 0;
|
||||
|
||||
Creature* vendor = getSelectedCreature();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue