• 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!

[C++] Retro PVP system - yellow skull problem

Drakus

New Member
Joined
Mar 21, 2010
Messages
2
Reaction score
0
Hello,

The problem I've got is - I'm trying to make retro pvp system in TFS 1.2, but due to lack of documentation I struggle to understand few functions in TFS. If anyone could help with my problem and answer several questions - I would really appreciate that.

In TFS 1.2 yellow skull is not showing at all, so after long time of trying (adding, compiling, deleting, adding...), only thing I have is that when player1 attacks player2, player1 gets white skull, but player2 already sees the other one with yellow skull (which is not wanted result) and then, when player2 attacks player1, they both see that player2 has yellow skull (which is good).
I have no idea how I did, that player1 has white skull and only player2 sees him with yellow one. Does anyone know what function does that?

Could anyone tell me what this function does:
Code:
targetPlayer->sendCreatureSkull(this);

And also could you confirm, if I am correct that:
Code:
targetPlayer->getSkull();
This one returns skull of player I targeted.
Code:
getSkull();
And this one returns my skull.

Right?

I think my programming skills are medium and I really love it, so I if I catch anything from this it will be big practise for me, but TFS is such a big application with so many objects, functions and stuff, that it's hard for me to understand everything from just the source at this point.

I hope this post is understandable. I guess I will have more questions soon.

Thank you,
 
>> In TFS 1.2 yellow skull is not showing at all

8Mq6EAn.png
 
@president vankk This is weird... I thought maybe my TFS is broken so I downloaded and compiled fresh one and still yellow skull is not appearing for me.

3c399c00e42768a3f1b122a23fc0caff.png


What did you change in your source?

Also could anyone answer the question, what this function does?
Code:
targetPlayer->sendCreatureSkull(this);

Thanks
 

Similar threads

  • Question Question
RevScripts BLOCK MC PVP
Replies
4
Views
681
Back
Top