Jump to content

Search the Community

Showing results for tags 'cash'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • RuneLocus
    • News & Announcements
    • Information Booth
    • Website Support
    • Introductions
    • Chat
    • Forum Games
  • RuneScape Development
    • RSPS General
    • RuneScape Private Server (RS2)
    • RuneScape Private Server (503+)
    • RuneScape Private Server (EoC 742+)
  • Other
    • Digital Art
    • Gaming
    • Webdevelopment
    • Computers
  • Marketplace
    • RuneScape Market
    • RSPS Market
    • Others Market
    • Freelance Middleman Services
  • Super Secret Club's Topics

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Found 40 results

  1. I added the Vote 4 cash in server and web sided and this is the error I got. [CODE]Could not connect to mysql database: Lost connection to MySQL server at 'reading initial communication packet', system error: 111[/CODE] Here is my Website Sided .php (xxxx means it's my mySQL data.) [CODE]<?php /** * @author Stuart <RogueX | iVariable> * @version 1.1 UPDATED: 06.09.2010 * [MENTION=67687]Com[/MENTION]ment fixed a few bugs */ /** * mysql database hostname */ define("MYSQL_HOST", "xxxx"); /** * mysql username to connect to the database server */ define("MYSQL_USERNAME", "xxxx"); /** * mysql password the password to connect to the database server */ define("MYSQL_PASSWORD", "xxxx"); /** * mysql database the database name in which you have your vote table setup */ define("MYSQL_DATABASE", "xxxx"); /** * vote url this is the url which where users will be sent to on voting */ define("VOTE_URL", "FINALVOTING URL"); /** * The number of hours between voting */ define("VOTE_HOURS", 24); /** * connect() this function is used to connect to the mysql database server. */ function connect() { if ( [MENTION=103481]Mysql[/MENTION]_connect("MYSQL_HOST", "MYSQL_USERNAME", "MYSQL_PASSWORD")) die("Could not connect to mysql database: " . mysql_error()); if ( [MENTION=103481]Mysql[/MENTION]_select_db("a2208758_forums")) die("Could not select mysql database: " . mysql_error()); $tables = mysql_list_tables("a2208758_forums"); while (list($temp) = mysql_fetch_array($tables)) { if ($temp == "votes") { return; } } query("CREATE TABLE `votes` ( `playerName` VARCHAR( 255 ) NOT NULL , `ip` VARCHAR( 255 ) NOT NULL, `time` BIGINT NOT NULL , `recieved` INT( 1 ) NOT NULL DEFAULT '0')"); } /** * query(string query) this function is used to query the mysql database server. */ function query($s) { $query = [MENTION=103481]Mysql[/MENTION]_query($s); if (!$query) die("Error running query('" . $s . "'): " . mysql_error()); return $query; } /** * anti_inject(string text) this function is used to make sure no injections can be made. */ function anti_inject($sql) { $sql = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"), "", $sql); $sql = trim($sql); $sql = strip_tags($sql); $sql = addslashes($sql); $sql = strtolower($sql); return $sql; } /** * clean_request(int timestamp, string username) this function is used to delete any entries if they have already expired. */ function clean_request($time, $username) { $query = query("SELECT * FROM `votes` WHERE `playerName`='" . $username . "'"); if (mysql_num_rows($query) > 0) { $row = mysql_fetch_array($query); $timerequested = $row['time']; if ($time - $timerequested > VOTE_HOURS * 3600) query("DELETE FROM `votes` WHERE time='" . $timerequested . "'"); } } /** * vote_entries(string ip) this function is used return the number of rows within the table */ function vote_entries($ip) { $query = query("SELECT * FROM `votes` WHERE ip='" . $ip . "'"); return mysql_num_rows($query); } /** * This is the actual working of the script please do not touch anything below if you do not know what you are doing... */ if (isset($_POST['submit']) || isset($_GET['username']) && isset($_GET['type'])) { connect(); if ($_POST['submit']) { if(@fsockopen($_SERVER['REMOTE_ADDR'], 80, $errno, $errstr, 1)) die("Sorry but you have port 80 open, this is to stop voting by proxy address."); if(isset($_COOKIE['voted'])) die("Sorry but it looks like you have already voted..."); $username = anti_inject($_POST['username']); $ip = gethostbyaddr($_SERVER['REMOTE_ADDR']); clean_request(time(), $username); if (vote_entries($ip) == 0) { setcookie ("voted", "yes", VOTE_HOURS * 3600); query("INSERT INTO `votes` (`playerName`, `ip`, `time`) VALUES ('" . $username . "', '" . $ip . "', '" . time() . "')"); header("Location: " . VOTE_URL . ""); } else { die("You have already voted once today."); } } elseif ($_GET['type'] == "checkvote") { $username = anti_inject($_GET['username']); $query = query("SELECT * FROM `votes` WHERE `playerName`='" . $username . "'"); if (mysql_num_rows($query) == 1) { $results = mysql_fetch_array($query); if ($results['recieved'] == 0) { query("UPDATE `votes` SET `recieved`='1' WHERE `playerName`='" . $username . "'"); die("user needs reward..."); } else { die("user been given reward..."); } } else { die("Vote not found... ". $username ."."); } } } ?> <html> <head> <title>RotateX Voting</title> <style type="text/css"> body { background-color: #111111; font-family:Arial; } .link { cursor:pointer; color: #037; text-decoration: underline; } .link:hover { color: #3300FF; } .link-done { cursor:pointer; color: #037; text-decoration: line-through; } .link-done:hover { color: #3300FF; } #container { background-color: #222222; height: auto; width: 500px; padding: 5px; border: 1px solid #333333; margin: 0 auto auto auto; -moz-box-shadow: 0 0 5px #000000; -webkit-box-shadow: 0 0 5px #000000; box-shadow: 0 0 5px #000000; } #help { background-color: #222222; height: auto; width: 500px; padding: 5px; border: 1px solid #333333; margin: 0 auto auto auto; -moz-box-shadow: 0 0 5px #000000; -webkit-box-shadow: 0 0 5px #000000; box-shadow: 0 0 5px #000000; } </style> <script type="text/javascript"> var timer; var timeLeft = 30; var voted1 = false; var voted2 = false; var voted3 = false; var voted4 = false; var voted5 = false; function clickedLink(button) { switch(button) { case 1: voted1 = true; javascript:window.open('SITE1.com', '60', 'left = 20, top = 20, width = 800, height = 600, toolbar = 0, resizable = 0, scrollbars=1'); document.getElementById("vote1").setAttribute("class", "link-done"); break; case 2: voted2 = true; javascript:window.open('SITE2.com', '60', 'left = 20, top = 20, width = 800, height = 600, toolbar = 0, resizable = 0, scrollbars=1'); document.getElementById("vote2").setAttribute("class", "link-done"); break; case 3: voted3 = true; javascript:window.open('SITE3.com', '60', 'left = 20, top = 20, width = 800, height = 600, toolbar = 0, resizable = 0, scrollbars=1'); document.getElementById("vote3").setAttribute("class", "link-done"); break; case 4: voted4 = true; javascript:window.open('SITE4.com', '60', 'left = 20, top = 20, width = 800, height = 600, toolbar = 0, resizable = 0, scrollbars=1'); document.getElementById("vote4").setAttribute("class", "link-done"); break; case 5: voted5 = true; javascript:window.open('SITE5.com', '60', 'left = 20, top = 20, width = 800, height = 600, toolbar = 0, resizable = 0, scrollbars=1'); document.getElementById("vote5").setAttribute("class", "link-done"); break; } setSitesLeft(); if (voted1 && voted2 && voted3 && voted4 && voted5) { startCountDown(); document.getElementById('statusText').style.display = 'none'; } } function startCountDown() { timer = setInterval("doCountDown();", 1000); document.getElementById('timerText').style.display = 'block'; } function doCountDown() { document.getElementById('timeLeft').innerHTML = timeLeft; timeLeft = (timeLeft - 1); if (timeLeft <= 0) { document.getElementById('links').style.display = 'none'; document.getElementById('voted').style.display = 'block'; clearTimeout(timer); } } function setSitesLeft() { var count = 5; if (voted1) { count = (count - 1); } if (voted2) { count = (count - 1); } if (voted3) { count = (count - 1); } if (voted4) { count = (count - 1); } if (voted5) { count = (count - 1); } document.getElementById('sitesLeft').innerHTML = count; } </script> </head> <body> <center><a href="LOGOCLICKLINK"><img src="LOGOIMAGEURL" /></a></center><br /> <div id="help"><strong>How It Works:</strong><br /><br />Vote on each of the links below once you have voted on all of them you will be forwarded to A page that will allow you to input your username. When you are on this page make sure you put in your username and accept. Once in game type ::claim to receive your reward!</div><br /> <div id="container"> <div id="links"> 1. <a id="vote1" onclick="clickedLink(1);" class="link">SITE 1</a> <br> 2. <a id="vote2" onclick="clickedLink(2);" class="link">SITE 2</a> <br> 3. <a id="vote3" onclick="clickedLink(3);" class="link">SITE 3</a> <br> 4. <a id="vote4" onclick="clickedLink(4);" class="link">SITE 4</a> <br> 5. <a id="vote5" onclick="clickedLink(5);" class="link">SITE 5</a> <br> <br> <span id="statusText">Click & vote at all the links above to continue, only <b id="sitesLeft">5</b> left.</span> <span id="timerText" style="display: none;">You have <b id="timeLeft">*</b> seconds left before you can claim you reward. </span> </div> <div id="voted" style="display: none;"> <form action="index.php" method="post"> <center>Username: <input type="text" name="username" /> <input type="submit" name="submit" value="Claim Reward!" /></center> </form> </div> </div> </body> </html>[/CODE] Server Sided [CODE]public boolean checkVotes(String playerName) { try { String urlString = "http://rotatexrsps.com/vote.php?type=checkvote&username="+playerName; urlString = urlString.replaceAll(" ", "%20"); URL url = new URL(urlString); BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream())); String results = reader.readLine(); if(results.length() > 0) { if(results.equals("user needs reward...")) return true; else return false; } } catch (MalformedURLException e) { System.out.println("Malformed URL Exception in checkVotes(String playerName)"); } catch (IOException e) { System.out.println("IO Exception in checkVotes(String playerName)"); } return false; }[/CODE]
  2. When you have max cash in bank and try to add more cash your from inventory the cash still gets deleted from inventory regardless of the fact that theres max cash in your bank I had a little go at it. not sure if its anything close to the fix. I added it to "public void addItem" in bank.java heres the code i wrote. int playerAmount = player.getInventory().getContainer().getNumberOf(item); int index = bank.indexOf(item); Item item2 = bank.get(index); if (playerAmount + item2.getAmount < 2147000000){ playeramount - item2.getAmount; player.getInventory().deleteItem(item.getId(), amount, slot, refresh); } Any thoughts?
  3. tmink03

    Raising Max Cash

    I raised the values in both client and server but when i got more than 2B cash the client gives me an error when i try to login to that character although a character with less than 2B will log in without any problems. When i login with the bugged account it gives me this error: Exception in thread "Thread-3" java.lang.ArrayIndexOutOfBoundsException: 65410 at ItemDef.forID(ItemDef.java:11) at ItemDef.getSprite(ItemDef.java:5647) at client.drawInterface(client.java:9872) at client.drawTabArea(client.java:2933) at client.drawGameScreen(client.java:9661) at client.processDrawing(client.java:10557) at RSApplet.run(RSApplet.java:111) at client.run(client.java:5932) at java.lang.Thread.run(Unknown Source) Could someone please help me fix this?
  4. Hi, i would like to change the max cash in my matrix server from 2147483647 to like 20b where can i change that amount? Thanks for youre respond.
  5. Programozó társat keresek rsps készítésére 667/718-ra irj üzenetet itt forumon,nemsok kell de kell 1 társ ami bejön donatorból a tied minden eggyes centig/forintig stb. lolking I'm looking for a programmer for the 667/718 revisions. I need a few commands, teleports, and items fixed. If you successfully complete these tasks, I'll give you owner rank and all the donation money. Private message me if you're interested.
  6. I am currently frustrated at the errors I been getting and unable to successfully fix fully. I haven't this coding stuff in years, any ways I had it working multiple times and it still works. Its unable to work for everyone at the same time. First my co-owner wasnt able fixed it for him now he has a version he kept that does and he can play so i know the server is online and everything it may just be a simple fix that i am blindly missing(most likely is). 2 other people cant use either. It has the cache updater in it and it works updates and verifys. After the update it stops at "checking version" and doesnt progress any further. I will pay someone to do it. If interested add me on skype d.w.101 Need ASAP
  7. WILL BUY VPS WHEN YOU ARE READY TO WORK WITH ME A.S.A.P. love doing this? let's partner up and make a couple dollars-let's GOOOO lolking will Slam a 20 on you once show me Work and Co-Operation, 5-10 here and there, and what is reasonable. OP ADMIN ROOT all priveleges. Need a partner. and Greedy For This. Ads pay more, once server's up. server with survey-styled income, surveys & donation boxes... ideas welcome, Tattoo Artiste. Doing Website, Graphics to site, GUI GRAPHICS if you ENJOY doing that part - (have to talk about this, not familiar with this...) will keep throwing you money steady on and Progress = money. How BIG my "Smiley Face Becomes" is how BIG my wallet will Somehow BECOME! shed 10 more dollars. 'thinking about how cool snakeskin is' slooow and how tiny Work Load.... need CLIENT & SERVER WORK MAP & SOME RULES CHANGE FROM STOCK 2007 317 REVISION. I'll make Site Describe everything about the game's details, because it's a new game in itself. instructions, map.. i have one of what i'd like to see.. seeing it from a map point of view, and a described laid out economy. 2007 F2P.. with all wilderness, plotted walking bankers here and there, all the original NPC's (can copy from Another server.) and some more NPC's or less NPC's depending on this creator's badass view of an economy. far-close. that's all I really want or require on the BASIC. And another Head is All Right. Want to throw your artistic spin on this server with me that is great - just like a tattoo artist - "that's what it's all about." PM ME and we can then talk more about the game, this idea is EVIL AS POSSIBLE! and very ORIGINAL!!! so I want to personaly play it, get advertisers, I am going to FORCE 300 people to play this game with the back of my HAND i will enjoy it so much. So this should be a profitable project. Because the Front of my Hand needs One Dollar For Me, One For My Partner. we'll talk on MSN, yahoo, or whatever you want, skype, WHATEVA!!!!! 11
  8. hello. im here to show you guys how to make free money in internet. what you need? only 15mins per day. you will have to click ads, do tasks/offers, play lucky game. when you did any of these you will get some cash. after you make 8$ you can send them to your paypal account and when you can buy rs membership or anything you want. come and try! 100% works! already got payout 21$. *
  9. skype - ish3zz plz help
  10. I need Help making a Spawn Eco command that will Spawn an item but it will take cash as you spawn it, and if you don't have enough you can't spawn. Thanks!
  11. Hey guys, we all should know that RuneScape has their small cash bags, medium cash bags, etc. which gives out a random amount of coins to the player and I decided to make my own version of it. [B][U][COLOR="#FF0000"]JUST INCASE, MAKE A BACKUP OF YOUR CACHE FOR THE POSSIBILITY OF IT GETTING CORRUPTED. THIS CAN HAPPEN WITH ANY EDITING TO YOUR CACHE![/COLOR][/U][/B] First off, if you do not have it, download an Item Definitions Editor. Download this one if you do not have it: [url=http://uppit.com/rsnqmfjhgl0e/ItemDef_Editor.rar]718+ ItemDefsEditor[/url] This is not required to do with the item definitions editor, but I think it just makes that little big difference. I am going to use the items "Normal tax bag (item ID 10833)," "Hefty tax bag(item ID 10834)," and "Bulging taxbag (item ID 10835)" for my money bags. Open up your item definitions editor and first go to the item "Normal tax bag" which has the item number of "10833" and edit it. Change the item name to "Small Cash Bag" and in the Inventory Options section, change "Check tax" to "Open." After that, click "Save." It should look like this: [IMG]http://i40.tinypic.com/ay3e2o.png[/IMG] Next, we will want to do the same thing with the "Hefty tax bag" which has the item number of "10834." Go to the item and edit it. Now, change the name of "Hefty tax bag" to "Medium Cash Bag" and in the Inventory Options section, change "Check tax" to "Open." After that, click "Save." It should look like this: [IMG]http://i42.tinypic.com/5mi97b.png[/IMG] Lastly with the editor, you want to do the same thing with the "Bulging taxbag" which has the item number of "10835." Go to the item and edit it. Now, change the name of "Bulging taxbag" to "Large Cash Bag" and in the Inventory Options section, change "Check tax" to "Open." After that, click "Save." It should then look like this: [IMG]http://i40.tinypic.com/33vc0et.png[/IMG] You are done with using the Item Definitions Editor. This step will be in the location [code]com.rs.game.player.dialogues[/code] Next, make a new class and name it SmallCashBag. Put this inside of it and then save: [code]package com.rs.game.player.dialogues; import com.rs.utils.Misc; public class SmallCashBag extends Dialogue { int smallBag = Misc.random(250000); [MENTION=15855]Over[/MENTION]ride public void start() { player.getInterfaceManager().sendChatBoxInterface(1189); player.getInventory().deleteItem(10833, 1); player.getInventory().addItem(995,smallBag); player.getPackets().sendItemOnIComponent(1189, 1, 10833, 1); player.getPackets().sendIComponentText(1189, 4, "You open the small bag and find " + smallBag + " coins."); } [MENTION=15855]Over[/MENTION]ride public void run(int interfaceId, int componentId) { if (interfaceId == 1189 && componentId == 9) { } end(); } [MENTION=15855]Over[/MENTION]ride public void finish() { } } [/code] Make another class and name it MedCashBag. Put this inside of it and then save: [code]package com.rs.game.player.dialogues; import com.rs.utils.Misc; public class MedCashBag extends Dialogue { int medBag = Misc.random(2000000); [MENTION=15855]Over[/MENTION]ride public void start() { player.getInterfaceManager().sendChatBoxInterface(1189); player.getInventory().deleteItem(10834, 1); player.getInventory().addItem(995,medBag); player.getPackets().sendItemOnIComponent(1189, 1, 10834, 1); player.getPackets().sendIComponentText(1189, 4, "You open the medium bag and find " + medBag + " coins."); } [MENTION=15855]Over[/MENTION]ride public void run(int interfaceId, int componentId) { if (interfaceId == 1189 && componentId == 9) { } end(); } [MENTION=15855]Over[/MENTION]ride public void finish() { } } [/code] Make one more class and name it LargeCashBag. Put this inside of it and then save: [code]package com.rs.game.player.dialogues; import com.rs.utils.Misc; public class LargeCashBag extends Dialogue { int largeBag = Misc.random(10000000); [MENTION=15855]Over[/MENTION]ride public void start() { player.getInterfaceManager().sendChatBoxInterface(1189); player.getInventory().deleteItem(10835, 1); player.getInventory().addItem(995,largeBag); player.getPackets().sendItemOnIComponent(1189, 1, 10835, 1); player.getPackets().sendIComponentText(1189, 4, "You open the large bag and find " + largeBag + " coins."); } [MENTION=15855]Over[/MENTION]ride public void run(int interfaceId, int componentId) { if (interfaceId == 1189 && componentId == 9) { } end(); } [MENTION=15855]Over[/MENTION]ride public void finish() { } } [/code] In DialogueHandler.java [code] handledDialogues.put("LargeCashBag", (Class<Dialogue>) Class.forName(LargeCashBag.class.getCanonicalName())); handledDialogues.put("MedCashBag", (Class<Dialogue>) Class.forName(MedCashBag.class.getCanonicalName())); handledDialogues.put("SmallCashBag", (Class<Dialogue>) Class.forName(SmallCashBag.class.getCanonicalName()));[/code] In InventoryOptionsHandler.java Search for: [code]public static void handleItemOption1(Player player, final int slotId, final int itemId, Item item) {[/code] Anywhere in there, add: [code] if (itemId == 10833) { player.getDialogueManager().startDialogue("SmallCashBag"); } if (itemId == 10834) { player.getDialogueManager().startDialogue("MedCashBag"); } if (itemId == 10835) { player.getDialogueManager().startDialogue("LargeCashBag"); }[/code] If you would like to edit the amount of money that you get from the bags, go into the bag's dialogue and change [COLOR="#FF0000"]Misc.random([COLOR="#008000"]250000[/COLOR])[/COLOR] to whatever the max amount of money you want the player to get from it. So, if I would want to change the max number from 250,000gp (from the small cash bag) to 500,000gp, I would change [code]Misc.random([COLOR="#0000CD"]250000[/COLOR])[/code] to [code]Misc.random([COLOR="#0000CD"]500000[/COLOR])[/code] You can make this number whatever you want that fits in java's max integer (2147483647). If you have any questions or comments, please don't hesitate, I would be more than happy for any feedback! This is what the final result should be: [SPOILER=Final Result][video=youtube;r9RLyzR0WMU]http://www.youtube.com/watch?v=r9RLyzR0WMU[/video][/SPOILER] Thank you, ~Derek
  12. I'm in the need of some money, why? To build a new rig. I've been stuck with a 5770 Ati radeon for a year now, no case nothing. I can't get a job, hence it's hard to get one in jacksonville, no one is hiring or they aren't hiring at my age atm. No, i can't bitcoin mine because i don't have the starting money for it, plus my parents won't be too happy with the light bill each month. I've looked into making money online, but all i can truly come across are Survey site suggestions, God, i hate survey sites. Is their anyway to make money online, at a decent rate?
  13. I have a 512mb centOS 6 linux vps cus my server is only around 20 players n i need it set up asap. so if you can do it ill pay you. add me on skype patriots970 will let you do it through teamviewer im not dumb enough to hand over my files ty.
  14. If you dont know how to use a vps dont waste my time. if you dont know how to fix connection timed out when i try to run my server using my no-ip dont waste my time. if you do know i will gladly pay for you to get my server. name your price but dont be absurd.
  15. if you can help me get my ports open and do portforwardin for my rsps ill pay real cash when its done. i have teamviewer.
  16. If your server is for sale pm me im paying real cash using paypal.
  17. So if I click on the skill cape shop and I have cash anywhere except the last inventory slot, it disconnects the whole client. I've searched this on the search bar and found a couple of threads, but they all had no answers to this particular bug. Here are my methods located in ItemAssistant.java EDIT: I can buy skill capes when I have cash in last inventory slot. So buying the skill cape is not the issue here. [CODE] public void openSkillCape() { int capes = get99Count(); if (capes > 1) capes = 1; else capes = 0; c.myShopId = 15; setupSkillCapes(capes, get99Count()); } /*public int[][] skillCapes = {{0,9747,4319,2679},{1,2683,4329,2685},{2,2680,4359,2682},{3,2701,4341,2703},{4,2686,4351,2688},{5,2689,4347,2691},{6,2692,4343,2691}, {7,2737,4325,2733},{8,2734,4353,2736},{9,2716,4337,2718},{10,2728,4335,2730},{11,2695,4321,2697},{12,2713,4327,2715},{13,2725,4357,2727}, {14,2722,4345,2724},{15,2707,4339,2709},{16,2704,4317,2706},{17,2710,4361,2712},{18,2719,4355,2721},{19,2737,4331,2739},{20,2698,4333,2700}};*/ public int[] skillCapes = {9747,9753,9750,9768,9756,9759,9762,9801,9807,9783,9798,9804,9780,9795,9792,9774,9771,9777,9786,9810,9765,9948,12169,18508}; public int get99Count() { int count = 0; for (int j = 0; j < c.playerLevel.length; j++) { if (c.getLevelForXP(c.playerXP[j]) >= 99) { count++; } } return count; } public void setupSkillCapes(int capes, int capes2) { synchronized(c) { c.getItems().resetItems(3823); c.isShopping = true; c.myShopId = 14; c.getPA().sendFrame248(3824, 3822); c.getPA().sendFrame126("Skillcape Shop", 3901); int TotalItems = 0; TotalItems = capes2; if (TotalItems > Server.shopHandler.MaxShopItems) { TotalItems = Server.shopHandler.MaxShopItems; } c.getOutStream().createFrameVarSizeWord(53); c.getOutStream().writeWord(3900); c.getOutStream().writeWord(TotalItems); int TotalCount = 0; for (int i = 0; i < 24; i++) { if (c.getLevelForXP(c.playerXP[i]) < 99) continue; c.getOutStream().writeByte(1); c.getOutStream().writeWordBigEndianA(skillCapes[i] + 2); TotalCount++; } c.getOutStream().endFrameVarSizeWord(); c.flushOutStream(); } } public void skillBuy(int item) { int nn = get99Count(); if (nn > 1) nn = 1; else nn = 0; for (int j = 0; j < skillCapes.length; j++) { if (skillCapes[j] == item || skillCapes[j]+1 == item) { if (c.getItems().freeSlots() > 1) { if (c.getItems().playerHasItem(995,99000)) { if (c.getLevelForXP(c.playerXP[j]) >= 99) { c.getItems().deleteItem(995, c.getItems().getItemSlot(995), 99000); c.getItems().addItem(skillCapes[j] + nn,1); c.getItems().addItem(skillCapes[j] + 2,1); } else { c.sendMessage("You must have 99 in the skill of the cape you're trying to buy."); } } else { c.sendMessage("You need 99k to buy this item."); } } else { c.sendMessage("You must have at least 1 inventory spaces to buy this item."); } } /*if (skillCapes[j][1 + nn] == item) { if (c.getItems().freeSlots() >= 1) { if (c.getItems().playerHasItem(995,99000)) { if (c.getLevelForXP(c.playerXP[j]) >= 99) { c.getItems().deleteItem(995, c.getItems().getItemSlot(995), 99000); c.getItems().addItem(skillCapes[j] + nn,1); c.getItems().addItem(skillCapes[j] + 2,1); } else { c.sendMessage("You must have 99 in the skill of the cape you're trying to buy."); } } else { c.sendMessage("You need 99k to buy this item."); } } else { c.sendMessage("You must have at least 1 inventory spaces to buy this item."); } break; }*/ } c.getItems().resetItems(3823); }[/CODE]
  18. runehero

    Item to cash

    Hi guys. I was wondering, How do you make chaotics or any other item turn to cash when a player dies in the wild? Thanks!
  19. bfergi3

    Survey for Cash?

    I just want to know if anyone knows about a legit website that lets people fill out surveys for cash. If you know any just post below. Thanks.
  20. I'm currently working on a project and I want to make all items spawnable for the prices they are and sell back with ::sellitem for like -5% of the price, like runescape GE. I could do this from scratch but that would take hours so I was wondering if there was an easier way to do this instead of doing it all by hand? REP ++ to anyone who can help!
  21. Hello RuneLocus...i need help setting up a good RSPS server if you would like to help me...add me on skype : theunknown916, message me telling me your price....then once you have completed helping me...i will give you the money , thanks
  22. UnholyVeng

    Cash Stack Help

    Does anybody know how to add a message so it won't let you obtain anymore cash when you have the highest amount you can get to avoid any sales to the shop and not get money from it?
  23. I'll pay someone for creating forum page for me familiar with ucoz or others good websites that is good to help my rsps and make forums look outstanding so just p here and yes ill offer paypal cash but not sure how much :/.
  24. I added the vote for items files to my ftp([URL="http://www.runelocus.com/forums/showthread.php?45260-Vote-for-Items"]http://www.runelocus.com/forums/showthread.php?45260-Vote-for-Items[/URL]) And it works on the website: [URL="Vapor-scape.com/vote.php But when i try to add this:"]Vapor-scape.com/vote.php But when i try to add this:[/URL] Now, when i add this for my SQL.java: [QUOTE]public static void checkVote(Client c) { try { Statement stmt = conn.createStatement(); ResultSet rs = stmt .executeQuery("SELECT COUNT(playerName) AS total FROM `votes` WHERE `playerName`= \"" + c.playerName + "\" AND `recieved`= 0"); rs.first(); int total = rs.getInt("total"); if (total == 1) { stmt.execute("UPDATE `votes` SET `recieved` = 1 WHERE `playerName` = '" + c.playerName + "'"); c.getItems().addItem(995, 5000000); c.sendMessage("Thanks for voting!"); } } catch (SQLException ex) { System.out.println(ex); } }[/QUOTE] [B]Then i get this as error:[/B] [QUOTE]Statement stmt = conn.createStatement();[/QUOTE] Can someone help me?
  25. Hey, idk how to add an npc that will give me an item, if u have 99 in every skill, for max cash im guessing its a fairly simple problem, help would be appreciated, thanks THIS IS FOR PROJECT INSANITY, IM USING HYBRID PVP SOURCE IF THAT HELPS
×