mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-04 04:12:25 +00:00
Fix rogue merchant usage under sneak.
This commit is contained in:
parent
013f7cfd21
commit
7b5ea9e99c
@ -1,5 +1,10 @@
|
|||||||
EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
EQEMu Changelog (Started on Sept 24, 2003 15:50)
|
||||||
-------------------------------------------------------
|
-------------------------------------------------------
|
||||||
|
== 10/09/2016 ==
|
||||||
|
Noudess: Rogue usage of merchants while utilizing sneak was limited to
|
||||||
|
temporary items, as the code that checked faction per item sold did not
|
||||||
|
take into account that rogue was sneaking. Now sneaking rogues can see full
|
||||||
|
inventory on merchants (well, unless an item requires a + faction value).
|
||||||
== 09/12/2016 ==
|
== 09/12/2016 ==
|
||||||
Akkadius: Massive overhaul of the update system and EQEmu Server management utility framework
|
Akkadius: Massive overhaul of the update system and EQEmu Server management utility framework
|
||||||
(known as eqemu_update.pl) now known as eqemu_server.pl
|
(known as eqemu_update.pl) now known as eqemu_server.pl
|
||||||
|
|||||||
@ -857,7 +857,17 @@ void Client::BulkSendMerchantInventory(int merchant_id, int npcid) {
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
int32 fac = merch ? merch->GetPrimaryFaction() : 0;
|
int32 fac = merch ? merch->GetPrimaryFaction() : 0;
|
||||||
if (fac != 0 && GetModCharacterFactionLevel(fac) < ml.faction_required)
|
int32 cur_fac_level;
|
||||||
|
if (fac == 0 || sneaking)
|
||||||
|
{
|
||||||
|
cur_fac_level = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
cur_fac_level = GetModCharacterFactionLevel(fac);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cur_fac_level < ml.faction_required)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
handychance = zone->random.Int(0, merlist.size() + tmp_merlist.size() - 1);
|
handychance = zone->random.Int(0, merlist.size() + tmp_merlist.size() - 1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user