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

Status
Not open for further replies.
Screw it, compiled fine, but wasnt able to log-in.
Oh well, trying again. :)

EDIT: Okay, ive tried again, and i still wasnt able to log in...any ideas?
 
it works great.thanks alot.i guess we need more people like you who has the ability and isn't proud of it.

btw,what does 'ret' means?return?
 
c:\documents and settings\martin\desktop\newserv\oldmapleserv\kryti calv5taketwo\maplestoryserver\Player.h(181) : error C2143: syntax error : missing ';' before '*'

for those with that error [C2143]

i fixed it by adding

Code:
class PlayerInventory;

BEFORE

Code:
class Player:public AbstractPlayer {
public:

in player.h


also (at least in first release of this) i noticed that 30% glove dex and 30% glove atk are switched [so dex gives atk and atk gives dex]


thanks for the release all the same!
 
Working fine? okay.
Display animetion isn't my field.

ret means return.

あー疲れた。皆お疲れ様。
なんとか動いてよかったよ。色々手筈悪くてごめんなさい。
またコード書くことになるかもしれないからその時は宜しくね。

Thank you for Reply!
 
Can Help ME?
.\Inventory.cpp(458) : error C2601: 'Inventory::useScroll' : local function definitions are illegal
.\Inventory.cpp(414): this line contains a '{' which has not yet been matched
.\Inventory.cpp(891) : error C2601: 'Inventory::EquipUpgrade' : local function definitions are illegal
.\Inventory.cpp(414): this line contains a '{' which has not yet been matched
 
Hello, i put the code and i got 7 errors:
Code:
.\PlayerInventory.cpp(6) : error C2027: use of undefined type 'Player'
        d:\server\kryticalv6\maplestoryserver\PlayerInventory.h(7) : see declaration of 'Player'
.\PlayerInventory.cpp(6) : error C2227: left of '->inv' must point to class/struct/union/generic type
.\PlayerInventory.cpp(6) : error C2227: left of '->getEquip' must point to class/struct/union/generic type
.\PlayerInventory.cpp(6) : error C2227: left of '->pos' must point to class/struct/union/generic type
.\PlayerInventory.cpp(7) : error C2027: use of undefined type 'Player'
        d:\server\kryticalv6\maplestoryserver\PlayerInventory.h(7) : see declaration of 'Player'
.\PlayerInventory.cpp(7) : error C2227: left of '->inv' must point to class/struct/union/generic type
.\PlayerInventory.cpp(7) : error C2227: left of '->setEquipPos' must point to class/struct/union/generic type

My PlayerInventory.ccp file:
Code:
#include "PlayerInventory.h"
#include "InventoryPacket.h"

void PlayerInventory::plusEquipState(Player *player, int equipid, int watk, int wdef, int matk, int mdef, 
int str, int dex, int intt, int luk, int acc, int avo, int speed, int jump, int hp, int mp){ 
short pos = player->inv->getEquip(equipid)->pos; 
player->inv->setEquipPos(equipid, 0);//Equip -> slot 0 
equips[equipid]->iwatk+=watk; 
equips[equipid]->iwdef+=wdef; 
equips[equipid]->imatk+=matk; 
equips[equipid]->imdef+=mdef; 
equips[equipid]->istr+=str; 
equips[equipid]->idex+=dex; 
equips[equipid]->iint+=intt; 
equips[equipid]->iluk+=luk; 
equips[equipid]->iacc+=acc; 
equips[equipid]->iavo+=avo; 
equips[equipid]->ispeed+=speed; 
equips[equipid]->ijump+=jump; 
equips[equipid]->ihp+=hp; 
equips[equipid]->imp+=mp; 
equips[equipid]->slots--; 
equips[equipid]->pos=pos; //Equip 
InventoryPacket::addEquip(player, equips[equipid], 1); 
InventoryPacket::updatePlayer(player); 
}

void PlayerInventory::setMesos(int mesos, bool is){
	this->mesos=mesos;
	InventoryPacket::newMesos(player, mesos, is);
}

Would someone help me how to fix the problem?
 
Last edited:
Am i the only one with this error:
error C2660: 'Inventory::takeItemSlot' : function does not take 4 arguments

it's in this line

if(ret == 1){InventoryPacket::updatePlayer(player);return;}
takeItemSlot(player, slot, 2, 1);
 
3>.\Inventory.cpp(461) : error C2039: 'plusEquipState' : is not a member of 'PlayerInventory'
3> c:\maplestoryserver\maplestoryserver\PlayerInventory.h(39) : see declaration of 'PlayerInventory'
3>.\Inventory.cpp(466) : error C2039: 'plusEquipState' : is not a member of 'PlayerInventory'
3> c:\maplestoryserver\maplestoryserver\PlayerInventory.h(39) : see declaration of 'PlayerInventory'
3>.\Inventory.cpp(474) : error C2039: 'plusEquipState' : is not a member of 'PlayerInventory'
3> c:\maplestoryserver\maplestoryserver\PlayerInventory.h(39) : see declaration of 'PlayerInventory'
3>.\Inventory.cpp(475) : error C2365: 'plusEquipState' : redefinition; previous definition was 'formerly unknown identifier'
3>.\Inventory.cpp(478) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(478) : error C2227: left of '->iwatk' must point to class/struct/union/generic type
3>.\Inventory.cpp(479) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(479) : error C2227: left of '->iwdef' must point to class/struct/union/generic type
3>.\Inventory.cpp(480) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(480) : error C2227: left of '->imatk' must point to class/struct/union/generic type
3>.\Inventory.cpp(481) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(481) : error C2227: left of '->imdef' must point to class/struct/union/generic type
3>.\Inventory.cpp(482) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(482) : error C2227: left of '->istr' must point to class/struct/union/generic type
3>.\Inventory.cpp(483) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(483) : error C2227: left of '->idex' must point to class/struct/union/generic type
3>.\Inventory.cpp(484) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(484) : error C2227: left of '->iint' must point to class/struct/union/generic type
3>.\Inventory.cpp(485) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(485) : error C2227: left of '->iluk' must point to class/struct/union/generic type
3>.\Inventory.cpp(486) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(486) : error C2227: left of '->iacc' must point to class/struct/union/generic type
3>.\Inventory.cpp(487) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(487) : error C2227: left of '->iavo' must point to class/struct/union/generic type
3>.\Inventory.cpp(488) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(488) : error C2227: left of '->ispeed' must point to class/struct/union/generic type
3>.\Inventory.cpp(489) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(489) : error C2227: left of '->ijump' must point to class/struct/union/generic type
3>.\Inventory.cpp(490) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(490) : error C2227: left of '->ihp' must point to class/struct/union/generic type
3>.\Inventory.cpp(491) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(491) : error C2227: left of '->imp' must point to class/struct/union/generic type
3>.\Inventory.cpp(492) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(492) : error C2227: left of '->slots' must point to class/struct/union/generic type
3>.\Inventory.cpp(493) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(493) : error C2227: left of '->pos' must point to class/struct/union/generic type
3>.\Inventory.cpp(494) : error C2065: 'equips' : undeclared identifier
3>.\Inventory.cpp(799) : error C2039: 'getItemBySlot' : is not a member of 'PlayerInventory'
3> c:\maplestoryserver\maplestoryserver\PlayerInventory.h(39) : see declaration of 'PlayerInventory'
3>.\Inventory.cpp(886) : error C2039: 'getItemBySlot' : is not a member of 'PlayerInventory'
3> c:\maplestoryserver\maplestoryserver\PlayerInventory.h(39) : see declaration of 'PlayerInventory'
3>.\Inventory.cpp(920) : error C2039: 'isCash' : is not a member of 'Inventory'
3> c:\maplestoryserver\maplestoryserver\Inventory.h(10) : see declaration of 'Inventory'
3>.\Inventory.cpp(926) : error C2039: 'useSummonBag' : is not a member of 'Inventory'
3> c:\maplestoryserver\maplestoryserver\Inventory.h(10) : see declaration of 'Inventory'
3>.\Inventory.cpp(929) : error C2039: 'getItemBySlot' : is not a member of 'PlayerInventory'
3> c:\maplestoryserver\maplestoryserver\PlayerInventory.h(39) : see declaration of 'PlayerInventory'
3>.\Inventory.cpp(935) : error C3861: 'takeItemSlot': identifier not found
3>.\Inventory.cpp(936) : error C2039: 'mobs' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(936) : error C2228: left of '.size' must have class/struct/union
3>.\Inventory.cpp(937) : error C2039: 'mobs' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(937) : error C2228: left of '.chance' must have class/struct/union
3>.\Inventory.cpp(938) : error C2039: 'mobs' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(938) : error C2228: left of '.mobid' must have class/struct/union
3>.\Inventory.cpp(942) : error C2039: 'useReturnScroll' : is not a member of 'Inventory'
3> c:\maplestoryserver\maplestoryserver\Inventory.h(10) : see declaration of 'Inventory'
3>.\Inventory.cpp(945) : error C2039: 'getItemBySlot' : is not a member of 'PlayerInventory'
3> c:\maplestoryserver\maplestoryserver\PlayerInventory.h(39) : see declaration of 'PlayerInventory'
3>.\Inventory.cpp(951) : error C3861: 'takeItemSlot': identifier not found
3>.\Inventory.cpp(952) : error C2039: 'moveTo' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(958) : error C2084: function 'void Inventory::useScroll(Player *,unsigned char *)' already has a body
3> c:\maplestoryserver\maplestoryserver\Inventory.h(26) : see previous definition of 'useScroll'
3>.\Inventory.cpp(983) : error C2039: 'success' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(984) : error C2039: 'useScroll' : is not a member of 'InventoryPacket'
3> c:\maplestoryserver\maplestoryserver\InventoryPacket.h(15) : see declaration of 'InventoryPacket'
3>.\Inventory.cpp(985) : error C2039: 'istr' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(986) : error C2039: 'idex' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(987) : error C2039: 'iint' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(988) : error C2039: 'iluk' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(989) : error C2039: 'ihp' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(990) : error C2039: 'imp' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(991) : error C2039: 'iwatk' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(992) : error C2039: 'imatk' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(993) : error C2039: 'iwdef' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(994) : error C2039: 'imdef' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(995) : error C2039: 'iacc' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(996) : error C2039: 'iavo' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(997) : error C2039: 'ihand' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(998) : error C2039: 'ijump' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(999) : error C2039: 'ispeed' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(1002) : error C2039: 'cursed' : is not a member of 'ConsumeInfo'
3> c:\maplestoryserver\maplestoryserver\Drops.h(85) : see declaration of 'ConsumeInfo'
3>.\Inventory.cpp(1012) : error C2039: 'useScroll' : is not a member of 'InventoryPacket'
3> c:\maplestoryserver\maplestoryserver\InventoryPacket.h(15) : see declaration of 'InventoryPacket'
WTF IS THIS HOW DO I FIX IT PLZ GUYS THIS IS THE ONLY ****
 
Can you please help me with this?

------ Build started: Project: MapleStoryServer, Configuration: Release Win32 ------
Compiling...
PlayerInventory.cpp
.\PlayerInventory.cpp(10) : error C2039: 'plusEquipState' : is not a member of 'PlayerInventory'
c:\documents and settings\owner\desktop\new hafusms\maplestoryserver\PlayerInventory.h(39) : see declaration of 'PlayerInventory'
.\PlayerInventory.cpp(14) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(14) : error C2227: left of '->iwatk' must point to class/struct/union/generic type
.\PlayerInventory.cpp(15) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(15) : error C2227: left of '->iwdef' must point to class/struct/union/generic type
.\PlayerInventory.cpp(16) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(16) : error C2227: left of '->imatk' must point to class/struct/union/generic type
.\PlayerInventory.cpp(17) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(17) : error C2227: left of '->imdef' must point to class/struct/union/generic type
.\PlayerInventory.cpp(18) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(18) : error C2227: left of '->istr' must point to class/struct/union/generic type
.\PlayerInventory.cpp(19) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(19) : error C2227: left of '->idex' must point to class/struct/union/generic type
.\PlayerInventory.cpp(20) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(20) : error C2227: left of '->iint' must point to class/struct/union/generic type
.\PlayerInventory.cpp(21) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(21) : error C2227: left of '->iluk' must point to class/struct/union/generic type
.\PlayerInventory.cpp(22) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(22) : error C2227: left of '->iacc' must point to class/struct/union/generic type
.\PlayerInventory.cpp(23) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(23) : error C2227: left of '->iavo' must point to class/struct/union/generic type
.\PlayerInventory.cpp(24) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(24) : error C2227: left of '->ispeed' must point to class/struct/union/generic type
.\PlayerInventory.cpp(25) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(25) : error C2227: left of '->ijump' must point to class/struct/union/generic type
.\PlayerInventory.cpp(26) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(26) : error C2227: left of '->ihp' must point to class/struct/union/generic type
.\PlayerInventory.cpp(27) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(27) : error C2227: left of '->imp' must point to class/struct/union/generic type
.\PlayerInventory.cpp(28) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(28) : error C2227: left of '->slots' must point to class/struct/union/generic type
.\PlayerInventory.cpp(29) : error C2065: 'equips' : undeclared identifier
.\PlayerInventory.cpp(29) : error C2227: left of '->pos' must point to class/struct/union/generic type
.\PlayerInventory.cpp(30) : error C2065: 'equips' : undeclared identifier
Inventory.cpp
.\Inventory.cpp(909) : error C2039: 'plusEquipState' : is not a member of 'PlayerInventory'
c:\documents and settings\owner\desktop\new hafusms\maplestoryserver\PlayerInventory.h(39) : see declaration of 'PlayerInventory'
.\Inventory.cpp(914) : error C2039: 'plusEquipState' : is not a member of 'PlayerInventory'
c:\documents and settings\owner\desktop\new hafusms\maplestoryserver\PlayerInventory.h(39) : see declaration of 'PlayerInventory'
Build log was saved at "file://c:\Documents and Settings\Owner\Desktop\New HafusMS\MapleStoryServer\Release\BuildLog.htm"
MapleStoryServer - 36 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 2 up-to-date, 0 skipped ==========

I do not understand what i did wrong...here is my cpp

#include "PlayerInventory.h"
#include "InventoryPacket.h"
#include "Player.h"
#include "Inventory.h"

void PlayerInventory::setMesos(int mesos, bool is){
this->mesos=mesos;
InventoryPacket::newMesos(player, mesos, is);
}
void PlayerInventory::plusEquipState(Player *player, int equipid, int watk, int wdef, int matk, int mdef,
int str, int dex, int intt, int luk, int acc, int avo, int speed, int jump, int hp, int mp){
short pos = player->inv->getEquip(equipid)->pos;
player->inv->setEquipPos(equipid, 0);//Equip -> slot 0
equips[equipid]->iwatk+=watk;
equips[equipid]->iwdef+=wdef;
equips[equipid]->imatk+=matk;
equips[equipid]->imdef+=mdef;
equips[equipid]->istr+=str;
equips[equipid]->idex+=dex;
equips[equipid]->iint+=intt;
equips[equipid]->iluk+=luk;
equips[equipid]->iacc+=acc;
equips[equipid]->iavo+=avo;
equips[equipid]->ispeed+=speed;
equips[equipid]->ijump+=jump;
equips[equipid]->ihp+=hp;
equips[equipid]->imp+=mp;
equips[equipid]->slots--;
equips[equipid]->pos=pos; //Equip
InventoryPacket::addEquip(player, equips[equipid], 1);
InventoryPacket::updatePlayer(player);
}
 
Status
Not open for further replies.
Back