AvenMotions
New Member
- Jan 2, 2017
- 10
- 0
Hey there DevBest users,
So I saw this thread with the code for adding a Hall of Fame in the Hotel Landing View.
Now these are the codes:
Code:
Packet structure:
In your external flash texts you need to make sure you have these:
Now I have no idea how to add these and I'm not really familiar with anything except for adding the External Texts. I want to change it from highest players with Diamonds to the lowest players how do I set this up and how do I add these codes?
(Im using PlusEmu Build R2)
Greetings,
Emiel K
So I saw this thread with the code for adding a Hall of Fame in the Hotel Landing View.
Now these are the codes:
Code:
static const int CommunityGoalHallOfFameWidget = 2208;
Packet structure:
Code:
Response res(Outgoing::CommunityGoalHallOfFameWidget);
res.writeString("africaDesert"); // external variables: landing.view.competition.hof.
res.writeInt(hall_of_fame.size());
for (Player *winner : hall_of_fame) {
res.writeInt(winner->getDetails()->id);
res.writeString(winner->getDetails()->username);
res.writeString(winner->getDetails()->figure);
res.writeInt(winner->getDetails()->rank);
res.writeInt(9001); // Number of points
}
player->getNetworkConnection()->send(res);
In your external flash texts you need to make sure you have these:
Code:
landing.view.competition.hof.africaDesert.rankdesc.leader=Ancient Temple room competition winner
landing.view.competition.hof.africaDesert.rankdesc.other=Ancient Temple room competition runner-up
Now I have no idea how to add these and I'm not really familiar with anything except for adding the External Texts. I want to change it from highest players with Diamonds to the lowest players how do I set this up and how do I add these codes?
(Im using PlusEmu Build R2)
Greetings,
Emiel K