Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • stCky: idk man im just a chat bot
      August 22, 2017, 11:14:52 PM
    • symantec: is this forum
      August 22, 2017, 09:02:56 PM
    • symantec: what the fudge
      August 22, 2017, 09:02:52 PM
    • symantec: I just joined to download datmaker, the links are broken and a user named i nelson i has a fudgeing weird signature
      August 22, 2017, 08:59:33 PM
    • stCky: ur so cool and edgy
      August 22, 2017, 04:15:50 PM
    • Deathspirit: anyways, i'm un ip banned now.. but don't even want to be that at this point lmfao
      August 22, 2017, 01:58:14 PM
    • Deathspirit: now it's some sell out half leeched server :')
      August 22, 2017, 01:57:53 PM
    • Deathspirit: gf moparscape, was the best rsps community i've been on since 2006
      August 22, 2017, 01:57:31 PM
    • stCky: yeah, nah. it's cooked. [link] might help u with a backup or something idk man im just a chat bot
      August 22, 2017, 12:13:25 AM
    • flew420: I sure hope someone has a copy of the forum before it was recked
      August 21, 2017, 11:40:52 PM
    • flew420: O wow i see now, just read thru all the news articles. :(  i've been out of the game for a couple years so coming back to this shit is sad.
      August 21, 2017, 11:39:46 PM
    • flew420: Huh?
      August 21, 2017, 10:49:51 PM
    • stCky: got bought by a russian dude, he put a shitty rsps on it for donations, now no one cares
      August 21, 2017, 10:48:30 PM
    • flew420: I came on for some nostalgic reading in old classic development, and it only goes back to 2014 wtf.
      August 21, 2017, 10:43:09 PM
    • flew420: what happened to this site??
      August 21, 2017, 10:42:36 PM
    • Sean56:[link]
      August 21, 2017, 05:33:45 PM
    • kb010: how can i play? i downloaded the client and it doesnt open.
      August 21, 2017, 10:52:56 AM
    • wodkode: shut it down or fix it
      August 20, 2017, 10:11:28 PM
    • wodkode: dude i cant goto no links on here from google
      August 20, 2017, 10:11:13 PM
    • Dell: Greetings
      August 20, 2017, 11:56:30 AM

    Author Topic: [ 317 Grand Exchange ] Fully Working Using interfaces!! [ REL ] - Eclipsed  (Read 30175 times)

    0 Members and 1 Guest are viewing this topic.

    OfflineEclipsedSkapez

    • Member
    • **
    • Posts: 48
    • Thanks: +0/-0
      • View Profile
    Hey Guys and Girls Im Eclipsed!!! Here is my 317 Grand Exchange Release!!!


    317 Delta Grand Exchange!!!


    The folder your about to download is the GrandExchangeHandler.java
    Download it: GrandExchangeHandler.java - 24 KB and put it into your server folder

    Next:

    Open up notepad put in the code


    Code: Java
    1. [ITEMSFORSALE]
    2.  
    3. [ITEMCOSTAMOUNTS]
    4.  
    5. [ITEMOWNERS]



    And name it GrandExchange and save it as .java - Once you have made the GrandExchange.java file put it inside your server folder



    Next:

    Make a folder called PlayerGrand

    Leave the folder "PlayerGrand" empty!!! - Once you have made the PlayerGrand folder put it inside your server folder


    Next:


    Inside client.java Seach for public boolean, and add the methods after the last public boolean method!

    Add these methods to client.java :


    Code: Java
    1. //START OF GRAND EXCHANGE
    2. publicboolean GrandExchange =false;
    3. publicboolean BuyGrand =false;
    4. publicboolean SellGrand =false;
    5. publicint Spot1 =0;
    6. publicint Spot2 =0;
    7. publicint Spot1Amount =0;
    8. publicint Spot2Amount =0;
    9. publicboolean InSpot1 =false;
    10. publicboolean InSpot2 =false;
    11.  
    12.  
    13. publicvoid ResetGrand()
    14. {
    15. server.grandExchangeHandler.LoadGrandExchange();
    16. //GRAND EXCHANGE INTERFACE
    17.  
    18. //END OF GRAND EXCHANGE INTERFACE
    19. }
    20.  
    21. publicvoid EnterX()
    22. {
    23. outStream.createFrame(27);
    24. XremoveSlot = inStream.readSignedWordBigEndian();
    25. XinterfaceID = inStream.readUnsignedWordA();
    26. XremoveID = inStream.readSignedWordBigEndian();
    27. }
    28. publicint GrandSay =0;
    29.  
    30. publicboolean savegrandex(){
    31.                 BufferedWriter characterfile =null;
    32.                 try{
    33.                         characterfile =newBufferedWriter(newFileWriter("./PlayerGrand/"+playerName+".txt"));
    34. characterfile.write("[GRAND EXCHANGE]", 0, 16);
    35. characterfile.newLine();
    36. characterfile.newLine();
    37. characterfile.write("Spot1 = ", 0, 8);
    38. characterfile.write(Integer.toString(Spot1), 0, Integer.toString(Spot1).length());
    39. characterfile.newLine();
    40. characterfile.write("Spot2 = ", 0, 8);
    41. characterfile.write(Integer.toString(Spot2), 0, Integer.toString(Spot2).length());
    42. characterfile.newLine();
    43. characterfile.write("Spot1Amount = ", 0, 14);
    44. characterfile.write(Integer.toString(Spot1Amount), 0, Integer.toString(Spot1Amount).length());
    45. characterfile.newLine();
    46. characterfile.write("Spot2Amount = ", 0, 14);
    47. characterfile.write(Integer.toString(Spot2Amount), 0, Integer.toString(Spot2Amount).length());
    48.                        
    49.                         characterfile.close();
    50.                 }catch(IOException ioexception){
    51.                         misc.println(playerName+": saving player file.");
    52.                         returnfalse;
    53.                 }
    54.                 returntrue;
    55.         }
    56. publicint loadplayergrand(){
    57.                 String line ="";
    58.                 String token ="";
    59.                 String token2 ="";
    60.                 String[] token3 =newString[3];
    61.                 boolean EndOfFile =false;
    62.                 int ReadMode =0;
    63.                 BufferedReader characterfile =null;
    64.                 BufferedReader characterfile2 =null;
    65.                 boolean File1 =false;
    66.                 boolean File2 =false;
    67.                
    68.                 try{
    69.                         characterfile =newBufferedReader(newFileReader("./PlayerGrand/"+playerName+".txt"));
    70.                         File1 =true;
    71.                 }catch(FileNotFoundException fileex1){
    72.                 }
    73.                 if(File1 ==true&& File2 ==true){
    74.                         File myfile1 =newFile("./PlayerGrand/"+playerName+".txt");
    75.                         File myfile2 =newFile("./PlayerGrand/"+playerName+".txt");
    76.                         if(myfile1.lastModified()< myfile2.lastModified()){
    77.                                 characterfile = characterfile2;
    78.                         }
    79.                 }elseif(File1 ==false&& File2 ==true){
    80.                         characterfile = characterfile2;
    81.                 }elseif(File1 ==false&& File2 ==false){
    82.                         misc.println(playerName+": Grand Exchange file not found.");
    83.                      
    84.                         savegrandex();
    85.                         return3;
    86.                 }
    87.                 try{
    88.                         line = characterfile.readLine();
    89.                 }catch(IOException ioexception){
    90.                         misc.println(playerName+": error loading Grand Exchange file.");
    91.                 }
    92.                 while(EndOfFile ==false&& line !=null){
    93.                         line = line.trim();
    94.                         int spot = line.indexOf("=");
    95.                         if(spot >-1){
    96.                                 token = line.substring(0, spot);
    97.                                 token = token.trim();
    98.                                 token2 = line.substring(spot +1);
    99.                                 token2 = token2.trim();
    100.                                 token3 = token2.split("\t");
    101.                                 switch(ReadMode){
    102. case1:
    103. if(token.equals("Spot1")){
    104. Spot1 =Integer.parseInt(token2);
    105. }
    106. if(token.equals("Spot2")){
    107. Spot2 =Integer.parseInt(token2);
    108. }
    109. if(token.equals("Spot1Amount")){
    110. Spot1Amount =Integer.parseInt(token2);
    111. }
    112. if(token.equals("Spot2Amount")){
    113. Spot2Amount =Integer.parseInt(token2);
    114. }
    115. break;
    116.  
    117.                                 }
    118.                         }else{
    119. if(line.equals("[GRAND EXCHANGE]")){
    120.                                 ReadMode =1;
    121.  
    122.                                 }elseif(line.equals("[EOF]")){                try{ characterfile.close();}catch(IOException ioexception){}return1;
    123.                                 }
    124.                         }
    125.                         try{
    126.                                 line = characterfile.readLine();
    127.                         }catch(IOException ioexception1){ EndOfFile =true;}
    128.                 }
    129.                 try{ characterfile.close();}catch(IOException ioexception){}
    130.                 return0;
    131.         }
    132.  


                                   
                             One Last Step: Compile your server and then Run!


         Their is a Compiling Error but I dont know how to fix it maybe someone can take a look and post a fix? 
                               
                              Heres screenshots of the Compiling Error:

    uhm good guide I think you did a good job for your first tut so cheers. Now I get an error in grandexchange.java and there is something wrong with the format of the code or something i get
    grandexchange.java:1: class, interface, or enum expected
    [itemsforsale]
    ^1 error
    Thanks for your feedback, and I am aware of this compiling error, Im not so sure of how to fix it but for people
    reading this here is a picture of the compiling error:





    Heres a picture of the GrandExchange.java





    Another problem.....mos deltas don't have a g.e. clerk so where would you exchange at?
    Ill explain how it works - What you do is use an item on the bank and then the interfaces will open
    showing 2 options: Option 1: Buy - Option 2: Sell

    You can then select an option: Buy means you can then see what items are on sale and then enter an amount you want to buy it for.

                                              Sell means you can select an item you want to sell then enter the price you wish to sell for.

                                              To collect your items or gold a message will show just like the real runescape when it is ready for you
                                              to collect then all you have to do is go to a bank and click "collect"

                            Its that easy!! :)

    You should add it to all of the packets, not just Item on Object.
    I would have done that but I wanted to keep it as simple as possible =P



                                               If I helped REP Please!         Credits: Me 80% For the Code - My brother 5% For the idea -
                                                                                      Bulby Strife 15% For a GrandExchangeHandler.java
                                                                                      To use as a base on Developement!

                                                                                      Moparscape Community for asking for 317 Grand Exchange!!!


    PLEASE NOTE!!! : THIS GRAND EXCHANGE WAS CODED FOR DELTA SOURCES BUT MOST 317 SOURCES WILL WORK WITH IT!!!

                                                     ENJOY!!! - EclipsedSkapez

    Please Leave Comments Or Ill remove! <3333


    EDIT: Hey guys so I see that some of you have some problems getting this to work so first of all the fix for the compiling error is
    this:

    GrandExchange.java must be changed to GrandExchange.txt

    then compile and u will have no errors

    then when u login it will be working all you have to do is make a command for openning the interface...

    If you dont know how to do this then ask on the help section! remember im not here to spoon feed

    If you want a grand exchange then this tut is simply to make life a little easier for delta and 317 lovers =)
    « Last Edit: April 03, 2012, 07:40:18 AM by EclipsedSkapez »

    OfflineXx Weed Xx

    • Member
    • ****
    • Posts: 745
    • Thanks: +0/-0
      • View Profile
    wtfisdis?

    OfflineThe Real Asian

    • Member
    • **
    • Posts: 47
    • Thanks: +0/-0
      • View Profile
    ... this should be in server tuts. (if you want rep++)
    « Last Edit: December 20, 2011, 03:42:37 PM by The Real Asian »
    Only the Real one here >.>


    OfflineEclipsedSkapez

    • Member
    • **
    • Posts: 48
    • Thanks: +0/-0
      • View Profile
    @Xx Weed Xx - Its a Delta Grand Exchange

    OfflineTinyScape

    • Dr House is a fool
    • Member
    • ****
    • Posts: 3,680
    • Thanks: +0/-0
      • View Profile
      • Ashley Bradley
    ...
    Coming Soon

    Offlineandy hd

    • Member
    • **
    • Posts: 18
    • Thanks: +0/-0
      • View Profile
    will i pi source work with this even tho its for delta btw this shud be in server tuts

    OfflineEclipsedSkapez

    • Member
    • **
    • Posts: 48
    • Thanks: +0/-0
      • View Profile
    @andy hd  - A PI source wont work with this sorry mate but most 317 sources will despite it being coded for delta!  :)

    OfflineTinyScape

    • Dr House is a fool
    • Member
    • ****
    • Posts: 3,680
    • Thanks: +0/-0
      • View Profile
      • Ashley Bradley
    You do realise that this is in the wrong section?
    Coming Soon

    Offlinerunewings317

    • Member
    • ****
    • Posts: 2,251
    • Thanks: +0/-0
      • View Profile
    Did you rip this from RegretScape? If not good job :P
    I'm back for now.

    OfflineEclipsedSkapez

    • Member
    • **
    • Posts: 48
    • Thanks: +0/-0
      • View Profile
    @runewings317 - Nope fully coded by me
    « Last Edit: December 20, 2011, 03:59:38 PM by EclipsedSkapez »

    Offlineandy hd

    • Member
    • **
    • Posts: 18
    • Thanks: +0/-0
      • View Profile
    dam ive been tryin to code 1 for pi and i was openin this wud work oh well


    Offlineimsuperman05

    • Member
    • ****
    • Posts: 5,352
    • Thanks: +0/-0
      • View Profile
    This is done horribly..  Is the whole saving for one player, or the whole server?

    OfflineEclipsedSkapez

    • Member
    • **
    • Posts: 48
    • Thanks: +0/-0
      • View Profile
    Is this just a custom one, or with right interfaces and stuff
    if 2nd case,
    damn good job
    I will test this out
    Sorry its not the correct runescape interfaces its a custom one which uses 317 interfaces
    « Last Edit: December 20, 2011, 04:05:29 PM by EclipsedSkapez »

    OfflineNathan R

    • Member
    • ****
    • Posts: 345
    • Thanks: +0/-0
      • View Profile
    not the legit runescape GE interface? it cant be considered GE...
    -facepalm-

    OfflineEclipsedSkapez

    • Member
    • **
    • Posts: 48
    • Thanks: +0/-0
      • View Profile
    This is done horribly..  Is the whole saving for one player, or the whole server?
    It saves for the whole server not just one player!  :)

    Offlineoldschool-scape

    • Member
    • ****
    • Posts: 910
    • Thanks: +0/-0
      • View Profile
    gona try it tmozz, Why didnt u use "Insert code" ??
    If it ain't dutch. It ain't much

    Quote
    Problem?

    OfflineEclipsedSkapez

    • Member
    • **
    • Posts: 48
    • Thanks: +0/-0
      • View Profile
    gona try it tmozz, Why didnt u use "Insert code" ??
    Great hope it works for you :D  Oh and I didnt use "Insert code" because Ive never really made a topic
    on here so this is my first time! =P

    Offlinekoomar

    • Member
    • **
    • Posts: 45
    • Thanks: +0/-0
      • View Profile
    use code brackets dumbfudge

    OfflineTinyScape

    • Dr House is a fool
    • Member
    • ****
    • Posts: 3,680
    • Thanks: +0/-0
      • View Profile
      • Ashley Bradley
    use code brackets dumbfudge
    No need to be rude :o
    Coming Soon

     

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