Adds new column to 'merchantlist' table.

Adds 'probability' after 'classes_required', valid values are 0 to 100.
This commit is contained in:
Kinglykrab committed 2014-08-21 04:05:45 -04:00
1 parent 5946af88a6
commit 8b19c76e89
10 files changed
+80 -7

No files matched your search

+1
View File
@@ -622,6 +622,7 @@ void EntityList::AddCorpse(Corpse *corpse, uint32 in_id)
void EntityList::AddNPC(NPC *npc, bool SendSpawnPacket, bool dontqueue)
{
npc->SetID(GetFreeID());
npc->SetMerchantProbability((uint8) MakeRandomInt(0, 99));
parse->EventNPC(EVENT_SPAWN, npc, nullptr, "", 0);
uint16 emoteid = npc->GetEmoteID();