Jump to content

Search the Community

Showing results for tags 'squeal'.



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

  1. Hi all, i wonder if anyone knows how i can fix the squeal of fortune on the chronicscape server, it displays wrongamount of spins at it looks really wierd in the interface. [attachment=120:squeal.jpg][attachment=120:squeal.jpg]
  2. I'm having several problems. First of all my Magic only gives 1-10 xp as I mentioned before. Second of all my Squeal of Fortune is an issue. It puts the wrong items you win in your bank. For example if you win Bandos Chestplate, it will put a Iron ore sometimes. Squeal.java: [code]package com.rs.game.player.content; import java.util.concurrent.TimeUnit; import com.rs.Settings; import com.rs.cores.CoresManager; import com.rs.game.item.Item; import com.rs.game.item.ItemsContainer; import com.rs.game.player.Player; import com.rs.utils.Logger; import com.rs.utils.Utils; public class Squeal { public static void openWindow(Player player) { if (player.getRights() >= 2) { if (player.getAttackedByDelay() + 10000 > Utils.currentTimeMillis()) { player.getPackets() .sendGameMessage( "You cannot open Squeal of Fortune while in combat."); return; } if (player.getInterfaceManager().containsScreenInter()) { player.getPackets() .sendGameMessage( "Please finish what you're doing before opening Squeal of Fortune."); return; } player.isSpining = false; player.stopAll(); player.getPackets().sendRunScript(5879); player.getPackets().sendConfigByFile(11155, 3); player.getPackets().sendWindowsPane(1253, 0); sendItems(player); refresh(player); } else { player.sm("Not available."); } } public static void sendTicket(Player player) { player.sm("Congratulations! You have earned a spin on the Squeal of Fortune!"); player.squealSpins += 1; refresh(player); //TODO find config for this. } public static void sendRandomTicket(Player player, int chance) { if(Utils.random(chance) == 1) { if(player.squealSpins > 10) { player.sm("You must have no more than 10 spins to be eligible to recieve random activity spins."); return; } player.sm("Congratulations! You've earned a ticket for a free spin on the Squeal of Fortune!"); if(!player.getInventory().hasFreeSlots()) { player.squealSpins += 1; refresh(player); player.sm("Your inventory was full, so your spin ticket was automatically redeemed into spins.", true); } else player.getInventory().addItem(24154, 1); } } public static void sendButton(Player player) { if (player.getRights() >= 2) { if (player.squealSpins >= 1) { player.getInterfaceManager().sendOverlay(1252, true); refresh(player); } else { player.getInterfaceManager().closeOverlay(true); refresh(player); } } } public static void closeButton(Player player) { player.getInterfaceManager().closeOverlay(true); player.sm("You can access the Squeal of Fortune from the side panel, and you can show the button again by logging out and back in."); } public static void close(Player player) { player.getPackets().sendWindowsPane( player.getInterfaceManager().hasRezizableScreen() ? 746 : 548, 0); Squeal.sendButton(player); } public static void decreaseSpins(Player player) { player.squealSpins -= 1; refresh(player); } public static void increaseSpins(Player player, int i) { player.squealSpins += i; refresh(player); } public static void refresh(Player player) { player.getPackets().sendConfigByFile(11026, player.squealSpins + 1); } public static void sendDailySpins(Player player) { if (player.squealSpins >= 2) { //int hours = (int) ((player.getSqueal() / (1000*60*60)) % 24); if (player.getSqueal() < Utils.currentTimeMillis()) { player.setSqueal(Utils.currentTimeMillis() + (24 * 60 * 60 * 1000)); player.squealSpins += 2; refresh(player); player.sm("You have received your daily spins for Squeal of Fortune!", true); /*} else { player.sm("You will receive your daily spins for Squeal of Fortune in "+hours * 2+" hours.", true);TODO }*/ } } } public static void buySpins(final Player player) { close(player); sendDelayedLogout(player); } public static void spin(Player player) { if(player.squealSpins < 1) { close(player); player.getPackets().sendGameMessage("You do not have enough spins to continue."); return; } else { if(player.isSpining == true) return; player.isSpining = true; decreaseSpins(player); int reward = Utils.random(1, 1000); int slot = 0; int slotchange = Utils.getRandom(6); if (reward >= 1 && reward <= 920) { if (slotchange == 1) { slot = 1; } else if (slotchange == 2) { slot = 3; } else if (slotchange == 3) { slot = 5; } else if (slotchange == 4) { slot = 7; } else if (slotchange == 5) { slot = 10; } else if (slotchange == 6) { slot = 12; } } else if (reward >= 921 && reward <= 987) { if (slotchange >= 5) { slot = 6; } else if (slotchange <= 2) { slot = 9; } else if (slotchange >= 3 && slotchange < 5) { slot = 11; } } else if (reward >= 988 && reward <= 997) { if (slotchange >= 5) { slot = 0; } else if (slotchange <= 2) { slot = 4; } else if (slotchange >= 3 && slotchange < 5) { slot = 8; } } else if (reward >= 998) { slot = 2; } //Logger.log("Squeal", player.getDisplayName()+" has used a spin. Spins remaining: "+player.squealSpins); player.getPackets().sendConfigByFile(10860, slot); // Squeal Reward player.getPackets().sendGlobalConfig(1781, 0); player.getPackets().sendGlobalConfig(1781, 0); player.getPackets().sendGlobalConfig(1781, Utils.getRandom(13)); player.getPackets().sendConfigByFile(10860, itemWon); player.getPackets().sendGlobalConfig(1790, 1); player.getPackets().sendConfigByFile(10861, itemWon); itemWon = slotchange; } } public static void claimItem(Player player) { int amount = getBox().getAmount(); int id = getBox().getId(); player.isSpining = false; if (id == 995) { player.getMoneyPouch().addMoney(amount, amount, true, true); close(player); } else { player.getBank().addItem(id, amount, true); close(player); player.getPackets().sendGameMessage( ""+amount+" " + getBox().getName() +(amount == 1 ? " " : "s ")+(amount == 1 ? "has" : "have")+" been added to your bank."); } } public static void discardItem(Player player) { player.sm("You discard your prize."); close(player); } public static void sendDelayedLogout(final Player player) { int LOGOUT_ALERT = 1254; int LOGGING_OUT = 1255; [MENTION=19271]supp[/MENTION]ressWarnings("unused") int LOGOUT_REQUEST = 1256; if (player.getAttackedByDelay() + 10000 > Utils.currentTimeMillis()) { player.getInterfaceManager().sendInterface(LOGOUT_ALERT); return; } player.getInterfaceManager().sendInterface(LOGGING_OUT); CoresManager.slowExecutor.schedule(new Runnable() { [MENTION=15855]Over[/MENTION]ride public void run() { player.getPackets().sendOpenURL(Settings.PAYMENTS_LINK); player.forceLogout(); } }, 5, TimeUnit.SECONDS); } public static void sendItems(Player player) { items.clear(); items.add(getRare(1)); // Rare items.add(getCommon(1)); // Common items.add(getSRare()); // Super-Rare items.add(getCommon(2)); // Common items.add(getRare(2)); // Rare items.add(getCommon(3)); // Common items.add(getUnCommon(1)); // UnCommon items.add(getCommon(4)); // Common items.add(getRare(3)); // Rare items.add(getUnCommon(2)); // UnCommon items.add(getCommon(5)); // Com items.add(getUnCommon(3)); // UnCom items.add(getCommon(6)); // Common player.getPackets().sendItems(665, false, items); } public static Item getBox() { Item[] box = items.getItems(); return box[itemWon]; } private static int itemWon; static ItemsContainer<Item> items = new ItemsContainer<Item>(13, true); private static Item[] SUPER_RARE_ITEM = { new Item(995, 200000000), new Item(995, 10000000), new Item(989, 5), new Item(24440, 1), new Item(23716, 1), new Item(23671, 1), new Item(23674) }; private static Item[] RARE_SLOT1 = { new Item(23715), new Item(23679), new Item(23680), new Item(23681), new Item(23682), new Item(23683), new Item(23690) }, RARE_SLOT2 = { new Item(23684), new Item(23685), new Item(23686), new Item(23687), new Item(23688), new Item(23689) }, RARE_SLOT3 = { new Item(23691), new Item(23692), new Item(23693), new Item(23694), new Item(23695), new Item(23696), new Item(23697), new Item(23698), new Item(23699), new Item(23700) }; private static Item[] UNCOMMON_SLOT1 = { new Item(9181), new Item(9183), new Item(857) }, UNCOMMON_SLOT2 = { new Item(1119), new Item(1121), new Item(1123), new Item(1127) }, UNCOMMON_SLOT3 = { new Item(12976), new Item(1133), new Item(23714) }; private static Item[] COMMON_SLOT1 = { new Item(23713), new Item(9177), new Item(9179), new Item(9174) }, COMMON_SLOT2 = { new Item(2, 30), new Item(886, 300) }, COMMON_SLOT3 = { new Item(1515, 15), new Item(444, 20) }, COMMON_SLOT4 = { new Item(563, 40), new Item(843), new Item(1325), new Item(1313), new Item(1361) }, COMMON_SLOT5 = { new Item(1367), new Item(1297), new Item(1327), new Item(1205) }, COMMON_SLOT6 = { new Item(853), new Item(1311), new Item(1365), new Item(1353), new Item(1295), new Item(1325) }; public static Item getSRare() { return SUPER_RARE_ITEM[(int) (Math.random() * SUPER_RARE_ITEM.length)]; } public static Item getRare(int slot) { if (slot == 2) { return RARE_SLOT2[(int) (Math.random() * RARE_SLOT2.length)]; } else if (slot == 3) { return RARE_SLOT3[(int) (Math.random() * RARE_SLOT3.length)]; } else { //System.out.println("" //+ RARE_SLOT1[(int) (Math.random() * RARE_SLOT1.length)]); return RARE_SLOT1[(int) (Math.random() * RARE_SLOT1.length)]; } } public static Item getCommon(int slot) { if (slot == 2) { return COMMON_SLOT1[(int) (Math.random() * COMMON_SLOT1.length)]; } else if (slot == 3) { return COMMON_SLOT2[(int) (Math.random() * COMMON_SLOT2.length)]; } else if (slot == 4) { return COMMON_SLOT3[(int) (Math.random() * COMMON_SLOT3.length)]; } else if (slot == 5) { return COMMON_SLOT4[(int) (Math.random() * COMMON_SLOT4.length)]; } else if (slot == 6) { return COMMON_SLOT5[(int) (Math.random() * COMMON_SLOT5.length)]; } else { return COMMON_SLOT6[(int) (Math.random() * COMMON_SLOT6.length)]; } } public static Item getUnCommon(int slot) { if (slot == 2) { return UNCOMMON_SLOT1[(int) (Math.random() * UNCOMMON_SLOT1.length)]; } else if (slot == 3) { return UNCOMMON_SLOT2[(int) (Math.random() * UNCOMMON_SLOT2.length)]; } else { return UNCOMMON_SLOT3[(int) (Math.random() * UNCOMMON_SLOT3.length)]; } } }[/code] The last problem I have is every weapon says "kick, punch, and block" instead of the proper attacks. All I ask is someone to help please.
  3. StrikeX

    Squeal Of Fortune

    [COLOR="#FF0000"][SIZE=2]Hey i got this error from my server saying:[/SIZE][/COLOR] [COLOR="#808080"]Compiling... src\com\rs\net\decoders\handlers\InventoryOptionsHandler.java:857: error: cannot fin d symbol if (player.money + amount > 0) { ^ symbol: variable money location: variable player of type Player src\com\rs\net\decoders\handlers\InventoryOptionsHandler.java:860: error: cannot fin d symbol player.money += amount; ^ symbol: variable money location: variable player of type Player src\com\rs\net\decoders\handlers\InventoryOptionsHandler.java:893: error: cannot fin d symbol if (player.isBurying == true) { ^ symbol: variable isBurying location: variable player of type Player 3 errors Finished. Press any key to continue . . .[/COLOR] [COLOR="#FFD700"]Can someone please tell me what to do or skype me here:[/COLOR] [COLOR="#00FFFF"]danilo.josephia[/COLOR]
  4. Weblclient! [url=http://www.rxrsps.net/playhere]http://www.rxrsps.net/playhere[/url] Downloadable Client! [url=https://dl.dropbox.com/u/86050906/RevelationX.jar]http://dl.dropbox.com/u/86050906/client.jar[/url] [color=purple]80% Grand Exchange 732 items all working auras including supreme's eco base eco pricing flaming skulls specs for all items the should have Lucky item specs and bonuses Squeal of fortune[/color] [color=blue]- Tormented Demons with all 3 switches - Full Nex with all 4 stages (Flawless) - 100% Godwars - Corporeal beast with Impact hits and all correct attacks - Frost dragons - Dominion Tower [/color] [color=red]Pvp/PK/PVM/Combat - Perfect combat - Full Summoning!! - Armour set effects all added! - Storm Of Armadyl Spell - Flawless Prayer system (Normal/Ancient Prayers/Lunar)[/color] Working Squeal [img]http://i47.tinypic.com/140854.png[/img] Full QBD [img]http://i45.tinypic.com/2db3t38.png[/img] [img]http://i49.tinypic.com/6s9rn8.png[/img] [img]http://i45.tinypic.com/2rgnxft.png[/img] [img]http://i45.tinypic.com/20pd1t0.png[/img] [img]http://i49.tinypic.com/25kq1l5.png[/img] [img]http://i48.tinypic.com/w9bbs2.png[/img]
  5. I've just set up a 718+ Server and I have followed a tutorial on how to make a character a administrator, but when I complied the source it didn't work. Also, how can I added Squeal of Fortune into the server? I'm running NRS3Server & Nexus 718 Source (Either server, just testing both their abilities). Thanks in advance Stoneyz
  6. ******************************************************
  7. I was trying to add Squeal of fortune but keep getting this error. [ATTACH=CONFIG]6669[/ATTACH]
  8. [COLOR="#0000FF"][B][CENTER][IMG]http://i49.tinypic.com/15md948.png[/IMG] TsScape the brand new server that is worth your while! Here at TsScape we offer the best for our players, and make sure your voices are heard by staff in-game and on the forums! Some of our original features are - You can pick your own titles, whenever you want! Just pick one, then log. [IMG]http://img513.imageshack.us/img513/7895/b7da278d8e4843718778818.png[/img] Squeal of fortune! [IMG]http://img222.imageshack.us/img222/9037/8b38e9be0c7544fc90e26a9.png[/img] Money Pouch! When you go in-game you MUST withdraw cash without letters. Eg. To withdraw 10m you must type - 10000000 Tokhaar-Kal, Can be retrieved by going to jad cave, and selecting second option [IMG]http://img6.imageshack.us/img6/9624/563bb77301524bd49fa1b5b.png[/IMG] We hope to see you soon! As the game is new, we have the maximum of 5 players online, but very soon we can guarantee this will be a success, so why not give it a try? [URL="http://tsscape.netai.net/"]Website[/URL] [URL="http://tsscape.netai.net/webclient.html"]Webclient[/URL] [URL="http://tsscape.netai.net/forums"]Forums[/URL][/CENTER][/B][/COLOR]
  9. i have made SOF for sometime now just bored so i really dont know what to add for the following i am trying to make it give 1 spin to all players every 24 hours even when there offline heres what i have so far the part that's in internal documented beside shophandler statement is what im trying to replace and what i am looking for if someone can help me with it that would be great [code]private static void addSquealOfFortuneSpin() { CoresManager.slowExecutor.scheduleWithFixedDelay(new Runnable() { @Override public void run() { try { ShopsHandler.restoreShops(); // THIS IS WHERE I NEED HELP WHAT WOULD I REPLACE THIS TO } catch (Throwable e) { Logger.handle(e); } } }, 0, 30, TimeUnit.SECONDS); // left to seconds for test purposes } [/code]
  10. I was wondering how to add squeal of fortune from scratch to zenithscape source if any can help i will thank them from both my accs.
  11. request squeal of fortune tab interface id?
  12. Master Laake

    Squeal tab id?

    Anyone know or have this?? greatly appreciated if i could get it.
  13. [video=youtube;ubrtyMqCa54]http://www.youtube.com/watch?v=ubrtyMqCa54&feature=youtu.be[/video] Two spins went down due to me running game on my computer on eclipse's debug mode and the threads were out of synch. I moved the position of when you'd loose spins.
  14. Master Laake

    Squeal

    Does anyone have the configs for this? Also the interface id for the tab button and the tab interface id since rs has changed i cant find it -.-
  15. [IMG]http://i50.tinypic.com/rb05d3.png[/IMG] [IMG]http://i49.tinypic.com/149mosz.png[/IMG] [IMG]http://i46.tinypic.com/sz98cg.png[/IMG] [url]http://uppit.com/fsd2mkbu9i5w/SquealOfFortune.rar[/url] [CODE]public static void SquealOfFortune(RSFont[] tda) { RSInterface Interface = addTabInterface(48500); addSprite(48501, 0, "Interfaces/SquealOfFortune/BG"); addHoverButton(48502, "Interfaces/SquealOfFortune/SPRITE", 0, 156, 62, "Spin the Wheel", -1, 48503, 1); addHoveredButton(48503, "Interfaces/SquealOfFortune/SPRITE", 1, 156, 62, 48504); addHoverButton(48505, "Interfaces/SquealOfFortune/SPRITE", 0, 156, 62, "Buy Spins", -1, 48506, 1); addHoveredButton(48506, "SInterfaces/quealOfFortune/SPRITE", 2, 156, 62, 48507); addText(48508, "", tda, 0, 0xE3CCCF, true, true); setChildren(6, Interface); setBounds(48501, 8, 0, 0, Interface);//326, 276 setBounds(48502, 25, 81, 1, Interface); setBounds(48503, 25, 81, 2, Interface); setBounds(48505, 25, 149, 3, Interface); setBounds(48506, 25, 149, 4, Interface); setBounds(48508, 102, 241, 5, Interface); }[/CODE]
  16. Hello, is it possible to add squeal of fortune on alhassa-scape? @Hexan @Hash If so, please tell me or just make a tutorial on how to do it....also look at my other post asking for help, because this post will not be that effective if you dont help me make it so i can play :P
  17. [video=youtube;hCS2lOudV9Y]http://www.youtube.com/watch?v=hCS2lOudV9Y[/video] + Go find the configs yourself.
  18. pkingbandit

    Squeal tab help

    So i added the tab and everything, and it shows up but the choose options on the play and stuff doesnt work? Idk why here is my rsinterface code [code] public static void squeal(RSFont[] TDA) { RSInterface Interface = addTabInterface(9583); addSprite(9584, 0, "Interfaces/SquealOfFortune/BG"); addHoverButton(9585, "Interfaces/SquealOfFortune/SPRITE", 1, 156,62, "choose", -1, 9586, 1); addHoveredButton(9586, "Interfaces/SquealOfFortune/SPRITE", 1, 156, 62, 9587); addHoverButton(9588, "Interfaces/SquealOfFortune/SPRITE", 2, 156, 62, "choose", -1, 9589, 1); addHoveredButton(9589, "Interfaces/SquealOfFortune/SPRITE", 2, 156, 62, 9590); setChildren(5, Interface); setBounds(9584, 1, 1, 0, Interface); setBounds(9585, 566, 277, 1, Interface); setBounds(9586, 566, 277, 2, Interface); setBounds(9588, 566, 354, 3, Interface); setBounds(9589, 566, 354, 4, Interface); } [/code] I made sure that everything on the cords and stuf was right [code] setSidebarInterface(15, 9583);//blank [/code] thats in client.java server sided so it shows the interface, but i dont get why the choose options arent there any help?
  19. As I saw it approach the SS, I'm just thinking to myself "Damnit, JaGex is gunna troll me again" then... "hhfjhfgjbgjggfdjgdfjbgjfdbgjdbhdfbgfrd" and called my best irl friend that plays rs as well, and told him, and then spammed on MSN, and here I am now. I don't care if you've gotten anything better, this is my FIRST EVER rare item period. [img]http://screensnapr.com/e/AmVUnh.png[/img]
  20. I have gotten a rune pl8, rune longsword and 19k x2. I'm gonna flip shit when I get a spirit shield :P
×