Re: [Release]JunMS repack V5-Based on TitanMS verison 0.0.8B<Released>
Quote:
Originally Posted by
oshri221
------ Build started: Project: MapleStoryServer, Configuration: Debug Win32 ------
Compiling...
Inventory.cpp
c:\documents and settings\siropmaple\שולחן העבודה\קבצים פרוצים\junms v5\maplestoryserver\inventory.cpp(316) : error C2059: syntax error : 'else'
c:\documents and settings\siropmaple\שולחן העבודה\קבצים פרוצים\junms v5\maplestoryserver\inventory.cpp(316) : error C2143: syntax error : missing ';' before '{'
c:\documents and settings\siropmaple\שולחן העבודה\קבצים פרוצים\junms v5\maplestoryserver\inventory.cpp(316) : error C2447: '{' : missing function header (old-style formal list?)
c:\documents and settings\siropmaple\שולחן העבודה\קבצים פרוצים\junms v5\maplestoryserver\inventory.cpp(341) : error C2059: syntax error : '}'
c:\documents and settings\siropmaple\שולחן העבודה\קבצים פרוצים\junms v5\maplestoryserver\inventory.cpp(341) : error C2143: syntax error : missing ';' before '}'
c:\documents and settings\siropmaple\שולחן העבודה\קבצים פרוצים\junms v5\maplestoryserver\inventory.cpp(341) : error C2059: syntax error : '}'
c:\documents and settings\siropmaple\שולחן העבודה\קבצים פרוצים\junms v5\maplestoryserver\inventory.cpp(343) : error C2143: syntax error : missing ';' before '{'
c:\documents and settings\siropmaple\שולחן העבודה\קבצים פרוצים\junms v5\maplestoryserver\inventory.cpp(343) : error C2447: '{' : missing function header (old-style formal list?)
Build log was saved at "file://c:\Documents and Settings\SiropMaple\שולחן העבודה\קבצים פרוצים\JunMS V5\MapleStoryServer\Debug\BuildLog.htm"
MapleStoryServer - 8 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========
ah nvm fix it :P
ty man
did u fix it?
Re: [Release]JunMS repack V5-Based on TitanMS verison 0.0.8B<Released>
yea man ,
thats was because you add 2 ( } )
in the end
i fix it to this code man and its work , but when i get in and choose player i get dc to my server
here the code :
Quote:
void Inventory::useShop(Player* player, unsigned char* packet){
char type = packet[0];
if(type == 0){
int item = getInt(packet+3);
short howmany = getShort(packet+7);
bool isequip=false;
if(Drops::equips.find(item) != Drops::equips.end())
isequip = 1;
if(isequip){
Equip* equip = setEquipStats(player, item);
addEquip(player, equip);
player->inv->setMesos(player->inv->getMesos() - Shops::getPrice(player, item));
InventoryPacket::bought(player);
}
else{
if(Drops::items.find(item) == Drops::items.end())
return;
char type = Drops::items[item].type;
Item* newitem = new Item;
newitem->amount = howmany;
newitem->id = item;
newitem->inv = type;
newitem->pos = findSlot(player, item , type, howmany);
addItem(player, newitem);
player->inv->setMesos(player->inv->getMesos() - Shops::getPrice(player, item)*howmany);
InventoryPacket::bought(player);
}
}
else if(type == 1){
short slot = getShort(packet+1);
int item = getInt(packet+3);
short amount = getShort(packet+7);
char inv = packet[9];
if(item/1000000 == 1){
for(int i=0; i<player->inv->getEquipNum(); i++){
if(player->inv->getEquip(i)->pos == slot){
InventoryPacket::moveItem(player, 1, slot, 0);
player->inv->deleteEquip(i);
break;
}
}
player->inv->setMesos(player->inv->getMesos() + Drops::equips[item].price*amount);
}
else{
takeItemSlot(player, slot, Drops::items[item].type, amount);
player->inv->setMesos(player->inv->getMesos() + Drops::items[item].price*amount);
}
InventoryPacket::bought(player);
}
Re: [Release]JunMS repack V5-Based on TitanMS verison 0.0.8B<Released>
Quote:
Originally Posted by
oshri221
wtf the timer are bad.
i just open it and when i try to get in the server quit -_-
Did u use auto restarter?
V5.1 source out !
Download it...it should fix most thing....
Re: [Re-Release]JunMS repack V5.1-Based on TitanMS verison 0.0.8B
can i have link to v5.1 source ?
i have what u put in my maplestoryserver on your JunMS folder...
i got MapleStoryRestartv5 and i change MapleStoryServer.exe
but when i start it thats say no my sql root@password o.O
and when i try to get in in build on c++ when i choose player its give me dc and close the server.
Re: [Re-Release]JunMS repack V5.1-Based on TitanMS verison 0.0.8B
did you fix the bug when i choose player ? in V5.1
and relase ling good for V5.1 ?
Re: [Re-Release]JunMS repack V5.1-Based on TitanMS verison 0.0.8B
Quote:
Originally Posted by
oshri221
can i have ling to v5.1 source ?
i have what u put in my maplestoryserver on your JunMS folder...
i got MapleStoryRestartv5 and i change MapleStoryServer.exe
but when i start it thats say no my sql root@password o.O
and when i try to get in in build on c++ when i choose player its give me dc and close the server.
well,
Did u change the loginpacket.cpp?
look for this:
Code:
packet.addByte(5); // IP
packet.addByte(196);
packet.addByte(25);
packet.addByte(172);
replace all the number in ( ) to your ip address....
This is based on 5.196.25.172
for no my sql root@password
did u set a password for your database connection?
if yes,change this:
Code:
int MySQL::connectToMySQL(){
if(!mysql_real_connect(&maple_db, "localhost", "root", "X", "junms", 3306, NULL, 0)){
printf(mysql_error(&maple_db));
return 0;
}
return 1;
}
NOTE: X is the password u used!
Make sure that u really changed the new maplestoryserver.exe
Re: [Re-Release]JunMS repack V5.1-Based on TitanMS verison 0.0.8B
Re: [Re-Release]JunMS repack V5.1-Based on TitanMS verison 0.0.8B
Quote:
Originally Posted by
oshri221
did you fix the bug when i choose player ? in V5.1
and relase ling good for V5.1 ?
It is not a bug!
if u never configure the setting....
cya tml...GMT+8 time zone...Now (11:55 PM)
Sleeping soon.....TML have school!!
Re: [Re-Release]JunMS repack V5.1-Based on TitanMS verison 0.0.8B
aah, im from israel here 18:55 PM... :|
so y when i click on my MapleRestart its ask for this ? :|
Re: [Re-Release]JunMS repack V5.1-Based on TitanMS verison 0.0.8B
Re: [Re-Release]JunMS repack V5.1-Based on TitanMS verison 0.0.8B
thats what i do \ =
i duno why its not work ,
should i build again in c++ ?
Re: [Re-Release]JunMS repack V5.1-Based on TitanMS verison 0.0.8B
Quote:
Originally Posted by
oshri221
thats what i do \ =
i duno why its not work ,
should i build again in c++ ?
yes, u must click this:
http://i167.photobucket.com/albums/u123/pokkax/6.jpg
Re: [Re-Release]JunMS repack V5.1-Based on TitanMS verison 0.0.8B
O.o ty its work ,
i just dont take it from "Debug" folder
i take it from relase folder :\\\\\
ty :P
Edit : yes really work :P
can i ask if you done job 4 ? , and if heal work ?
Re: [Re-Release]JunMS repack V5.1-Based on TitanMS verison 0.0.8B
OMG Its still bug my server and close it
Re: [Re-Release]JunMS repack V5.1-Based on TitanMS verison 0.0.8B
Quote:
Originally Posted by
oshri221
O.o ty its work ,
i just dont take it from "Debug" folder
i take it from relase folder :\\\\\
ty :P
Edit : yes really work :P
can i ask if you done job 4 ? , and if heal work ?
all are working....
check players.cpp for more info....
!addsp is working.....
bb..i go sleep....
00:07 AM
cya