• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Avesta

Yony

New Member
Joined
Sep 7, 2007
Messages
318
Reaction score
0
Location
Israel
when you 'look' on item in avesta server, you can't see the ID of the selected item (gm can't)
how do i make so gm will see the ID of the item when he look?
 
That's easy. Just Copying it from TFS codes you can get it.

In game.cpp search this function:
PHP:
bool Game::playerLookAt(uint32_t playerId, const Position& pos, uint16_t spriteId, uint8_t stackPos)

In that function, above this:
PHP:
player->sendTextMessage(MSG_INFO_DESCR, ss.str());

Paste this:
PHP:
if(player->getAccessLevel() > 0)
	{
		Item* item = thing->getItem();
		if(item)
		{
			ss << "ID: [" << item->getID() << "].";
			if(item->getActionId() > 0)
				ss << std::endl << "AID: [" << item->getActionId() << "].";
			if(item->getUniqueId() > 0)
				ss << std::endl << "UID: [" << item->getUniqueId() << "].";
			ss << std::endl;
		}
		ss << "Pos: [X: " << thingPos.x << "] [Y: " << thingPos.y << "] [Z: " << thingPos.z << "].";
	}


It will show you the ID, ActionID(AID), UniqueID(UID) and the Position(Pos).

I haven't tested it, but I think it's right.
 
Back
Top