so far I have this:
c.getPA().movePlayer(xxxx,xxxx, c.playerId * 4);
But how do I make the boss spawn on the height player index *4 too? Thanks for fast reply, btw C:
|
I wish to make an area like Fight Caves for a boss where a player only sees himself and the boss. How would I do this? I tried ripping it from fightcaves but it didn't work.
so far I have this:
c.getPA().movePlayer(xxxx,xxxx, c.playerId * 4);
But how do I make the boss spawn on the height player index *4 too? Thanks for fast reply, btw C:
[SPOIL]public void spawnNpc2(int npcType, int x, int y, int heightLevel,
int WalkingType, int HP, int maxHit, int attack, int defence) {
// first, search for a free slot
int slot = -1;
for (int i = 1; i < maxNPCs; i++) {
if (npcs[i] == null) {
slot = i;
break;
}
}
if (slot == -1) {
// Misc.println("No Free Slot");
return; // no free slot found
}
NPC newNPC = new NPC(slot, npcType);
newNPC.absX = x;
newNPC.absY = y;
newNPC.makeX = x;
newNPC.makeY = y;
newNPC.heightLevel = heightLevel;
newNPC.walkingType = WalkingType;
newNPC.HP = HP;
newNPC.MaxHP = HP;
newNPC.maxHit = maxHit;
newNPC.attack = attack;
newNPC.defence = defence;
npcs[slot] = newNPC;
}[/SPOIL]
[FIXED]
Spoiler for the fix:
Should post in the right section next time too.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |