Jump to content

I Ban U

Member
  • Content count

    19
  • Joined

  • Last visited

  1. I Ban U

    Crafting Help.

    I came across an error in crafting and when you use the needle on Red, green, etc.. leather it shows up the interface where you can choose Vambs, Chaps, or Body and when you click on one nothing happens. Any ideas? Heres my crafting.java [code]package server.model.players.skills; import server.model.players.Client; import server.Config; public class Crafting { Client c; public Crafting(Client c) { this.c = c; } public int hideType = 0, makeId = 0, amount = 0, craftType = 0, exp = 0, index = 0; public void resetCrafting() { hideType = 0; makeId = 0; amount = 0; c.craftingLeather = false; craftType = 0; } public void handleChisel(int id1, int id2) { if (id1 == 1755) cutGem(id2); else cutGem(id1); } public int[][] gems = {{1623,1727,1,50},{1621,1729,27,68},{1619,1725,34,85},{1617,1731,43,108},{1631,1712,55,138},{6571,6585,67,168}}; public void cutGem(int id) { for (int j = 0; j < gems.length; j++) { if (gems[j][0] == id) { if (c.playerLevel[c.playerCrafting] >= gems[j][2]) { c.getItems().deleteItem(id, c.getItems().getItemSlot(id),1); c.getItems().addItem(gems[j][1], 1); c.getPA().addSkillXP(gems[j][3] * Config.CRAFTING_EXPERIENCE, c.playerCrafting); break; } } } } public void handleCraftingClick(int clickId) { for (int j = 0; j < buttons.length; j++) { if (buttons[j][0] == clickId) { craftType = buttons[j][1]; amount = buttons[j][2]; checkRequirements(); break; } } } public void checkRequirements() { for (int j = 0; j < expsAndLevels.length; j++) { if (expsAndLevels[j][0] == hideType) { if (c.playerLevel[c.playerCrafting] >= expsAndLevels[j][1]) { if (c.getItems().playerHasItem(hideType, 1)) { c.getPA().closeAllWindows(); exp = expsAndLevels[j][2]; index = j; craftHides(hideType); } } else { c.sendMessage("You need a crafting level of " + expsAndLevels[j][1] + " to craft this."); } } } } public void craftHides(int id) { for (int j = 0; j < amount; j++) { if (!c.getItems().playerHasItem(id,craftType)) break; c.getItems().deleteItem(id, craftType); if (getItemToAdd() <= 0) break; c.getItems().addItem(getItemToAdd(), 1); c.getPA().addSkillXP(exp * Config.CRAFTING_EXPERIENCE, c.playerCrafting); } resetCrafting(); } public int getItemToAdd() { if (craftType == 1) { return vambs[index]; } else if (craftType == 2) { return chaps[index]; } else if (craftType == 3) { return bodys[index]; } return -1; } public int[] vambs = {1065,2487,2489,2491}; public int[] chaps = {1099,2493,2495,2497}; public int[] bodys = {1135,2499,2501,2503}; public void handleLeather(int item1, int item2) { if (item1 == 1733) { openLeather(item2); } else { openLeather(item1); } } public int[][] buttons = {{34185,1,1},{34184,1,5},{34183,1,10},{34182,1,27},{34189,2,1},{34188,2,5},{34187,2,10},{34186,2,27},{34193,3,1},{34192,3,5},{34191,3,10},{34190,3,27}}; public int[][] expsAndLevels = {{1745,62,57},{2505,66,70},{2507,73,78},{2509,79,86}}; public void openLeather(int item) { if (item == 1745) { c.getPA().sendFrame164(8880); //green dhide c.getPA().sendFrame126("What would you like to make?", 8879); c.getPA().sendFrame246(8884, 250, 1099); // middle c.getPA().sendFrame246(8883, 250, 1065); // left picture c.getPA().sendFrame246(8885, 250, 1135); // right pic c.getPA().sendFrame126("Vambs", 8889); c.getPA().sendFrame126("Chaps", 8893); c.getPA().sendFrame126("Body", 8897); hideType = item; } else if (item == 2505) { c.getPA().sendFrame164(8880); //blue c.getPA().sendFrame126("What would you like to make?", 8879); c.getPA().sendFrame246(8884, 250, 2493); // middle c.getPA().sendFrame246(8883, 250, 2487); // left picture c.getPA().sendFrame246(8885, 250, 2499); // right pic c.getPA().sendFrame126("Vambs", 8889); c.getPA().sendFrame126("Chaps", 8893); c.getPA().sendFrame126("Body", 8897); hideType = item; } else if (item == 2507) { c.getPA().sendFrame164(8880); c.getPA().sendFrame126("What would you like to make?", 8879); c.getPA().sendFrame246(8884, 250, 2495); // middle c.getPA().sendFrame246(8883, 250, 2489); // left picture c.getPA().sendFrame246(8885, 250, 2501); // right pic c.getPA().sendFrame126("Vambs", 8889); c.getPA().sendFrame126("Chaps", 8893); c.getPA().sendFrame126("Body", 8897); hideType = item; } else if (item == 2509) { c.getPA().sendFrame164(8880); c.getPA().sendFrame126("What would you like to make?", 8879); c.getPA().sendFrame246(8884, 250, 2497); // middle c.getPA().sendFrame246(8883, 250, 2491); // left picture c.getPA().sendFrame246(8885, 250, 2503); // right pic c.getPA().sendFrame126("Vambs", 8889); c.getPA().sendFrame126("Chaps", 8893); c.getPA().sendFrame126("Body", 8897); hideType = item; } c.craftingLeather = true; } }[/code]e]
  2. Hi, Im having a problem with my server that is running on a vps well first of all it was running fine the day before and I haven't changed anything since then and today I cant get on the server and so cant any of my players... I have my server running and everything in my vps and all that but the weird part is when you click log in it goes to a black screen only showing the chat box and your inventory but right after you get kicked... In my runserver CMD it says,"REGISTERED ----" but then like 3 seconds after it kicks you and say, "DEREGISTERED ----".. So it was working before as I said and I haven't changed anything so I dont know what going on.. Please help!!? Thanks [email protected]
  3. I Ban U

    Vote system

    [quote name='Vesta Main']Search in the tutorial section, there has to be one I think.[/QUOTE] alrighty
  4. I Ban U

    Vote system

    Hey guys, I need help with making a vote system, Can you do it for me please via teamviewer or something? I already have tried but didnt work, I already have a webhost acc and I have all the MYSQL details but it just ned=ed some help setting it up... Thanks, Eddie
  5. Please add new client link!! New 1 is broke THX ALOT! :)
  6. I Ban U

    Rs hacked!

    Hello der. I have been hacked and the stupid person that got on my account stole my 190m, santa, bandos chest pl8, dfs.I am soo f'in mad but ill take it as a man. :) Anywase I have tried recovernig my account but faggex is being gay. So if anyone could please give or lend me a deace account please. I cant play without my runescape! ahhhhhhhhhhhhhhh no jk but please can, u get the point. Anywase if u can hook me up wit something please replyy :) -not willing to pay for accounts so dont ask :) and yes I am the stupid one for going to the site and sucking his wingle so dont say OR ILL -dont ask for frrakin rspg cuz i got hacked obviously. AHH DUUURRR FUCKIN RAGE!:( ily you peple
  7. Hi there, I restarted my router and that makes it so you have to change you IPv4. So i went to my service provider and went to forwarding and deleted my portforward accidently. Lol, anywase all I need to do is portforward again, I have had my server online before so you shouldnt have to do anything else but pf. If you can help me it would be nice if you could do it by teamviewer. Thx and my service provider is telus for those who wanna know.
  8. I am having problems with my private server and it was cuz i restarted my router, he said to check my IPv4 address, so I got it from cmd, and typed it in my address bar, and then nothing popped up it says,"This link is broken or dose not exist. Please try this liink." So i tried the link but still the ipv4 address has no direction... Some1 plz help :) thx
  9. i type in my IPv4 address in my url but nothing comes up??? Im with telus and so I dont know what to do?
  10. Hi there, My private server was online for a long time and then I stopped putting it online, I tried putting it online today but my friend could not connect to the server. I haven't changed any of the settings or anything like that, well 1 thing, I re-downloaded utorrent and thats it. Plz help!!! Thx
  11. thx bro :) Glad ur liking it.
  12. AND ITS called having fun if u haven't noticed. Who cares if its leeched it just about having fun!!!!! GOOOOD
  13. Yes 317, I accidently put it 642 but u probs dont believe lol.
×