Hey guys
Since I am no pro at C++, I tried to add a new item attribute. First I had a problem that the server couldn't load items.otb, but I fixed that.
Now if I start my server the new attribute works, but somehow I can't move. Every tile item is "blocking", it pushes me back. Also tile items like stone tiles are above stairs (like there is a box under the tile).
Which part of source does affect this and what did I do wrong?
Where do I need something about the new attribute?
What I did:
•items.cpp: add so the attribute is read in xml
•luascript.cpp: added on getItemInfo (not really nessecary)
•item.h: added prototype to get item attribute
•item.h: function like this:
[cpp] inline int32_t Item::get*Attribute*()[/cpp]
•items.h: added to:
[cpp]uint32_t shootRange, charges, decayTime, attackSpeed, wieldInfo, minReqLevel, minReqMagicLevel, worth, levelDoor;[/cpp]
Screen:
Edit (With debug mode on):
Since I am no pro at C++, I tried to add a new item attribute. First I had a problem that the server couldn't load items.otb, but I fixed that.
Now if I start my server the new attribute works, but somehow I can't move. Every tile item is "blocking", it pushes me back. Also tile items like stone tiles are above stairs (like there is a box under the tile).
Which part of source does affect this and what did I do wrong?
Where do I need something about the new attribute?
What I did:
•items.cpp: add so the attribute is read in xml
•luascript.cpp: added on getItemInfo (not really nessecary)
•item.h: added prototype to get item attribute
•item.h: function like this:
[cpp] inline int32_t Item::get*Attribute*()[/cpp]
•items.h: added to:
[cpp]uint32_t shootRange, charges, decayTime, attackSpeed, wieldInfo, minReqLevel, minReqMagicLevel, worth, levelDoor;[/cpp]
Screen:
Edit (With debug mode on):
Code:
[16:55:37.842] [Error - Item::CreateItem] Item 203 has been declared as deprecat
ed
[16:55:37.842] Error: [Game::transformItem] Item of type 1506 transforming into
invalid type 203
[16:55:42.822] [Error - Item::CreateItem] Item 200 has been declared as deprecat
ed
[16:55:42.823] [Error - Item::CreateItem] Item 200 has been declared as deprecat
ed
[16:55:42.823] [Error - Item::CreateItem] Item 200 has been declared as deprecat
ed
[16:55:42.824] [Error - Item::CreateItem] Item 200 has been declared as deprecat
ed
Last edited: