IcedScape
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Need help with code on mini game

2 posters

Go down

Need help with code on mini game Empty Need help with code on mini game

Post  Carly (owner of icescape) Fri Mar 19, 2010 2:19 pm

}
} else if (npcs[i].IsDead == true) {
if (npcs[i].actionTimer == 0 && npcs[i].DeadApply == false && npcs[i].NeedRespawn == false) {
if (npcs[i].npcType == 81 || npcs[i].npcType == 397 || npcs[i].npcType == 1766 || npcs[i].npcType == 1767 || npcs[i].npcType == 1768) {
npcs[i].animNumber = 0x03E; //cow dead
} else if (npcs[i].npcType == 41) {
npcs[i].animNumber = 0x039; //chicken dead
} else if (npcs[i].npcType == 87) {
npcs[i].animNumber = 0x08D; //rat dead
} else if (npcs[i].npcType == 75) {
npcs[i].animNumber = 466; //chicken dead
} else if (npcs[i].npcType == 2026){ //Barrows Dharok
npcs[i].animNumber = 0x900;
} else if (npcs[i].npcType == 1158) {
npcs[i].animNumber = 1187; //chicken dead
} else if (npcs[i].npcType == 2025){ //Barrows Ahrim
npcs[i].animNumber = 2304;
} else if (npcs[i].npcType == 2027){ //Barrows Guthan
npcs[i].animNumber = 2304;
} else if (npcs[i].npcType == 2028){ //Barrows Karil
npcs[i].animNumber = 2304;
} else if (npcs[i].npcType == 2029){ //Barrows Torag
npcs[i].animNumber = 2304;
} else if (npcs[i].npcType == 2030){ //Barrows Verac
npcs[i].animNumber = 2304;
} else if (npcs[i].npcType == 2036){ //Barrows Skeletons
npcs[i].animNumber = 2304;
} else if (npcs[i].npcType == 83){ //Greater Demon
npcs[i].animNumber = 804;
} else if (npcs[i].npcType == 3200) {
npcs[i].animNumber = 3147; // drags: chaos ele emote ( YESSS )
} else if (npcs[i].npcType == 1605) {
npcs[i].animNumber = 1508; // drags: abberant spector ( YAY )
} else if (npcs[i].npcType == 49) {
npcs[i].animNumber = 92; //hellhound dead
} else if (npcs[i].npcType == 55) {
npcs[i].animNumber = 92; //blue dragon
} else if (npcs[i].npcType == 941) {
npcs[i].animNumber = 92; //green dragon
} else if (npcs[i].npcType == 1590) {
npcs[i].animNumber = 92; //bronze dragon
} else if (npcs[i].npcType == 1591) {
npcs[i].animNumber = 92; //iron dragon
} else if (npcs[i].npcType == 1592) {
npcs[i].animNumber = 92; //steel dragon
} else if (npcs[i].npcType == 53) {
npcs[i].animNumber = 92; //red dragon
} else if (npcs[i].npcType == 54) {
npcs[i].animNumber = 92; //black dragon
} else if (npcs[i].npcType == 2745) {
npcs[i].animNumber = 2654; //jad dead
} else if (npcs[i].npcType == 2627) {
npcs[i].animNumber = 2620; //birdy dead
} else if (npcs[i].npcType == 1160) {
npcs[i].animNumber = 1180; //birdy dead
} else if (npcs[i].npcType == 2630) {
npcs[i].animNumber = 2627; //fatty dead
} else if (npcs[i].npcType == 50) {
npcs[i].animNumber = 92; //fatty dead
} else if (npcs[i].npcType == 2740) {
npcs[i].animNumber = 2630; //fatty dead
} else if (npcs[i].npcType == 2743) {
npcs[i].animNumber = 2646; //fatty dead
} else if (npcs[i].npcType == 2741) {
npcs[i].animNumber = 2638; //fatty dead
} else {
npcs[i].animNumber = 2304; //human dead
}
if(client.killall = true) {
if (npcs[i].npcType == 2745) {
newNPC(50, 3350, 3251, p.heightLevel, 3335, 3250, 3350, 3252, 2, server.npcHandler.GetNpcListHP(50), false);
client.killallpoints += 10;
p.killallstats();
npcs[i].animNumber = 0x900;
} else if (npcs[i].npcType == 50) {
newNPC(2777, 3350, 3251, p.heightLevel, 3335, 3250, 3350, 3252, 2, server.npcHandler.GetNpcListHP(2777), false);
client.killallpoints += 20;
p.killallstats();
npcs[i].animNumber = 0x900;
} else if (npcs[i].npcType == 2777) {
newNPC(1681, 3350, 3251, p.heightLevel, 3335, 3250, 3350, 3252, 2, server.npcHandler.GetNpcListHP(1681), false);
client.killallpoints += 40;
p.killallstats();
npcs[i].animNumber = 0x900;
} else if (npcs[i].npcType == 1681) {
newNPC(1676, 3350, 3251, p.heightLevel, 3335, 3250, 3350, 3252, 2, server.npcHandler.GetNpcListHP(1676), false);
client.killallpoints += 90;
p.killallstats();
npcs[i].animNumber = 0x900;
} else if (npcs[i].npcType == 1676) {
newNPC(2745 50, 3350, 3251, p.heightLevel, 3335, 3250, 3350, 3252, 2, server.npcHandler.GetNpcListHP(2745 50), false);
client.killallpoints += 200;
p.killallstats();
npcs[i].animNumber = 0x900;
} else if (npcs[i].npcType == 2745 50) {
newNPC(1681 2777, 3350, 3251, p.heightLevel, 3335, 3250, 3350, 3252, 2, server.npcHandler.GetNpcListHP(1681 2777), false);
client.killallpoints += 3004;
p.killallstats();
npcs[i].animNumber = 0x900;
} else if (npcs[i].npcType == 1681 2777) {
newNPC(1 60 2745, 3350, 3251, p.heightLevel, 3335, 3250, 3350, 3252, 2, server.npcHandler.GetNpcListHP(1 60 2745), false);
client.killallpoints += 9000;
p.killallstats();
npcs[i].animNumber = 0x900;
} else if (npcs[i].npcType == 1 60 2745) {
newNPC(50 50 50 50, 3350, 3251, p.heightLevel, 3335, 3250, 3350, 3252, 2, server.npcHandler.GetNpcListHP(50 50 50 50), false);
client.killallpoints += 100000;
p.killallstats();
npcs[i].animNumber = 0x900;
} else if (npcs[i].npcType == 50 50 50 50) {
newNPC(2745 2745 2745, 3350, 3251, p.heightLevel, 3335, 3250, 3350, 3252, 2, server.npcHandler.GetNpcListHP(2745 2745 2745), false);
client.killallpoints += 90000000;
p.killallstats();
npcs[i].animNumber = 0x900;
} else if (npcs[i].npcType == 2745 2745 2745) {
client.killallpoints += 90900399;
p.killallstats();
sendMessage("You beat every wave!");
p.killallfinish();
}
}
npcs[i].updateRequired = true;
npcs[i].animUpdateRequired = true;
npcs[i].DeadApply = true;
npcs[i].actionTimer = 10;
if(npcs[i].followingPlayer && server.playerHandler.players[npcs[i].followPlayer] != null)
server.playerHandler.players[npcs[i].followPlayer].summonedNPCS--;
} else if (npcs[i].actionTimer == 0 && npcs[i].DeadApply == true && npcs[i].NeedRespawn == false && npcs[i] != null) {
MonsterDropItem(i);
npcs[i].NeedRespawn = true;
npcs[i].actionTimer = 60;
npcs[i].absX = npcs[i].makeX;
npcs[i].absY = npcs[i].makeY;
npcs[i].animNumber = 0x328;
npcs[i].HP = npcs[i].MaxHP;
npcs[i].updateRequired = true;
npcs[i].animUpdateRequired = true;

} else if (npcs[i].actionTimer == 0 && npcs[i].NeedRespawn == true) {
for (int j = 1; j < server.playerHandler.maxPlayers; j++) {
if (server.playerHandler.players[j] != null) {
server.playerHandler.players[j].RebuildNPCList = true;
}
}

When i compile i get this error:
NPCHandler.java:1052: 'else without ' if'
} e;se of (npc[i].npcType == 2745 2745 2745) {

Like five times
please tell me how to fix Sad
Its in the NPChandler file
if u help i might make u staff or higher in staff Smile
wish i knew how to code better Sad
Carly (owner of icescape)
Carly (owner of icescape)
Admin

Posts : 10
Join date : 2010-03-13
Age : 31

https://icescape.darkbb.com

Back to top Go down

Need help with code on mini game Empty The whole file

Post  Carly (owner of icescape) Fri Mar 19, 2010 2:24 pm

Carly (owner of icescape)
Carly (owner of icescape)
Admin

Posts : 10
Join date : 2010-03-13
Age : 31

https://icescape.darkbb.com

Back to top Go down

Need help with code on mini game Empty Re: Need help with code on mini game

Post  Joshmercer10 Fri Mar 19, 2010 2:58 pm

try Takeing that out. If that doesn't work. Then You could build off that.
Joshmercer10
Joshmercer10

Posts : 18
Join date : 2010-03-18
Age : 27

https://icescape.darkbb.com/

Back to top Go down

Need help with code on mini game Empty Re: Need help with code on mini game

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum