[DiscordArchive] Did this not work too by giving the "dual wield" spell to the npc?
[DiscordArchive] Did this not work too by giving the "dual wield" spell to the npc?
Archived author: Jyria • Posted: 2022-06-23T15:17:01.155000+00:00
Original source
Did this not work too by giving the "dual wield" spell to the npc?
Archived author: whatwere • Posted: 2022-06-23T15:18:07.476000+00:00
Original source
In LoadCreatureModelInfo there's this block
```
if (item->InventoryType != INVTYPE_WEAPON &&
item->InventoryType != INVTYPE_SHIELD &&
item->InventoryType != INVTYPE_RANGED &&
item->InventoryType != INVTYPE_2HWEAPON &&
item->InventoryType != INVTYPE_WEAPONMAINHAND &&
item->InventoryType != INVTYPE_WEAPONOFFHAND &&
item->InventoryType != INVTYPE_HOLDABLE &&
item->InventoryType != INVTYPE_THROWN &&
item->InventoryType != INVTYPE_RANGEDRIGHT)```
Archived author: whatwere • Posted: 2022-06-23T15:18:36.389000+00:00
Original source
Should be what does the trick server side at least.
Archived author: HelloKitty • Posted: 2022-06-23T16:13:33.763000+00:00
Original source
When you click the button it will call SetDungeonDifficulty which sends opcode MSG_SET_DUNGEON_DIFFICULTY and there is a core check using define MAX_DUNGEON_DIFFICULTY which you need to change if you go higher than ID 3. However, this is not enough clientside because for some reason there is a hardcoded check in the client in function lua_SetDungeonDifficulty:0x00526050 which you need to patch out.
Archived author: Matth • Posted: 2022-06-23T16:14:37.592000+00:00
Original source
I've see that opcode, but when you add your custom choice, it doesn't seem to trigger anything on server side
Archived author: HelloKitty • Posted: 2022-06-23T16:14:49.658000+00:00
Original source
Yes, because there is a hardcoded check in the client in function lua_SetDungeonDifficulty:0x00526050 (3.3.5) which you need to patch out.