Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • ragnoroker: Brand new server! Less than 1 week old! Nightmare/Raids 1/2/Hydra/Pk Modes/Exp modes/ Unique  Join today - [link]
      July 04, 2020, 06:42:38 PM
    • ragnoroker: Brand new server! Less than 1 week old! Nightmare/Raids 1/2/Hydra/Pk Modes/Exp modes/ Unique  Join today - [link]
      July 04, 2020, 06:42:32 PM
    • iddsyou: PkOwnage 2 worlds, modern OSRS & 2014 server! [link]  Join us on Discord! [link]
      July 04, 2020, 11:07:29 AM
    • slayerpure: kingdom full blown custom server with over 50 custom bosses released last week. play now here     [link]
      July 02, 2020, 08:44:32 PM
    • jgoet: dodian !!
      July 02, 2020, 07:15:44 PM
    • jgoet: join [link]  its back online !!!!
      July 02, 2020, 07:15:37 PM
    • Protojae: RIP moparscape
      July 02, 2020, 03:01:32 PM
    • Protojae: obviously thiswebsite is dead as fudge
      July 02, 2020, 03:01:14 PM
    • ragnoroker: RuneGuild has just been released! 1 Hour old, Come join the fun - [link]
      June 26, 2020, 02:14:21 PM
    • ragnoroker: RuneGuild has just been released! 1 Hour old, Come join the fun - [link]
      June 26, 2020, 02:14:08 PM
    • ragnoroker: RuneGuild has just been released! 1 Hour old, Come join the fun - [link]
      June 26, 2020, 02:14:00 PM
    • Fox2007: rune-nexus.com - FREE advertising, SEO optimized - no registration required
      June 26, 2020, 06:21:47 AM
    • Decimate Returns: trailer video posted for Project Decimate, Official Launch is in a few weeks! watch here: [youtube]LBorsdI-k1Y[/youtube]
      June 24, 2020, 07:18:03 PM
    • slayerpure: 1 week old rsps we need players and potential staff, customs and goku/vegeta sets play here!    [link] join our discord [link]
      June 24, 2020, 05:23:46 PM
    • Decimate Returns: Project Decimate is still in BETA: join our discord to keep up with the new content added: [link]
      June 24, 2020, 01:09:23 PM
    • Decimate Returns: Project Decimate is still in BETA: join our discord to keep up with the new content added: [link]
      June 24, 2020, 01:09:03 PM
    • dan v jad: PkOwnage OSRS Great server great community!  Join us on Discord! [link]  Download: [link]
      June 21, 2020, 09:23:28 AM
    • Lens: Sick Custom RSPS - CrystalPS. Join us on Discord. [link]
      June 20, 2020, 04:35:44 PM
    • Shady Aftermath: check out skyfire317.com gott 3 custom skills, afk zones
      June 19, 2020, 10:22:22 PM
    • Shady Aftermath: check out skyfire317.com gott 3 custom skills, afk zones
      June 19, 2020, 10:22:14 PM

    Show Posts

    This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


    Topics - Jc22493

    Pages: [1]
    1
    Trash Can / Re: RSCTools Map Editor
    « on: May 15, 2019, 02:15:35 PM »
    Can you release the source code?

    He linked the source code in the post bud.

    5
    Trash Can / Re: Woodhunter Bow
    « on: June 05, 2018, 03:23:19 AM »
    Trying something a little different, i'm not really sure if it worked or not.




    (click to show/hide)

    Great work, looks very nice :)

    6
    Trash Can / Re: iOS RSC Objective-C Port (almost) completed
    « on: June 15, 2017, 12:14:30 AM »
    That's so sick man, nice work! And it's cool to know I'm not the only one who listens to reggae on Pandora when I'm coding haha

    How long have you been working on this project? And do you have any idea what's causing the rendering lag / low fps?



    Thanks I appreciate your feedback. I've been working on porting my offline RSC project to iOS since the beginning of summer, and have been working on some other non-RSC related iOS applications a few months prior. Unfortunately (unlike Android development), you need to be enrolled in the Apple Developer program, which is $99 a year (even for debugging application, not just distribution). However, I already had an Enterprise Developer account for other non related apps, so I didn't technically have to pay extra to develop this. At the moment, I am unsure of what the exact cause of the low fps is, but I'll look more into it tomorrow. I've tweaked some things around and have improved it a little bit (getting around 8-12 fps instead of 1-2 now), but its more of a workaround than a fix. Also, I updated the post with a new video and added entities and a few other things.

    8
    Games / Hearthstone
    « on: November 28, 2014, 09:51:34 PM »
    Anyone play it? Just started today and it's pretty fun.

    9
    Games / Mass Effect
    « on: November 04, 2014, 08:33:23 AM »
    How do you guys like the trilogy? I'm going to start ME soon and if it's good, I'm probably going to purchase the others as well.

    10
    Games / Borderlands: The Pre Sequel
    « on: October 21, 2014, 01:18:32 PM »
    Who has it? Can't wait to play through the story.

    Wilhelm + Athena seem like cool characters to play.

    11
    Games / Borderlands 2
    « on: July 02, 2014, 06:58:00 PM »
    I picked it up the GOTY edition on the Steam sale and I'm having a blast. I don't play many games and usually hate FPS, but this is great.

    Anyone else play?

    12
    Server Tutorials / [508] Various Beginner Tutorials [508]
    « on: February 20, 2009, 02:53:27 PM »
    Description - Many people are asking questions about 508's in the help section, so I think a tutorial on the basic aspects of a 508 would be helpful to many of the members.

    Difficulty - This is pretty basic stuff, so I'd say 1/10.

    Tested Server - I have tested this on various 508's, and it was successful for all of them, so I'm assuming it will work for all 508's.

    The Tutorials -
    ~ How to make yourself an administrator
    ~ Changing messages that are received when a player logs in
    ~ How to create a global object
    ~ How to change special attack animations and GFX's
    ~ How to change the XP rate
    ~ How to create simple commands

    Tutorial One - How to make yourself an administrator
    Files Modified - Login class (Login.Java)

    Procedure -

    Go into your login class and search for -
    Code: [Select]
    if (p.username.equals("
    You should see this -
    Code: [Select]
    if (p.username.equals("NAME")) {
    p.rights = 2;
    }

    Explaining the code -
    Code: [Select]
    if (p.username.equals("NAME")) {
    That part of the code means that if the player's username is the name between the quotation marks, then -
    Code: [Select]
    p.rights = 2;
    That part of the code means that the player's rights will automatically be 2 when he/she logs in.

    You can also add your own code for logging in as moderator -
    Code: [Select]
    if (p.username.equals("NAME")) {
    p.rights = 1;
    }

    Notice I changed the p.rights = 2; to p.rights = 1;. This means that if the player's username is the name between the quotation marks, then they will log in as a moderator.

    These are the player rights for 508's.
    0 = Normal player
    1 = Moderator
    2 = Administrator

    Tutorial Two - Changing messages that are received when a player logs in
    Files Modified - Login class (Login.Java)

    Procedure -

    Go into your login class and search for -
    Code: [Select]
    for(Player pz : Engine.players) {
    You should see this -
    Code: [Select]
    for(Player pz : Engine.players) {
    p.frames.sendMessage(pz, "<col=0000FF>"+Misc.optimizeText(p.username) + " has logged in.
    There are now "+ Engine.getPlayerCount()+" players online.");
    }
    p.frames.sendMessage(p, "MESSAGE");

    Explaining the code -
    Code: [Select]
    for(Player pz : Engine.players) {
    p.frames.sendMessage(pz, "<col=0000FF>"+Misc.optimizeText(p.username) + " has logged in.
    There are now "+ Engine.getPlayerCount()+" players online.");

    This part of the code means that whenever a player logs in, it will announce the player's name + "has logged in" and it will also announce how many players there are in total on the server. You can delete that if you do not want that announcement to be sent.

    Code: [Select]
    p.frames.sendMessage(p, "MESSAGE");
    That part of the code means that the message will be sent to the player. Insert your own message, and add lines if needed. To add more message space, just use the exact same code, and place it underneath the first one -
    Code: [Select]
    p.frames.sendMessage(p, "MESSAGE");
    p.frames.sendMessage(p, "MESSAGE");

    That will send two lines of messages.

    Tutorial Three - How to create a global object
    Files Modified - Frames class (Frames.Java)

    Procedure -

    Go into your frames class and search for -
    Code: [Select]
    public void createGlobalObject
    You should see this -
    Code: [Select]
    public void createGlobalObject(int objectId, int height, int objectX, int objectY, int face, int type) {
    Explaining the code -
    Code: [Select]
    public void createGlobalObject(int objectId, int height, int objectX, int objectY, int face, int type) {
    This code creates a global object in your server.
    int objectID = Object ID
    int height = Height (Normal height is 0.)
    int objectX = X coordinate of object
    int objectY = Y coordinate of object
    int face = The direction it is facing
    int type = The type of global object you are adding -
    0 - 3 > Wall Objects
    4 - 8 > Wall Decoration
    9 - Diagonal Walls
    10 - 11 > World Objects (Most global objects that you add are this type, so just type 10 for the int.)
    12 - 21 > Roofs
    22 > Floor Decoration

    This is pretty self explanatory; when you have filled in the blanks, add it under the void.

    Tutorial Four - How to change special attack animations and GFX's
    Files Modified - PlayerCombat class, PlayerNPCCombat class (PlayerCombat.Java, PlayerNPCCombat.Java)

    Procedure -

    Go into your PlayerCombat class and search for -
    Code: [Select]
    p.specialAmount
    You should see this -
    Code: [Select]
    if (p.equipment[3] == # && p.specialAmount >= #) {
    hitDamage = Misc.random((int) (maxMeleeHit(p) * #));
    p.usingSpecial = false;
    p.specialAmount -= #;
    p.requestAnim(#, #);
    p2.requestGFX(#, #);

    Explaining the code -
    Code: [Select]
    if (p.equipment[3] == # && p.specialAmount >= #) {
    This part means the if the player has an item with the item ID # equipped and his special amount is more than or equal to #, then this will occur -
    Code: [Select]
    hitDamage = Misc.random((int) (maxMeleeHit(p) * #));
    p.usingSpecial = false;
    p.specialAmount -= #;
    p.requestAnim(#, #);
    p2.requestGFX(#, #);

    That means that the damage inflicted by the special attack will be a random number that is based on your strength level multiplied by #. This special attack will also drain # of your special energy. (You start out with 100 special energy.) Then, just insert the animation numbers and the GFX numbers into your code. You can find animation and GFX lists on Google.

    To change the special attack animations and GFX's for NPC's, repeat the steps above in your PlayerNPCCombat class.

    Tutorial Five - How to change the XP rate
    Files Modified - PlayerCombat class, PlayerNPCCombat class (PlayerCombat.Java, PlayerNPCCombat.Java)

    Procedure -

    Go into your PlayerCombat class and search for -
    Code: [Select]
    int CombatXPRate
    You should see this -
    Code: [Select]
    int CombatXPRate = #;
    That # is the amount of XP that will be given per damage you deal to a player.

    Go into your PlayerNPCCombat class and search for -
    Code: [Select]
    int CombatXPRate
    You should see this again -
    Code: [Select]
    int CombatXPRate = #;
    That # is the amount of XP that will be given per damage you deal to an NPC.

    Tutorial Six - How to create simple commands
    Files Modified - Commands class (Commands.Java)

    Procedure -

    All commands go into your commands class. I will show you how to create simple commands.

    This is a command that adds items to a player's inventory -
    Code: [Select]
    if (cmd[0].equals("NAME")) {
        Engine.playerItems.addItem(p, ITEM ID, AMOUNT);
    }

    This code is saying that, if the command typed equals your command name, then the server will add the amount of the item you specified for the command.

    Example -
    Code: [Select]
    if (cmd[0].equals("starter")) {
        Engine.playerItems.addItem(p, 995, 100);
    }

    That code means that, if I type ::starter, then the server will add 100 of the item 995 into my inventory.

    This is a command that give XP to the player -
    Code: [Select]
    if(cmd[0].equals("NAME")) {
    p.skillLvl[0] = #;
            p.skillXP[0] = #;
    p.frames.setSkillLvl(p, 0);
    }

    That code is saying that, if the command typed equals your command name, then the server will add the amount of XP specified in the command.

    Example -
    Code: [Select]
    if(cmd[0].equals("attack99")) {
            p.skillLvl[0] = 99;
            p.skillXP[0] = 14000000;
    p.frames.setSkillLvl(p, 0);
    }

    That code means that, if I type ::attack99, then the server will add 14000000 XP to my attack XP, and my attack level will be set to 99.

    Well, that is all I have to share with you guys; I'll be working on another one soon.

    Remember, the most important part is to SAVE and COMPILE!

    Reply with any comments or errors!

    Pages: [1]
    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal