• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

C++ Max Summons Weapons Attribute

Codinablack

Dreamer
Content Editor
Joined
Dec 26, 2013
Messages
2,124
Solutions
14
Reaction score
1,518
Location
USA
GitHub
Codinablack
I am asking for a source edit to where in like the items.xml you can put the attribute key maxSummons="2" and it will ADD to the maxsummons I have already set in the vocations.xml...
 
Ok here is what I got so far...

in items.cpp

Code:
        else if(tmpStrValue == "maxsummons")
        {
            if(readXMLInteger(itemAttributesNode, "value", intValue))
                it.maxSummons = (intValue != 0);
        }

and in items.h under


class
ItemType


Code:
        int32_t attack, extraAttack, defense, extraDefense, armor, breakChance, hitChance, maxHitChance,
            runeLevel, runeMagLevel, lightLevel, lightColor, decayTo, rotateTo, maxSummons, alwaysOnTopOrder;

Compiles fine but it doesn't work, even if I add the item to movements.xml still doesn't increase maxSummons
 
give us some information about the distro which you use, because it'll be double the work if no one knows which one it is for, since mostly things differe from one to another.

Once I know it I'll help you make it.
 
Its causing my server to crash I think... I'm not sure it was either this or my compiler and sdk and all that being updated by microsoft...
 
Back
Top