Jump to content
Sign in to follow this  
Emperor

Dementhium 639 released

Recommended Posts

Hello RuneLocus!

Today Lumby and I have decided to release Dementhium 637 loading 639. Steven (`Mystic Flow) has decided to sell the Dementhium source behind our backs, this is just as good as releasing it. In order to prevent the sale of our work, whether he claims it has been removed or not, we have come to the decision to publicly release the source for everyone. This is the current Dementhium Source with no Ifs ands or buts. This is the same source that you have played on all summer. I hope that people will take this source and learn from it.

[B]Client[/B]
[url]http://www.mediafire.com/?zlbom2rqxv94u95[/url]
Client Mirror by Cart:
[url]http://www.mediafire.com/?a1wd406heh3ccnb[/url]

[B]Server[/B]
[i]MySql (excludes NPC Definitions for now)[/i]
[url]http://www.mediafire.com/?q4mwda0naxec3hq[/url]

[i]Binary saving & loading; including NPC Definitions + Editor[/i]
[url]http://www.mediafire.com/?ecuxjytzdr02fw0[/url]

I have permission from myself and Lumby to release the source. Steven has decided to sell the source WITHOUT our permission. His permission should NOT be required to release the source publicly.

For those of you that have bought the source from steven, you should dispute it with Paypal and get your money back.

Thanks
Lumby & Emperor

[Edit]:
For saving & loading appearance settings:

In org.dementhium.model.Player, search for

[code] if (buffer.remaining() > 0) {
settings.setGraveStone(buffer.get());
}[/code]

Under that, add in:

[code] if (buffer.remaining() > 0) {
for (int i = 0; i < getAppearance().getLook().length; i++) {
getAppearance().getLook()[i] = buffer.get();
}
}
if (buffer.remaining() > 0) {
for (int i = 0; i < getAppearance().getColour().length; i++) {
getAppearance().getColour()[i] = buffer.get();
}
}
if (buffer.remaining() > 0) {
getAppearance().setGender(buffer.get());
}[/code]

That will load the settings, to make it save:

Search for

[code] buffer.writeByte(settings.getGraveStone());[/code]

and add in:

[code] for (int i = 0; i < getAppearance().getLook().length; i++) {
buffer.writeByte(getAppearance().getLook()[i]);
}
for (int i = 0; i < getAppearance().getColour().length; i++) {
buffer.writeByte(getAppearance().getColour()[i]);
}
buffer.writeByte(getAppearance().getGender());[/code]
Under it.
Save, compile & restart.

Haven't tested it, but it should work.

To make yourself admin, find loginResponse(Player player) in the ActionSender class, and add this under it.

[code] if (player.getUsername().equalsIgnoreCase("PLAYER_NAME")) {
player.getDefinition().setRights(2);
}[/code]

^That definatly aint a good way but it works. Edited by Cart

Share this post


Link to post
Share on other sites
[quote name='Codyv20']Photos please. :([/QUOTE]

[url]http://www.runelocus.com/forums/showthread.php?50730-Dementhium-639[/url]

Share this post


Link to post
Share on other sites
[quote name='Emperor'][url]http://www.runelocus.com/forums/showthread.php?50730-Dementhium-639[/url][/QUOTE]
Thanks!

Share this post


Link to post
Share on other sites
[quote name='Emperor'][url]http://www.runelocus.com/forums/showthread.php?50730-Dementhium-639[/url][/QUOTE]

OMFG!, thanks tho :D, I plan to look at the code, I problay will not use it, and sadly, no one else will either, I think I would of went on with the source and not release it.

Share this post


Link to post
Share on other sites
Does this mean you won't host it anymore?

Share this post


Link to post
Share on other sites
emperor i got an error when running the source.

Share this post


Link to post
Share on other sites
[quote name='royalxreality']emperor i got an error when running the source.[/QUOTE]

It's SQL, you can run the source by adding the sqlDisabled argument.

Share this post


Link to post
Share on other sites
Sign in to follow this  

×