thanksssssssssss
|
removed.
Last edited by C.T.; 06-03-2019 at 03:22 PM.
Could of have used an enum instead of just a ton of if statements that make it look like junk
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
Java (much more convoluted because java doesnt have the nice syntactic features Kotlin has)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) } }
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; });
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
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.
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 ?
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |