Thread: Ascend - armour sets fix

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 Ascend - armour sets fix 
    Silent project - coming soon


    Join Date
    Jan 2019
    Posts
    194
    Thanks given
    55
    Thanks received
    83
    Rep Power
    0
    removed.
    Last edited by C.T.; 06-03-2019 at 03:22 PM.
    Reply With Quote  
     

  2. #2  
    Software Developer

    Tyrant's Avatar
    Join Date
    Jul 2013
    Age
    24
    Posts
    1,562
    Thanks given
    678
    Thanks received
    423
    Rep Power
    1060
    thanksssssssssss
    Reply With Quote  
     

  3. #3  
    Registered Member
    Remi's Avatar
    Join Date
    Jan 2015
    Posts
    628
    Thanks given
    572
    Thanks received
    212
    Rep Power
    574
    Could of have used an enum instead of just a ton of if statements that make it look like junk
    Where the fuck is my cigarettes, I need my cancer. [C]44..
    Reply With Quote  
     

  4. #4  
    Silent project - coming soon


    Join Date
    Jan 2019
    Posts
    194
    Thanks given
    55
    Thanks received
    83
    Rep Power
    0
    tbf doesn't really matter if you use enums or if statements the code runs perfectly never the less and is neat ?
    Reply With Quote  
     

  5. #5  
    Extreme Donator

    nbness2's Avatar
    Join Date
    Aug 2011
    Posts
    692
    Thanks given
    274
    Thanks received
    139
    Rep Power
    430
    Quote Originally Posted by Remi View Post
    Could of have used an enum instead of just a ton of if statements that make it look like junk
    Quote Originally Posted by thorpey View Post
    tbf doesn't really matter if you use enums or if statements the code runs perfectly never the less and is neat ?
    Shameless plug for something that runs perfectly, is much easier to maintain and is neater than a load of if statements https://www.rune-server.ee/runescape...m-handler.html.

    Kotlin
    Code:
    ItemCombination {
        combinator(Item(1755), Item(12875))
        combined(Item(4753), Item(4755), Item(4757), Item(4759))
        combineMessage = "You successfully open the set"
        onCombine {
            c.getDH().sendItemStatement("You successfully open the set.", 22109)
        }
    }
    Java (much more convoluted because java doesnt have the nice syntactic features Kotlin has)
    Code:
    ItemCombinationKt.ItemCombination(builder ->{
        builder.combinator(Item(1755), Item(12875));
        builder.combined(Item(4753), Item(4755), Item(4757), Item(4759));
        builder.onCombine(c -> {
            c.getDH().sendItemStatement("You successfully open the set.", 22109);
            return Unit.INSTANCE;
        });
        return Unit.INSTANCE;
    });
    KT/JAVA - NBX 637 - HERE!
    KT - Drop table 4: Flexible, Powerful - HERE!
    KT - Command: Simplify writing commands - HERE
    KT - NbUtil: Make your kotlin easier - HERE
    KT - Hopping Islands: From Java to Kotlin - P1 - P2 - P3 - P4 - P5
    Reply With Quote  
     

  6. Thankful user:


  7. #6  
    Silent project - coming soon


    Join Date
    Jan 2019
    Posts
    194
    Thanks given
    55
    Thanks received
    83
    Rep Power
    0
    mate wat are you trying to accomplish here and tbf not that much neater codes lil bit smaller but ur missing half wat iv done ?

    All im doing is giving people who use ascend something to work with as every snippit or tut on here is pointless everyone asks for cash to release something rune - server needs to go back how it used to be back in 2007

    a forums were every body helps each other not like it is now everyone is fighting to be the best ha ha

    why have you got two statements opening sets cmon man ur tryna look smart but failing very badly ? don't get people who post on peoples stuff tryna look good not a good luck mate
    Reply With Quote  
     

  8. #7  
    Donator

    .css's Avatar
    Join Date
    Dec 2018
    Age
    29
    Posts
    579
    Thanks given
    89
    Thanks received
    270
    Rep Power
    351
    He's providing far more efficient code than what you gave which is the point. Clearly those who use code like this into their servers don't actually 'program'; they just have a server called 'tutorialscape'.
    'gj' for releasing this to others that may use.
    Reply With Quote  
     

  9. Thankful user:


  10. #8  
    Extreme Donator


    Join Date
    Sep 2014
    Posts
    139
    Thanks given
    98
    Thanks received
    92
    Rep Power
    1287
    Quote Originally Posted by thorpey View Post
    mate wat are you trying to accomplish here and tbf not that much neater codes lil bit smaller but ur missing half wat iv done ?

    All im doing is giving people who use ascend something to work with as every snippit or tut on here is pointless everyone asks for cash to release something rune - server needs to go back how it used to be back in 2007

    a forums were every body helps each other not like it is now everyone is fighting to be the best ha ha

    why have you got two statements opening sets cmon man ur tryna look smart but failing very badly ? don't get people who post on peoples stuff tryna look good not a good luck mate
    Really no need to get so defensive. You should always be open to suggestions on how to improve your code. That's how you learn.

    Your contribution may help people in need of this snippet, and that's great. Your code works. Just be open to feedback.
    Attached image
    Reply With Quote  
     


  11. #9  
    'Slutty McFur'

    Owain's Avatar
    Join Date
    Sep 2014
    Age
    26
    Posts
    2,894
    Thanks given
    2,360
    Thanks received
    2,200
    Rep Power
    5000
    Code:
    if (terribleCodeWorks) {
        whyChangeItLol;
    }
    All jokes aside, glad that you learnt how to do this. We all started somewhere.


    Spoiler for wat:
    Attached image
    Attached image

    Attached image


    Reply With Quote  
     

  12. Thankful users:


  13. #10  
    Silent project - coming soon


    Join Date
    Jan 2019
    Posts
    194
    Thanks given
    55
    Thanks received
    83
    Rep Power
    0
    learnt how to do this many years ago , not everyone is using elvarg take a look into how many enums pi has then comment back, was just so much quicker for me to do that piece of code there than create an enum ?
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 2
    Last Post: 08-03-2014, 05:18 PM
  2. [508] Armour sets using void
    By tinosk in forum Tutorials
    Replies: 2
    Last Post: 05-26-2010, 07:25 PM
  3. [REQUEST] runescape armour set
    By Shonx in forum Images
    Replies: 1
    Last Post: 03-29-2010, 08:25 PM
  4. [rel] 100% armour sets [rel]
    By Vox' in forum Models
    Replies: 18
    Last Post: 06-17-2009, 11:23 PM
  5. how to open armour sets
    By jamie45 in forum Tutorials
    Replies: 8
    Last Post: 03-01-2008, 01:08 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •