-
LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Have a taste of your work being released for the public. I bet you'd love this a lot [Vodka and RaptorJesus]. :thumbup:
For this release you'll have to thank Vodka for selling CelinoSEA source code that was acquired by one of our turncoat, rob a.k.a xcheater.
"Yes, I know what you'r thinking. My e-penis has grown rapidly and yours are shortened".
http://aerialsea.com/
Now build your very own v.83 GMS server now! I support ya :ott::ott::ott::ott::ott::ott::ott:
Free LocalMS sauce D.rar
Quote:
This file is part of the OdinMS Maple Story Server
Copyright (C) 2010 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
or distribute this program under any other version of the
GNU Affero General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Open source FTW.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
O_o . Hmm , first release after the forum came up eh ?
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
This is real and no troller, nice GNU.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Yus, let's all be Localms.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Settler11
Yus, let's all be Localms.
Theres going to be player rate drops in a few servers.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
This is just the side dish guys, the main dish have yet to be served. CelinoSEA source that was leaked by Rob will be released soon. Check back this topic in a while.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Ruffz
lol , (: . Hacking is bad xD , but i still hack anyway lol
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Lol, there is an folder named porn.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Settler11
Lol, there is an folder named porn.
I wonder what kind of porn....
@Edit 1.
Missing PQ Scripts..
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
dont expect everything to be working
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
what .jar i need compile in netbenas when i right click on libaries?
on dist is only OdinMS...
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
PirateOwh
I wonder what kind of porn....
@Edit 1.
Missing PQ Scripts..
Who PQ's on a Private Server?
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Actually it depends , if the PQ is custom why not ?
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Ruffz
Thank-you :D
I'll upload CelinoSEA source too, a leaked version can't be kept private anymore.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Xoslize
Who PQ's on a Private Server?
I would definitively use there TTPQ and OmegaPQ.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
i Smell exploits :D, but yea screw this :D but still this isn't the full source if i'm not wrong. Or @ least not the latest revision of Local's Source.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Celphius
i Smell exploits :D, but yea screw this :D but still this isn't the full source if i'm not wrong. Or @ least not the latest revision of Local's Source.
You can count on me, no exploit was added to it.
It was intended to be released for the public for what LocalMS did to us :D
This isn't the latest, however the last time it was updated was 24th June 2010.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
This is the last ver @ look at the "Fake pic neneabled"
btw missing sql
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
MapleKFC
You can count on me, no exploit was added to it.
It was intended to be released for the public for what LocalMS did to us :D
This isn't the latest, however the last time it was updated was 24th June 2010.
Darion told me there was :D But who cares, this is a shitty source, I'm waiting for the ultimate Celino v82 Msea Source.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Missing:
[Accounts]
greason
banreason
[Characters]
partyquestitems
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
"missing type in where clause"
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
I thought this was going to be released on kryptodev
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
hey lailai , you should remove it for the fun of it . Release some other stuff that may be related to them
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
MapleKFC
Thank-you :D
I'll upload CelinoSEA source too, a leaked version can't be kept private anymore.
releasing it nao? i wanz :(
i've been trying to get my hands on it . rofl , its like 100$ from vodka too ,_, .
i love v83 source :D.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Several pictures follow the server as soon as I have set up local. it is not a fake. everything is in a database there, this is 700 mb big
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Ruffz
Several pictures follow the server as soon as I have set up local. it is not a fake. everything is in a database there, this is 700 mb big
back :)
LocalMS - The Ultimate MapleStory Private Server
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
The headers are all screwed up, some of them are duplicated as in
Code:
SHOW_EQUIP_EFFECT = 0x85,
FORCED_MAP_EQUIP = 0x85
Edit: It's also missing a bunch of scripts..wtf
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
MapleCharacter.java
Arrange the stuff as in MC
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Looks like LocalMS site is going down aswell. LocalMS has so much enemies.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Why'd you have to release this for, Now theres gonna be soo many v83 servers!
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
xMike1x
Why'd you have to release this for, Now theres gonna be soo many v83 servers!
so many v83 servers with exploits.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Soul
so many v83 servers with exploits.
don't know.. but there are .svn things, and if only localms code their own server with exploits.. you could always check svn text-base (maybe i'm wrong)
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Soul
Mate it's locked lol, someone has there latest files.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
they don't have the pic system in the headers or mpc lol
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Nu world properties? were do we get the wz files too >.<
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
marquis1212
Nu world properties? were do we get the wz files too >.<
config.prop
src/constant/serverconstant.java
google maplestory fails v75 wz
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Soul
config.prop
src/constant/serverconstant.java
God, your pro!
@On-topic:
I'm going to use this... Why not? LocalMS sucks horse testicles
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Nice release , LocalMS Fail! :DDDD
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Yo soul Theirs Compile Errors when i dont even change anything... >.< as for my Coder
symbol : class HiredMerchantRegistry
location: class net.channel.ChannelServer
private HiredMerchantRegistry HMRegistry = new HiredMerchantRegistry(channel);
C:\Users\marquis\Desktop\v83\src\net\channel\ChannelServer.java:536: cannot find symbol
symbol : class HiredMerchantRegistry
location: class net.channel.ChannelServer
public HiredMerchantRegistry getHMRegistry()
C:\Users\marquis\Desktop\v83\src\net\channel\ChannelServer.java:102: cannot find symbol
symbol : class HiredMerchantRegistry
location: class net.channel.ChannelServer
private HiredMerchantRegistry HMRegistry = new HiredMerchantRegistry(channel);
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\marquis\Desktop\v83\src\tools\DatabaseConnection.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
What rev of shoot is this?
Currently Active Users Viewing This Thread: 17 (13 members and 4 guests)
.:LastBreath:., downloadmebitch, evgz, MapleKFC, SaintsIan, pbjs, maplefreak26, omegaheros, LameJacob, b0ib0ii, marquis1212, IRLegend, DestinyFate
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Someone REALLY needs to clean this up, and a moderator needs to log in and get rid of the reports in the modcp.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Oi, stop with the stupid comments. I'm tired of seeing random flame wars in this thread, next person to flame/troll/spam will be infracted.
On a side not i will NOT be deleting this thread. Cry as much as you want, hate me all you want, i really don't care. It helps the community, and will stay.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
marquis1212
Yo soul Theirs Compile Errors when i dont even change anything... >.< as for my Coder
symbol : class HiredMerchantRegistry
location: class net.channel.ChannelServer
private HiredMerchantRegistry HMRegistry = new HiredMerchantRegistry(channel);
C:\Users\marquis\Desktop\v83\src\net\channel\ChannelServer.java:536: cannot find symbol
symbol : class HiredMerchantRegistry
location: class net.channel.ChannelServer
public HiredMerchantRegistry getHMRegistry()
C:\Users\marquis\Desktop\v83\src\net\channel\ChannelServer.java:102: cannot find symbol
symbol : class HiredMerchantRegistry
location: class net.channel.ChannelServer
private HiredMerchantRegistry HMRegistry = new HiredMerchantRegistry(channel);
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\marquis\Desktop\v83\src\tools\DatabaseConnection.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
I have the same thing o.o
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Soul
so many v83 servers with exploits.
that's why you take stuff from it and it put onto a clean v0.83 source!
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Any one know how to fix hired merchant thingy?
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
LameJacob
that's why you take stuff from it and it put onto a clean v0.83 source!
thankyou!
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Is dis the source they actually run on?
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
marquis1212
Yo soul Theirs Compile Errors when i dont even change anything... >.< as for my Coder
symbol : class HiredMerchantRegistry
location: class net.channel.ChannelServer
private HiredMerchantRegistry HMRegistry = new HiredMerchantRegistry(channel);
C:\Users\marquis\Desktop\v83\src\net\channel\ChannelServer.java:536: cannot find symbol
symbol : class HiredMerchantRegistry
location: class net.channel.ChannelServer
public HiredMerchantRegistry getHMRegistry()
C:\Users\marquis\Desktop\v83\src\net\channel\ChannelServer.java:102: cannot find symbol
symbol : class HiredMerchantRegistry
location: class net.channel.ChannelServer
private HiredMerchantRegistry HMRegistry = new HiredMerchantRegistry(channel);
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\marquis\Desktop\v83\src\tools\DatabaseConnection.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors
got this too:scared::(:
---------- Post added at 04:33 PM ---------- Previous post was at 04:21 PM ----------
Nvm i got solution, ill post the files u need to edit and change for this to work however you wont have hiredmerchants, but if your just looking to get it to work then this is a soluition
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Lol why does everybody hate localms? :o
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
mertjuh
Lol why does everybody hate localms? :o
That seems to be in 'your opinion'.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
fhrisbriner
got this too:scared::(:
---------- Post added at 04:33 PM ---------- Previous post was at 04:21 PM ----------
Nvm i got solution, ill post the files u need to edit and change for this to work however you wont have hiredmerchants, but if your just looking to get it to work then this is a soluition
i have it working with hired merchants...
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Any reason you fucked with this source purposely MapleKFC?
EDIT:
Missing .jar files....:\
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
lol theres no missing Jar files use your head and look around its in folder Lib.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
mariokiller64
Any reason you fucked with this source purposely MapleKFC?
EDIT:
Missing .jar files....:\
Everything is there expect a few SQL Colums and tables. I'm in-game and been there for awhile...just put some effort into what you're doing.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Knew it wouldn't be long, + are you who i think you are :P
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
.:LastBreath:.
lol theres no missing Jar files use your head and look around its in folder Lib.
Quote:
Originally Posted by
PirateOwh
Everything is there expect a few SQL Colums and tables. I'm in-game and been there for awhile...just put some effort into what you're doing.
Ok, fail on my part lol.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Anyone know where I can get the WZ files for the server?
I read the post earlier to google Maplestory fails v75 wz.
I did so, but i got nothing...
Am i supposed to get v75 wz files? If so, What about Aran? I thought this was a v83 repack
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Any one know how to fix the hiredmerchant error when building?
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Just put // across the underlined method.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
MadaraUchiha
And u say u can code but yet you cant do this for by ure self. What a shame
Calm down naruto.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
killmehwel
Anyone know where I can get the WZ files for the server?
I read the post earlier to google Maplestory fails v75 wz.
I did so, but i got nothing...
Am i supposed to get v75 wz files? If so, What about Aran? I thought this was a v83 repack
http://geocities.jp/gms_down :thumbup1:
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
This source has mad disconnect issues..
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
i find this hard to compile o.o
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
I think this is a v75 repack when it says v83? Whenever i use the v83 it says the client is outdated and when i used the v75 it logged on with absoulutely no problem at all.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Don't know about you guys but I'm running a V83 LocalMS source and I edited it a bit because there were some bat warnings. Either way, I'm online and I noticed random DC issues, I'm wondering if that's a packet problem.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Why can't you all be pals.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Well if you don't know already, there's an official release elsewhere.
You're doing yourselves a disservice if you use this leaked horseshit.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
mariokiller64
Don't know about you guys but I'm running a V83 LocalMS source and I edited it a bit because there were some bat warnings. Either way, I'm online and I noticed random DC issues, I'm wondering if that's a packet problem.
I fixed parts of it, still DC issues thought.
Quote:
Originally Posted by
wackyracer
Just because you have alpha and a lot of balls, doesn't make you a kool guy :):. You can't code, quit acting pro, your a noob, get a life.
kthxbai
Helping pepole makes me act pro :(!
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
PirateOwh
I fixed parts of it, still DC issues thought.
Helping pepole makes me act pro :(!
Mind sharing your fixed parts? Btw, I'm using the one released on KDev, not the one in this thread.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Xoslize
More packets are wrong I can tell:)
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Packet errors normally cause error 38s instead of disconnections, just to say.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Bazzilisk
Packet errors normally cause error 38s instead of disconnections, just to say.
Meh, Same thing XD.
So anyways, I edited it a bit. Changed up Databaseconnections.java because netbeans was bitching about it being unsafe, uses db.properties now....uhhh, cleaned up the source. Added occupations (why the hell not), cooldowns enable or disable, did some stuff to stop those annoying bat errors from coming up saying something about the loginstate -Should be fixed-. Added @maxskills from other source, it takes a hella long time but it maxes ALL skills. Put in Xoslize fix for sendyellowtip thing. Fixed up event scripts that caused problems (TTPQ thingy?)
LocalMS.zip
I haven't really looked through the source much, that download file contains V83 Wz files along with a Database.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
mariokiller64
Meh, Same thing XD.
So anyways, I edited it a bit. Changed up Databaseconnections.java because netbeans was bitching about it being unsafe, uses db.properties now....uhhh, cleaned up the source. Added occupations (why the hell not), cooldowns enable or disable, did some stuff to stop those annoying bat errors from coming up saying something about the loginstate -Should be fixed-. Added @maxskills from other source, it takes a hella long time but it maxes ALL skills. Put in Xoslize fix for sendyellowtip thing.
LocalMS.zip
I haven't really looked through the source much, that download file contains V83 Wz files along with a Database.
cool thanks :laugh:
i love ragezone people :blushing:
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
compactwater
That is this except the source is just edited a bit to match my liking (moar features and farther away from GMS)
Quote:
Originally Posted by
mariokiller64
Meh, Same thing XD.
So anyways, I edited it a bit. Changed up Databaseconnections.java because netbeans was bitching about it being unsafe, uses db.properties now....uhhh, cleaned up the source. Added occupations (why the hell not), cooldowns enable or disable, did some stuff to stop those annoying bat errors from coming up saying something about the loginstate -Should be fixed-. Added @maxskills from other source, it takes a hella long time but it maxes ALL skills. Put in Xoslize fix for sendyellowtip thing. Fixed up event scripts that caused problems (TTPQ thingy?)
LocalMS.zip
I haven't really looked through the source much, that download file contains V83 Wz files along with a Database.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
EDIT: Arr, dang double post.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Don't get over execited, this is missing yellowtip,
which will d/c you about seconds in game, you can't
get in game if you didn't remove strikes / other shit,
you can't save the items if you didnt arrange the stuff.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Xoslize
Don't get over execited, this is missing yellowtip,
which will d/c you about seconds in game, you can't
get in game if you didn't remove strikes / other shit,
you can't save the items if you didnt arrange the stuff.
All this toke me about 15minutes to fix.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
PirateOwh
All this toke me about 15minutes to fix.
Because I gave you this?
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Fix for Item disspearing / Buying CS Item.
Replace your ItemFactory with that.
Code:
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation. You may not use, modify
or distribute this program under any other version of the
GNU Affero General Public License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package client;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.List;
import tools.DatabaseConnection;
import tools.Pair;
/**
*
* @author Flav
*/
public enum ItemFactory {
INVENTORY(1, false), //Maybe type 0 is better? :O
STORAGE(2, true),
CASH_EXPLORER(3, true),
CASH_CYGNUS(4, false),
CASH_ARAN(5, false);
private int value;
private boolean account;
private ItemFactory(int value, boolean account) {
this.value = value;
this.account = account;
}
public int getValue() {
return value;
}
public List<Pair<IItem, MapleInventoryType>> loadItems(int id, boolean login) throws SQLException {
List<Pair<IItem, MapleInventoryType>> items = new ArrayList<Pair<IItem, MapleInventoryType>>();
StringBuilder query = new StringBuilder();
query.append("SELECT * FROM `inventoryitems` LEFT JOIN `inventoryequipment` USING(`inventoryitemid`) WHERE `type` = ? AND `");
query.append(account ? "accountid" : "characterid");
query.append("` = ?");
if (login) {
query.append(" AND `inventorytype` = ");
query.append(MapleInventoryType.EQUIPPED.getType());
}
PreparedStatement ps = DatabaseConnection.getConnection().prepareStatement(query.toString());
ps.setInt(1, value);
ps.setInt(2, id);
ResultSet rs = ps.executeQuery();
while (rs.next()) {
MapleInventoryType mit = MapleInventoryType.getByType(rs.getByte("inventorytype"));
if (mit.equals(MapleInventoryType.EQUIP) || mit.equals(MapleInventoryType.EQUIPPED)) {
Equip equip = new Equip(rs.getInt("itemid"), (byte) rs.getInt("position"), rs.getInt("ringid"));
equip.setOwner(rs.getString("owner"));
equip.setQuantity((short) rs.getInt("quantity"));
equip.setAcc((short) rs.getInt("acc"));
equip.setAvoid((short) rs.getInt("avoid"));
equip.setDex((short) rs.getInt("dex"));
equip.setHands((short) rs.getInt("hands"));
equip.setHp((short) rs.getInt("hp"));
equip.setInt((short) rs.getInt("int"));
equip.setJump((short) rs.getInt("jump"));
equip.setVicious((short) rs.getInt("vicious"));
equip.setFlag((byte) rs.getInt("flag"));
equip.setLuk((short) rs.getInt("luk"));
equip.setMatk((short) rs.getInt("matk"));
equip.setMdef((short) rs.getInt("mdef"));
equip.setMp((short) rs.getInt("mp"));
equip.setSpeed((short) rs.getInt("speed"));
equip.setStr((short) rs.getInt("str"));
equip.setWatk((short) rs.getInt("watk"));
equip.setWdef((short) rs.getInt("wdef"));
equip.setUpgradeSlots((byte) rs.getInt("upgradeslots"));
equip.setLevel((byte) rs.getInt("level"));
equip.setItemExp(rs.getInt("itemexp"));
items.add(new Pair<IItem, MapleInventoryType>(equip, mit));
} else {
Item item = new Item(rs.getInt("itemid"), (byte) rs.getInt("position"), (short) rs.getInt("quantity"), rs.getInt("petid"));
item.setOwner(rs.getString("owner"));
items.add(new Pair<IItem, MapleInventoryType>(item, mit));
}
}
rs.close();
ps.close();
return items;
}
public synchronized void saveItems(List<Pair<IItem, MapleInventoryType>> items, int id) throws SQLException {
StringBuilder query = new StringBuilder();
query.append("DELETE FROM `inventoryitems` WHERE `type` = ? AND `");
query.append(account ? "accountid" : "characterid");
query.append("` = ?");
Connection con = DatabaseConnection.getConnection();
PreparedStatement ps = con.prepareStatement(query.toString());
ps.setInt(1, value);
ps.setInt(2, id);
ps.executeUpdate();
ps.close();
ps = con.prepareStatement("INSERT INTO `inventoryitems` VALUES (DEFAULT, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)", Statement.RETURN_GENERATED_KEYS);
PreparedStatement pse = con.prepareStatement("INSERT INTO `inventoryequipment` VALUES (DEFAULT, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
for (Pair<IItem, MapleInventoryType> pair : items) {
IItem item = pair.getLeft();
MapleInventoryType mit = pair.getRight();
ps.setInt(1, value);
ps.setString(2, account ? null : String.valueOf(id));
ps.setString(3, account ? String.valueOf(id) : null);
ps.setInt(4, item.getItemId());
ps.setInt(5, mit.getType());
ps.setInt(6, item.getPosition());
ps.setInt(7, item.getQuantity());
ps.setString(8, item.getOwner());
ps.setInt(9, item.getPetId());
ps.setLong(10, item.getExpiration());
ps.executeUpdate();
if (mit.equals(MapleInventoryType.EQUIP) || mit.equals(MapleInventoryType.EQUIPPED)) {
ResultSet rs = ps.getGeneratedKeys();
if (!rs.next())
throw new RuntimeException("Inserting item failed.");
pse.setInt(1, rs.getInt(1));
rs.close();
IEquip equip = (IEquip) item;
pse.setInt(2, equip.getUpgradeSlots());
pse.setInt(3, equip.getLevel());
pse.setInt(4, equip.getStr());
pse.setInt(5, equip.getDex());
pse.setInt(6, equip.getInt());
pse.setInt(7, equip.getLuk());
pse.setInt(8, equip.getHp());
pse.setInt(9, equip.getMp());
pse.setInt(10, equip.getWatk());
pse.setInt(11, equip.getMatk());
pse.setInt(12, equip.getWdef());
pse.setInt(13, equip.getMdef());
pse.setInt(14, equip.getAcc());
pse.setInt(15, equip.getAvoid());
pse.setInt(16, equip.getHands());
pse.setInt(17, equip.getSpeed());
pse.setInt(18, equip.getJump());
pse.setInt(19, equip.getRingId());
pse.setInt(20, 0);
pse.setInt(21, equip.getVicious());
pse.setInt(22, equip.getFlag());
pse.setInt(23, equip.getItemExp());
pse.executeUpdate();
}
}
pse.close();
ps.close();
}
}
Execute this.
Code:
DROP TABLE IF EXISTS `inventoryitems`;
CREATE TABLE `inventoryitems` (
`inventoryitemid` int(10) unsigned NOT NULL AUTO_INCREMENT,
`type` tinyint(1) NOT NULL,
`characterid` int(11) DEFAULT NULL,
`accountid` int(11) DEFAULT NULL,
`itemid` int(11) NOT NULL DEFAULT '0',
`inventorytype` int(11) NOT NULL DEFAULT '0',
`position` int(11) NOT NULL DEFAULT '0',
`quantity` int(11) NOT NULL DEFAULT '0',
`owner` tinytext NOT NULL,
`petid` int(11) NOT NULL DEFAULT '-1',
`expiredate` bigint(20) NOT NULL DEFAULT '-1',
PRIMARY KEY (`inventoryitemid`),
KEY `inventoryitems_ibfk_1` (`characterid`),
KEY `characterid` (`characterid`),
KEY `inventorytype` (`inventorytype`),
KEY `characterid_2` (`characterid`,`inventorytype`),
CONSTRAINT `inventoryitems_ibfk_1` FOREIGN KEY (`characterid`) REFERENCES `characters` (`id`) ON DELETE CASCADE
) ENGINE=InnoDB AUTO_INCREMENT=458 DEFAULT CHARSET=latin1;
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Why help all these noobs fixing the errors and bugs, let MS Die :D
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
Celphius
Why help all these noobs fixing the errors and bugs, let MS Die :D
oh dont be so evil :D
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
yengqin
oh dont be so evil :D
It's not being evil :D but yea, i still don't recommend using this source, there is 3 EXPLOITS Darion told me about. And i don't really think this is the real Official source.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
This is not the offical source.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Your welcome for the fix.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
mariokiller64
That is this except the source is just edited a bit to match my liking (moar features and farther away from GMS)
What's the fix for the Event scripts?
Edit: nvm.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Whats the jar file in there for?
2010_06_24__10_36_pm.jar
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Can anyone help me? When i choose character it turns back to login screen and says "Unable to log on to game server". Dont flame me please, im just asking for help.
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
GrommuZ
Can anyone help me? When i choose character it turns back to login screen and says "Unable to log on to game server". Dont flame me please, im just asking for help.
you get any errors in the batch files?
-
Re: LocalMS source + Scripts [24th June 2010] ~~ THANK VODKA :D
Quote:
Originally Posted by
iAkira
you get any errors in the batch files?
No, my batch files are normal.