help please?Code:client.java:12103: illegal start of expression public void fromBank(int itemID, int fromSlot, int amount) { ^ 1 error Press any key to continue . . .
how do i fix it...
~mastah
|
|
note: this is 1 of my first tuts so idk if its good
Purpose:How To make a place where ppl get barrows
Difficulty: 1/10
Credits:100% Me
Assumed Knowledge: how to add stuff
Classes Modified: item2.java,npchandler.java,autospawn.cfg,client
Procedure:
Step 1
open you autospawn and add this
Step 2Code://---------------------------------------------------------------------------------\\ //--------------------------------------BARROW-------------------------------\\ //---------------------------------------------------------------------------------\\ spawn = 2025 3159 3674 0 0 0 0 0 1 ahrims spawn = 2025 3157 3674 0 0 0 0 0 1 ahrims spawn = 2025 3155 3674 0 0 0 0 0 1 ahrims spawn = 2029 3159 3678 0 0 0 0 0 1 torag spawn = 2029 3157 3678 0 0 0 0 0 1 torag spawn = 2029 3155 3678 0 0 0 0 0 1 torag spawn = 2026 3163 3678 0 0 0 0 0 1 dharok spawn = 2026 3166 3678 0 0 0 0 0 1 dharok spawn = 2026 3166 3674 0 0 0 0 0 1 dharok spawn = 2026 3163 3674 0 0 0 0 0 1 dharok spawn = 2026 3165 3686 0 0 0 0 0 1 dharok spawn = 2027 3158 3684 0 0 0 0 0 1 guthan spawn = 2027 3160 3684 0 0 0 0 0 1 guthan spawn = 2027 3162 3684 0 0 0 0 0 1 guthan spawn = 2028 3169 3667 0 0 0 0 0 1 krails spawn = 2028 3171 3667 0 0 0 0 0 1 krails spawn = 2028 3173 3667 0 0 0 0 0 1 krails spawn = 2028 3175 3667 0 0 0 0 0 1 krails spawn = 2030 3173 3683 0 0 0 0 0 1 verac spawn = 2030 3177 3681 0 0 0 0 0 1 verac spawn = 3037 3156 3667 0 0 0 0 0 1 warning npc spawn = 3038 3159 3667 0 0 0 0 0 1 warning npc
open your npchandler.java and add this. this will make the warning npc talk
Step 3Code:if (npcs[i].npcType == 3037) { if (misc.random2(30) == 1) { npcs[i].updateRequired = true; npcs[i].textUpdateRequired = true; npcs[i].textUpdate = "Watch Out PkZone"; } } if (npcs[i].npcType == 3038) { if (misc.random2(30) == 1) { npcs[i].updateRequired = true; npcs[i].textUpdateRequired = true; npcs[i].textUpdate = "If You Need A Barrow Part Just Kill SomeOne For It"; } } if (npcs[i].npcType == 3038) { if (misc.random2(30) == 1) { npcs[i].updateRequired = true; npcs[i].textUpdateRequired = true; npcs[i].textUpdate = "No Teaming Tho"; } }
search for
Step 4Code:getnpckiller
add this under 1 of them
Step 5Code:if(npcs[NPCID].npcType == 2025) { ItemHandler.addItem(Item2.randomAhrim(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false); } if(npcs[NPCID].npcType == 2026) { ItemHandler.addItem(Item2.randomdharok(), npcs[NPCID].absX, npcs[NPCID].absY, 2, GetNpcKiller(NPCID), false); } if(npcs[NPCID].npcType == 2030) { ItemHandler.addItem(Item2.randomverac(), npcs[NPCID].absX, npcs[NPCID].absY, 2, GetNpcKiller(NPCID), false); } if(npcs[NPCID].npcType == 2029) { ItemHandler.addItem(Item2.randomtorag(), npcs[NPCID].absX, npcs[NPCID].absY, 2, GetNpcKiller(NPCID), false); } if(npcs[NPCID].npcType == 2027) { ItemHandler.addItem(Item2.randomguthan(), npcs[NPCID].absX, npcs[NPCID].absY, 2, GetNpcKiller(NPCID), false); } if(npcs[NPCID].npcType == 2028) { ItemHandler.addItem(Item2.randomkarils(), npcs[NPCID].absX, npcs[NPCID].absY, 2, GetNpcKiller(NPCID), false); }
now open your item2.java and add this
Step 6Code:public static int ahrim[] = {592,592,592,4708,592,592,592,4710,592,592,592,4712,592,592,592,4714,592,592,592}; public static int randomAhrim() { return ahrim[(int)(Math.random()*ahrim.length)]; } public static int dharok[] = {592,592,592,4716,592,592,592,4718,592,592,592,4720,592,592,592,4722,592,592,592}; public static int randomdharok() { return dharok[(int)(Math.random()*dharok.length)]; } public static int verac[] = {592,592,592,4753,592,592,592,4755,592,592,592,4757,592,592,592,4759,592,592,592}; public static int randomverac() { return verac[(int)(Math.random()*verac.length)]; } public static int torag[] = {592,592,592,4745,592,592,592,4747,592,592,592,4749,592,592,592,4751,592,592,592}; public static int randomtorag() { return torag[(int)(Math.random()*torag.length)]; } public static int guthan[] = {592,592,592,4724,592,592,592,4726,592,592,592,4728,592,592,592,4730,592,592,592}; public static int randomguthan() { return guthan[(int)(Math.random()*guthan.length)]; } public static int karils[] = {592,592,592,4732,592,592,592,4734,592,592,592,4736,592,592,592,4738,592,592,592}; public static int randomkarils() { return karils[(int)(Math.random()*karils.length)]; }
open your client java and search for
Step 7Code:Train
when you see something like this
Step 8Code:sendFrame126("@[email protected]", 180);//first emote slot sendFrame126("@[email protected]",181); sendFrame126("@[email protected]", 178); sendFrame126("@[email protected]",175); sendFrame126("@[email protected]",177); sendFrame126("@[email protected]",182); sendFrame126("@[email protected]", 185); sendFrame126("@[email protected]s", 186); sendFrame126("@[email protected]", 173); sendFrame126("@[email protected]", 179); sendFrame126("@[email protected]", 187);
add this to the list if you dont have it
Step 9Code:sendFrame126("@[email protected]", 178);
now search for
Step 10Code:case 162:
now add this
or u can either do that or make a commandCode:case 162: //barrows tele if(emotes == 0) { teleportToX = 3157; teleportToY = 3667; } else { emotes = 0; pEmote = playerSE; updateRequired = true; appearanceUpdateRequired = true; } break; //Pocket Portal case 59135: teleportToX = 3254; teleportToY = 3421; sendMessage("Pocket Portal has telported you to Varrock Bank!"); break;
damn it takes longer to post then to make lolCode:} else if (command.startsWith("barrows")) { teleportToX = 3254; teleportToY = 3421; sendMessage("welcome to barrows");
WELL IF YA HAD ANY PROBLEM FOLLOWING MY STEPS OR GOT ANY ERRORS POST ON HERE ILL HELP YOU.
REP++ if you use plz
Last edited by firenaith343; 08-15-2007 at 10:20 PM. Reason: fergot something

help please?Code:client.java:12103: illegal start of expression public void fromBank(int itemID, int fromSlot, int amount) { ^ 1 error Press any key to continue . . .
how do i fix it...
~mastah
he forgot a } under his command
right?Code:} else if (command.startsWith("barrows")) { teleportToX = 3254; teleportToY = 3421; sendMessage("welcome to barrows"); }
Thanks For Posting. - Just added To ProjectPk!![]()

another error.... this time it is in item2.javaCode:Item2.java:176: randomAhrim() is already defined in Item2 public static int randomAhrim() ^ Note: stream.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. 1 error Press any key to continue . . .

done... more errors.. GREAT HOW ABOUT I JUST DO THIS TUT AGAIN.. AND DELETE THE OTHER BARROWS IN MY FREAKING ITEM2.JAVA..
Nice tut. Ill tell my friend to add it on his server.
| « Flashing icons | Noob != Newb » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |