Thread: Dragon Claws Special Error ? Help please.

Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1 Dragon Claws Special Error ? Help please. 
    sun 0f sun
    Guest
    Dear everyone,

    i used Icanownueasy's battlescape tutorail for dragon claws special, but now i got this errors:
    Spoiler for Errors:
    Code:
                                 ^
    client.java:685: illegal start of expression
            public void keepItem3()
            ^
    client.java:685: illegal start of expression
            public void keepItem3()
                   ^
    client.java:685: ';' expected
            public void keepItem3()
                                 ^
    client.java:716: illegal start of expression
            public void keepItem4()
            ^
    client.java:716: illegal start of expression
            public void keepItem4()
                   ^
    client.java:716: ';' expected
            public void keepItem4()
                                 ^
    client.java:747: illegal start of expression
            public int itemKept1, itemKept2, itemKept3, itemKept4;
            ^
    client.java:748: illegal start of expression
            public int itemKept1Slot, itemKept2Slot, itemKept3Slot, itemKept4Slot;
            ^
    client.java:749: illegal start of expression
            public boolean itemSlot1, itemSlot2, itemSlot3, itemSlot4;
            ^
    client.java:751: illegal start of expression
            public void resetKeepItem()
            ^
    client.java:751: illegal start of expression
            public void resetKeepItem()
                   ^
    client.java:751: ';' expected
            public void resetKeepItem()
                                     ^
    client.java:757: illegal start of expression
            public int godSpellCharge = 0;
            ^
    client.java:759: illegal start of expression
            public void resetEmotes()
            ^
    client.java:759: illegal start of expression
            public void resetEmotes()
                   ^
    client.java:759: ';' expected
            public void resetEmotes()
                                   ^
    client.java:764: illegal start of expression
            public void resetAtk()
            ^
    client.java:764: illegal start of expression
            public void resetAtk()
                   ^
    client.java:764: ';' expected
            public void resetAtk()
                                ^
    client.java:775: illegal start of expression
            public void keepItemHandle()
            ^
    client.java:775: illegal start of expression
            public void keepItemHandle()
                   ^
    client.java:775: ';' expected
            public void keepItemHandle()
                                      ^
    client.java:803: illegal start of expression
            public void applyProtectItemProt()
            ^
    client.java:803: illegal start of expression
            public void applyProtectItemProt()
                   ^
    client.java:803: ';' expected
            public void applyProtectItemProt()
                                            ^
    client.java:815: illegal start of expression
            public void playerUpdate()
            ^
    client.java:815: illegal start of expression
            public void playerUpdate()
                   ^
    client.java:815: ';' expected
            public void playerUpdate()
                                    ^
    client.java:832: illegal start of expression
            public void killMyNPCs()
            ^
    client.java:832: illegal start of expression
            public void killMyNPCs()
                   ^
    client.java:832: ';' expected
            public void killMyNPCs()
                                  ^
    client.java:850: illegal start of expression
            public void deadTele()
            ^
    client.java:850: illegal start of expression
            public void deadTele()
                   ^
    client.java:850: ';' expected
            public void deadTele()
                                ^
    client.java:886: illegal start of expression
            public void resetDamage()
            ^
    client.java:886: illegal start of expression
            public void resetDamage()
                   ^
    client.java:886: ';' expected
            public void resetDamage()
                                   ^
    client.java:899: illegal start of expression
            public void ApplyDead()
            ^
    client.java:899: illegal start of expression
            public void ApplyDead()
                   ^
    client.java:899: ';' expected
            public void ApplyDead()
                                 ^
    client.java:994: illegal start of expression
            public void DropAllItems(int WhoGets)
            ^
    client.java:994: illegal start of expression
            public void DropAllItems(int WhoGets)
                   ^
    client.java:994: ';' expected
            public void DropAllItems(int WhoGets)
                                    ^
    client.java:994: ';' expected
            public void DropAllItems(int WhoGets)
                                                ^
    client.java:1056: illegal start of expression
            public void resetOtherAtk()
            ^
    client.java:1056: illegal start of expression
            public void resetOtherAtk()
                   ^
    client.java:1056: ';' expected
            public void resetOtherAtk()
                                     ^
    client.java:1062: illegal start of expression
            public int LoadPass() {
            ^
    client.java:1062: ';' expected
            public int LoadPass() {
                               ^
    client.java:1085: illegal start of expression
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
            ^
    client.java:1085: illegal start of expression
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
                   ^
    client.java:1085: ';' expected
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
                                        ^
    client.java:1085: <identifier> expected
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
                                                     ^
    client.java:1085: not a statement
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
                                                          ^
    client.java:1085: ';' expected
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
                                                                 ^
    client.java:1085: <identifier> expected
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
                                                                               ^
    client.java:1085: not a statement
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
    
    ^
    client.java:1085: ';' expected
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
    
           ^
    client.java:1085: <identifier> expected
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
    
                           ^
    client.java:1085: not a statement
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
    
                                ^
    client.java:1085: ';' expected
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
    
                                           ^
    client.java:1085: <identifier> expected
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
    
                                                           ^
    client.java:1085: not a statement
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
    
                                                                ^
    client.java:1085: ';' expected
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
    
                                                                     ^
    client.java:1085: ';' expected
            public void createProjectile(int casterY, int casterX, int offsetY, int
    offsetX, int gfxMoving, int StartHeight, int endHeight, int speed, int AtkIndex)
     {
    
                                                                                   ^
    
    client.java:1113: illegal start of expression
            public void StillGfx(int Id, int X, int Y, int Delay, int Height) {
            ^
    client.java:1113: illegal start of expression
            public void StillGfx(int Id, int X, int Y, int Delay, int Height) {
                   ^
    client.java:1113: ';' expected
            public void StillGfx(int Id, int X, int Y, int Delay, int Height) {
                                ^
    client.java:1113: <identifier> expected
            public void StillGfx(int Id, int X, int Y, int Delay, int Height) {
                                        ^
    client.java:1113: not a statement
            public void StillGfx(int Id, int X, int Y, int Delay, int Height) {
                                             ^
    client.java:1113: ';' expected
            public void StillGfx(int Id, int X, int Y, int Delay, int Height) {
                                              ^
    client.java:1113: <identifier> expected
            public void StillGfx(int Id, int X, int Y, int Delay, int Height) {
                                                      ^
    client.java:1113: not a statement
            public void StillGfx(int Id, int X, int Y, int Delay, int Height) {
                                                           ^
    client.java:1113: ';' expected
            public void StillGfx(int Id, int X, int Y, int Delay, int Height) {
                                                                ^
    client.java:1113: ';' expected
            public void StillGfx(int Id, int X, int Y, int Delay, int Height) {
                                                                            ^
    client.java:1133: illegal start of expression
            public void CreatePlayerGfx(int Id, int Delay, int Height) {
            ^
    client.java:1133: illegal start of expression
            public void CreatePlayerGfx(int Id, int Delay, int Height) {
                   ^
    client.java:1133: ';' expected
            public void CreatePlayerGfx(int Id, int Delay, int Height) {
                                       ^
    client.java:1133: <identifier> expected
            public void CreatePlayerGfx(int Id, int Delay, int Height) {
                                               ^
    client.java:1133: not a statement
            public void CreatePlayerGfx(int Id, int Delay, int Height) {
                                                    ^
    client.java:1133: ';' expected
            public void CreatePlayerGfx(int Id, int Delay, int Height) {
                                                         ^
    client.java:1133: ';' expected
            public void CreatePlayerGfx(int Id, int Delay, int Height) {
                                                                     ^
    client.java:1142: illegal start of expression
            public void directFlushOutStream() {
            ^
    client.java:1142: illegal start of expression
            public void directFlushOutStream() {
                   ^
    client.java:1142: ';' expected
            public void directFlushOutStream() {
                                            ^
    100 errors
    Druk op een toets om door te gaan. . .


    The code i used:

    Spoiler for the void:
    Code:
    	public int dragonClawsItem = 1345;
    	public int dragonClawsEmote = 6000;
    	public int dragonClawsGFX = -1;
    	public int clawSpecTimer = 0;
    
    	public void dragonClawsSpecial() {
    	if (playerEquipment[PlayerWeapon] == 1345) {
    			if (UsingSpecial) {
    			startAnimation(6000);
    			int hit = misc.random(38);
    			attackNpc.appendHit(misc.random(hit));
    			attackNpc.appendHit(hit/2);
    			specialAttack -= 25;
    			if (clawSpecTimer == 2) {
    			attackNpc.appendHit(misc.random(hit)/2);
    			attackNpc.appendHit(misc.random(hit)/3);
    			specialAttack -= 25;
    			clawSpecTimer = 0;
    			
    		}
    	}
    }


    Spoiler for My void process::
    Code:
    	public void process() {
    		if (!runStream || System.currentTimeMillis() - lastResponse >= 25000) {
    			if (!inCombat && combatDelay <= 0 && deathDelay <= 0) {
    				disconnected = true;
    			}
    		}
                    if (clickCount > 25) {
                        runStream = false;
                    }
                    clickCount--;
    		changeText126(NewHp + "", 4016);
    		damageCoordDelay--;
    		packetDelay--;
    		axeSpecDelay--;
    		emotedelay--;
    		leverDelay--;
    		telegrab--;
    		duelStartDelay--;
    		yellDelay--;
    		thiefDelay--;
    		coordError--;
    		doTeleDelay--;
    		rockDelay--;
    		fishCaughtTimer--;
    		essDelay--;
    		fletchDelay--;
    		godSpellCharge--;
    		spellHit--;
    		logDelay--;
    		eatDelay--;
    		drinkDelay--;
    		ObjectClickDelay--;
    		deathDelay--;
    		soundDelay--;
    		EntangleDelay--;
    		skullTimer--;
    		vengenceDelay--;
    		spellCastDelay--;
    		meleeDelay--;
    		teleBlockDelay--;
    		combatDelay--;
    		WaveDelay--;
    		NewAreaUpdate--;
    		SpecIncreaseDelay--;
    		statTimer--;
    		saveDelay--;
    		godDelay--;
    		cookDelay--;
    		craftDelay--;
    		defenderDelay--;
    		displayFrameDelay--;
    		walkResetdelay--;
    		displayFrameDelay2--;
    		combatProcess();
    		dragonClawsSpecial();
    
    		if (isWC)
    		{
    			getLog();
    		}
    		if (clawSpecTimer > 0) {
    		clawSpecTimer++;
    		}
    		if (isMining)
    		{
    			getRock();
    		}
    		if (isFletching && fletchDelay <= 0)
    		{
    			fletchItem();
    		}
    		if (isCrafting && craftDelay <= 0)
    		{
    			craftItem();
    		}
    		if (cookDelay == 0)
    		{
    			cookItem(cookItemAmt);
    		}
    		if (fishCaughtTimer == 0)
    		{
    			startToFish(fishDelayFinal, fishId, fishEmote, fishXP);
    			addFish();
    		}
    		if (essDelay == 0)
    		{
    			if (invSpace())
    			{
    				sendMessage("You get some Rune Essence.");
    				addItem(1436, 1);
    				addSkillXP(5 * mineXpInc, playerMining);
    				if (essDelay <= 0)
    					essDelay = 1+misc.random(2);
    				startAnimation(pickEmoteId(), 0);
    			}
    			else
    				sendMessage("Not enough space in your inventory.");
    		}
    		if (useNPCSpell)
    		{
    			spellOnNpc();
    		}
    		if (usePlayerSpell)
    		{
    			spellOnPlayer();
    		}
    		if (usedItemOnObject)
    		{
    			itemOnObject();
    		}
    		if (clickedNPC1)
    		{
    			FirstClickNpc();
    		}
    		if (clickedNPC2)
    		{
    			SecondClickNpc();
    		}
    		if (clickedObject1)
    		{
    			ObjectClick();
    		}
    		if (clickedObject2)
    		{
    			ObjectClick2();
    		}
    		if (pickupItem)
    		{
    			PickupItem();
    		}
    		if (itemOnNPC)
    		{
    			itemOnNPC();
    		}
    		if (needEquip)
    		{
    			wear();
    		}
    		if (telegrab == 0)
    		{
                                for (int i = 0; i <= Server.s.itemHandler.MaxGroundItems; i++) {
                                    if (Server.s.itemHandler.GroundItemId[i] == magicOnItemId) {
                                        if (Server.s.itemHandler.GroundItemX[i] == magicOnItemX && Server.s.itemHandler.GroundItemY[i] == magicOnItemY) {
                                            if (addItem(magicOnItemId, Server.s.itemHandler.GroundItemAmt[i])) {
                                                Server.s.itemHandler.RemoveGroundItemAll(Server.s.itemHandler.GroundItemId[i], Server.s.itemHandler.GroundItemX[i], Server.s.itemHandler.GroundItemY[i]);
                                                Server.s.itemHandler.GroundItemId[i] = -1;
                                                Server.s.itemHandler.GroundItemAmt[i] = 0;
                                                Server.s.itemHandler.GroundItemTime[i] = 0;
                                                Server.s.itemHandler.DroppedBy[i] = 0;
                                                Server.s.itemHandler.heightLvl[i] = 0;
                                                Server.s.itemHandler.DroppedByName[i] = "";
    						resetItems(3214);
                                                break;
                                            }
                                        }
                                    }
                                }
    		}
    		if (leverDelay == 0)
    		{
    			startTele(leverX, leverY, 0, 714, 715, 308, 4, 18431);
    		}
    		if (walkResetdelay == 0)
    		{
    			RemoveAllWindows();
    			playerSER = GetRunEmote(playerEquipment[playerWeapon], getItemName(playerEquipment[playerWeapon]));
    			playerSEW = GetWalkEmote(playerEquipment[playerWeapon], getItemName(playerEquipment[playerWeapon]));
    			updateRequired = true;
    			appearanceUpdateRequired = true;
    		}
    		if (defenderDelay == 0)
    		{
    			if (defenderArea())
    			{
    				if (InvItemAmt(7774) < 10 || defenderTask == 0)
    				{
    					resetAtk();
    					changeCoords(2230, 4952, 0);
    					sendMessage("Times up!");
    				}
    				else
    				{
    					deleteItem(7774, GetItemSlot(7774), 10);
    				}
    			}
    			defenderDelay = 60;
    		}
    		if (doTeleDelay == 0)
    		{
    			finishTele();
    		}
    		if (WaveDelay <= 0 && tzWave != -1 && IsInFightCave())
    		{
    			WaveDelay = 999999999;
    			SpawnNewWave();
    		}
                    if (pcStatus == 2)
                    {
                        int timeRemaining = (Server.s.pc.gameTime/2/60);
                        int voidHp = getNPCHp(3782);
                        int bluePortal = getNPCHp(3778);
                        int redPortal = getNPCHp(3780);
                        int yellowPortal = getNPCHp(3779);
                        int purplePortal = getNPCHp(3777);
                        changeText126("@dbl@Pest Control", 15894);
                        changeText126("@bla@Void Knight: @gre@"+voidHp, 15895);
                        changeText126("@blu@Blue Portal: @gre@"+bluePortal, 15897);
                        changeText126("@yel@Yellow Portal: @gre@"+yellowPortal, 15898);
                        changeText126("@dbl@Purple Portal: @gre@"+purplePortal, 15899);
                        changeText126("@red@Red Portal: @gre@"+redPortal, 15900);
                        if (timeRemaining <= 0)
                            changeText126("Time Remaining: "+Server.s.pc.gameTime/2+" Sec", 15901);
                        else
                            changeText126("Time Remaining: "+timeRemaining+" Min", 15901);
                        changeText126("", 15896);
                        changeText126("", 15902);
                        changeText126("", 15903);
                        changeText126("", 15904);
                        changeText126("", 15905);
                        changeText126("", 15906);
                    }
                    if (pcStatus == 1)
                    {
                        int timeRemaining = (Server.s.pc.gameTime/2/60);
                        if (timeRemaining <= 0)
    			timeRemaining = 0;
                        changeText126("@dbl@Pest Control", 15894);
                        changeText126("@bla@5+ Players Needed", 15895);
                        if (timeRemaining <= 0)
                            changeText126("Time Remaining: "+Server.s.pc.gameTime/2+" Sec", 15897);
                        else
                            changeText126("Time Remaining: "+timeRemaining+" Min", 15897);
                        if (Server.s.pc.gameTime > 0)
                            changeText126("@bla@Game In Progress", 15898);
                        else
                            changeText126("@bla@Game Start Delay: "+Server.s.pc.gameStartDelay/2+" Sec", 15898);
                        changeText126("@bla@Players Online: "+Server.s.playerHandler.playerCount, 15899);
                        changeText126("@bla@Players In Boat: "+Server.s.pc.playersInGame, 15900);
                        changeText126("@bla@Points: "+pcPoints, 15901);
                        changeText126("", 15896);
                        changeText126("", 15902);
                        changeText126("", 15903);
                        changeText126("", 15904);
                        changeText126("", 15905);
                        changeText126("", 15906);
                    }
    		if (poisonDelay >= 0) {
    			poisonDelay--;
    			if (poisonDelay == 0 && poisonDamage > 0) {
    				poisonDelay = 100;
    				if (hitUpdateRequired) {
    					poisonHit2 = true;
    					hitDiff2 = poisonDamage;
    					updateHp(hitDiff2, false);
    					hitUpdateRequired2 = true;
    					updateRequired = true;
    				} else {
    					poisonHit = true;
    					hitDiff = poisonDamage;
    					updateHp(hitDiff, false);
    					hitUpdateRequired = true;
    					updateRequired = true;
    				}
    				poisonDamage--;
    				if (poisonDamage == 0) {
    					sendMessage("You are healed of your poison.");
    					poisonDelay = -1;
    				}
    			}
    		}
    		if (specialAmount <= 99 && SpecIncreaseDelay <= 0)
    		{
    			specialAmount += 1;
    			SpecIncreaseDelay = 8;
    			if (needsSpecBar(playerEquipment[playerWeapon]))
    			{
    				daggerBar();
    			}
    		}
    		if (playerEquipment[playerRing] == 2570)
    		{
    			if (duelStatus != 3)
    			{
    				if (NewHp > 0 && NewHp <= getLevelForXP(playerXP[3]) / 10)
    				{
    					int wildLvl = (((absY - 3520) / 8) + 1);
    					if (wildLvl < 20 || !WildArea())
    					{
    						deleteEquipment(playerRing);
    						startTele(3226, 3129, 0, 714, 715, 308, 4, 18431);
    					}
    				}
    			}
    		}
    		if (saveDelay <= 0)
    		{
    			saveDelay = 60;
    			Server.s.playerHandler.SaveChar(this);
    			Server.s.playerHandler.SaveMoreInfo(this);
    			//Server.s.playerHandler.saveStats(Server.s.playerHandler.players[playerId]);
    		}
    		if (combatWith > 0 && Server.s.playerHandler.players[combatWith] == null)
    		{
    			combatWith = 0;
    		}
    		if (combatWith > 0 && Server.s.playerHandler.players[combatWith] != null)
    		{
    			client cbPlr = (client) Server.s.playerHandler.players[combatWith];
    			if (cbPlr.meleeDelay <= 0 || cbPlr.attackingPlayerId != playerId)
    			{
    				combatWith = 0;
    			}
    		}
    		if (combatWith2 > 0 && Server.s.npcHandler.npcs[combatWith2] == null)
    		{
    			combatWith2 = 0;
    		}
    		if (combatWith2 > 0 && Server.s.npcHandler.npcs[combatWith2] != null)
    		{
                            NPC npc = Server.s.npcHandler.npcs[combatWith2];
    			if (npc.StartKilling != playerId || !npc.IsUnderAttack || npc.NeedRespawn || npc.ActionTimer < 0 || npc.IsDead)
    			{
    				combatWith2 = 0;
    			}
    		}
    		if ((damageCoordDelay <= 0 || dir1 != -1 || dir2 != -1) && damageArea(absX, absY))
    		{
    			displayText("Ow!");
    			damageCoordDelay = 2;
    			applyPoisonPlayer(0, 5622, playerId);
    			if (hitUpdateRequired)
    			{
    				hitDiff2 = misc.random(4);
    				updateHp(hitDiff2, false);
    				hitUpdateRequired2 = true;
    				updateRequired = true;
    			}
    			else
    			{
    				hitDiff = misc.random(4);
    				updateHp(hitDiff, false);
    				hitUpdateRequired = true;
    				updateRequired = true;
    			}
    		}
    		if (undergroundPassNetsArea())
    		{
    			changeCoords(2478, 9678, 0);
    			if (hitUpdateRequired)
    			{
    				hitDiff2 = misc.random(6);
    				updateHp(hitDiff2, false);
    				hitUpdateRequired2 = true;
    				updateRequired = true;
    			}
    			else
    			{
    				hitDiff = misc.random(6);
    				updateHp(hitDiff, false);
    				hitUpdateRequired = true;
    				updateRequired = true;
    			}
    		}
    		if (IsAttackingNPC && !IsDead)
    		{
    			attackNpc();
    		}
    		if (attackingPlayer && !IsDead)
    		{
    			attackPlayer();
    		}
    		if (displayFrameDelay <= 0)
    		{
    			mainFrame();
    			displayFrameDelay = 16;
    		}
    		if (displayFrameDelay2 <= 0)
    		{
    			updateQuestTab();
    			displayFrameDelay2 = 30;
    		}
    		if (combatWith <= 0 && combatWith2 <= 0)
    		{
    			inCombat = false;
    		}
    		if (coordError == 0 && (absX <= 0 || absY <= 0))
    		{
    			changeCoords(3226, 3219, 0);
    			sendMessage("Your coords have been reset due to a bug.");
    		}
    		if (skullTimer == 0)
    		{
    			SetPkHeadIcon(0);
    		}
    		if (globalMessage.length() > 0)
    		{
    			sendMessage(globalMessage);
    			globalMessage = "";
    		}
    		if (statTimer <= 0)
    		{
    			for (int i1 = 0; i1 < playerLevel.length; i1++)
    			{
    				int xpLvl = getLevelForXP(playerXP[i1]);
    				if (playerLevel[i1] == xpLvl)
    				{
    					continue;
    				}
    				if (playerLevel[i1] < xpLvl)
    				{
    					if (i1 != 3)
    					{
    						playerLevel[i1]++;
    						setSkillLevel(i1);
    					}
    					else
    					{
    						updateHp(1, true);
    					}
    				}
    				else if (playerLevel[i1] > xpLvl)
    				{
    					if (i1 != 3)
    					{
    						playerLevel[i1]--;
    						setSkillLevel(i1);
    					}
    					else
    					{
    						updateHp(1, false);
    					}
    				}
    			}
    			statTimer = 90;
    		}
    		if (CurrentDrain > 0 || CheckIfPray())
    		{
    			DrainDelay--;
    			if (DrainDelay == 0 || DrainDelay < 0 && CheckIfPray())
    			{
    				checkDrain();
    				playerLevel[5]--;
    				if (playerLevel[5] <= 0)
    				{
    					playerLevel[5] = 0;
    					resetAllPrayers();
    					sendMessage("You have run out of prayer points!");
    				}
    				setSkillLevel(5);
    			}
    		}
    		if (HeadPray == 5)
    		{
    			if (NewHp > 0 && NewHp <= getLevelForXP(playerXP[3]) / 10)
    			{
    				updateHp(getLevelForXP(playerXP[playerPrayer]) / 25, true);
    				playerLevel[5] = 0;
    				setSkillLevel(5);
    				SetPrayHeadIcon(0);
    				CreatePlayerGfx(436, 0, 0);
    				resetAllPrayers();
    			}
    		}
    		if (IsDead || NewHp <= 0 || playerLevel[3] <= 0)
    		{
    			NewHp = 0;
    			IsDead = true;
    			ApplyDead();
    		}
    		if (NewAreaUpdate == 0)
    		{
    			UpdateArea();
    		}
    	}

    Plox tell me what the heck i did wrong...

    fixed the 100 errors and now i gained this:
    Spoiler for next errors:
    Code:
    client.java:432: cannot find symbol
    symbol  : variable attackNpc
    location: class client
                            attackNpc.appendHit(misc.random(hit));
                            ^
    client.java:433: cannot find symbol
    symbol  : variable attackNpc
    location: class client
                            attackNpc.appendHit(hit/2);
                            ^
    client.java:436: cannot find symbol
    symbol  : variable attackNpc
    location: class client
                                    attackNpc.appendHit(misc.random(hit)/2);
                                    ^
    client.java:437: cannot find symbol
    symbol  : variable attackNpc
    location: class client
                                    attackNpc.appendHit(misc.random(hit)/3);
                                    ^
    4 errors
    Druk op een toets om door te gaan. . .


    i changed attackNpc.appendHit.

    Spoiler for result::
    Code:
    client.java:433: int cannot be dereferenced
                            attacknpc.appendHit(misc.random(hit));
                                     ^
    client.java:434: int cannot be dereferenced
                            attacknpc.appendHit(hit/2);
                                     ^
    client.java:437: int cannot be dereferenced
                                    attacknpc.appendHit(misc.random(hit)/2);
                                             ^
    client.java:438: int cannot be dereferenced
                                    attacknpc.appendHit(misc.random(hit)/3);
                                             ^
    4 errors
    Druk op een toets om door te gaan. . .
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jul 2008
    Posts
    2,056
    Thanks given
    26
    Thanks received
    98
    Rep Power
    0
    Replace This...

    Code:
    	public int dragonClawsItem = 1345;
    	public int dragonClawsEmote = 6000;
    	public int dragonClawsGFX = -1;
    	public int clawSpecTimer = 0;
    
    	public void dragonClawsSpecial() {
    	if (playerEquipment[PlayerWeapon] == 1345) {
    			if (UsingSpecial) {
    			startAnimation(6000);
    			int hit = misc.random(38);
    			attackNpc.appendHit(misc.random(hit));
    			attackNpc.appendHit(hit/2);
    			specialAttack -= 25;
    			if (clawSpecTimer == 2) {
    			attackNpc.appendHit(misc.random(hit)/2);
    			attackNpc.appendHit(misc.random(hit)/3);
    			specialAttack -= 25;
    			clawSpecTimer = 0;
    			
    		}
    	}
    }
    with this

    Code:
    	public int dragonClawsItem = 1345;
    	public int dragonClawsEmote = 6000;
    	public int dragonClawsGFX = -1;
    	public int clawSpecTimer = 0;
    
    	public void dragonClawsSpecial() {
    	if (playerEquipment[PlayerWeapon] == 1345) {
    			if (UsingSpecial) {
    			startAnimation(6000);
    			int hit = misc.random(38);
    			attackNpc.appendHit(misc.random(hit));
    			attackNpc.appendHit(hit/2);
    			specialAttack -= 25;
    			if (clawSpecTimer == 2) {
    				attackNpc.appendHit(misc.random(hit)/2);
    				attackNpc.appendHit(misc.random(hit)/3);
    				specialAttack -= 25;
    				clawSpecTimer = 0;
    			}
    		}
    	}
    }
    Reply With Quote  
     

  3. #3  
    sun 0f sun
    Guest
    Quote Originally Posted by ẨřЌαdĩαņ View Post
    Replace This...

    Code:
    	public int dragonClawsItem = 1345;
    	public int dragonClawsEmote = 6000;
    	public int dragonClawsGFX = -1;
    	public int clawSpecTimer = 0;
    
    	public void dragonClawsSpecial() {
    	if (playerEquipment[PlayerWeapon] == 1345) {
    			if (UsingSpecial) {
    			startAnimation(6000);
    			int hit = misc.random(38);
    			attackNpc.appendHit(misc.random(hit));
    			attackNpc.appendHit(hit/2);
    			specialAttack -= 25;
    			if (clawSpecTimer == 2) {
    			attackNpc.appendHit(misc.random(hit)/2);
    			attackNpc.appendHit(misc.random(hit)/3);
    			specialAttack -= 25;
    			clawSpecTimer = 0;
    			
    		}
    	}
    }
    with this

    Code:
    	public int dragonClawsItem = 1345;
    	public int dragonClawsEmote = 6000;
    	public int dragonClawsGFX = -1;
    	public int clawSpecTimer = 0;
    
    	public void dragonClawsSpecial() {
    	if (playerEquipment[PlayerWeapon] == 1345) {
    			if (UsingSpecial) {
    			startAnimation(6000);
    			int hit = misc.random(38);
    			attackNpc.appendHit(misc.random(hit));
    			attackNpc.appendHit(hit/2);
    			specialAttack -= 25;
    			if (clawSpecTimer == 2) {
    				attackNpc.appendHit(misc.random(hit)/2);
    				attackNpc.appendHit(misc.random(hit)/3);
    				specialAttack -= 25;
    				clawSpecTimer = 0;
    			}
    		}
    	}
    }

    tyvm, 8 errors left.
    could you help on this?

    Spoiler for 8 errors:
    Code:
    client.java:432: int cannot be dereferenced
                            attacknpc.appendHit(misc.random(hit));
                                     ^
    client.java:433: int cannot be dereferenced
                            attacknpc.appendHit(hit/2);
                                     ^
    client.java:436: int cannot be dereferenced
                                    attacknpc.appendHit(misc.random(hit)/2);
                                             ^
    client.java:437: int cannot be dereferenced
                                    attacknpc.appendHit(misc.random(hit)/3);
                                             ^
    4 errors
    Druk op een toets om door te gaan. . .
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Jul 2008
    Posts
    2,056
    Thanks given
    26
    Thanks received
    98
    Rep Power
    0
    You need to make them attackNpc. not attacknpc (case sensitive)
    Reply With Quote  
     

  5. #5  
    sun 0f sun
    Guest
    doesn't work @ all.. now they can't find the method, i changed it to attacknpc, cause they did found that one. but than i get that error i just showed you...

    Spoiler for next errors:
    Code:
    client.java:432: cannot find symbol
    symbol  : variable attackNpc
    location: class client
                            attackNpc.appendHit(misc.random(hit));
                            ^
    client.java:433: cannot find symbol
    symbol  : variable attackNpc
    location: class client
                            attackNpc.appendHit(hit/2);
                            ^
    client.java:436: cannot find symbol
    symbol  : variable attackNpc
    location: class client
                                    attackNpc.appendHit(misc.random(hit)/2);
                                    ^
    client.java:437: cannot find symbol
    symbol  : variable attackNpc
    location: class client
                                    attackNpc.appendHit(misc.random(hit)/3);
                                    ^
    4 errors
    Druk op een toets om door te gaan. . .
    Reply With Quote  
     

  6. #6  
    Registered Member
    craig903's Avatar
    Join Date
    Sep 2007
    Age
    30
    Posts
    1,357
    Thanks given
    14
    Thanks received
    92
    Rep Power
    238
    Misc.random does not return the correct parameter for the method stated?
    Visit Rune Miracle Here
    Reply With Quote  
     

  7. #7  
    sun 0f sun
    Guest
    explain yourself pl0x.. i have to search for the good method for dealing dmg? its not Hit but??
    am i right?
    Reply With Quote  
     

  8. #8  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,871
    Thanks given
    1,854
    Thanks received
    4,745
    Rep Power
    5000
    Code:
    public int dragonClawsItem = 1345;
    public int dragonClawsEmote = 6000;
    public int dragonClawsGFX = -1;
    public int clawSpecTimer = 0;
    
    public void dragonClawsSpecial() {
    	NPC attackNpc = Server.s.npcHandler.npcs[combatWith2];
    	if (playerEquipment[PlayerWeapon] == 1345) {
    		if (UsingSpecial) {
    			startAnimation(6000);
    			int hit = misc.random(38);
    			attackNpc.appendHit(misc.random(hit));
    			attackNpc.appendHit(hit/2);
    			specialAttack -= 25;
    			if (clawSpecTimer == 2) {
    				attackNpc.appendHit(misc.random(hit)/2);
    				attackNpc.appendHit(misc.random(hit)/3);
    				specialAttack -= 25;
    				clawSpecTimer = 0;
    			
    			}
    		}
    	}
    }

    Attached image

    Reply With Quote  
     

  9. #9  
    sun 0f sun
    Guest
    Doesn't work, these errors come up.:

    Spoiler for errors (8):
    Code:
    client.java:429: cannot find symbol
    symbol  : variable PlayerWeapon
    location: class client
            if (playerEquipment[PlayerWeapon] == 1345) {
                                ^
    client.java:431: startAnimation(int,int) in Player cannot be applied to (int)
                            startAnimation(6000);
                            ^
    client.java:433: cannot find symbol
    symbol  : method appendHit(int)
    location: class NPC
                            attackNpc.appendHit(misc.random(hit));
                                     ^
    client.java:434: cannot find symbol
    symbol  : method appendHit(int)
    location: class NPC
                            attackNpc.appendHit(hit/2);
                                     ^
    client.java:435: cannot find symbol
    symbol  : variable specialAttack
    location: class client
                            specialAttack -= 25;
                            ^
    client.java:437: cannot find symbol
    symbol  : method appendHit(int)
    location: class NPC
                                    attackNpc.appendHit(misc.random(hit)/2);
                                             ^
    client.java:438: cannot find symbol
    symbol  : method appendHit(int)
    location: class NPC
                                    attackNpc.appendHit(misc.random(hit)/3);
                                             ^
    client.java:439: cannot find symbol
    symbol  : variable specialAttack
    location: class client
                                    specialAttack -= 25;
                                    ^
    8 errors
    Druk op een toets om door te gaan. . .
    Reply With Quote  
     

  10. #10  
    Registered Member Paketa's Avatar
    Join Date
    Oct 2007
    Posts
    2,681
    Thanks given
    17
    Thanks received
    82
    Rep Power
    680
    PlayerWeapon should be playerWeapon,
    setAnimation(6000) must be setAnimation(6000, 0);
    look for appendHit and add it to NPC.java
    special attack should be common sense look for 'special' and find ur other special attack etc..
    Reply With Quote  
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •