- Mesaj
- 264
- Çözümler
- 9
- Beğeni
- 129
- Puan
- 514
- Ticaret Puanı
- 0
k envanterine uyarlaman gerekiyoröncelikle teşekkürler
sistemi ekledim sorunsuz
ama oyun içi başka bir sorunum ortaya çıktı
m1 skil beceri kitabıda var ama
kitap yok hatası veriyor
int CHARACTER::BKBul(long skillindex) const
{
int cell = 999;
LPITEM item = NULL;
#ifdef ENABLE_SPECIAL_STORAGE
for (int i = 0; i < SPECIAL_INVENTORY_MAX_NUM; ++i)
{
item = GetItem(TItemPos(BOOK_INVENTORY, i));
if (NULL != item && item->GetSocket(0) == skillindex && item->GetVnum() == 50300)
{
if (m_pkMyShop && m_pkMyShop->IsSellingItem(item->GetID()))
continue;
else
cell = item->GetCell();
}
}
#else
for (int i = 0; i < INVENTORY_MAX_NUM; ++i)
{
item = GetInventoryItem(i);
if (NULL != item && item->GetSocket(0) == skillindex && item->GetVnum() == 50300)
{
if (m_pkMyShop && m_pkMyShop->IsSellingItem(item->GetID()))
continue;
else
cell = item->GetCell();
}
}
#endif
return cell;
}
kodu ekledim dediğiniz gibik envanterine uyarlaman gerekiyor
örnek;
char_item.cpp:int CHARACTER::BKBul(long skillindex) const { int cell = 999; LPITEM item = NULL; #ifdef ENABLE_SPECIAL_STORAGE for (int i = 0; i < SPECIAL_INVENTORY_MAX_NUM; ++i) { item = GetItem(TItemPos(BOOK_INVENTORY, i)); if (NULL != item && item->GetSocket(0) == skillindex && item->GetVnum() == 50300) { if (m_pkMyShop && m_pkMyShop->IsSellingItem(item->GetID())) continue; else cell = item->GetCell(); } } #else for (int i = 0; i < INVENTORY_MAX_NUM; ++i) { item = GetInventoryItem(i); if (NULL != item && item->GetSocket(0) == skillindex && item->GetVnum() == 50300) { if (m_pkMyShop && m_pkMyShop->IsSellingItem(item->GetID())) continue; else cell = item->GetCell(); } } #endif return cell; }
kodu ekledim dediğiniz gibi
lakin şimdi uyarı da vermiyor okumuyorda
//bul;(bu sistemin içinde 2 tane var)
LPITEM item = ch->GetInventoryItem(dwVnum);
//değiştir;
#ifdef ENABLE_SPECIAL_STORAGE
LPITEM item = ch->GetItem(TItemPos(BOOK_INVENTORY, dwVnum));
#else
LPITEM item = ch->GetInventoryItem(dwVnum);
#endif
teşekkürler sorunsuz çalıştıcmd_general.cpp://bul;(bu sistemin içinde 2 tane var) LPITEM item = ch->GetInventoryItem(dwVnum); //değiştir; #ifdef ENABLE_SPECIAL_STORAGE LPITEM item = ch->GetItem(TItemPos(BOOK_INVENTORY, dwVnum)); #else LPITEM item = ch->GetInventoryItem(dwVnum); #endif
Ford Otosan biraz yorduğu için fazla ilgilenemedim. En kısa sürede paylaşacağım az kaldı.
kanka bk olanını paylaşmıştım.hocam paylaştınız mı bunu yorumlarda göremedim? yarım kaldı sanırım varsa link alabilir miyim
0107 01:42:19945 :: File "game.py", line 1939, in BINARY_ServerCommand_Run
0107 01:42:19945 :: File "stringCommander.py", line 69, in Run
0107 01:42:19946 :: File "stringCommander.py", line 35, in __call__
0107 01:42:19946 :: File "stringCommander.py", line 21, in __call__
0107 01:42:19946 :: TypeError
0107 01:42:19946 :: :
0107 01:42:19946 :: ruhcac() takes exactly 1 argument (2 given)
0107 01:42:19946 ::
0107 01:42:19946 :: Unknown Server Command ruhtasiekranac 135 | ruhtasiekranac
0108 03:08:18383 :: Traceback (most recent call last):
0108 03:08:18383 :: File "networkModule.py", line 245, in SetGamePhase
0108 03:08:18383 :: File "system.py", line 130, in __pack_import
0108 03:08:18383 :: File "
0108 03:08:18384 :: game.py
0108 03:08:18384 :: ", line
0108 03:08:18384 :: 111
0108 03:08:18384 ::
0108 03:08:18384 ::
0108 03:08:18384 :: self.ruhtasi = uiruhtasi.RuhTasi()
0108 03:08:18384 ::
0108 03:08:18384 ::
0108 03:08:18384 ::
0108 03:08:18385 ::
0108 03:08:18385 :: ^
0108 03:08:18385 :: IndentationError
0108 03:08:18385 :: :
0108 03:08:18385 :: expected an indented block
0108 03:08:18385 ::
0108 03:44:20138 :: ResourceManager::GetResourcePointer: NOT SUPPORT FILE d:\ymir work\ui\hizli_bk_ruh\ruh_image.png
0108 03:44:20138 :: ui:2796: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
0108 03:44:20139 ::
uiruhtasi.py(line:64) __Load_LoadScript
ui.py(line:2789) LoadScriptFile
ui.py(line:2979) LoadChildren
ui.py(line:2979) LoadChildren
ui.py(line:2796) LoadChildren
OptionDialog.__Load_LoadScript - <type 'exceptions.RuntimeError'>:Failed to load image (filename: d:/ymir work/ui/hizli_bk_ruh/ruh_image.png)
0108 03:44:20140 :: ============================================================================================================
0108 03:44:20140 :: Abort!!!!
0108 03:44:20140 :: filename=exception.py, name=Abort, line=33
0108 03:44:20140 :: filename=uiruhtasi.py, name=__Load_LoadScript, line=67
0108 03:44:20140 :: filename=uiruhtasi.py, name=__Load, line=101
0108 03:44:20140 :: filename=uiruhtasi.py, name=__init__, line=35
0108 03:44:20141 :: filename=game.py, name=__init__, line=112
0108 03:44:20141 :: filename=networkModule.py, name=SetGamePhase, line=247
0108 03:44:20141 :: filename=prototype.py, name=RunApp, line=57
0108 03:44:20141 :: filename=prototype.py, name=<module>, line=61
0108 03:44:20141 :: filename=system.py, name=Run, line=163
0108 03:44:20141 :: filename=system.py, name=execfile, line=192
0108 03:44:20141 :: filename=system.py, name=RunMainScript, line=273
0108 03:44:20141 :: filename=system.py, name=<module>, line=295
0108 03:44:20141 :: filename=<string>, name=<module>, line=297
Pack'e attığınız resim tam olarak eklenmemiş sanırım ya yanlış yolda ya da filesinizde .png desteği yok.Bir kaç değişiklik yaptım syserr şu halde login sonrası hemen atıyor oyun:
Kod:0108 03:44:20138 :: ResourceManager::GetResourcePointer: NOT SUPPORT FILE d:\ymir work\ui\hizli_bk_ruh\ruh_image.png 0108 03:44:20138 :: ui:2796: RuntimeWarning: tp_compare didn't return -1 or -2 for exception 0108 03:44:20139 :: uiruhtasi.py(line:64) __Load_LoadScript ui.py(line:2789) LoadScriptFile ui.py(line:2979) LoadChildren ui.py(line:2979) LoadChildren ui.py(line:2796) LoadChildren OptionDialog.__Load_LoadScript - <type 'exceptions.RuntimeError'>:Failed to load image (filename: d:/ymir work/ui/hizli_bk_ruh/ruh_image.png) 0108 03:44:20140 :: ============================================================================================================ 0108 03:44:20140 :: Abort!!!! 0108 03:44:20140 :: filename=exception.py, name=Abort, line=33 0108 03:44:20140 :: filename=uiruhtasi.py, name=__Load_LoadScript, line=67 0108 03:44:20140 :: filename=uiruhtasi.py, name=__Load, line=101 0108 03:44:20140 :: filename=uiruhtasi.py, name=__init__, line=35 0108 03:44:20141 :: filename=game.py, name=__init__, line=112 0108 03:44:20141 :: filename=networkModule.py, name=SetGamePhase, line=247 0108 03:44:20141 :: filename=prototype.py, name=RunApp, line=57 0108 03:44:20141 :: filename=prototype.py, name=<module>, line=61 0108 03:44:20141 :: filename=system.py, name=Run, line=163 0108 03:44:20141 :: filename=system.py, name=execfile, line=192 0108 03:44:20141 :: filename=system.py, name=RunMainScript, line=273 0108 03:44:20141 :: filename=system.py, name=<module>, line=295 0108 03:44:20141 :: filename=<string>, name=<module>, line=297
@TheAdmin33 @Whistle