Skip to content

Commit

Permalink
Fixed issue from previous modification of autosell (tp scrolls no lon…
Browse files Browse the repository at this point in the history
…ger cause some weird messagE)
  • Loading branch information
nooperation committed Sep 17, 2022
1 parent 6187efd commit 6793904
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion D2Hackit/Modules/autoSell/AutoSell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ void AutoSell::RestockScrolls()
}

this->numTPTomesToRefill = 0;
this->Stop();
}


Expand All @@ -252,8 +253,13 @@ void AutoSell::OnNpcItemList(const ITEM& merchantItem)
return;
}

this->merchantTpScrollId = merchantItem.dwItemID;
// scroll of town portal is flagged as an npc item for some reason. we'll trigger here no matter what if it drops?
if (!me->IsUIOpened(UI_NPCSHOP))
{
return;
}

this->merchantTpScrollId = merchantItem.dwItemID;
if (this->currentState == State::Uninitialized)
{
Start(true);
Expand Down

0 comments on commit 6793904

Please sign in to comment.