I'm trying to limit to being able to only 3 wards per castle in TerritoryWar.
So I went to TerritoryWarManager.java
in the following line:
public Territory(int castleId)
{
_castleId = castleId;
_territoryId = castleId + 80;
_territoryWardSpawnPlaces = new TerritoryNPCSpawn[9];
_questDone = new int[2];
}
so I changed from 9 to 3.
public Territory(int castleId)
{
_castleId = castleId;
_territoryId = castleId + 80;
_territoryWardSpawnPlaces = new TerritoryNPCSpawn[3];
_questDone = new int[2];
}
so I compiled and went for the test. and all goes well. but when I summon the 4th ward, she simply disappears, neither goes to me, nor goes back to her origin castle.
GameServer:
In Game:
can someone please help me fix this? I want if the player already has 3 ward in his castle, when summoning the fourth, he can not or she returns to his origin castle
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
HARDECORE
I'm trying to limit to being able to only 3 wards per castle in TerritoryWar.
So I went to TerritoryWarManager.java
in the following line:
public Territory(int castleId) { _castleId = castleId; _territoryId = castleId + 80; _territoryWardSpawnPlaces = new TerritoryNPCSpawn[9]; _questDone = new int[2]; }
so I changed from 9 to 3.
public Territory(int castleId) { _castleId = castleId; _territoryId = castleId + 80; _territoryWardSpawnPlaces = new TerritoryNPCSpawn[3]; _questDone = new int[2]; }
so I compiled and went for the test. and all goes well. but when I summon the 4th ward, she simply disappears, neither goes to me, nor goes back to her origin castle.
GameServer:
In Game:
can someone please help me fix this? I want if the player already has 3 ward in his castle, when summoning the fourth, he can not or she returns to his origin castle
Please !!
I use L2JSunrise
Edited by HARDECOREchronicle: High Five
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.