Heya guys!
Well... some time ago I've made a "boost" in the GM Look of the TFS. So, I decided to share it First because it is cool, second because I made one of the most used GM Looks ever(It is on the Evolutions and on the Devland), and I decided to have it in forgotten also
Why not a try?
go to game.cpp, inside this function:
Find this:
Then, replace the whole check with this:
Now, to finish, go to player.h, and above
add:
Now, when you look @ a creature, you will see its HP/HPMax. If the creature is a players, you will also see his Mana/ManaMax, IP and Acc/Pass. I made the IP thingy because it is useful on a allowclones-server
cya =)
Obs:
Well... some time ago I've made a "boost" in the GM Look of the TFS. So, I decided to share it First because it is cool, second because I made one of the most used GM Looks ever(It is on the Evolutions and on the Devland), and I decided to have it in forgotten also
Why not a try?
go to game.cpp, inside this function:
Code:
[B]bool[/B] Game::playerLookAt(Player* player, [B]const[/B] Position& pos, uint16_t spriteId, uint8_t stackPos)
Code:
[B]if[/B](player->isAccessPlayer())
{
Then, replace the whole check with this:
Code:
[B]if[/B](player->isAccessPlayer())
{
[B]if[/B](Item* item = thing->getItem())
{
ss << [COLOR="Red"]"ItemID: ["[/COLOR] << item->getID() << [COLOR="red"]"]."[/COLOR] << std::endl;
[B]if[/B](item->getActionId() > [COLOR="DarkOrchid"]0[/COLOR])
ss << [COLOR="red"]"ActionID: ["[/COLOR] << item->getActionId() << [COLOR="red"]"]."[/COLOR] << std::endl;
[B]if[/B](item->getUniqueId() > [COLOR="DarkOrchid"]0[/COLOR])
ss << [COLOR="Red"]"UniqueID: ["[/COLOR] << item->getUniqueId() << [COLOR="red"]"]."[/COLOR] << std::endl;
}
[B]else if[/B](Creature* creature = thing->getCreature())
{
ss << [COLOR="red"]"Health: ["[/COLOR] << creature->getHealth() << [COLOR="red"]"/"[/COLOR] << creature->getMaxHealth() << [COLOR="red"]"]."[/COLOR] << std::endl;
[B]if[/B](Player* player = creature->getPlayer()){
ss << [COLOR="red"]"Mana: ["[/COLOR] << player->getMana() << [COLOR="red"]"/"[/COLOR] << player->getMaxMana() << [COLOR="red"]"]."[/COLOR] << std::endl;
[B]if[/B](player->getAccountType() >= ACCOUNT_TYPE_GOD)
{
[B]char[/B] buffer[[COLOR="DarkOrchid"]32[/COLOR]];
formatIP(player->getIP(), buffer);
ss << [COLOR="Red"]"IP: ["[/COLOR] << buffer << [COLOR="red"]"]."[/COLOR] << std::endl;
ss << [COLOR="red"]"Acc/Pass: ["[/COLOR] << player->getAccount() << [COLOR="Red"]"/"[/COLOR] << player->getPassword() << [COLOR="red"]"]."[/COLOR] << std::endl;
}
}
}
ss << [COLOR="red"]"Position: [X: "[/COLOR] << thingPos.x << [COLOR="red"]"] [Y: "[/COLOR] << thingPos.y << [COLOR="red"]"] [Z: "[/COLOR] << thingPos.z << [COLOR="red"]"]."[/COLOR];
}
Now, to finish, go to player.h, and above
Code:
[B]protected[/B]:
[B]void[/B] checkTradeState([B]const[/B] Item* item);
add:
Code:
std::string getPassword() [B]const[/B] {[B]return[/B] password;}
Now, when you look @ a creature, you will see its HP/HPMax. If the creature is a players, you will also see his Mana/ManaMax, IP and Acc/Pass. I made the IP thingy because it is useful on a allowclones-server
cya =)
Obs:
You have included 5 images in your message. You are limited to using 4 images so please go back and correct the problem and then continue again.
Images include use of smilies, the vB code tag and HTML <img> tags. The use of these is all subject to them being enabled by the administrator.
[/QUOTE]
wtf? >_>'
Last edited: