[Release]Scroll(! This is not perfect!)

Status
Not open for further replies.
Well, I've read every single post twice and I couldn't find someone with the same error as me.
I keep getting error C2440 (Impossible to convert from 'void' to 'int') and I can't fix it.
It happens at every lines like this one :

Code:
case 2040000: ret EquipUpgrade(player,......); break;

I hope someone will be able to help me.
Thanks in advance :)
 
does not work for me lame i can lode the server but alot of bugs and when i try to put the scroll it dosen work nothing happand stuck like the last time need relog and still nothing happand
 
LOL, wow. I never has seen something like this 0_o. Though your getting close and I was bored so I spent my time fixing this :P. For those who can't get it to work. Keep trying :P.
 
------ Build started: Project: MapleStoryServer, Configuration: Debug Win32 ------
Compiling...
Inventory.cpp
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\inventory.cpp(457) : error C2601: 'Inventory::useScroll' : local function definitions are illegal
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\inventory.cpp(450): this line contains a '{' which has not yet been matched
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\inventory.cpp(890) : error C2601: 'Inventory::EquipUpgrade' : local function definitions are illegal
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\inventory.cpp(450): this line contains a '{' which has not yet been matched
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\inventory.cpp(907) : error C2248: 'PlayerInventory::plusEquipState' : cannot access private member declared in class 'PlayerInventory'
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\playerinventory.h(108) : see declaration of 'PlayerInventory::plusEquipState'
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\playerinventory.h(39) : see declaration of 'PlayerInventory'
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\inventory.cpp(912) : error C2248: 'PlayerInventory::plusEquipState' : cannot access private member declared in class 'PlayerInventory'
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\playerinventory.h(108) : see declaration of 'PlayerInventory::plusEquipState'
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\playerinventory.h(39) : see declaration of 'PlayerInventory'
Player.cpp
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\player.cpp(279) : error C2059: syntax error : 'case'
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\player.cpp(279) : error C2355: 'this' : can only be referenced inside non-static member functions
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\player.cpp(279) : error C2065: 'buf' : undeclared identifier
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\player.cpp(279) : error C2761: 'void Inventory::useScroll(Player *,unsigned char *)' : member function redeclaration not allowed
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\player.cpp(279) : error C2059: syntax error : 'break'
PlayerInventory.cpp
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\playerinventory.cpp(11) : error C2601: 'PlayerInventory::plusEquipState' : local function definitions are illegal
c:\documents and settings\compaq_administrator\desktop\mexstory\mexstory\maplestoryserver\playerinventory.cpp(7): this line contains a '{' which has not yet been matched
Generating Code...
Build log was saved at "file://c:\Documents and Settings\Compaq_Administrator\Desktop\MEXSTORY\MEXSTORY\MapleStoryServer\Debug\BuildLog.htm"
MapleStoryServer - 10 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========








Can someone help me recode that?
i will post site to my file if u can recode and send back
 
else if(itemid < 2043400){
switch(itemid){//Dagger
case 2043300: ret = EquipUpgrade(player,-11,1,0,0,0,0,0,0,0,0,0,0,0,0,0,100); break;//Chance100
case 2043301: ret = EquipUpgrade(player,-11,2,0,0,0,1,0,0,0,0,0,0,0,0,0,60); break;//Chance60
case 2043302: ret = EquipUpgrade(player,-11,5,1,0,0,3,0,0,0,0,0,0,0,0,0,10); break;//Chance10
case 2043303: ret = EquipUpgrade(player,-11,5,1,0,0,3,0,0,0,0,0,0,0,0,0,100); break;//GM
case 2043304: ret = EquipUpgrade(player,-11,2,0,0,0,1,0,0,0,0,0,0,0,0,0,70); break;//Chance70
case 2043305: ret = EquipUpgrade(player,-11,5,1,0,0,3,0,0,0,0,0,0,0,0,0,30); break;//Chance30
case 2043306: ret = EquipUpgrade(player,-11,2,0,0,0,0,0,0,1,0,0,0,0,0,0,65); break;//Chance65
case 2043307: ret = EquipUpgrade(player,-11,3,1,0,0,0,0,0,3,0,0,0,0,0,0,15); break;//Chance15
case 2043308: ret = EquipUpgrade(player,-11,3,0,0,0,0,0,0,2,0,0,0,0,0,0,40); break;//Chance40 For Maple Weapon
}

You got this wrong it add's str to the item instead of luk this is what it should be
the Bolded should be in the same row as the underlined

Code:
 else if(itemid < 2043400){
  switch(itemid){//Dagger
   case 2043300: ret = EquipUpgrade(player,-11,1,0,0,0,0,0,0,0,0,0,0,0,0,0,100); break;//Chance100
   case 2043301: ret = EquipUpgrade(player,-11,2,0,0,0,0,0,0,1,0,0,0,0,0,0,60); break;//Chance60
   case 2043302: ret = EquipUpgrade(player,-11,5,1,0,0,0,0,0,3,0,0,0,0,0,0,10); break;//Chance10
   case 2043303: ret = EquipUpgrade(player,-11,5,1,0,0,0,0,0,3,0,0,0,0,0,0,100); break;//GM
   case 2043304: ret = EquipUpgrade(player,-11,2,0,0,0,0,0,0,1,0,0,0,0,0,0,70); break;//Chance70
   case 2043305: ret = EquipUpgrade(player,-11,5,1,0,0,0,0,0,3,0,0,0,0,0,0,30); break;//Chance30
   case 2043306: ret = EquipUpgrade(player,-11,2,0,0,0,0,0,0,1,0,0,0,0,0,0,65); break;//Chance65
   case 2043307: ret = EquipUpgrade(player,-11,3,1,0,0,0,0,0,3,0,0,0,0,0,0,15); break;//Chance15
   case 2043308: ret = EquipUpgrade(player,-11,3,0,0,0,0,0,0,2,0,0,0,0,0,0,40); break;//Chance40 For Maple Weapon
   }

as u can see this is fixed
 
Last edited:
Knew it, if your using Krytical's Repack you basicly can't use this cus your just going to get stupid errors.

I went and downloaded the rev 007 again and did this and it works fine now, imma just add stuff in now and not use a repack. (:


yes you can just change the "release" (next to the green arrow) to "debug"
 
Status
Not open for further replies.
Back