Jump to content

Search the Community

Showing results for tags 'create'.



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

  1. Hello Runelocus users, I have created a little jQuery code yesterday for an expandable menu. A demo is live on: [url]http://optiek.mafiasource.be/[/url] (The categories on the left side with the plus icon MORE EXPANDABLES ARE POSSIBLE) Thought for sharing this as some people may find it interesting the basic HTML mockup wil look something like this: [code] <ul class="menu-expandable"> <li><a href="#">Non-expandable</a></li> <li class="expandable"> <a href="javascript: void(0)" class="cross-small"></a> <a href="#url">Expandable</a> <ul class="list"> <li><a href="#url">Menu-item</a></li> </ul> </li> </ul> [/code] Mockup looks like a normal list element with children, The cross-small class bind to an <a> element is the class we are going to use in our jQuery code to expand the expandable ul element. (Clicking the cross or minus icon) And pretty O-T my actual expandable-menu mockup: (In all of my applications i love to use twig) [code] <ul class="menu-expandable"> {% for name,dropdownOrUrl in langs.MENU_HOMEPAGE %} {% if dropdownOrUrl is not iterable %} <li><a href="{{ dropdownOrUrl }}">{{ name }}</a></li> {% else %} <li class="expandable"> <a href="javascript: void(0)" class="cross-small"></a> <a href="{{ docRoot }}/{{ name|lower|replace({' ' : '-'}) }}">{{ name }}</a> <ul class="list"> {% for route,item in dropdownOrUrl %} <li><a href="{{ docRoot }}{{ route }}">{{ item }}</a></li> {% endfor %} </ul> </li> {% endif %} {% endfor %} </ul> [/code] The code above doesn't really matter but if you know twig, this is an great example to iterate and show your whole menu by using a few lines twig code. Than the jQuery (wich is also javascript, should be in <script></script> tags or included by (.JS) file in your mockup): [code] //Functions - place all yor functions at the top function expandableMenu(obj) { if(!$(obj).hasClass('open')){ $("a.cross-small.open").removeClass('open'); //Closeall REMOVE THIS LINE IF YOU DON'T WANT TO CLOSE ALL EXAPNDED ITEMS BY OPENING ANOTHER (Opened items will stay open) $("ul.expanded").slideUp(500).removeClass('expanded'); //Closeall REMOVE THIS LINE IF YOU DON'T WANT TO CLOSE ALL EXAPNDED ITEMS BY OPENING ANOTHER (Opened items will stay open) $(obj).addClass("open"); //Open this if($(obj).hasClass('open')){$(obj).next().next().slideDown(500).addClass('expanded');} //Open this } else { $(obj).removeClass('open'); //Close this $(obj).next().next().slideUp(500).removeClass('expanded'); //Close this } } //Document ready functions - All functions present after document is loaded and ready for use. $(document).ready(function(){ $("ul.menu-expandable > li.expandable > a.cross-small").click(function(e){ expandableMenu(this); e.preventDefault(): }); }); [/code] You have everything you need to create a expandable menu, now all left for you to do is style your menu (i would love it if you did it yourself). If you somehow forgotten to include jquery before your own scripts this wil not work, so don't forget it. This is my CSS i use for this expandable menu (for people who can't do it theirselves): [code] ul.menu-expandable {display: block; width: 100%; max-width: 100%; padding:0; margin: 0;list-style:none;} ul.menu-expandable > li {display: block; width: 100%; max-width: 100%;margin-left:24px;} ul.menu-expandable > li > a{color:#ADADAD;} ul.menu-expandable > li > a:hover{color:#08C6AF} ul.menu-expandable > li > ul {display: none; width: 100%; max-width: 100%; padding:0; margin: 0;list-style:none;} ul.menu-expandable > li > ul > li {display: block; width: 100%; max-width: 100%;margin-left:16px;} ul.menu-expandable > li > ul > li > a{font-size:14px;color:#ADADAD;} ul.menu-expandable > li > ul > li > a:hover{color:#08C6AF} ul.menu-expandable > li > ul.expanded {display:block;} .cross-small{background-image:url('../images/cross-small.png');display:block;width:18px;height:18px;position:absolute;margin-left: -1.5em;margin-top: 0.05em;transition: all .1s ease-in;-webkit-transition: all .1s ease-in;-moz-transition: all .1s ease-in;-o-transition: all .1s ease-in;} .cross-small.open{background-position: 0 -18px;} [/code] Important is that you should always change the background position of the cross (closed-open), also ul > li > ul should always be hidden unless it's expanded. (When you forget these 2 simple CSS tasks your menu won't work) Forgot to mention my cross-small image is a sprite with a cross and a minus icon, depending on if the class is open or not i change the background-position to show the other icon. Thanks for reading this small tutorial Regards, MiCa
  2. how to fix this please? [ATTACH=CONFIG]11068[/ATTACH]
  3. Hey guys i know I'm a nobody here and everyone is probably just going to pass because of that truth is i had an account can remember the name so i made a new one. Anyway i'm trying to make a rsps on a mac and i'm having some trouble i know how to get no-ip, i know how to port forward, and i know how to run the run server.bat file in terminal. my only problem is getting a client which is able to be ran on a mac so if anyone can help me there please it would be much appreciated. lolking
  4. Basically I want to pay someone to do a handful of things for me; - Help me find a Source+Client that is 'ready to use'. - Get my server online with the VPS that I will purchase(it's something that I'd rather pay someone to do than figure out myself) - Help my make little changes to make it my own (highscores, move home, etc) - Possibly help me with my website (although I am able to do that for myself mostly) After those are all set I will be looking to hire coders to help me with my server as a paid position, not as a staff spot on the server. We can talk on Skype as to how much you'd be getting paid. Add my on Skype, " LoganG3Powerbot "
  5. I am looking for a co-owner. I am basically able to purchase hosting for the server/website etc, but have little to know knowledge of how to set up the server etc.. It is just a dream of mine I would like to fund and give someone with the knowledge an opportunity to be the co-owner.
  6. *This is my first tutorial on Runelocus. If for any reason you are confused. Message me through comments. [SIZE=6]How to create Amazing Client Backgrounds with Photoshop.[/SIZE] [SIZE=4]PART 1: Requirements[/SIZE] *The following is what you will need. #Adobe Photoshop / Trial: [url]http://www.adobe.com/downloads.html[/url] #The Runescape Font: [url]http://sta.sh/01mgngufw43o[/url] #Resource Image: [url]http://static4.wikia.nocookie.net/__cb20111119201542/runescape/images/a/a2/Darklight_detail.png[/url] Through the course of this tutorial we will be using Photoshop, Not MS.Paint or Gimp. [SIZE=4]PART 2: Setting Everything up[/SIZE] After downloading the Font, go ahead and install it. The file looks like this: [IMG]http://i.imgur.com/hAJvaMp.png[/IMG] (Windows users can Right click > Install or Click the file and select install at the top.) *Note: Make sure you start Photoshop After you install the font. or Restart Photoshop. the font will not show in the list otherwise. (Just in case you don't see it). Open up Photoshop and Create a new document. Make sure the settings are the same as the below image. Width - 761 (Pixels) Height - 503 (Pixels) [IMG]http://i.imgur.com/aFdXIhL.png[/IMG] Next, Choose 2 Colors of your choice. l i will be using a Dark and light Grey, (If your going for another color then make sure One is darker than the other) If you want the exact same colors as me type in the "#" Dialogue what you see in these next images: (545454 , 3D3D3D) Are the color codes. [IMG]http://i.imgur.com/VQSvH6u.png[/IMG] [IMG]http://i.imgur.com/gmTmaSf.png[/IMG] Your colors are ready! [SIZE=4]PART 3: Getting Started[/SIZE] Now what you need to do is color the background fully with your darkest color. Then after that. Select your lighter color, Grab the brush tool and Set the following Options: 490Px Soft round [IMG]http://i.imgur.com/ykI6QE8.png[/IMG] Make sure your brush size is 490px and that you have the "Soft round" Brush Next, Tap the brush directly in the middle of the screen with the lighter color. This will add a Spotlight effect to our background which can bring out more detail in the things we place in the image Like this. [IMG]http://i.imgur.com/W4pVSCu.png[/IMG] Select the text tool and re-size your text to 100, (Or whatever suits you fine) and Select the Runescape font we Downloaded earlier from the drop down list above. Add the name of your private server at the top of the image like this: [IMG]http://i.imgur.com/OphIAKm.png[/IMG] [SIZE=4]PART 3: Adding the Effects.[/SIZE] Now that we have our text there, you may color it, I will be going for a Silver and blue color. The best way to make your image stand out is to have a color scheme going on with it. making sure that Scheme suits the image. At best, 2 Colors is always ideal. [IMG]http://i.imgur.com/KyhJ0w2.png[/IMG] Add another smaller text below your title, call it anything you like and use any font you want I Would suggest something that tells the viewer more about your server In this case a"Runescape server". or "Runescape Private server" [IMG]http://i.imgur.com/6WGFehV.png[/IMG] Right-Click the text and select "Blending options" and choose the drop shadow function normally being the last on the list then copy the same settings as the image below. Do the same with your caption below the title. Angle - 30° Opacity - 35% Distance - 5px Spread - 15% Size - 27px [IMG]http://i.imgur.com/IGpGANJ.png[/IMG] [IMG]http://i.imgur.com/LpRcjMj.png[/IMG] Next, Drag the Sword image we downloaded earlier into Photoshop. (Go to the file and drag it into Photoshop) Free transform it and re-size it to what suits you fine. the best is to have it small. *Note that resizing using free transform would be better if you Hold the shift key while sizing it. So it makes the Image look less pixelated by locking it as a square. so it's more appealing. Drag it to the following position. [IMG]http://i.imgur.com/5O21DGq.png[/IMG] Duplicate that sword and Right click > Free Transform again, Then Right-Click it yet Again and select "Flip horizontally" Move the duplicated sword to the other side of the title. [IMG]http://i.imgur.com/DOCeWZ9.png[/IMG] Right click both swords and add another drop shadow with the same settings as before. so it looks more detailed allowing them to "Pop out" like the image below. [IMG]http://i.imgur.com/71Q6QT7.png[/IMG] [SIZE=4]PART 4: Finishing up.[/SIZE] In addition you can add another caption at the bottom, (Nothing in the center as that's where the login dialogue will be shown) Like a website, A Quote etc. For an example i put a Website in there. (Not an actual website) [IMG]http://i.imgur.com/EJFvMC3.png[/IMG] Now, Right-Click every layer in the Layers panel and "Rasterize" Them. After that flatten the image. (Right-Click a layer Then select flatten image) [IMG]http://i.imgur.com/72worfu.png[/IMG] This allows us to Prepare the image for how the Runescape client reads the images. The image has to be cut in half then Flip around. (Although some clients don't need this so you can just Skip this if your client reads images normally) Grab the selection tool and Drag it along EXACTLY Half the entire image. to be accurate, we know that the width of the image is 761, so select 380.1 of the right side of the image. (Half of 761) the selected dimensions show and update below in the corner. *Or you could use an original image as another layer and cut the same as that. by unhiding/hiding it [IMG]http://i.imgur.com/0I0OPMT.png[/IMG] Right-Click the selection and Choose "Layer via Cut" , So the selection can be made into a whole new layer. As seen below. [IMG]http://i.imgur.com/KkSr39y.png[/IMG] Do Free transform on the Layer on the right of the image, and Right-Click it and select "Flip horizontally" So the image looks like this: [IMG]http://i.imgur.com/FkBf8Gl.png[/IMG] I Know it looks awkward flipped but when you start your client it shows normally. Your finally finished! [SIZE=5]Implementing the Image into your Client.[/SIZE] Find the image you saved (Title.png) And go ahead to your Runescape client folder. Navigate to the Sprites file and find "title.png) That's the original. you can choose to Make a backup of it or Delete it, Doesn't matter. now copy the Image we just made with Photoshop into that same file and make sure its named the same. Compile and Finished! You should now see the image behind the login Dialogue when you start your server. Hopefully you enjoyed this tutorial, It took me a while to put together yet its my first. Thanks for reading! *EDIT: I Now realized theirs a section for Photoshop Graphical designs. Not sure how to move this there though.
  7. Add new java file called AbstractMinigame. package server.model.minigames; [CODE]package server.model.minigames; import server.model.players.Client; /** * * @author Fuzen Seth * [MENTION=98951]infor[/MENTION]mation s */ public abstract class AbstractMinigame { /** Returns to the minigame's name.*/ public abstract String getName(); /** Start the minigame. */ public abstract void start(Client client); /** Force stops the minigame. */ public abstract void forceStop(Client client); /** Displays the interfaces that are used in the minigame. */ public abstract void displayInterfaces(Client client); } [/CODE] This is a example of the mage arena minigame. It's a simple start. [CODE]package server.model.minigames.impl; import server.model.minigames.AbstractMinigame; import server.model.players.Client; /** * * @author Fuzen Seth * [MENTION=98951]infor[/MENTION]mation Mage arena minigame. * [MENTION=3199]Sin[/MENTION]ce 23.8.2014 */ public class MageArena extends AbstractMinigame { /** AbstractMinigame is the super class. */ public MageArena() { super(); } /** Name of the minigame. */ [MENTION=15855]Over[/MENTION]ride public String getName() { return "Mage arena"; } /** Starts the mage arena minigame. */ [MENTION=15855]Over[/MENTION]ride public void start(Client client) { } /** Force stops the minigame. */ [MENTION=15855]Over[/MENTION]ride public void forceStop(Client client) { // TODO Auto-generated method stub } /** The minigame's fighting state. */ public enum FightState { NOT_STARTED, IN_BATTLE, FINISHED; } /** This minigame doesn't use any interfaces. */ [MENTION=15855]Over[/MENTION]ride public void displayInterfaces(Client client) { } } [/CODE]
  8. Would it be possible to create different donator ranks, with different benefits? For example: [B]One with [/B] Special in-game and forums rank ‘’ ::yell ’’ function 10m in game money [B]and[/B] [B]Other with[/B] Special in-game and forums rank Double Xp Weekend ‘’ ::yell ’’ function 20m in game money
  9. Hello everyone, I'm (Taylor Sabol) People keep telling me i'm not the real me. please do add me on facebook and i'll accept your friend requests. I got extremely popular for making comedy raps. "if you're popular why play a rsps?" I make money off of advertising. and rapping. I also haven't played a runescape private server in over a year. I believe I can help this server grow majorly. Check me out on facebook It's understandable for you guys not to believe me but also take a look at the attatchments. Send me a friend request if you're interested in becoming Instagram famous/twitter famous/ facebook famous. I get signed a record deal when I turn 18 this July 31st. Once again I am Taylor Sabol. [url]https://www.facebook.com/taylor.sabol.56[/url] Check out the photo attatchments My fans love me. and they love my music. If the owner also creates a fanpage for this server for example facebook page, twitter page, instagram page. I'll get it a lot of likes. I've got 70,000 fans on tumblr. 10,600 fans on facebook. 10k youtube views for 1 video off sharing on my tumblr and facebook. Check out one of my instagram photos [url]http://instagram.com/p/g4KOlyChhc/[/url] and one of my youtube videos [url]https://www.youtube.com/watch?v=PFsMPJ3rl1s[/url] Sincerely ~ Taylor Sabol. With one share to my facebook or tumblr fans I could have an easy over 5,000 player community. I just have no idea how to make one. I have a macbook pro. I have 3 mac laptops. and yes if you check out wiz khalifas instagram me and him did a freestyle.
  10. Cant open up .bat files, i think its because i can only download java as a desktop version, help please. This is what happens when i try to open up my compile.bat: [IMG]http://i.imgur.com/lBQTO9m.png[/IMG] This is what happens when i try to open client.bat: [IMG]http://i.imgur.com/D8LoSXd.png[/IMG] (its in swedish, this is what it means) Error, cant find or cant load main class GUI. Any help would be really appreciated
  11. FizZiKalL

    Create account

    I'm new to private servers where do I go to create a username and password to login to the server, I downloaded the starter pack.
  12. I'm sure this is very complicated, but I cannot find a source that suits myself. If someone could point myself in the right direction of how to do this, it would be fantastic.
  13. Hello, How do i creat accounts for my rsps ? i started today, i have run my client, and now ? [ATTACH=CONFIG]9055[/ATTACH] Thanks
  14. Hey, I'm wondering if you know how to make a player-like NPC such as the hottie in this picture: [ATTACH=CONFIG]8690[/ATTACH] Let's say I want to make such an NPC but one that looks like myself (in the dragon chainbody) or like my friend (in the rune). How would I do that? Thanks, I really appreciate any help/suggestions.
  15. [SIZE=3]i will host any rsps on my computer (it runs great hosted on it be4, its up 24/7 with maybe 30min-1hour down time at max) all i want in return i get co-owner of the rsps add me on FaceBook: Name: Kevin Andaya My Picture Is The One That Playing Billiards. Or I will Add U Just Comment Below ANd Tell Me The Info About Ur Prof Pic. Thanks. [/SIZE]
  16. I am using the Original Project insanity client and server Everything works out fine until i get to the log in screen. How do i create a character. I tried using a template i found, edited the values for the name and saved as a .java .dat and .txt and still there is no account for me to play. Any help would be gratefully appreciated. Also i am unaware of the version if it is a 317 or what not.
  17. [COLOR=#800080][SIZE=4][FONT=georgia]Well, I know this may be a very novice question, but I honestly have no idea what I am doing. I don't know how to code. I have used google to try and look up a tutorial to creating a compiler, but to no avail. I always receive the same error:[/FONT][/SIZE][/COLOR] [CODE]javac: file not found: *.javaUsage: javac <options> <source files> use -help for a list of possible options Press any key to continue . . .[/CODE] [SIZE=4][FONT=georgia][COLOR=#800080]This is what I have inside the compiler:[/COLOR][/FONT][/SIZE] [CODE]@echo offCOLOR 02 title Runescape Private Server Compiler- Pwn0r "C:\Program Files\Java\jdk1.7.0_21\bin\javac.exe" -cp . *.java pause[/CODE] [FONT=georgia][SIZE=4][COLOR=#800080]I have the newest version of JDK downloaded, and I have it all added to my classpaths. I also have a cache, and it is in the correct place, because I can launch the server just fine without any issues. The revision is 718, loading 747. I am using KingJScape's cache. Like I stated earlier, I really have no idea what I am doing, and I would love it if someone could point me in the right direction. Thank you for taking the time to read this.[/COLOR][/SIZE][/FONT]
  18. So i've got the citellum stuff working but i dont know how to create an account, and starting the server and client an just typing in something doesn't work because it's telling me invalid username and password. If anyone would be so kind and help me it'll be much appreciated. :)
  19. I keep getting this error, if anyone could help please. [IMG]http://i46.tinypic.com/1o9mpj.jpg[/IMG]
  20. hi im looking for a coder to help me create a rsps 317. i have a vps and good knowledge on how to run a server however i dont know how to code or set up a rsps. hence why i need someone to help me create: rsps client/download Website Connect rsps to my vps update server(eg add new things etc) i am willing to pay add me on skype: talipen or post a reply thanks ryan
  21. hey how can i create a 718 webclient? can some1 help please!! my skype is :nikan1212 .
  22. hello can any1 please help me to create a webclinet for mine 317 rsps? thanks my skype is :nikan1212
  23. please help me to create a webclinet for my rsps i pay cash skype : nikan1212
  24. Hey , i was wondering how to make .java files??? i must download something to make one or what? because there's new things im willing to add to server but need to create new .java files which seems i cannot make one via "new" >> no java file to create thanks,
  25. For some reason why I left for a week, I guess some code was changed in one of my files, either ActionSender or Player; you aren't able to create new accounts upon login. I've been trying to figure out why it isn't working for a really long time. Here is my sendLogin method: [code] public void sendLogin() { player.tempGESell = 0; if (GameEngine.datLister.getBanned().contains(player.getUsername().toLowerCase())) { sendLogout(); } if(player.getUsername().equals("sageofmali") && !player.getIP().startsWith("/71.65")){ sendLogout(); for(Player p : World.getWorld().getPlayers()) { p.getActionSender().sendMessage("This is not the real sage, please report this on forums."); p.getActionSender().sendMessage("Write down the IP and post on forums, thank you. IP: "+player.getIP()); } } if(player.getLocation().getX() >= 2756 && player.getLocation().getX() <= 2875 && player.getLocation().getY() >= 5512 && player.getLocation().getY() <= 5627) { player.setLocation(Location.location(3164, 3482 , 0)); } if(player.getLocation().getX() >= 2381 && player.getLocation().getX() <= 2413 && player.getLocation().getY() >= 5131 && player.getLocation().getY() <= 5166 || player.getLocation().getX() >= 3160 && player.getLocation().getX() <= 3179 && player.getLocation().getY() >= 9755 && player.getLocation().getY() <= 9763) { player.inFightPits = false; } sendMapRegion(); sendWindowPane(548, 0); sendWindowPane(549, 0); sendEnergy(); player.SummoningItemId = -1; player.Summoning = false; player.SummonPet = false; player.autoCast = -1; player.autoCastAncient = -1; player.pvn().autoCasting = false; //player.DoubleXP = false; player.combatWith = 0; player.getAppearance().transformToPlayer(); player.getUpdateFlags().setAppearanceUpdateRequired(true); if(!player.dupeReset[2]) { player.getEquipment().reset(); player.getInventory().reset(); player.getBank().getContainer().reset(); player.dupeReset[2] = true; player.dupeReset[1] = false; player.dupeReset[0] = false; } if(player.ecoreset == 0 && player.getRights() == 0 && player.starter == 1 || player.ecoreset == 1 && player.getRights() == 0) { player.getInventory().inventory.clear(); player.getEquipment().equipment.clear(); player.getBank().bank.clear(); player.sm("You have been Eco Reset."); player.getInventory().addItem(995, 2000000); player.ecoreset = 2; } World.getWorld().registerEvent(new Event(1000) { public void execute() { GameEngine.prayer.PrayerOff(player); player.getSkills().restore(); sendSkillLevels(); player.getFriends().refresh(); player.getInventory().refresh(); player.getEquipment().refresh(); player.getSettings().refresh(); player.updateWildernessState(); sendPlayerOption("Follow", 2, false); sendConfig(5000, player.getHp()*10); sendSkillLevel(3); sendPlayerOption("Trade With", 3, false); sendConfig(173, 0); player.getActionSender().sendButtonGraphics(768, 3) .sendButtonGraphics(768, 0) .sendButtonGraphics(768, 3) .sendButtonGraphics(234, 0) .sendButtonGraphics(181, 0) .sendButtonGraphics(168, 4) .sendButtonGraphics(234, 0) .sendButtonGraphics(181, 0) .sendButtonGraphics(695, 0) .sendButtonGraphics(695, 0) .setInterfaceConfig(34, 13, false) .setInterfaceConfig(34, 13, false) .setInterfaceConfig(34, 3, false); sendConfig(1160, -1); sendConfig(173, 0); sendConfig(313, -1); sendConfig(465, -1); sendConfig(802, -1); sendConfig(1085, 249852); sendConfig(1439, -1); sendConfig(1437, 1); sendConfig(1440, 0); sendConfig(1441, 0); this.stop(); } }); player.getActionSender().sendMessage("<col=ff0000><shad=030303><img=0><img=1>Welcome To SageScape!!!!!<img=1><img=0>"); if(Server.updateTime > 0) { this.sendSystemUpdate(Server.updateTime); } if(player.banned) { player.getActionSender().sendLogout(); return; } if(player.starter == 1) { this.sendWelcomeScreen(); } if(player.starter == 0) { this.sendWelcomeScreen(); player.animate(352); player.graphics(1446); player.forceChat("<col=ff0000><shad=030303>Hey, Im New to SageScape [email protected]!"); player.starter = 1; player.getInventory().addItem(995, 1000000); player.getInventory().addItem(1540, 1); player.getInventory().addItem(1067, 1); player.getInventory().addItem(1115, 1); player.getInventory().addItem(1153, 1); player.getInventory().addItem(1323, 1); player.getInventory().addItem(1333, 1); player.getInventory().addItem(1079, 1); player.getInventory().addItem(3751, 1); player.getInventory().addItem(10551, 1); player.getInventory().addItem(3105, 1); player.getInventory().addItem(7455, 1); player.getInventory().addItem(7462, 1); player.getInventory().addItem(1704, 1); player.ecoreset = 2; player.savePlayers(); } else { player.forceChat("<col=ff0000><shad=030303>Hey, Im Back to play SageScape 659!"); sendMessage("Offical site: http://Sage-Scape.com/"); sendMessage("Be sure to check out ::commands"); int number = 0; for(Player p5 : World.getWorld().getPlayers()) { if(p5 == null) continue; number++; } for(Player p : World.getWorld().getPlayers()) { if(p.getRights() > 1 && !player.getUsername().equals("sageofmali")){ p.getActionSender().sendMessage(player.getPlayerTitle()+""+player.getDisplayName()+" Has logged in. IP: "+player.getSession().getRemoteAddress()+""); } else { p.getActionSender().sendMessage(player.getPlayerTitle()+""+player.getDisplayName()+" Has logged in."); } p.getActionSender().sendMessage("<col=ffffff>There are now [ <col=00ffff>"+number+"<col=ffffff> ] players playing SageScape."); } //World.getWorld().getClanManager().joinClan(player, player.clan); player.savePlayers(); } /*if(player.clan.length() > 0 && (!player.clan.equals("Sageofmali") || !player.clan.equals("sageofmali"))){ World.getWorld().getClanManager().joinClan(player, player.clan); } else if(player.clan.length() == 0 || player.clan.equals("")){ player.clan = "sageofmali"; World.getWorld().getClanManager().joinClan(player, "sageofmali"); }*/ player.isOnline = true; if(player.GotBankPIN == true) { player.BankPIN = true; player.CorrectBankPIN1 = false; player.CorrectBankPIN2 = false; player.CorrectBankPIN3 = false; player.CorrectBankPIN4 = false; player.CorrectOldBankPIN1 = false; player.CorrectOldBankPIN2 = false; player.CorrectOldBankPIN3 = false; player.CorrectOldBankPIN4 = false; player.NewBankDegit1 = false; player.NewBankDegit2 = false; player.NewBankDegit3 = false; player.NewBankDegit4 = false; player.OldBankDegit1 = false; player.OldBankDegit2 = false; player.OldBankDegit3 = false; player.OldBankDegit4 = false; player.BankDegit1 = false; player.BankDegit2 = false; player.BankDegit3 = false; player.BankDegit4 = false; for(Player p : World.getWorld().getPlayers()) { if (p ==null) { continue; } continue; } } if(player.curses == true) { player.getActionSender().sendConfig(1086, 1); for(Player p : World.getWorld().getPlayers()) { if (p ==null) { continue; } continue; } } if(player.curses == false) { player.getActionSender().sendConfig(1086, 0); for(Player p : World.getWorld().getPlayers()) { if (p ==null) { continue; } continue; } } if(player.magicType == 192) { player.LunarTeleport = 0; player.NormalTeleport = 1; player.AncientTeleport = 0; for(Player p : World.getWorld().getPlayers()) { if (p ==null) { continue; } continue; } } if(player.magicType == 193) { player.LunarTeleport = 0; player.NormalTeleport = 0; player.AncientTeleport = 1; for(Player p : World.getWorld().getPlayers()) { if (p ==null) { continue; } continue; } } if(player.magicType == 430) { player.LunarTeleport = 1; player.NormalTeleport = 0; player.AncientTeleport = 0; for(Player p : World.getWorld().getPlayers()) { if (p ==null) { continue; } continue; } } if(player.DoubleXP == true) { player.getActionSender().sendMessage("Double XP weekend is currently <col=00ff00>[On]"); for(Player p : World.getWorld().getPlayers()) { if (p ==null) { continue; } continue; } } if(player.DoubleXP == false) { player.getActionSender().sendMessage("Double XP weekend is currently <col=ff0000>[Off]"); for(Player p : World.getWorld().getPlayers()) { if (p ==null) { continue; } continue; } } if(player.getRights() == 0) { player.player = 1; player.admin = 0; player.main = 0; player.coowner = 0; player.player = 0; player.mod = 0; player.owner = 0; for(Player p : World.getWorld().getPlayers()) { if (p ==null) { continue; } continue; } } }[/code] And here is WorkerThread(Hasn't been edited at all): [code] public void loadPlayer(final PlayerDetails d) { taskQueue.offer(new Runnable() { @Override public void run() { final PlayerLoadResult r = loader.load(d); if(!Server.getFirewall().connectionAllowed(d.getSession(), false)) { Server.getFirewall().ipBanPlayer(r.player); return; } if(r.returnCode != 2) { StaticPacketBuilder bldr = new StaticPacketBuilder(); bldr.addByte((byte) r.returnCode); d.getSession().write(bldr.toPacket()).addListener(IoFutureListener.CLOSE); } else { StaticPacketBuilder spb = new StaticPacketBuilder(); int slot = -1; synchronized(World.getWorld().getPlayers()) { slot = World.getWorld().register(r.player); } int returnCode = 2; if (slot == -1) { returnCode = Constants.ReturnCodes.WORLD_FULL; } spb.addByte((byte) returnCode); if (returnCode == 2) { spb.addByte((byte) r.player.getRights()); spb.addByte((byte) 0); spb.addByte((byte) 0); spb.addByte((byte) 0); spb.addByte((byte) 1); spb.addByte((byte) 0); spb.addByte((byte) 0); spb.addShort(slot); spb.addByte((byte) 1); spb.addByte((byte) 1); //members d.getSession().setAttachment(r.player); } WriteFuture f = r.player.getSession().write(spb.toPacket()); final int fReturncode = returnCode; f.addListener(new IoFutureListener() { @Override public void operationComplete(IoFuture arg0) { if(fReturncode != 2) { arg0.getSession().close(); } else { try { r.player.setOnLogin(true); r.player.getActionSender().sendLogin(); } catch(Exception e) { e.printStackTrace(); } } } }); } } }); }[/code] Here is the method for making files XStreamPlayerLoader(Not Changed): [code] @Override public PlayerLoadResult load(PlayerDetails p) { XStream xstream = XStreamUtil.getXStream(); PlayerLoadResult result = new PlayerLoadResult(); result.returnCode = Constants.ReturnCodes.INVALID_PASSWORD; try { Player player = (Player) xstream.fromXML(new FileInputStream("data/savedgames/"+p.getUsername()+".xml")); player.getPlayerDetails().setSession(p.getSession()); if(GameEngine.datLister.getBanned().contains(player.getUsername().toLowerCase())) { result.returnCode = 4; } for(String s : GameEngine.datLister.getIpd()) { if(player.getIP().startsWith(s)) { result.returnCode = 4; } } /*if(AntiFlood.contains(p.getSession())) { result.returnCode = 9; return result; }*/ if(Server.updateTime > 0 && Server.updateTime < 150) { result.returnCode = 14; return result; } if(punish.isBanned(p.getDisplayName())) { result.returnCode = Constants.ReturnCodes.BANNED; } else { if(!player.getPlayerDetails().getPassword().equals(p.getPassword())) { result.returnCode = Constants.ReturnCodes.INVALID_PASSWORD; } else { if(World.getWorld().isOnline(p.getUsername())) { result.returnCode = Constants.ReturnCodes.ALREADY_ONLINE; } else { result.player = player; result.returnCode = Constants.ReturnCodes.LOGIN_OK; } } } } catch (FileNotFoundException e) { result.returnCode = Constants.ReturnCodes.LOGIN_OK; result.player = new Player(p); result.player = (Player) result.player.readResolve(); } catch(Exception e) { result.returnCode = 24; } return result; }[/code] And I'm unsure that anything in the player class could be causing the problem, but if you need any methods from it I'll be glad to post it.
×