Main Menu

Blank Scrolls[Pending Haks]

Started by dagesh, Apr 18, 2014, 12:34 AM

Previous topic - Next topic

dagesh

Can we stack these bad boys?

I'll scrap up a stack check script for x2_inc_craft if necessary.

Not Batman

The problem with stacking them, is that sometimes they will then take every scroll and make it into a scroll that you're trying to scribe.

dagesh

The following has been tested and works as desired:



in "x2_inc_craft" replace line 554 [[DestroyObject (oSpellTarget);]] with this:



    int nStack = GetItemStackSize( oSpellTarget );

    if( nStack > 1 )
        SetItemStackSize( oSpellTarget, --nStack );
    else
        DestroyObject( oSpellTarget );





You could also use the same exact code at line 468 for potions and 647 for wands.



Important Note: x2_inc_spellhook & x2_pc_craft must both be compiled and included in the module's list of compiled scripts.

Vincent07

Cool.  I'll make the Baseitem.2da changes for the update then.
"You think any of it matters? The things we did? The lives we destroyed. That's all that's ever gonna count. So, yeah, surprise. You're going to hell. We both are." -Angel

dagesh


The Red Mage


Garage Trashcan

Thanks, dagesh, for joining CD.

No, really, you keep throwing things at us that were like, "This'll NEVER work!"

And then you're like, "Nope, it totally does. Here."
Torsten Solberg - Jovial Jotunkind
Halonya Gabranth - Paladin of Hoar
Veldan Goldwalker - Goldwalker CSF CEO, Eastern Branch
Retired PCs: Felix Greentrack, Nikolai Mikhailovich