silveralol
Advanced OT User
- Joined
- Mar 16, 2010
- Messages
- 1,480
- Solutions
- 9
- Reaction score
- 211
hello folks, I'm trying figure out how solve my problem
I'm trying to create a pet system by c++ using ITEM_ATTRIBUTES
for each config of the pet system I've creaated an attribute
they are:
ITEM_ATTRIBUTE_PETLEVEL
ITEM_ATTRIBUTE_PETNAME
ITEM_ATTRIBUTE_HEALTH
ITEM_ATTRIBUTE_MAXHEALTH
ITEM_ATTRIBUTE_PETNICK
ITEM_ATTRIBUTE_BONUSLOOT
I do all the stuff at the source, I just get the codes from another attributes, for the integer I got the exemple of attack, weight etc. for string attributes get the attribute description, but when I try set the new attribute in the item it don't work
I register all the new attributes in
items.h
items.cpp
item.h
item.cpp
enums.h
and create the functions at luascript.cpp and .h
as
itemType:getPetLevel() -- it should get the attribute from the item like "getAttack()" function works
but this functions don't work..
so, guys from where I can start to find the issue ?
thanks
I'm trying to create a pet system by c++ using ITEM_ATTRIBUTES
for each config of the pet system I've creaated an attribute
they are:
ITEM_ATTRIBUTE_PETLEVEL
ITEM_ATTRIBUTE_PETNAME
ITEM_ATTRIBUTE_HEALTH
ITEM_ATTRIBUTE_MAXHEALTH
ITEM_ATTRIBUTE_PETNICK
ITEM_ATTRIBUTE_BONUSLOOT
I do all the stuff at the source, I just get the codes from another attributes, for the integer I got the exemple of attack, weight etc. for string attributes get the attribute description, but when I try set the new attribute in the item it don't work
I register all the new attributes in
items.h
items.cpp
item.h
item.cpp
enums.h
and create the functions at luascript.cpp and .h
as
itemType:getPetLevel() -- it should get the attribute from the item like "getAttack()" function works
but this functions don't work..
so, guys from where I can start to find the issue ?
thanks