-
Posts
98 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by DarkFire
-
[Problem Copile Source]
DarkFire replied to Ziron's topic in Community Support - Questions & Answers
You need to put Extern folder in your sources folder.You can take it from another file like novaline... -
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.....
-
The topic of fcsk_aim.
DarkFire replied to Reboot's topic in Community Support - Questions & Answers
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? -
Drop items from inventory
DarkFire replied to DarkFire's topic in Community Support - Questions & Answers
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... -
Drop items from inventory
DarkFire replied to DarkFire's topic in Community Support - Questions & Answers
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) -
Drop items from inventory
DarkFire replied to DarkFire's topic in Community Support - Questions & Answers
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.... -
Drop items from inventory
DarkFire replied to DarkFire's topic in Community Support - Questions & Answers
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; } -
Drop items from inventory
DarkFire replied to DarkFire's topic in Community Support - Questions & Answers
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; } -
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?
-
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
-
Very nice , I will use it