Jump to content

DarkFire

Premium
  • Posts

    98
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by DarkFire

  1. You need to put Extern folder in your sources folder.You can take it from another file like novaline...
  2. Hi dev.I want impliment the guild storage,but when i compile i have this error: In file included from stdafx.h:12, from guild_safebox.h:4, from guild.h:7, from battle.cpp:15: ../../common/utils.h: In function 'bool str_to_number(bool&, const char*)': ../../common/utils.h:2: error: redefinition of 'bool str_to_number(bool&, const char*)' ../../common/utils.h:2: error: 'bool str_to_number(bool&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(char&, const char*)': ../../common/utils.h:10: error: redefinition of 'bool str_to_number(char&, const char*)' ../../common/utils.h:10: error: 'bool str_to_number(char&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(unsigned char&, const char*)': ../../common/utils.h:18: error: redefinition of 'bool str_to_number(unsigned char&, const char*)' ../../common/utils.h:18: error: 'bool str_to_number(unsigned char&, const char*)' previously defined here compile char.cpp ../../common/utils.h: In function 'bool str_to_number(short int&, const char*)': ../../common/utils.h:26: error: redefinition of 'bool str_to_number(short int&, const char*)' ../../common/utils.h:26: error: 'bool str_to_number(short int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(short unsigned int&, const char*)': ../../common/utils.h:34: error: redefinition of 'bool str_to_number(short unsigned int&, const char*)' ../../common/utils.h:34: error: 'bool str_to_number(short unsigned int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(int&, const char*)': ../../common/utils.h:42: error: redefinition of 'bool str_to_number(int&, const char*)' ../../common/utils.h:42: error: 'bool str_to_number(int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(unsigned int&, const char*)': ../../common/utils.h:50: error: redefinition of 'bool str_to_number(unsigned int&, const char*)' ../../common/utils.h:50: error: 'bool str_to_number(unsigned int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long int&, const char*)': ../../common/utils.h:58: error: redefinition of 'bool str_to_number(long int&, const char*)' ../../common/utils.h:58: error: 'bool str_to_number(long int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long unsigned int&, const char*)': ../../common/utils.h:66: error: redefinition of 'bool str_to_number(long unsigned int&, const char*)' ../../common/utils.h:66: error: 'bool str_to_number(long unsigned int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long long int&, const char*)': ../../common/utils.h:74: error: redefinition of 'bool str_to_number(long long int&, const char*)' ../../common/utils.h:74: error: 'bool str_to_number(long long int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(float&, const char*)': ../../common/utils.h:82: error: redefinition of 'bool str_to_number(float&, const char*)' ../../common/utils.h:82: error: 'bool str_to_number(float&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(double&, const char*)': ../../common/utils.h:90: error: redefinition of 'bool str_to_number(double&, const char*)' ../../common/utils.h:90: error: 'bool str_to_number(double&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long double&, const char*)': ../../common/utils.h:99: error: redefinition of 'bool str_to_number(long double&, const char*)' ../../common/utils.h:99: error: 'bool str_to_number(long double&, const char*)' previously defined here compile char_affect.cpp gmake: *** [OBJDIR/battle.o] Error 1 gmake: *** Waiting for unfinished jobs.... In file included from stdafx.h:12, from guild_safebox.h:4, from guild.h:7, from building.cpp:10: ../../common/utils.h: In function 'bool str_to_number(bool&, const char*)': ../../common/utils.h:2: error: redefinition of 'bool str_to_number(bool&, const char*)' ../../common/utils.h:2: error: 'bool str_to_number(bool&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(char&, const char*)': ../../common/utils.h:10: error: redefinition of 'bool str_to_number(char&, const char*)' ../../common/utils.h:10: error: 'bool str_to_number(char&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(unsigned char&, const char*)': ../../common/utils.h:18: error: redefinition of 'bool str_to_number(unsigned char&, const char*)' ../../common/utils.h:18: error: 'bool str_to_number(unsigned char&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(short int&, const char*)': ../../common/utils.h:26: error: redefinition of 'bool str_to_number(short int&, const char*)' ../../common/utils.h:26: error: 'bool str_to_number(short int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(short unsigned int&, const char*)': ../../common/utils.h:34: error: redefinition of 'bool str_to_number(short unsigned int&, const char*)' ../../common/utils.h:34: error: 'bool str_to_number(short unsigned int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(int&, const char*)': ../../common/utils.h:42: error: redefinition of 'bool str_to_number(int&, const char*)' ../../common/utils.h:42: error: 'bool str_to_number(int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(unsigned int&, const char*)': ../../common/utils.h:50: error: redefinition of 'bool str_to_number(unsigned int&, const char*)' ../../common/utils.h:50: error: 'bool str_to_number(unsigned int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long int&, const char*)': ../../common/utils.h:58: error: redefinition of 'bool str_to_number(long int&, const char*)' ../../common/utils.h:58: error: 'bool str_to_number(long int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long unsigned int&, const char*)': ../../common/utils.h:66: error: redefinition of 'bool str_to_number(long unsigned int&, const char*)' ../../common/utils.h:66: error: 'bool str_to_number(long unsigned int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long long int&, const char*)': ../../common/utils.h:74: error: redefinition of 'bool str_to_number(long long int&, const char*)' ../../common/utils.h:74: error: 'bool str_to_number(long long int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(float&, const char*)': ../../common/utils.h:82: error: redefinition of 'bool str_to_number(float&, const char*)' ../../common/utils.h:82: error: 'bool str_to_number(float&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(double&, const char*)': ../../common/utils.h:90: error: redefinition of 'bool str_to_number(double&, const char*)' ../../common/utils.h:90: error: 'bool str_to_number(double&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long double&, const char*)': ../../common/utils.h:99: error: redefinition of 'bool str_to_number(long double&, const char*)' ../../common/utils.h:99: error: 'bool str_to_number(long double&, const char*)' previously defined here gmake: *** [OBJDIR/building.o] Error 1 In file included from stdafx.h:12, from guild_safebox.h:4, from guild.h:7, from char.cpp:34: ../../common/utils.h: In function 'bool str_to_number(bool&, const char*)': ../../common/utils.h:2: error: redefinition of 'bool str_to_number(bool&, const char*)' ../../common/utils.h:2: error: 'bool str_to_number(bool&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(char&, const char*)': ../../common/utils.h:10: error: redefinition of 'bool str_to_number(char&, const char*)' ../../common/utils.h:10: error: 'bool str_to_number(char&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(unsigned char&, const char*)': ../../common/utils.h:18: error: redefinition of 'bool str_to_number(unsigned char&, const char*)' ../../common/utils.h:18: error: 'bool str_to_number(unsigned char&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(short int&, const char*)': ../../common/utils.h:26: error: redefinition of 'bool str_to_number(short int&, const char*)' ../../common/utils.h:26: error: 'bool str_to_number(short int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(short unsigned int&, const char*)': ../../common/utils.h:34: error: redefinition of 'bool str_to_number(short unsigned int&, const char*)' ../../common/utils.h:34: error: 'bool str_to_number(short unsigned int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(int&, const char*)': ../../common/utils.h:42: error: redefinition of 'bool str_to_number(int&, const char*)' ../../common/utils.h:42: error: 'bool str_to_number(int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(unsigned int&, const char*)': ../../common/utils.h:50: error: redefinition of 'bool str_to_number(unsigned int&, const char*)' ../../common/utils.h:50: error: 'bool str_to_number(unsigned int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long int&, const char*)': ../../common/utils.h:58: error: redefinition of 'bool str_to_number(long int&, const char*)' ../../common/utils.h:58: error: 'bool str_to_number(long int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long unsigned int&, const char*)': ../../common/utils.h:66: error: redefinition of 'bool str_to_number(long unsigned int&, const char*)' ../../common/utils.h:66: error: 'bool str_to_number(long unsigned int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long long int&, const char*)': ../../common/utils.h:74: error: redefinition of 'bool str_to_number(long long int&, const char*)' ../../common/utils.h:74: error: 'bool str_to_number(long long int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(float&, const char*)': ../../common/utils.h:82: error: redefinition of 'bool str_to_number(float&, const char*)' ../../common/utils.h:82: error: 'bool str_to_number(float&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(double&, const char*)': ../../common/utils.h:90: error: redefinition of 'bool str_to_number(double&, const char*)' ../../common/utils.h:90: error: 'bool str_to_number(double&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long double&, const char*)': ../../common/utils.h:99: error: redefinition of 'bool str_to_number(long double&, const char*)' ../../common/utils.h:99: error: 'bool str_to_number(long double&, const char*)' previously defined here In file included from stdafx.h:12, from guild_safebox.h:4, from guild.h:7, from char_affect.cpp:12: ../../common/utils.h: In function 'bool str_to_number(bool&, const char*)': ../../common/utils.h:2: error: redefinition of 'bool str_to_number(bool&, const char*)' ../../common/utils.h:2: error: 'bool str_to_number(bool&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(char&, const char*)': ../../common/utils.h:10: error: redefinition of 'bool str_to_number(char&, const char*)' ../../common/utils.h:10: error: 'bool str_to_number(char&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(unsigned char&, const char*)': ../../common/utils.h:18: error: redefinition of 'bool str_to_number(unsigned char&, const char*)' ../../common/utils.h:18: error: 'bool str_to_number(unsigned char&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(short int&, const char*)': ../../common/utils.h:26: error: redefinition of 'bool str_to_number(short int&, const char*)' ../../common/utils.h:26: error: 'bool str_to_number(short int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(short unsigned int&, const char*)': ../../common/utils.h:34: error: redefinition of 'bool str_to_number(short unsigned int&, const char*)' ../../common/utils.h:34: error: 'bool str_to_number(short unsigned int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(int&, const char*)': ../../common/utils.h:42: error: redefinition of 'bool str_to_number(int&, const char*)' ../../common/utils.h:42: error: 'bool str_to_number(int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(unsigned int&, const char*)': ../../common/utils.h:50: error: redefinition of 'bool str_to_number(unsigned int&, const char*)' ../../common/utils.h:50: error: 'bool str_to_number(unsigned int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long int&, const char*)': ../../common/utils.h:58: error: redefinition of 'bool str_to_number(long int&, const char*)' ../../common/utils.h:58: error: 'bool str_to_number(long int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long unsigned int&, const char*)': ../../common/utils.h:66: error: redefinition of 'bool str_to_number(long unsigned int&, const char*)' ../../common/utils.h:66: error: 'bool str_to_number(long unsigned int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long long int&, const char*)': ../../common/utils.h:74: error: redefinition of 'bool str_to_number(long long int&, const char*)' ../../common/utils.h:74: error: 'bool str_to_number(long long int&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(float&, const char*)': ../../common/utils.h:82: error: redefinition of 'bool str_to_number(float&, const char*)' ../../common/utils.h:82: error: 'bool str_to_number(float&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(double&, const char*)': ../../common/utils.h:90: error: redefinition of 'bool str_to_number(double&, const char*)' ../../common/utils.h:90: error: 'bool str_to_number(double&, const char*)' previously defined here ../../common/utils.h: In function 'bool str_to_number(long double&, const char*)': ../../common/utils.h:99: error: redefinition of 'bool str_to_number(long double&, const char*)' ../../common/utils.h:99: error: 'bool str_to_number(long double&, const char*)' previously defined here gmake: *** [OBJDIR/char_affect.o] Error 1 gmake: *** [OBJDIR/char.o] Error 1 In common/utils.h i didn't change nothing.....
  3. Hi Reboot.Ai have this warnings: PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()': PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone' PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)': PetSystem.cpp:552: warning: unused variable 'petVID' char_item.cpp: In member function 'void CHARACTER::BuffOnAttr_ValueChange(BYTE, BYTE, BYTE)': char_item.cpp:6284: warning: 'pBuff' may be used uninitialized in this function How i can solve them?
  4. Thx.Now all work fine Edit : After a reboot for all characters i have this... : and after 10minutes from -31871 points all character have 20000points...
  5. Ok , now it's work only if i have this items in inventory but if they are equipped they don't drop.... And also i have problem, after compilation the game with this function , when i write /kill <player name> and this player is online i have crash core(ch1_core1)
  6. i will try , thx EDIT: At compilation i have this... char_battle.cpp: In member function 'void CHARACTER::Dead(CHARACTER*, bool)': char_battle.cpp:1302: error: expected primary-expression before ')' token compile cmd_emotion.cpp compile cmd_general.cpp gmake: *** [OBJDIR/char_battle.o] Error 1 gmake: *** Waiting for unfinished jobs....
  7. UP ! This is all function : if (bDropInventory) // Drop Inventory { std::vector<BYTE> vec_bSlots; for (i = 0; i < INVENTORY_MAX_NUM; ++i) if (GetInventoryItem(i)) vec_bSlots.push_back(i); if (!vec_bSlots.empty()) { random_shuffle(vec_bSlots.begin(), vec_bSlots.end()); int iQty = MIN(vec_bSlots.size(), r.iInventoryQty); if (iQty) iQty = number(1, iQty); for (i = 0; i < iQty; ++i) { pkItem = GetInventoryItem(vec_bSlots[i]); //cruel if(GetMapIndex()==1) if (pkItem) { switch(pkItem->GetVnum()) { case 19: //id la item case 11209: //id la item case 3: //id la item case 4: //id la item case 5: //id la item SyncQuickslot(QUICKSLOT_TYPE_ITEM, vec_bSlots[i], 255); //arunca din inventar vec_item.push_back(std::make_pair(pkItem->RemoveFromCharacter(), INVENTORY)); //arunca din inventar default: continue; } } //endcruel if (IS_SET(pkItem->GetAntiFlag(), ITEM_ANTIFLAG_GIVE | ITEM_ANTIFLAG_PKDROP)) continue; SyncQuickslot(QUICKSLOT_TYPE_ITEM, vec_bSlots[i], 255); vec_item.push_back(std::make_pair(pkItem->RemoveFromCharacter(), INVENTORY)); } } else if (iAlignIndex == 8) isDropAllEquipments = true; }
  8. Up this is all function : if (bDropInventory) // Drop Inventory { std::vector<BYTE> vec_bSlots; for (i = 0; i < INVENTORY_MAX_NUM; ++i) if (GetInventoryItem(i)) vec_bSlots.push_back(i); if (!vec_bSlots.empty()) { random_shuffle(vec_bSlots.begin(), vec_bSlots.end()); int iQty = MIN(vec_bSlots.size(), r.iInventoryQty); if (iQty) iQty = number(1, iQty); for (i = 0; i < iQty; ++i) { pkItem = GetInventoryItem(vec_bSlots[i]); //cruel if(GetMapIndex()==1) if (pkItem) { switch(pkItem->GetVnum()) { case 19: //id la item case 11209: //id la item case 3: //id la item case 4: //id la item case 5: //id la item SyncQuickslot(QUICKSLOT_TYPE_ITEM, vec_bSlots[i], 255); //arunca din inventar vec_item.push_back(std::make_pair(pkItem->RemoveFromCharacter(), INVENTORY)); //arunca din inventar default: continue; } } //endcruel if (IS_SET(pkItem->GetAntiFlag(), ITEM_ANTIFLAG_GIVE | ITEM_ANTIFLAG_PKDROP)) continue; SyncQuickslot(QUICKSLOT_TYPE_ITEM, vec_bSlots[i], 255); vec_item.push_back(std::make_pair(pkItem->RemoveFromCharacter(), INVENTORY)); } } else if (iAlignIndex == 8) isDropAllEquipments = true; }
  9. Hi , I want to do so that if somebody kill you in map with index <<x>> and you have on you or in your inventory the items "a,b,c,d" those items will fall from your invetory. In chart_battle after: void CHARACTER::ItemDropPenalty(LPCHARACTER pkKiller) ai put this: if(GetMapIndex()==1) if (pkItem) { switch(pkItem->GetVnum()) { case 19: //id la item case 11209: //id la item case 3: //id la item case 4: //id la item case 5: //id la item SyncQuickslot(QUICKSLOT_TYPE_ITEM, vec_bSlots[i], 255); //arunca din inventar vec_item.push_back(std::make_pair(pkItem->RemoveFromCharacter(), INVENTORY)); //arunca din inventar default: continue; } } and it dosent work....somebody help me?
  10. Hellow.I use a 40k sf with my own game & db . When i installed it all was good but after a reboot or ch1_core1 or ch99 had crash... somebody said that it's from db (i compile mainline_released) In db syseror i have these errors SYSERR: Apr 13 23:56:55 :: pid_init: Start of pid: 1072 SYSERR: Apr 13 23:56:55 :: Start: TABLE_POSTFIX not configured use default SYSERR: Apr 13 23:56:58 :: socket_bind: bind: Address already in use SYSERR: Apr 13 23:56:58 :: pid_deinit: End of pid SYSERR: Apr 13 23:57:46 :: Process: FDWATCH: peer null in event: ident 23 Sorry for my english
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.