*Problemă/Întrebare:am adaugat bonusurile 6/7 iar cand pun peste alt item de exemplu perla rosie sau sa pun unul peste altul imi pica serverul..
Tipologie server:pvp-farm
*Resursă folosită:clean by DMG 2023
*ServerFiles utilizat:clean
*Syserr:number_ex: number(): first argument is bigger than second argument 0 -> -1, item_attribute.cpp 400
Poză:
*Detalii suplimentare:va las un video mai jos sa va dati seama despre ce este vorba..
Bonusuri 6/7 pica serverul!
- NoNNeX
-

- Mesaje: 287
- Membru din: 27 Mai 2022, 11:48
- Server: -
- Regat: Jinno
- Aprecieri: 161
- Mulţumiri: 150
- Rezolvări prob.: 4
- Discord: Copiază ID
Cel mai probabil trebuie adăugată o verificare dacă itemul este un item echipabil sa se poată pună iar dacă nu sa nu meargă pus verifica char_item.cpp
- [HF]White
-

- Mesaje: 2684
- Membru din: 03 Iul 2018, 13:40
- Regat: Jinno
- Aprecieri: 338
- Mulţumiri: 5331
- Rezolvări prob.: 13
- Discord: Copiază ID
- Contact:
Lasa-ne te rog si noua rezolvarea 
Rezolvarea
1) Adaugati aceste 2 linii, jos de tot in item_proto.txt (locatie: /usr/game/server/db_auth/db)
71052 Vrajeste Obiectul 6/7 ITEM_USE USE_SPECIAL 1 ANTI_STACK | ANTI_SELL | ANTI_DROP STACKABLE | LOG NONE NONE 1000000 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0
71051 Intarirea Obiectului 6/7 ITEM_USE USE_SPECIAL 1 ANTI_STACK | ANTI_SELL | ANTI_DROP STACKABLE | LOG NONE NONE 1000000 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0
Pasul 2
Adaugati aceste 2 linii, jos de tot in item_names.txt (locatie: /usr/game/server/db_auth/db)
71052 Vrajeste Obiectul 6/7
71051 Intarirea Obiectului 6/7
Pasul 3 va duceti in sursa :
/usr/src/nume_folder_care_contine_sursa/game/src
Cautati in char_item.cpp
Cele 2 case uri
71051 respectiv 71052
Si le inlocuiti cu acestea.
case 71051 : // 진재가
{
// 유럽, 싱가폴, 베트남 진재가 사용금지
// if (LC_IsEurope() || LC_IsSingapore() || LC_IsVietnam())
// return false;
LPITEM item2;
if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
return false;
if (item2->IsExchanging() == true)
return false;
if (item2->GetAttributeSetIndex() == -1)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
return false;
}
if (item2->AddRareAttribute() == true)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("성공적으로 속성이 추가 되었습니다"));
int iAddedIdx = item2->GetRareAttrCount() + 4;
char buf[21];
snprintf(buf, sizeof(buf), "%u", item2->GetID());
LogManager::instance().ItemLog(
GetPlayerID(),
item2->GetAttributeType(iAddedIdx),
item2->GetAttributeValue(iAddedIdx),
item->GetID(),
"ADD_RARE_ATTR",
buf,
GetDesc()->GetHostName(),
item->GetOriginalVnum());
item->SetCount(item->GetCount() - 1);
}
else
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("더 이상 이 아이템으로 속성을 추가할 수 없습니다"));
}
}
break;
case 71052 : // 진재경
{
// 유럽, 싱가폴, 베트남 진재가 사용금지
// if (LC_IsEurope() || LC_IsSingapore() || LC_IsVietnam())
// return false;
LPITEM item2;
if (!IsValidItemPosition(DestCell) || !(item2 = GetItem(DestCell)))
return false;
if (item2->IsExchanging() == true)
return false;
if (item2->GetAttributeSetIndex() == -1)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
return false;
}
if (item2->ChangeRareAttribute() == true)
{
char buf[21];
snprintf(buf, sizeof(buf), "%u", item2->GetID());
LogManager::instance().ItemLog(this, item, "CHANGE_RARE_ATTR", buf);
item->SetCount(item->GetCount() - 1);
}
else
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("변경 시킬 속성이 없습니다"));
}
}
break;
Cam asta e tot.
1) Adaugati aceste 2 linii, jos de tot in item_proto.txt (locatie: /usr/game/server/db_auth/db)
71052 Vrajeste Obiectul 6/7 ITEM_USE USE_SPECIAL 1 ANTI_STACK | ANTI_SELL | ANTI_DROP STACKABLE | LOG NONE NONE 1000000 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0
71051 Intarirea Obiectului 6/7 ITEM_USE USE_SPECIAL 1 ANTI_STACK | ANTI_SELL | ANTI_DROP STACKABLE | LOG NONE NONE 1000000 0 0 0 0 LIMIT_NONE 0 LIMIT_NONE 0 APPLY_NONE 0 APPLY_NONE 0 APPLY_NONE 0 0 0 0 0 0 0 0 0 0
Pasul 2
Adaugati aceste 2 linii, jos de tot in item_names.txt (locatie: /usr/game/server/db_auth/db)
71052 Vrajeste Obiectul 6/7
71051 Intarirea Obiectului 6/7
Pasul 3 va duceti in sursa :
/usr/src/nume_folder_care_contine_sursa/game/src
Cautati in char_item.cpp
Cele 2 case uri
71051 respectiv 71052
Si le inlocuiti cu acestea.
case 71051 : // 진재가
{
// 유럽, 싱가폴, 베트남 진재가 사용금지
// if (LC_IsEurope() || LC_IsSingapore() || LC_IsVietnam())
// return false;
LPITEM item2;
if (!IsValidItemPosition(DestCell) || !(item2 = GetInventoryItem(wDestCell)))
return false;
if (item2->IsExchanging() == true)
return false;
if (item2->GetAttributeSetIndex() == -1)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
return false;
}
if (item2->AddRareAttribute() == true)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("성공적으로 속성이 추가 되었습니다"));
int iAddedIdx = item2->GetRareAttrCount() + 4;
char buf[21];
snprintf(buf, sizeof(buf), "%u", item2->GetID());
LogManager::instance().ItemLog(
GetPlayerID(),
item2->GetAttributeType(iAddedIdx),
item2->GetAttributeValue(iAddedIdx),
item->GetID(),
"ADD_RARE_ATTR",
buf,
GetDesc()->GetHostName(),
item->GetOriginalVnum());
item->SetCount(item->GetCount() - 1);
}
else
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("더 이상 이 아이템으로 속성을 추가할 수 없습니다"));
}
}
break;
case 71052 : // 진재경
{
// 유럽, 싱가폴, 베트남 진재가 사용금지
// if (LC_IsEurope() || LC_IsSingapore() || LC_IsVietnam())
// return false;
LPITEM item2;
if (!IsValidItemPosition(DestCell) || !(item2 = GetItem(DestCell)))
return false;
if (item2->IsExchanging() == true)
return false;
if (item2->GetAttributeSetIndex() == -1)
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("속성을 변경할 수 없는 아이템입니다."));
return false;
}
if (item2->ChangeRareAttribute() == true)
{
char buf[21];
snprintf(buf, sizeof(buf), "%u", item2->GetID());
LogManager::instance().ItemLog(this, item, "CHANGE_RARE_ATTR", buf);
item->SetCount(item->GetCount() - 1);
}
else
{
ChatPacket(CHAT_TYPE_INFO, LC_TEXT("변경 시킬 속성이 없습니다"));
}
}
break;
Cam asta e tot.
-
- Informaţie
-
Cine este conectat
Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 75 vizitatori


