• 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!

C++ doItemSetAttribute

Elgenady

Veteran OT User
Joined
Aug 5, 2011
Messages
1,637
Solutions
35
Reaction score
351
i add this in items.cpp
Code:
            else if(tmpStrValue == "power")
             {
            if(readXMLInteger(itemAttributesNode, "value", intValue))
                it.power= intValue;
            }
and
Code:
power= 0;
and in items.h
add
Code:
alwaysOnTopOrder, power;

but when use
doItemSetAttribute(itemEx.uid, "power", 1)
don't work idk why anyone can help me in it
0.4
 
You can't just add an attribute name and expect it to magically work like you expect it to.
Once you added the attribute, you need to check for that attribute wherever you expect "power" to work, so if it should make you hit harder, you need to check for that attribute in combat health/mana functions, and wherever else you need power to work.
 
You can't just add an attribute name and expect it to magically work like you expect it to.
Once you added the attribute, you need to check for that attribute wherever you expect "power" to work, so if it should make you hit harder, you need to check for that attribute in combat health/mana functions, and wherever else you need power to work.
yea i know but i need it work like this
doItemSetAttribute(itemEx.uid, "power", 1) set items power to 1
like
doItemSetAttribute(itemEx.uid, "armor", 1)
set items armor to 1
 
Back
Top