Jump to content

Search the Community

Showing results for tags 'rewards'.



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 19 results

  1. Hello RuneLocus, I understand that many of you may have donators on your RSPS. So this tutorial is mainly aimed at those who wish to give their donators extra rewards when voting. Firstly you're going to search for your existing command, head over to Commands.java Then search for your claim/check command using Cntrl/Control/Command + F. My command for vote checking and giving rewards is ::claim so I'll search for " "claim" " This pulls up: [code] if (playerCommand.equalsIgnoreCase("claim")) { try { VoteReward reward = Server.vote.hasVoted(c.playerName.replaceAll(" ", "_")); if(reward != null){ switch(reward.getReward()){ case 0: c.getItems().addItem(995, 1000000); break; default: c.sendMessage("Reward not found."); break; } c.sendMessage("Thank you for voting."); } else { c.sendMessage("You have no items waiting for you."); } } catch (Exception e){ c.sendMessage("[RuneProject] Error: #SQLvoting; contact @[email protected] Max with this error!."); } }[/code] Now for creating a variable that will check for the players rank and give items accordingly. If you look at the code you will notice the reward is working inside a case number, this specific case has the ID of 0. [code] case 0: [/code] Inside is the reward for all players, which will be the reward for regular players after we have finished. I'm going to give my donators 2x the reward because I'm a nice guy.. So I'm going to create the following variable below the prementioned 'case 0' [code] if (c.playerRights == 6) { }[/code] Inside of the variable is the execution if the above condition is true, as my donator rank is of the integer 6, the inside code will be executed, but there is nothing there, yet! Inside I am going to add the double reward for donators: [code] if (c.playerRights == 6){ c.getItems().addItem(995, 2000000); }[/code] Now if the client user has the player Rights/Rank of 6 which is the donator rank on my server(Yours may be different) it will get the item Item ID 995(Coins) and an amount of 2000000(2 Million) and add it to their inventory. But wait, if we replace everything inside case 0: with what I have just written only donators will be rewarded? That's where we add the Else statement. So we give everyone ELSE the usual reward. [code] if (c.playerRights == 6){ c.getItems().addItem(995, 2000000); } else { c.getItems().addItem(995, 1000000); } [/code] To finish off, we will remove everything that was inside of Case 0, and add our new conditional code. It should look like this. [code] if (playerCommand.equalsIgnoreCase("claim")) { try { VoteReward reward = Server.vote.hasVoted(c.playerName.replaceAll(" ", "_")); if(reward != null){ switch(reward.getReward()){ case 0: if (c.playerRights == 6){ c.getItems().addItem(995, 2000000); } else { c.getItems().addItem(995, 1000000); } break; default: c.sendMessage("Reward not found."); break; } c.sendMessage("Thank you for voting."); } else { c.sendMessage("You have no items waiting for you."); } } catch (Exception e){ c.sendMessage("[RuneProject] Error: #SQLvoting; contact @[email protected] Max with this error!."); } }[/code] You can also have it announced to the community by adding: [code] PlayerHandler.announce("[SERVER] "+c.playerName+" has voted"); [/code] under every reward. Thank you for reading this tutorial, if any problems occur please feel free to reply/ send me a PM for extra help or a more detailed explanation.
  2. rasko

    pvp rewards

    Can anyone help me? I'm having trouble adding rewards when a player kills another player, say if i wanted to give them 5m coins when the kill someone. Can anyone help me or give me the bit of code? Thanks so much Rasko
  3. Can anyone help me? I'm having trouble adding rewards when a player kills another player, say if i wanted to give them 5m coins when the kill someone. Can anyone help me or give me the bit of code? Thanks so much Rasko
  4. [CENTER]Noszscape 718 - [url]http://www.noszscape.com[/url] - Website - [url]http://www.noszscape.com/webclient/[/url] - Webclient - Highscores - - Vote 4 Rewards - - Auto Donations - - Jad - - Nex - - Godwars - - Player vs Player - - Perfect Banking - - Great Forums - - Tons of bosses - - Lots of Monsters - - Every Skill Works - - And Loads More! - [URL=http://s556.photobucket.com/user/baal887/media/hunter.png.html][IMG]http://i556.photobucket.com/albums/ss6/baal887/hunter.png[/IMG][/URL] [URL=http://s556.photobucket.com/user/baal887/media/farming.png.html][IMG]http://i556.photobucket.com/albums/ss6/baal887/farming.png[/IMG][/URL] [IMG]http://i556.photobucket.com/albums/ss6/baal887/qbd.png[/IMG] [IMG]http://i556.photobucket.com/albums/ss6/baal887/Trainning.png[/IMG] [IMG]http://i556.photobucket.com/albums/ss6/baal887/tormentdemons.png[/IMG] [IMG]http://i556.photobucket.com/albums/ss6/baal887/thieving.png[/IMG] [IMG]http://i556.photobucket.com/albums/ss6/baal887/PlayervsPlayer.png[/IMG] [IMG]http://i556.photobucket.com/albums/ss6/baal887/squeakiffortune.png[/IMG] [IMG]http://i556.photobucket.com/albums/ss6/baal887/kbd.png[/IMG] [IMG]http://i556.photobucket.com/albums/ss6/baal887/fireplace.png[/IMG] [IMG]http://i556.photobucket.com/albums/ss6/baal887/emotes-1.png[/IMG] [IMG]http://i556.photobucket.com/albums/ss6/baal887/drags.png[/IMG] [IMG]http://i556.photobucket.com/albums/ss6/baal887/kitten.png[/IMG] [IMG]http://i556.photobucket.com/albums/ss6/baal887/nex.png[/IMG][/CENTER]
  5. [CENTER]Alright, so I felt like contributing to the community by releasing a simple KillStreak system Keyword "Simple" So if ya rage that this isn't what you expected then you may leave this thread now. If Not Then Lets Proceed. Requirements To Add This: Copy And Pasting Skills A Brain Ok So Lets Start In: Client.java (This is rather optional. This Adds The Killstreak Text In Your Quest Tab. So Find: Your Quest Tab Info Should Start At: 29155 If Not Find It: And within those add: [CODE] getPA().sendFrame126("KillStreak:"+Streak+" ", 29168); [/CODE] Ok Now In Player.java Find Where Your Public Ints Are: EX: [CODE] public int leechSpecialDelay; public int curseDefence = 0; public int curseAttack = 0;[/CODE] And Add: [CODE] public int Streak; [/code] Ok so this right here handles when a player dies it adds +1 Streak To Your Quest Tab and resets when you die. In PlayerAssistant: Find: [CODE] if (Server.playerHandler.players[c.killerId].connectedFrom.equals(Server.playerHandler.players[c.playerKilled].connectedFrom)) {[/CODE] Or it more simple terms find where your kill messages are handled and add: [CODE] o.Streak += 1; [/CODE] Now Find: [CODE] c.sendMessage("Oh dear you are dead!"); [/code] And Under It Add: [CODE] c.Streak = 0; [/CODE] Ok now time for saving: In PlayerSave.java Find: [CODE] } else if (token.equals("Altar")) { p.altarPrayed = Integer.parseInt(token2);[/CODE] Under that ^ Add [CODE] } else if(token.equals("Streak")) { p.Streak = Integer.parseInt(token2);[/CODE] Still In PlayerSave.java Find: [CODE] characterfile.write("isDonator = ", 0, 12); characterfile.write(Integer.toString(p.isDonator), 0, Integer.toString(p.isDonator).length());[/CODE] Under That ^ Add: [CODE] characterfile.write("Streak = ", 0, 16); characterfile.write(Integer.toString(p.Streak), 0, Integer.toString(p.Streak).length());[/CODE] Now For Rewards. Go To Commands.java Add This Command: [CODE] if (playerCommand.startsWith("redeem")) { if (c.inWild()) return; for (int j = 0; j < c.playerEquipment.length; j++) { //5+ = Reward if (c.cStreak > 4) { c.sendMessage("Congratulations You Have Redeemed Your Kill Streak Reward."); //Reward Item c.getItems().addItem(995, 10000); return; } } try { //Under 5 = No Reward int cStreak = 0; c.sendMessage("Your Kill Streak Isn't High Enough For Reward."); } catch (Exception e){} }[/CODE] Remember this was a simple made system if you want to improve it go ahead. If you feel that I deserve a thanks hit that button :)[/CENTER]
  6. The dungeoneering shop buttons don't have ids (except the buy button), so if I want to buy an item I can only do it for one item. I'm not sure how else to explain it. Basically when I click an item on the interface, say the rapier, it doesn't have a button id, and the 'buy' button id for everything 64. So if I set the buy button to buy a rapier there wouldn't be a way to buy anything else. I need to find a way to make the buy button work for different rewards.
  7. public static int[] Regular_Rewards = { 995, 19600, 19601, 10602, 19603, 19604, 19605, 19606, 19607, 19708, 19609, 19610, 19611, 7329, 7330, 7331, 10326, 10327, 1478, 1704, 1727, 1729, 1731, 6040, 6585, 15126, 19467, 19480 }; public static int[] Easy_Rewards = { 2583, 2485, 2472, 2487, 2591, 2593, 2595, 2597, 2633, 2635, 2637, 2631, 7396, 7390, 7394, 7362, 7364, 7366, 7368, 19520, 19522, 19523, 19524, 19525, 19526, 19527, 19528, 19529, 19530, 19531, 19532, 19533, 19534, 19535, 19536, 19537, 19538, 19539, 10404, 10406, 10424, 10426, 10408, 10410, 10428, 10430, 10412, 10414, 10432, 10435, 10316, 10317, 10318, 10319, 10394, 10398, 10392, 10396 }; public static int[] Medium_Rewards = { 2599, 2601, 2607, 2609, 2577, 7318, 7321, 7323, 7325, 7327, 10758, 10452, 10454, 10456, 13109, 13111, 13113, 13115,13169, 13103 }; public static int[] Hard_Rewards = { 2615, 2617, 2623, 2625, 2661, 2663, 2665, 2673, 2669, 2671, 2653, 2655, 3481, 3483, 3486, 3488, 8950, 2581, 10330,10331, 10332, 10333, 10334, 10335, 10336, 10337, 10338, 10339, 10340, 10341, 10342, 10343, 10344, 10345, 10346, 10347, 10348, 10349, 10350, 10351, 10352, 10353 }; that's all of them except elite. :P
  8. yh well I'm hosting 2 servers called Primal Evolution. Ones a 474 PI and the other is a 667. Haven't advertised yet as I am constantly improving the webclient and server so really no point in re-releasing clients.. background history: last year hosted only the 474 and gained around 30+ players but closed it down because of studies. Now it's back up :P okay cut to the chase. I need a coder I can trust, timezone preferably gmt+0, I don't want someone to simply just copy off a tut and say "here ya go!", although I'll let it slip if It's a pretty hard job. Yes can code mostly 667 and a bit 474. Rewards: I'll pop ya alongside me as owner and donations 50/50 The rewards might not seem much, but last year I made about 200m rsgp and £30 that was just a couple months advertising.. You need to provide me with your skype, because there will be future group convo's with the rest of the staff team.
  9. hi, trix here. I recently got into hosting an RSPS and have no idea how to code. so im offering money donations, to a coder who can help me code this. post back if interested :) -Trix
  10. Well I dont know about you guys but I have been trying to find this for a few days now and I finally found one that works so I am VERY happy with it and I want to share it with you all. I cant give credits because it was from a random pastebin.com site thingy sooooo to who ever made this, I love you! :D EDIT: I just tested this same code but changed it around a bit to add 2 types of random rewards systems like this! Okay so for example you already did this but you want another box / item to do the same thing with different items, you can use 6183 (thats what I used) its a random event gift and all you need to change is the word "reward" and "lottery" for prize or any other word you want, and it works! :D [CODE]// Alright, go into client.java and find: public void flushOutStream() { // Right above that, declare this void: public void givereward() { if (getItems().playerHasItem(6199)) { getItems().deleteItem(6199, 1); getItems().addItem(randomlottery(), 1); } else { sendMessage("You need 2 free slots."); } } public static int randomlottery[] = {15000, 15001, 15002, 15003, 15004, 15005, 15006, 15007, 15008, 15009, 15010, 15011, 15012, 15013, 15014, 15015, 15016, 15017, 15018, 15019, 15020, 11694}; public static int randomlottery() { return randomlottery[(int) (Math.random() * randomlottery.length)]; } /** * Change the randomlottery[] those numbers Example:15000, 15001, and stuff those are all dwarf remains, it means you lost the lottery. * And the 11694, is ags. * Save and close out of it. * Go into clickitem.java and find: */ if (c.getHerblore().isUnidHerb(itemId)) c.getHerblore().handleHerbClick(itemId); // Right above it paste this: if(itemId == 6199) { c.givereward(); }[/CODE]
  11. I Need Someone To Help Me With Making A Server,I Need Help With Getting it Online So Other People Can Get On, Also Help With Making A Webclient. Whoever Helps Can Be Co-owner And Get 50% Donations Also I Will Give Them My RS Pure, Stats Are: 60 Atk/68Str/74Range/94Mage/43Pray Also It Has Completed Desert Treasure.
  12. Hey Guys, runedude1 here Ok this sounds sketchy yeah i know but i made a server and need paypal money to pay for a vps. I have 10m rs gp.. and im willing to sell acct.. But i dont want to get scammed so. Im saying this once. You go first for Rsgp.. i will give yu 5m.. then after i see money in paypal i will give yu the rest.I Promise. Pm me.
  13. Hey Guys, Dragonmaidon here i just put $50 onto my paypal account but it said its going to take upto 5 days for it to actually go into the account.... and for some strange reason i cant host the server off my router... so i am asking as well as begging some people to donate so we can get a VPS (24/7 Host) if this is achieved then it will be greatly rewarded for yourself ingame, and also once my $50 has come into the account, i will be paying back every time that people donated today! So please donate $3-7 this would be greatly appreciated as well as greatly rewarded Thank You So Much in advance Kind Regards, Dragonmaidon PS if you wish to donate please PM me :)
  14. i would like help on how to use the interface 940 the buy button id is 64 but my problem is how can i get the interface to sell different items when the buy button is always the same
  15. I've changed the names of the rewards, but i dont know how to change the actual items it gives, can anyone tell me where to find it? i tried searching in client.java couldn't find. I already got the text takin care of obv thats simple
  16. Need help making client for other users to use to get on my server not just my self if you will help rewards will be gives either admin or 10 dollars via paypal you choose please comment below if intrested!
  17. I need help portforwarding my sagem fast - 2504 router sky broadband not alot of people have this but if anyone has a clue how to do it and can do it on teamviewer or just guide me through it just comment below much appreciated rewards will be gives co-owner and 5m rs cash after the server gets other people on line much appreciated!
  18. ok, this is for the mini game, barbarin assault. rewards just require money at this point later on you can make them require points etc. when a player hits one of the gambling button, either, low-level, mid-level, high-level, they will get a random item from the gamble which you can edit. first off, copy this and save it as Gambling.java : /* *Created By Nickyboy304 * *Created on Saturday, june 19/10 2:15 Am */ package com.rs2hd.content.minigames; import com.rs2hd.event.Event; import com.rs2hd.model.Player; import com.rs2hd.GameEngine; import com.rs2hd.model.World; public class Gambling { private static Player player; public static int giveItems1[] = {6889};//gamble points - low items - 250,000 coins public static int giveItem1(){ return giveItems1[(int)(Math.random() * (double)giveItems1.length)]; } public static int giveItems2[] = {6889};//gamble points - medium items - 500,000 coins public static int giveItem2(){ return giveItems2[(int)(Math.random() * (double)giveItems2.length)]; } public static int giveItems3[] = {4151, 11694, 11696, 11698, 11700, 6889, 6585, 11235, 11732, 11724, 11726, 11728, 11730, 526, 1099, 1135};//gamble points - high items - 1,000,000 coins public static int giveItem3(){ return giveItems3[(int)(Math.random() * (double)giveItems3.length)]; } } *note you might want to fix the rewards. now, go place the fiile into "src\com\rs2hd\content\minigames" go into ActioButtonPacketHandler.java and add this: import com.rs2hd.content.minigames.Gambling; and now add this. (do not take away the >= it's saying if they have the extact amount or greater) case 491: switch(buttonId) { case 83://attacker level up - 100,000 coins if(player.getInventory().numberOf(995) >= 100000) { player.getInventory().deleteItem(995, 100000); player.getSkills().addXp(0, 50000); } else if(player.getInventory().numberOf(995) <= 99999) { player.sm("You don't have enough Coins for this item!"); player.sm("You need 100,000 Coins to purchase this Exp!"); } break; case 92://collector level up - 100,000 coins if(player.getInventory().numberOf(995) >= 100000) { player.getInventory().deleteItem(995, 100000); player.getSkills().addXp(4, 50000); } else if(player.getInventory().numberOf(995) <= 99999) { player.sm("You don't have enough Coins for this item!"); player.sm("You need 100,000 Coins to purchase this Exp!"); } break; case 99://defender level up - 100,000 coins if(player.getInventory().numberOf(995) >= 100000) { player.getInventory().deleteItem(995, 100000); player.getSkills().addXp(1, 50000); } else if(player.getInventory().numberOf(995) <= 99999) { player.sm("You don't have enough Coins for this item!"); player.sm("You need 100,000 Coins to purchase this Exp!"); } break; case 106://defender level up - 100,000 coins if(player.getInventory().numberOf(995) >= 100000) { player.getInventory().deleteItem(995, 100000); player.getSkills().addXp(3, 50000); } else if(player.getInventory().numberOf(995) <= 99999) { player.sm("You don't have enough Coins for this item!"); player.sm("You need 100,000 Coins to purchase this Exp!"); } break; case 113://penance fighter hat - 500,000 coins if(player.getInventory().numberOf(995) >= 500000) { player.getInventory().deleteItem(995, 500000); player.getInventory().addItem(10548, 1); } else if(player.getInventory().numberOf(995) <= 499999) { player.sm("You don't have enough Coins for this item!"); player.sm("You need 500,000 Coins to purchase this item!"); } break; case 120://penance ranger hat - 500,000 coins if(player.getInventory().numberOf(995) >= 500000) { player.getInventory().deleteItem(995, 500000); player.getInventory().addItem(10550, 1); } else if(player.getInventory().numberOf(995) <= 499999) { player.sm("You don't have enough Coins for this item!"); player.sm("You need 500,000 Coins to purchase this item!"); } break; case 127://penance runner hat - 500,000 coins if(player.getInventory().numberOf(995) >= 500000) { player.getInventory().deleteItem(995, 500000); player.getInventory().addItem(10549, 1); } else if(player.getInventory().numberOf(995) <= 499999) { player.sm("You don't have enough Coins for this item!"); player.sm("You need 500,000 Coins to purchase this item!"); } break; case 134://penance healer hat - 500,000 coins if(player.getInventory().numberOf(995) >= 500000) { player.getInventory().deleteItem(995, 500000); player.getInventory().addItem(10547, 1); } else if(player.getInventory().numberOf(995) <= 499999) { player.sm("You don't have enough Coins for this item!"); player.sm("You need 500,000 Coins to purchase this item!"); } break; case 141://penance torso - 1,450,000 coins if(player.getInventory().numberOf(995) >= 1450000) { player.getInventory().deleteItem(995, 1450000); player.getInventory().addItem(10551, 1); } else if(player.getInventory().numberOf(995) <= 1449999) { player.sm("You don't have enough Coins for this item!"); player.sm("You need 1,450,000 Coins to purchase this item!"); } break; case 148://penance skirt - 250,000 coins if(player.getInventory().numberOf(995) >= 250000) { player.getInventory().deleteItem(995, 250000); player.getInventory().addItem(10555, 1); } else if(player.getInventory().numberOf(995) <= 249999) { player.sm("You don't have enough Coins for this item!"); player.sm("You need 250,000 Coins to purchase this item!"); } break; case 155://penance boots - 50,000 coins if(player.getInventory().numberOf(995) >= 50000) { player.getInventory().deleteItem(995, 50000); player.getInventory().addItem(10552, 1); } else if(player.getInventory().numberOf(995) <= 49999) { player.sm("You don't have enough Coins for this item!"); player.sm("You need 50,000 Coins to purchase this item!"); } break; case 162://penance gloves - 50,000 coins if(player.getInventory().numberOf(995) >= 50000) { player.getInventory().deleteItem(995, 50000); player.getInventory().addItem(10553, 1); } else if(player.getInventory().numberOf(995) <= 49999) { player.sm("You don't have enough Coins for this item!"); player.sm("You need 50,000 Coins to purchase this item!"); } break; case 169://granite body - 95,000 coins if(player.getInventory().numberOf(995) >= 95000) { player.getInventory().deleteItem(995, 95000); player.getInventory().addItem(10564, 1); } else if(player.getInventory().numberOf(995) <= 94999) { player.sm("You don't have enough Coins for this item!"); player.sm("You need 95,000 Coins to purchase this item!"); } break; case 176://gamble points - low items - 250,000 coins if(player.getInventory().numberOf(995) >= 250000) { player.getInventory().deleteItem(995, 250000); player.getInventory().addItem(player.getGambling().giveItem1(), 1); } else if(player.getInventory().numberOf(995) <= 249999) { player.sm("You don't have enough Coins to gamble!"); player.sm("You need 250,000 Coins to gamble!"); } break; case 183://gamble points - medium items - 500,000 coins if(player.getInventory().numberOf(995) >= 500000) { player.getInventory().deleteItem(995, 500000); player.getInventory().addItem(player.getGambling().giveItem2(), 1); } else if(player.getInventory().numberOf(995) <= 499999) { player.sm("You don't have enough Coins to gamble!"); player.sm("You need 250,000 Coins to gamble!"); } break; case 190://gamble points - high items - 1,000,000 coins if(player.getInventory().numberOf(995) >= 1000000) { player.getInventory().deleteItem(995, 1000000); player.getInventory().addItem(player.getGambling().giveItem3(), 1); } else if(player.getInventory().numberOf(995) <= 999999) { player.sm("You don't have enough Coins to gamble!"); player.sm("You need 250,000 Coins to gamble!"); } break; } break; now go into player.java and add this. import com.rs2hd.content.minigames.Gambling; and now just under public class Player extends Entity { add /* * Gambling */ public transient Gambling gambling; /* now search for "getHunter" until you see something like this. public Hunter getHunter() { return hunter; } under it, add this: public Gambling getGambling() { return gambling; } and your done, test it out, enjoy, (interface is : 491)
  19. We had a hoster but he ruined my server, now we need a new 1 so quick as possible others we are going to lost alot players! We can offer you mod rank if u want and 50% of the donation money if u are interested add me on msn plz or send pm. msn : [email protected]
×