Jump to content

RandQm

Member
  • Content count

    93
  • Joined

  • Last visited

About RandQm

  • Rank
    Iron Member
  • Birthday 03/01/1993
  1. [quote name='hixie']Question how do i make a compiler? Great Release but if it has 100 errors[/QUOTE] It's anti leech, also use an IDE
  2. [CENTER][SIZE=3][COLOR=navy][I] [img]http://i.imgur.com/3xKos.png[/img] No need to go list what has been done, since almost everything has been written from scratch. You can still search my development thread on mscp if you really want to. Full of unique systems and a bunch of content.[/I][/COLOR][/SIZE] [size="12"][color="green"][b]Media:[/b][/color][/size] [img]http://i.imgur.com/Xgr3G.png[/img] [img]http://i.imgur.com/Xgr3G.png[/img] [img]http://i.imgur.com/DYaeP.png[/img] [img]http://i.imgur.com/KY7ni.png[/img] [img]http://i.imgur.com/ZAKUj.png[/img] [img]http://i.imgur.com/zmZzR.png[/img] [img]http://i.imgur.com/zlCLO.png[/img] [img]http://i.imgur.com/HPWzs.png[/img] [img]http://i.imgur.com/vPoPj.png[/img] [img]http://i.imgur.com/25jyk.png[/img] [img]http://i.imgur.com/V3Chm.png[/img] [img]http://i.imgur.com/CQz3s.png[/img] [img]http://i.imgur.com/xWVxU.png[/img] vids: [url]https://www.youtube.com/watch?v=snP9xujnKOQ&feature=player_embedded[/url] [url]https://www.youtube.com/watch?v=rIfi-ql-CGY&feature=player_embedded[/url] [size="12"][color="red"][b]Credits:[/b][/color][/size] Myself T_R [size="14"][color="purple"][b]Downloads:[/b][/color][/size] [b]The official client we used (with auto cache downloader):[/b] [url]http://www.mediafire.com/?5ur51hffky9kq9k[/url] [b]Cache:[/b] [url]https://dl.dropbox.com/s/qo32q318d4qeaw0/cache.zip[/url] [b]Source:[/b] [url]http://www.mediafire.com/?6wdcw0t0h22bn69[/url] [/CENTER] [size="11"][color="orange"][b]* DO NEVER (RE)RELEASE THIS ANYWHERE WITHOUT MY PERMISSION * DO ALWAYS GIVE ME PROPER CREDITS WHEN USING THIS BASE OR IT'S CONTENT[/b][/color][/size]
  3. [B]Tomorrow will be updated: more npcs able to train herblore (talk to kaqemeex on varrock square) monster, pk & minigame teleports.[/B] Updated client links added, the old ones will still work but it's recommended to dl the new one though. [url]http://www.mediafire.com/?n3x8ujoqyayde9c[/url] [url]http://up.ht/PtzaKA[/url]
  4. The server is now officially online 24/7! Please keep in mind that this is beta, so the game is pretty empty still, a lot of connections to minigames ect. still have to be added, aswell does a lot of other content. We'd appreciate it a lot, if you could post bugs/problems and suggestions on the forums. [url]www.dalacity.com[/url] [b]Download the client here:[/b] [url]http://up.ht/OS0TDR[/url] [b]or here:[/b] [url]http://www.sendspace.com/file/ln950y[/url] [b]or here:[/b] [url]http://www.mediafire.com/?wjb9dhj4120stxs[/url]
  5. We're online tomorrow due vps issues it's delayed
  6. [center][font="verdana"][size="10"][color="red"][b]Project Zeta: DalaCity[/b][/color][/size][/font][/center] [b]Progress:[/b] [color="orange"][b]beta[/b][/color] [b]Official Release date:[/b] [color="green"][b]23 September 2012[/b][/color] Updated client links added, the old ones will still work but it's recommended to dl the new one though. [url]http://www.mediafire.com/?n3x8ujoqyayde9c[/url] [url]http://up.ht/PtzaKA[/url] [b]Visit the forums here:[/b] [url]www.dalacity.com[/url] [color="orange"]Please report all bugs, problems, suggestions on the forums[/color] [size="6"][color="purple"][b]Introduction:[/b][/color][/size] We are here to present you DalaCity. This can be kept short, We aim to create a fun rsps, influenced by both the old rs06 feeling and the rsps spirit, and most important: centering the player and not donations. Therefor our goals are to create a lot like how it was in 06, but also implement originality. Because originality is something that seems to be dead in the rsps development scene apart from a few exceptions. On that donators will not get any advantages that could unstable the equal gameplay between P2P & F2P. [size="6"][color="purple"][b]Team:[/b][/color][/size] RandQm: Programmer Mister Master (Master Lop): advertising, forums, data input (npcs, definitons) [color=navy][b]We are still looking for some one that wants (and can) to do graphics. Add me on skype if you are interested: randqm13[/b][/color] [size="6"][color="purple"][b]CheckList:[/b][/color][/size] [color="navy"][b]Skills:[/b][/color] [list] [*][b]Combat:[/b] [list] [*][color="green"]Rewrite combat from scratch. (range, magic, melee, prayer)[/color] [*][color="green"]All special attacks with right effects.[/color] [*][color="orange"]All magic spells with right effects.[/color] [*][color="green"]Full multi target spells[/color] [*][color="green"]All bones bury-able[/color] [*][color="green"]More correct prayer draining[/color] [*][color="orange"]Decent formulas[/color] [/list] [*][b]Runecrafting[/b] [list] [*][color="green"]All runes working with multiplying by level[/color] [/list] [*][b]Agility:[/b] [list] [*][color="orange"]Unique usage of ticket system.[/color] [*][color="green"]Barbarian, Pyramid & Gnome courses.[/color] [/list] [*][b]Thieving:[/b] [list] [*][color="green"]All stalls with right items - chances & timers.[/color] [*][color="green"]All npcs with right items - chances & timers.[/color] [/list] [*][b]Herblore:[/b] [list] [*][color="green"]Identifying herbs[/color] [*][color="green"]Making all potions with right ingredients[/color] [*][color="orange"]potion mixing[/color] [/list] [*][b]Crafting:[/b] [list] [*][color="green"]Tanning[/color] [*][color="green"]Hide crafting[/color] [*][color="green"]gem cutting[/color] [*][color="green"]amulet making[/color] [/list] [*][b]Fletching:[/b] [list] [*][color="green"]Right interfaces[/color] [*][color="green"]Arrows & stringing[/color] [/list] [*][b]Slayer:[/b] [list] [*][color="red"]No clue yet.[/color] [/list] [*][b]Mining:[/b] [list] [*][color="green"]All ores working with influenced mining timers[/color] [*][color="green"]Random gems event[/color] [*][color="green"]empty & respawning of rocks with the right timers[/color] [/list] [*][b]Smithing:[/b] [list] [*][color="green"]Smelting with interface[/color] [*][color="green"]Smithing with interface[/color] [/list] [*][b]Fishing:[/b] [list] [*][color="green"]All fishes with item & bait requirements.[/color] [*][color="orange"]Influenced timers.[/color] [/list] [*][b]Cooking:[/b] [list] [*][color="green"]All fish cookable with interfaces & timers.[/color] [*][color="red"]Baking with interfaces[/color] [/list] [*][b]Firemaking:[/b] [list] [*][color="green"]Clipped firemaking with directions[/color] [/list] [*][b]Woodcutting:[/b] [list] [*][color="green"]All trees working with influenced timers[/color] [*][color="green"]stumping & respawning with right timers[/color] [/list] [*][b]Farming[/b] [list] [*][color="green"]All plants working in growing stages, must be watered, timers.[/color] [/list] [/list] [color="navy"][b]Minigames:[/b][/color] [list] [*][color="green"]FightPits[/color] [*][color="green"]Tzhaar[/color] [*][color="green"]Pest Control[/color] [*][color="red"]Duel Arena[/color] [*][color="red"]Castle Wars[/color] [*][color="red"]Party Room[/color] [*][color="red"]Custom minigame[/color] [/list] [color="navy"][b]Misc:[/b][/color] [list] [*][color="red"]Quests[/color] [*][color="green"]Load itemdefinitions, bonuses & requirements via XML[/color] [*][color="green"]Anti-auto clicking system[/color] [*][color="red"]Random events[/color] [*][color="green"]Unique advanced jailing system[/color] [*][color="green"]pking streak with anti cheat[/color] [*][color="green"]All global changed objects (stumps ect..) visible for all players also at region changing and logging.[/color] [*][color="green"]All pickables[/color] [*][color="green"]Clipped player following[/color] [*][color="green"]Clipped npcs, returning to spawnpoint when moved out due e.g. combat[/color] [*][color="green"]SkillGuides[/color] [*][color="green"]All potions working with right effects[/color] [*][color="green"]All eatables[/color] [*][color="orange"]Traveling system with congifs[/color] [*][color="green"]100% mithril seeds.[/color] [*][color="orange"]Dalacity points (unique ways to earn - secret until beta)[/color] [/list] [size="6"][color="purple"][b]Media:[/b][/color][/size] [url=http://www.youtube.com/watch?v=snP9xujnKOQ&feature=youtu.be]DalaCity: Mithril seeds. - YouTube[/url] [url=http://www.youtube.com/watch?v=rIfi-ql-CGY&feature=youtu.be]DalaCity: Firemaking & Woodcutting - YouTube[/url] [url=http://www.youtube.com/watch?v=qxFBfhekfgE&feature=youtu.be]DalaCity: Jailing system. - YouTube[/url] [i]skip to 35-40s ^[/i] [url=http://www.youtube.com/watch?v=0mHpKNn_E9g&feature=youtu.be]DalaCity: Clipped player following. - YouTube[/url] [url=http://www.youtube.com/watch?v=T_Su9yAxoKI&feature=youtu.be]DalaCity: Combat - YouTube[/url] [url=http://www.youtube.com/watch?v=Arp8s6CR5x0&feature=youtu.be]DalaCity: NPC life - YouTube[/url] [url=http://www.youtube.com/watch?v=fe1RsZUkk1A&feature=youtu.be]DalaCity: Farming - YouTube[/url] [img]http://i.imgur.com/V3Chm.png[/img] [img]http://i.imgur.com/PLscV.png[/img] [img]http://i.imgur.com/i7zLU.png[/img] [img]http://i.imgur.com/ZjNXb.png[/img] [img]http://i.imgur.com/pZ3H9.png[/img] [img]http://i.imgur.com/qhaWP.png[/img] [img]http://i.imgur.com/CQz3s.png[/img] [img]http://i.imgur.com/xWVxU.png[/img] [img]http://i.imgur.com/1o7Wz.png[/img] [url=http://www.youtube.com/watch?v=3K4DwpLMEAc&feature=youtu.be]DalaCity: Anti-autoclicking system. - YouTube[/url] Coming more soon...
  7. RandQm

    [PZ] DalaCity

    [center][font="verdana"][size="10"][color="red"][b]Project Zeta: DalaCity[/b][/color][/size][/font][/center] [b]Progress:[/b] [color="red"][b]Pre-Beta[/b][/color] [b]Beta Release date:[/b] [color="green"][b]15 September 2012[/b][/color] [size="6"][color="purple"][b]Introduction:[/b][/color][/size] We are here to present you DalaCity. This can be kept short, We aim to create a fun rsps, influenced by both the old rs06 feeling and the rsps spirit, and most important: centering the player and not donations. Therefor our goals are to create a lot like how it was in 06, but also implement originality. Because originality is something that seems to be dead in the rsps development scene apart from a few exceptions. On that donators will not get any advantages that could unstable the equal gameplay between P2P & F2P. [size="6"][color="purple"][b]Team:[/b][/color][/size] RandQm: Programmer Mister Master (Master Lop): advertising, forums, data input (npcs, definitons) [color=navy][b]We are still looking for some one that wants (and can) to do graphics. Add me on skype if you are interested: randqm13[/b][/color] [size="6"][color="purple"][b]CheckList:[/b][/color][/size] [color="navy"][b]Skills:[/b][/color] [list] [*][b]Combat:[/b] [list] [*][color="green"]Rewrite combat from scratch. (range, magic, melee, prayer)[/color] [*][color="green"]All special attacks with right effects.[/color] [*][color="orange"]All magic spells with right effects.[/color] [*][color="green"]Full multi target spells[/color] [*][color="green"]All bones bury-able[/color] [*][color="green"]More correct prayer draining[/color] [*][color="orange"]Decent formulas[/color] [/list] [*][b]Runecrafting[/b] [list] [*][color="green"]All runes working with multiplying by level[/color] [/list] [*][b]Agility:[/b] [list] [*][color="orange"]Unique usage of ticket system.[/color] [*][color="green"]Barbarian, Pyramid & Gnome courses.[/color] [/list] [*][b]Thieving:[/b] [list] [*][color="green"]All stalls with right items - chances & timers.[/color] [*][color="green"]All npcs with right items - chances & timers.[/color] [/list] [*][b]Herblore:[/b] [list] [*][color="green"]Identifying herbs[/color] [*][color="green"]Making all potions with right ingredients[/color] [*][color="orange"]potion mixing[/color] [/list] [*][b]Crafting:[/b] [list] [*][color="green"]Tanning[/color] [*][color="green"]Hide crafting[/color] [*][color="green"]gem cutting[/color] [*][color="green"]amulet making[/color] [/list] [*][b]Fletching:[/b] [list] [*][color="green"]Right interfaces[/color] [*][color="green"]Arrows & stringing[/color] [/list] [*][b]Slayer:[/b] [list] [*][color="red"]No clue yet.[/color] [/list] [*][b]Mining:[/b] [list] [*][color="green"]All ores working with influenced mining timers[/color] [*][color="green"]Random gems event[/color] [*][color="green"]empty & respawning of rocks with the right timers[/color] [/list] [*][b]Smithing:[/b] [list] [*][color="green"]Smelting with interface[/color] [*][color="green"]Smithing with interface[/color] [/list] [*][b]Fishing:[/b] [list] [*][color="green"]All fishes with item & bait requirements.[/color] [*][color="orange"]Influenced timers.[/color] [/list] [*][b]Cooking:[/b] [list] [*][color="green"]All fish cookable with interfaces & timers.[/color] [*][color="red"]Baking with interfaces[/color] [/list] [*][b]Firemaking:[/b] [list] [*][color="green"]Clipped firemaking with directions[/color] [/list] [*][b]Woodcutting:[/b] [list] [*][color="green"]All trees working with influenced timers[/color] [*][color="green"]stumping & respawning with right timers[/color] [/list] [*][b]Farming[/b] [list] [*][color="green"]All plants working in growing stages, must be watered, timers.[/color] [/list] [/list] [color="navy"][b]Minigames:[/b][/color] [list] [*][color="green"]FightPits[/color] [*][color="green"]Tzhaar[/color] [*][color="green"]Pest Control[/color] [*][color="red"]Duel Arena[/color] [*][color="red"]Castle Wars[/color] [*][color="red"]Party Room[/color] [*][color="red"]Custom minigame[/color] [/list] [color="navy"][b]Misc:[/b][/color] [list] [*][color="red"]Quests[/color] [*][color="green"]Load itemdefinitions, bonuses & requirements via XML[/color] [*][color="green"]Anti-auto clicking system[/color] [*][color="red"]Random events[/color] [*][color="green"]Unique advanced jailing system[/color] [*][color="green"]pking streak with anti cheat[/color] [*][color="green"]All global changed objects (stumps ect..) visible for all players also at region changing and logging.[/color] [*][color="green"]All pickables[/color] [*][color="green"]Clipped player following[/color] [*][color="green"]Clipped npcs, returning to spawnpoint when moved out due e.g. combat[/color] [*][color="green"]SkillGuides[/color] [*][color="green"]All potions working with right effects[/color] [*][color="green"]All eatables[/color] [*][color="orange"]Traveling system with congifs[/color] [*][color="green"]100% mithril seeds.[/color] [*][color="orange"]Dalacity points (unique ways to earn - secret until beta)[/color] [/list] [size="6"][color="purple"][b]Media:[/b][/color][/size] [url=http://www.youtube.com/watch?v=snP9xujnKOQ&feature=youtu.be]DalaCity: Mithril seeds. - YouTube[/url] [url=http://www.youtube.com/watch?v=rIfi-ql-CGY&feature=youtu.be]DalaCity: Firemaking & Woodcutting - YouTube[/url] [url=http://www.youtube.com/watch?v=qxFBfhekfgE&feature=youtu.be]DalaCity: Jailing system. - YouTube[/url] [i]skip to 35-40s ^[/i] [url=http://www.youtube.com/watch?v=0mHpKNn_E9g&feature=youtu.be]DalaCity: Clipped player following. - YouTube[/url] [url=http://www.youtube.com/watch?v=T_Su9yAxoKI&feature=youtu.be]DalaCity: Combat - YouTube[/url] [url=http://www.youtube.com/watch?v=Arp8s6CR5x0&feature=youtu.be]DalaCity: NPC life - YouTube[/url] [url=http://www.youtube.com/watch?v=fe1RsZUkk1A&feature=youtu.be]DalaCity: Farming - YouTube[/url] [img]http://i.imgur.com/V3Chm.png[/img] [img]http://i.imgur.com/PLscV.png[/img] [img]http://i.imgur.com/i7zLU.png[/img] [img]http://i.imgur.com/ZjNXb.png[/img] [img]http://i.imgur.com/pZ3H9.png[/img] [img]http://i.imgur.com/qhaWP.png[/img] [img]http://i.imgur.com/CQz3s.png[/img] [img]http://i.imgur.com/xWVxU.png[/img] [img]http://i.imgur.com/1o7Wz.png[/img] [url=http://www.youtube.com/watch?v=3K4DwpLMEAc&feature=youtu.be]DalaCity: Anti-autoclicking system. - YouTube[/url] Coming more soon...
  8. [quote name='axter']Looks really nice![/QUOTE] are you kidding me
  9. This is a release from 11 april, i passed on rl and decided to post it here. [center][img]http://img703.imageshack.us/img703/821/94473689.png[/img] [size=5][b]Release: Utopia Clean/Blank Version[/b][/size] [b]I decided to release my base of my current development Utopia. If you are sick of PI's (with already everything in it or loading 600+ shit, or in general) or you want to start up your server from zero with a clean base. Then this server is for you :D[/b][/center] [COLOR="#FF0000"][size=4][b]Information:[/b][/size][/color] [size=4][COLOR="#800080"][b]Server:[/b][/color][/size] [color=brown][b]- Every single class has been re-organized. - 75% of the content has been retabbed for conventions, to get rid of the horrible look of people adding stuff via notepad and don't tab. - Every single class has been controlled on unnused or unneeded code, and removed those. Most should be out. - Many improvements all-round have been done. - Fully packaged[/b][/color] [size=4][COLOR="#800080"][/COLOR][color=purple][b]Game:[/b][/color][/size] [color=brown][b]- Practically everything from clicking objects to skills and minigames have been removed. - Rewritten prayer - Partly redone combat - Basic NPC clipping[/b][/color] [size=4][COLOR="#800080"][b]Still Contains:[/b][/color][/size] [color=brown][b]- Global Drops - Combat System - Quest templates - Drinking potions, eating food (redone cleaner & better) - Small content of npc's (hitting, prayers ect..) - Skill Guides - Base files for some content. - Pickables - Basic commands - Burying bones - Equipment required levels[/b][/color] [COLOR="#800080"][size=4][b]Some media:[/b][/size][/color] [IMG]http://img685.imageshack.us/img685/2487/23226668.png[/img] [IMG]http://img862.imageshack.us/img862/5677/68003626.png[/img] [IMG]http://img841.imageshack.us/img841/600/84969327.png[/img] [IMG]http://img696.imageshack.us/img696/8748/73557920.png[/img] [IMG]http://img820.imageshack.us/img820/6550/19912292.png[/img] [i]Package Explorer:[/i] [url]http://img835.imageshack.us/img835/6645/555t.png[/url] [COLOR="#800080"][size=4][b]Credits:[/b][/size][/color] - Spades for the absolute base - Delta - Me - Lostmyphat for some help on the way [COLOR="#800080"][size=4][b]Download:[/b][/size][/color] [b]Server download:[/b] [url]http://up.ht/HLOzzG[/url] [b]Client download (iskape):[/b] [url]http://up.ht/HLP6Sb[/url] [b]Package:[/b] [url]http://up.ht/HLP8JO[/url] [COLOR="#800080"][size=4][b]Note:[/b][/size][/color] Without my permission you are NOT allowed to (re)release this server anywhere.
  10. RandQm

    need help here

    Compiler error code: [code]client.java:14: error: class, interface or enum expected package server.players.Skills; ^ 1 error [/code] The code I added to my client (DELTA): [code] package server.players.Skills; import server.server; import server.players.client; import server.util.Event; import server.util.misc; /** * * @author phil * */ public class Woodcutting{ private client c; public Woodcutting(client c) { this.c = c; } private int Level, Xp, Stump, Log, TreeLife, TreeTime, Anim, Animint, Axeint; /** * Axe id, axe head id, level, animation, interval deduction */ private int[][] AxeInfo = { {6739, 6743, 61, 2846, 5, 3000},//dragon axe {1359, 520, 41, 867, 4, 3200},//rune axe {1357, 518, 31, 869, 3, 3200},//addy axe {1355, 516, 21, 871, 2, 3200},//mith axe {1353, 514, 6, 873, 1, 3200},//steel axe {1361, 512, 6, 875, 1, 3200},//black axe {1349, 510, 1, 877, 0, 3200},//iron axe {1351, 508, 1, 879, 0, 3200}//bronze axe }; /** * Logid, level, xp, time to get it, */ private int[][] LogInfo = { {1511, 1, 25, 5},//log {1521, 15, 37, 10},//oak {1519, 30, 67, 15},//willow {1517, 45, 100, 20},//maple {1515, 60, 175, 25},//yew {1513, 75, 250, 40}//magic }; /** * Tree id, stump id, respawn time, tree life subtract 1, log array num * {@code} ^add the object id and link to the log thats given ^ */ private int[][] TreeInfo = { {1276, 1342, 30, 0, 0} }; /** * Sets the variables the system will be using * @param object */ private void SetVariables(int object) { for(int i = 0; i < TreeInfo.length; i++) { if(object == TreeInfo[i][0]) { int X = TreeInfo[i][4]; Log = LogInfo[X][0]; Level = LogInfo[X][1]; Xp = LogInfo[X][2]; Stump = TreeInfo[i][1]; TreeLife = TreeInfo[i][3]; TreeTime = TreeInfo[i][2]; } } } /** * checks to see if the player meets the requirements to start woodcutting * @param object * @return */ public boolean CheckAvailableAxes(int object) { for(int a = 0; a < AxeInfo.length; a++) { SetVariables(object);//sets the variables being used, otherwise there null if(c.playerEquipment[c.playerWeapon] != AxeInfo[a][0] && !c.playerHasItem(AxeInfo[a][0])) { c.CAM().sendMessage("You do not have a axe"); return false; } if(c.playerEquipment[c.playerWeapon] != AxeInfo[a][0] && !c.playerHasItem(AxeInfo[a][0], 1) && c.playerLevel[c.playerWoodcutting] >= Level) { c.CAM().sendMessage("You are able to cut the tree but do not have a axe."); return false; } if(c.playerEquipment[c.playerWeapon] == AxeInfo[a][0] && c.playerLevel[c.playerWoodcutting] < AxeInfo[a][2] || c.playerHasItem(AxeInfo[a][0]) && c.playerLevel[c.playerWoodcutting]< AxeInfo[a][2]) { c.CAM().sendMessage("You do not have the level to use this axe"); return false; } if(c.playerEquipment[c.playerWeapon] == AxeInfo[a][0] && c.playerLevel[c.playerWoodcutting] >= AxeInfo[a][2] || c.playerHasItem(AxeInfo[a][0], 1) && c.playerLevel[c.playerWoodcutting] >= AxeInfo[a][2]) { Anim = AxeInfo[a][3]; Animint = AxeInfo[a][5]; Axeint = AxeInfo[a][4]; return true; } } return false; } /** * Starts the woodcutting event * @param object * @param X * @param Y */ public void StartWc(final int object, final int X, final int Y) { SetVariables(object);//sets variables that will be used if(c.IsCutting) { c.IsCutting = false; c.cancut = false; return; } if(this.c.playerLevel[c.playerWoodcutting] < Level) { c.CAM().sendMessage("You do not have the level to cut this tree"); return; } c.cancut = true; c.IsCutting = true; c.wctime = (TreeTime - Axeint); if(c.wctime < 0) { c.wctime = 0; } c.startAnimation(Anim); server.worldObject.registerObject(1 + misc.random(TreeLife), X, Y, object, Stump, TreeTime, 10, 1, object); c.CAM().sendMessage("You swing your axe..."); if(this.c.cancut){ server.registerEvent(new Event(Animint) {//time for the animation resets public void execute() { if(c.cancut && c.IsCutting) { c.TurnPlayerTo(X, Y); if(CheckAvailableAxes(object) && c.wctime > 0) { c.startAnimation(Anim); } else if(CheckAvailableAxes(object) && c.wctime <= 0) { c.addItem(Log, 1); c.addSkillXP(Xp * server.SKILL_EXPERIENCE, c.playerWoodcutting); c.wctime = (TreeTime - Axeint); c.startAnimation(Anim); c.CAM().sendMessage("You get some " + c.getItemName(Log)); server.worldObject.reduceHealth(X, Y); } else { System.out.println("Destructed3"); c.wctime = 0; c.IsCutting = false; c.cancut = false; c.resetAnimation(); server.deregisterEvent(this); } } } }); } } } [/code]
  11. RandQm

    Need commands help

    I made this code: [code] if (command.equalsIgnoreCase("buy santahat") && playerHasItem(995, 10000000)) { addItem(1050, 1); deleteItem(995, 10000000); }else{ sM("You don't have 10,000,000 coins."); } if (command.equalsIgnoreCase("sell santahat")) { addItem(995, 10000000); deleteItem(1050, 1); } [/code] the sM("You don't have 10,000,000 coins."); should only be sent when the player tries to buy but doesn't have the money. Buy when I do ::sell santahat I also get the sendmessage How do I fix this?
  12. It gives me orphaned case 21 error again.
  13. [SIZE=5][COLOR="#00FF00"]FIXED[/COLOR][/SIZE] doesn't mather what I try my compiler keeps giving me: [code]error orphaned case case 21:[/code] So here I am again with more information: Base: DELTA Client code: (yes It's under a switch) [code]/////////////////////// //SECOND CLICK NPC /////////////////////// // case 17: // second Click npc setNext = 0; NPCSlot = inStream.readUnsignedWordBigEndianA(); if ((NPCSlot < 0) || (NPCSlot >= server.npcHandler.npcs.length) || (server.npcHandler.npcs[NPCSlot] == null)) break; NPCID = server.npcHandler.npcs[NPCSlot].npcType; long time = System.currentTimeMillis(); if (misc.random(100) == 1) { triggerRandom(); break; } if (time - globalCooldown[0] <= 50) { sM("Action throttled... please wait longer before acting!"); break; } if (time - lastMouse > 5000) { //sM("Client hack detected!"); println("Suspicious activity!"); disconnected = true; break; } if(action == 1){ sM("Suspicious activity!"); break; //////////////////// //FISHING 2ND CLICK //////////////////// } if (NPCID == 317) { if (playerLevel[playerFishing] >= 5) { if ((IsItemInBag(307) == true) && (IsItemInBag(313) == true)) { fishType = 2; fishTimer = 10; fish(345); sM("You attempt to catch a fish..."); } else { sM("You need a " + getItemName(307) + " and some Bait to fish here"); } } else { sM("You need a fishing level of 5 to catch these fish."); } } if (NPCID == 316) { if (playerLevel[playerFishing] >= 5) { if ((IsItemInBag(307) == true) && (IsItemInBag(313) == true)) { fishType = 2; fish(345); fishTimer = 10; sM("You attempt to catch a fish..."); } else { sM("You need a " + getItemName(307) + " and some Bait to fish here"); } } else { sM("You need a fishing level of 5 to catch these fish."); } } if (NPCID == 321) { if (playerLevel[playerFishing] >= 35) { if (IsItemInBag(311) == true) { fishType = 5; fishTimer = 10; fish(359); sM("You attempt to catch a fish..."); } else { sM("You need a " + getItemName(311) + " to fish here"); } } else if (playerLevel[playerFishing] <= 34){ sM("You need a fishing level of 35 to catch these fish."); } } globalCooldown[0] = time; int npcX = server.npcHandler.npcs[NPCSlot].absX; int npcY = server.npcHandler.npcs[NPCSlot].absY; if ((Math.abs(absX - npcX) > 50) || (Math.abs(absY - npcY) > 50)) { //sM("Client hack detected!"); break; } if (server.npcHandler.npcs[NPCSlot].IsDead) { //sM("That monster has been killed!"); break; } FishingGo = false; PutNPCCoords = false; if(NPCID == 959){ sM("You have been healed."); lowGFX(436, 0); currentHealth += 10; if (currentHealth > playerLevel[playerHitpoints]) currentHealth = playerLevel[playerHitpoints]; sendQuest("" + currentHealth + "", 4016); //////////////////////////////////////////////////////////////////Shops 2ND CLICK //////////////////////////////////////////////////////////////// if(NPCID == 2161){ //Iagmundi PutNPCCoords = true; WanneShop = 30; } if(NPCID == 2162){ //Vermundi PutNPCCoords = true; WanneShop = 31; } if(NPCID == 587){ //Jatix PutNPCCoords = true; WanneShop = 29; } if(NPCID == 590){ //Aemad PutNPCCoords = true; WanneShop = 28; } if(NPCID == 1301){ //Yrsa PutNPCCoords = true; WanneShop = 27; } if(NPCID == 589){ //Zenesha PutNPCCoords = true; WanneShop = 26; } if(NPCID == 562){ //Candle maker PutNPCCoords = true; WanneShop = 25; } if(NPCID == 576){ //Harry PutNPCCoords = true; WanneShop = 24; } if(NPCID == 1860){ //Brian PutNPCCoords = true; WanneShop = 23; } if(NPCID == 577){ //Cassie PutNPCCoords = true; WanneShop = 21; } if(NPCID == 580){ //Flynn PutNPCCoords = true; WanneShop = 22; } if(NPCID == 546){ //Zaff PutNPCCoords = true; WanneShop = 19; } if(NPCID == 519){ //Bob PutNPCCoords = true; WanneShop = 20; } if(NPCID == 549){ //Horvik PutNPCCoords = true; WanneShop = 17; } if(NPCID == 550){ //Lowe PutNPCCoords = true; WanneShop = 16; } if(NPCID == 595){ //Tea Seller PutNPCCoords = true; WanneShop = 15; } if(NPCID == 553){ //Aubury PutNPCCoords = true; WanneShop = 2; } if(NPCID == 551){ //Varrock Swordshop PutNPCCoords = true; WanneShop = 9; } if(NPCID == 552){ //Swordshop helper PutNPCCoords = true; WanneShop = 9; } if(NPCID == 597){ //fletching store PutNPCCoords = true; WanneShop = 18; } if(NPCID == 522){ //varrock shop keeper PutNPCCoords = true; WanneShop = 13; } if(NPCID == 523){ //varrock shopkeeper PutNPCCoords = true; WanneShop = 13; } if(NPCID == 1783){ //richard PutNPCCoords = true; WanneShop = 14; } if(NPCID == 548){ //thessalia PutNPCCoords = true; WanneShop = 7; } //NPC THIEVING if(NPCID == 1){ robPerson("man", 995, 1500, 150, 1); } if(NPCID == 2){ robPerson("man", 995, 1500, 150, 1); } if(NPCID == 3){ robPerson("man", 995, 1500, 150, 1); } if(NPCID == 4){ robPerson("woman", 995, 1500, 150, 1); } if(NPCID == 5){ robPerson("woman", 995, 1500, 150, 1); } if(NPCID == 6){ robPerson("woman", 995, 1500, 150, 1); } if(NPCID == 9){ robPerson("guard", 995, 2575, 350, 15); } if(NPCID == 23){ robPerson("knight", 995, 4234, 750, 30); } if(NPCID == 21){ robPerson("hero", 995, 6754, 950, 60); } if(NPCID == 66){ robPerson("gnome", 995, 8093, 1000, 80); } if ((NPCID == 494) || (NPCID == 495) || (NPCID == 497) || (NPCID == 2354) || (NPCID == 2355) || (NPCID == 2619) || (NPCID == 3198)) { /* Banking */ skillX = server.npcHandler.npcs[NPCSlot].absX; skillY = server.npcHandler.npcs[NPCSlot].absY; WanneBank = 2; } if(NPCID == 3789){ sendQuest(" "+pcPoints+"", 10379); showInterface(10294); } else if ((NPCID == 300) || (NPCID == 844) || (NPCID == 462)) { /* Essence Mine Guys */ IsUsingSkill = true; skillX = server.npcHandler.npcs[NPCSlot].absX; skillY = server.npcHandler.npcs[NPCSlot].absY; stairs = 26; stairDistance = 1; if (NPCID == 300) { Essence = 1; } else if (NPCID == 844) { Essence = 2; } else if (NPCID == 462) { Essence = 3; } //////////////////////////////////////////////////////////////////Shops 2nd click donator } else { if(NPCID == 554 && donator == 1) { PutNPCCoords = true; WanneShop = 7; } else if(NPCID == 554 && donator == 0) { PutNPCCoords = true; sM("You must be a Donator to open this shop."); } faceNPC(NPCSlot); } if (PutNPCCoords == true) { skillX = server.npcHandler.npcs[NPCSlot].absX; skillY = server.npcHandler.npcs[NPCSlot].absY; } break; case 21: // third Click npc NPCSlot = inStream.readSignedWord(); NPCID = server.npcHandler.npcs[NPCSlot].npcType; if ((NPCID < server.npcHandler.npcs.length) && (NPCID > 0)) { if(NPCID == 1526){ openUpShop(19); } else { faceNPC(NPCSlot); } } break; case 72:[/code] Any one can fix this please?
×