Zinc
New Member
okay so I've got an error with doors.
quest doors don't work after being used once.. the action ID is going away
..it's not being set to a new action id, or back to the action id..
okay. any way
I've got TFS rev 906, but accidentally compiled with the current 8.2 stuff...
so I'm pretty much running the 8.2 EXE with 8.11 items, and etc.
now I've updated most things to work and everything's fine except the doors.
a friend was helping me, and we determined it was the game.cpp and it wasn't changing it back or something.
he had to leave cause he was late to something idk
any way I'm looking to see if anyone can help me before he gets back so i can just get this done.
he said to make sure Game::TransformItem it sets the actionid of the new (transformed) item
and gave me this:
But i've looked in my game.cpp and I can't really find anything that looks close to that..
I did search for Game::transformItem and found this line that seems to what i assume to be what he was talking about.
Okay I think that was the whole thing.
Any ideas?
The doors are just Lv doors to my trainers, and other quests
using actionid 1010 and 10lvrequirement ~
I'm sure you get the most idea of what i mean
thanks if you get it
sorry if I'm just confusing and a noob lol but I'm getting the hang of most of this..
quest doors don't work after being used once.. the action ID is going away
..it's not being set to a new action id, or back to the action id..
okay. any way
I've got TFS rev 906, but accidentally compiled with the current 8.2 stuff...
so I'm pretty much running the 8.2 EXE with 8.11 items, and etc.
now I've updated most things to work and everything's fine except the doors.
a friend was helping me, and we determined it was the game.cpp and it wasn't changing it back or something.
he had to leave cause he was late to something idk
any way I'm looking to see if anyone can help me before he gets back so i can just get this done.
he said to make sure Game::TransformItem it sets the actionid of the new (transformed) item
and gave me this:
Code:
Item* newItem = g_game.transformItem(item, toId, count);
if(item->isRemoved())
env->removeItemByUID(uid);
if(newItem && newItem != item)
env->insertThing(uid, newItem);
But i've looked in my game.cpp and I can't really find anything that looks close to that..
I did search for Game::transformItem and found this line that seems to what i assume to be what he was talking about.
Code:
Item* Game::transformItem(Item* item, uint16_t newId, int32_t newCount /*= -1*/)
{
if(item->getID() == newId && (newCount == -1 || newCount == item->getSubType()))
return item;
Cylinder* cylinder = item->getParent();
if(cylinder == NULL)
return NULL;
int32_t itemIndex = cylinder->__getIndexOfThing(item);
if(itemIndex == -1)
{
#ifdef __DEBUG__
std::cout << "Error: transformItem, itemIndex == -1" << std::endl;
#endif
return item;
Okay I think that was the whole thing.
Any ideas?
The doors are just Lv doors to my trainers, and other quests
using actionid 1010 and 10lvrequirement ~
I'm sure you get the most idea of what i mean
thanks if you get it
sorry if I'm just confusing and a noob lol but I'm getting the hang of most of this..