Acubens
Old Penguin
Its me again with a new question ;D well im triying to use g_game.addAnimatedText using item position when is created in createLootItem method inside monsters.cpp but im getting crash when monster generates the loot and touch this part of the code.
In monsters.cpp i added
Then in method
I try use
and
and
But server crash, any idea why this is happen?, my skills in c++ is low but im trying do new thigs to learn haha xD
In monsters.cpp i added
C++:
extern Game g_game;
Then in method
C++:
std::list<Item*> MonsterType::createLootItem(const LootBlock& lootBlock)
I try use
C++:
g_game.addAnimatedText(tmpItem->getItem()->getPosition(), 66, "Item looted");
and
C++:
g_game.addAnimatedText(tmpItem->getPosition(), 66, "Item looted");
and
C++:
g_game.addAnimatedText(tmpItem->getTile()->getPosition(), 66, "Item looted");
But server crash, any idea why this is happen?, my skills in c++ is low but im trying do new thigs to learn haha xD
Last edited: