abdala ragab
Veteran OT User
i use tfs 1.5 and i have added this attribute boost system here
and i have added 1 new combat by follow this thread Feature - New types of DAMAGE (how to create) (https://otland.net/threads/new-types-of-damage-how-to-create.233109/)
and this Feature - New types of DAMAGE (how to create) (https://otland.net/threads/new-types-of-damage-how-to-create.233109/page-2#post-2407886)
now i try to add my new combat to the attribute boost in items.cpp and items.h
and when i add it like this in items.cpp
items.h
items.xml
and in items.h like this ITEM_PARSE_BOOSTPERCENTWAND,
i add in items.xml like this <attribute key="boostpercentwand" value="50" />
it show in game
abdalaone +1400%, abdalatwo +1400%
and it bug absorbpercentall and boostpercentphysical too i have to add something else? what my mistake
Adding features from #998 by nekiro · Pull Request #2807 · otland/forgottenserver
This pr resolves #998 I have added requested attributes, not sure if the bounty is still valid and to be claimed? Usage for dynamic reflect, reflect chance and boosts local item = player:addItem(88...
github.com
and this Feature - New types of DAMAGE (how to create) (https://otland.net/threads/new-types-of-damage-how-to-create.233109/page-2#post-2407886)
now i try to add my new combat to the attribute boost in items.cpp and items.h
and when i add it like this in items.cpp
Lua:
{"boostpercentwand", ITEM_PARSE_BOOSTPERCENTWAND},
case ITEM_PARSE_BOOSTPERCENTWAND: {
int16_t value = pugi::cast<int16_t>(valueAttribute.value());
abilities.boostPercent[combatTypeToIndex(COMBAT_ABDALAONEDAMAGE)] += value;
abilities.boostPercent[combatTypeToIndex(COMBAT_ABDALATWODAMAGE)] += value;
break;
}
Code:
ITEM_PARSE_BOOSTPERCENTWAND,
Code:
<attribute key="boostpercentwand" value="50" />
i add in items.xml like this <attribute key="boostpercentwand" value="50" />
it show in game
abdalaone +1400%, abdalatwo +1400%
and it bug absorbpercentall and boostpercentphysical too i have to add something else? what my mistake
Last edited: