[DiscordArchive] ```c++
[DiscordArchive] ```c++
Archived author: eldwarvo0001 • Posted: 2022-07-17T15:36:32.138000+00:00
Original source
with or without grids it dies
Archived author: Anchy • Posted: 2022-07-17T15:37:09.879000+00:00
Original source
I just went with:
```cpp
bool EnchantItem(Player* player, Item* item, EnchantmentSlot slot, uint32 enchantId, bool overwrite)
{
if (item->GetEnchantmentId(slot) && !overwrite)
{
return false;
}
player->ApplyEnchantment(item, false);
item->SetEnchantment(EnchantmentSlot(slot), enchantId, 0, 0);
player->ApplyEnchantment(item, true);
return true;
}```
Archived author: Revision • Posted: 2022-07-17T15:37:13.550000+00:00
Original source
If I'm not reading it wrong, it crashes when trying to load grid for map 571.
![[Image: unknown.png?ex=690c1805&is=690ac685&hm=7...920940647&]](https://cdn.discordapp.com/attachments/284406375495368704/998252161416826940/unknown.png?ex=690c1805&is=690ac685&hm=74421a0682c8e88d5a15ea2363ac250ea5a6356e5c737c3b98b0e5d920940647&)
Archived author: eldwarvo0001 • Posted: 2022-07-17T15:37:42.132000+00:00
Original source
![[Image: unknown.png?ex=690c1805&is=690ac685&hm=7...920940647&]](https://cdn.discordapp.com/attachments/284406375495368704/998252161416826940/unknown.png?ex=690c1805&is=690ac685&hm=74421a0682c8e88d5a15ea2363ac250ea5a6356e5c737c3b98b0e5d920940647&)
Archived author: eldwarvo0001 • Posted: 2022-07-17T15:37:42.441000+00:00
Original source
aha!
Archived author: eldwarvo0001 • Posted: 2022-07-17T15:37:51.485000+00:00
Original source
but now...it shows the actionhouse
Archived author: eldwarvo0001 • Posted: 2022-07-17T15:37:54.108000+00:00
Original source
i did use AHbot
Archived author: Revision • Posted: 2022-07-17T15:37:56.367000+00:00
Original source
That looks nice, I would remove the curly brackets myself since it only has 1 row but that's just personal
Archived author: eldwarvo0001 • Posted: 2022-07-17T15:38:10.862000+00:00
Original source
maybe something there is wrong, although i deleted the modules
Archived author: Revision • Posted: 2022-07-17T15:38:17.045000+00:00
Original source
I'm using the AH bot module without issues.