Quote:
Originally Posted by Armandito13x
In which part of the emulator, that is placed.
|
Firstly; You need found your ShipInitializationCommand and ShipCreateCommand for while your ship is starting and other ships are being created; You need to change the received information.
Sample: This is your code of ship creation. (other players)
Code:
public ShipCreateCommand(int pMapEntityId,
String pShipLootId, int pExpansionStage,
String pClanTag, String pUsername,
int pPositionX,int pPositionY,
int pFactionId, int pRingsCount) {
this.mMapEntityId = pMapEntityId;// User ID or NPC ID
this.mShipLootId = pShipLootId;//pShipLootId
this.mExpansionStage = pExpansionStage;
this.mClanTag = pClanTag;
this.mUsername = pUsername;
this.mPositionX = pPositionX;
this.mPositionY = pPositionY;
this.mFactionId = pFactionId;
this.mRingsCount = pRingsCount;
}
And this is your ShipCreateCommand on Player.java;
Code:
public ShipCreateCommand getShipCreateCommand() {
return new ShipCreateCommand(this.getMapEntityId(), //user id
this.getShipLootId(), // ship loot id
this.getAccount()
.getExpansionStage(), // cargo size
this.getAccount()
.getClanTag(), // clan tag
this.getAccount()
.getShipUsername(), // username
this.getCurrentPositionX(), // x position
this.getCurrentPositionY(), // y position
this.getAccount()
.getFactionId(), // faction id (mmo/eic/vru)
100, // rings count (100 = crown / 63 = 6 ring)
);
}
Now the first code I give is code to create ships.
And in your emulator, when you see other players; this ShipCreateCommand start to work with the player information you see.
And as you can see, the order of the information is the same as ShipCreateCommand.
So you need change rings count in your getShipCreateCommand for see crown etc..
The code in the second code I provide is the number of rings.
And ShipInitializationCommand just work like that.
ShipInitializationCommand for your ship informations in game.
ShipCreateCommand for other ship informations in game.
Maybe my english not so good for describe this but i think you can understand me.