Ayyıldız2 | 2008 TR Yapısı • 1-99 Orta Emek Destan • Oto Avsız • 10 Temmuz 21:00 HEMEN TIKLA!
rica ederimTeşekkürler
//** replace the whole function with this **//Linkleri görebilmek için Turkmmo Forumuna ÜYE olmanız gerekmektedir.
What can we add to PythonNonPlayer? getnamestring i
std::tuple<const char*, _wint32> CPythonNonPlayer::GetMonsterDataByNamePart(const char* namePart)
{
char searchName[CHARACTER_NAME_MAX_LEN + 1];
memcpy(searchName, namePart, sizeof(searchName));
for (_wint32 j = 0; j < sizeof(searchName); j++)
searchName[j] = tolower(searchName[j]);
std::string tempSearchName = searchName;
TNonPlayerDataMap::iterator itor = m_NonPlayerDataMap.begin();
for (; itor != m_NonPlayerDataMap.end(); ++itor)
{
TMobTable * pMobTable = itor->second.mobTable.get();
if (itor->second.isFiltered)
continue;
char mobName[CHARACTER_NAME_MAX_LEN + 1];
memcpy(mobName, pMobTable->szLocaleName, sizeof(mobName));
for (_wint32 j = 0; j < sizeof(mobName); j++)
mobName[j] = tolower(mobName[j]);
std::string tempName = mobName;
const size_t tempSearchNameLenght = tempSearchName.length();
if (tempName.length() < tempSearchNameLenght)
continue;
if (!tempName.substr(0, tempSearchNameLenght).compare(tempSearchName))
return std::make_tuple(pMobTable->szLocaleName, pMobTable->dwVnum);
}
return std::make_tuple("", -1);
}
thanks//** replace the whole function with this **//
std::tuple<const char*, _wint32> CPythonNonPlayer::GetMonsterDataByNamePart(const char* namePart)
{
char searchName[CHARACTER_NAME_MAX_LEN + 1];
memcpy(searchName, namePart, sizeof(searchName));
for (_wint32 j = 0; j < sizeof(searchName); j++)
searchName[j] = tolower(searchName[j]);
std::string tempSearchName = searchName;
TNonPlayerDataMap::iterator itor = m_NonPlayerDataMap.begin();
for (; itor != m_NonPlayerDataMap.end(); ++itor)
{
TMobTable * pMobTable = itor->second.mobTable.get();
if (itor->second.isFiltered)
continue;
char mobName[CHARACTER_NAME_MAX_LEN + 1];
memcpy(mobName, pMobTable->szLocaleName, sizeof(mobName));
for (_wint32 j = 0; j < sizeof(mobName); j++)
mobName[j] = tolower(mobName[j]);
std::string tempName = mobName;
const size_t tempSearchNameLenght = tempSearchName.length();
if (tempName.length() < tempSearchNameLenght)
continue;
if (!tempName.substr(0, tempSearchNameLenght).compare(tempSearchName))
return std::make_tuple(pMobTable->szLocaleName, pMobTable->dwVnum);
}
return std::make_tuple("", -1);
}
have any one the Function new_open ?
I have the problem when I scroll too fast I get a kick
I have the problem when I scroll too fast I get a kick
Son düzenleme:
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 1
- Görüntüleme
- 2K
- Cevaplar
- 21
- Görüntüleme
- 848
- Cevaplar
- 1
- Görüntüleme
- 214
- Kilitli
- Cevaplar
- 9
- Görüntüleme
- 3K
- Cevaplar
- 28
- Görüntüleme
- 1K