Quote:
Originally Posted by Roronoa Z.
Player *player= playerBase->Find(576);
This Finds player by it's ingame Id i guess...576 is just wrong.
player ->SetDuelID(999); has to beunique
this player ->SetDuelAdversary(577);
first you have to find playerid 577...
any you also have to send the info that you're in a duel to the client..
|
mmh i think its like this:
Code:
Player *player= playerBase->Find(576);
find first player (576)
Code:
player ->SetDuelID(999);
set duelid from player (576) to 999
Code:
player ->SetDuelTimer(5000);
set dueltimer from player (576) to 5000 (just for test)
Code:
player ->SetDuelAdversary(577);
set duel enemy to (577) the second player id to know who is the enemy
Code:
player ->SetGState(2);
get the first player in duel mode...
and the same for the second player...
correct me if im wrong