Mateus Robeerto
Excellent OT User
for those interested in implementing some code in the source "increasemagicpercent" as the item gives % magic damage, I have an old source that already has a complete version or also has TFS 0.4 has it... can someone convert it to TFS 1.2 downgrage
TFS 0.4 that I found only folder in ITEMS.CPP
items.h
thank you very much!
TFS 0.4 that I found only folder in ITEMS.CPP
else if(tmpStrValue == "increasemagicpercent")
{
if(readXMLInteger(itemAttributesNode, "value", intValue))
it.abilities.increment[MAGIC_PERCENT] = intValue;
Evolutions by Xidaozu 0.78
Player.cppitem.hif(it.increaseMagicPercent > 0 && getVocationId() >= 9){
incmagic += it.increaseMagicPercent;
}
else if(getVocationId() <= 8 && it.increaseMagicPercent <= 15){
incmagic += it.increaseMagicPercent;
}
}
items.cppint getIncMagic() const {return items[id].increaseMagicPercent;}
and items.cppincreaseMagicPercent = 0;
combat.cppelse if(strcasecmp(strValue.c_str(), "increaseMagicPercent") == 0){
if(readXMLInteger(itemAttributesNode, "value", intValue)){
it.increaseMagicPercent = intValue;
}
}
if(player->inventory){
item = player->inventory;
int increaseMagicPercent = Item::items[item->getID()].increaseMagicPercent;
if(item && item->getSlotPosition() << i && increaseMagicPercent != 0 && player->getVocationId() >= 9){
minChange += (newMinChange * increaseMagicPercent)/100;
maxChange += (newMaxChange * increaseMagicPercent)/100;
}
else if(item && item->getSlotPosition() << i && increaseMagicPercent <= 15 && player->getVocationId() <= 8){
minChange += (newMinChange * increaseMagicPercent)/100;
maxChange += (newMaxChange * increaseMagicPercent)/100;
}
else if(item && item->getSlotPosition() << i && increaseMagicPercent >= 16 && player->getVocationId() <= 8){
minChange += 0;
maxChange += 0;
}
}
}
}
items.h
just that I found these things in the source by Xidaozu... if someone cheer up and study converter for TFS 1X example tfs 1.2 and tfs 1.5 nekiro etcint increaseMagicPercent;
thank you very much!