Genel Araştırma
'görünmesi' etiketi için arama sonuçları.
Araştırmada 3 sonuç bulundu
-
Merhaba npc lere bastığımda id leri örülmekte... aşağıdaki kodda kırmızı ile yazılan yerde görünmemesi için kodu kapatıyorum gameserver patlıyor.. yardımlarınızı rica ederim.. bool CLuaEngine::ExecuteScript(CUser * pUser, CNpc * pNpc, int32 nEventID, int8 bSelectedReward, const char * filename) { ScriptBytecodeMap::iterator itr; bool result = false; m_lock->AcquireReadLock(); itr = m_scriptMap.find(filename); if (itr == m_scriptMap.end()) { // Build full path to script std::string szPath = LUA_SCRIPT_DIRECTORY; szPath += filename; // Release the read lock (we're not reading anymore) m_lock->ReleaseReadLock(); // Attempt to compile BytecodeBuffer bytecode; bytecode.reserve(LUA_SCRIPT_BUFFER_SIZE); if (!SelectAvailableScript()->CompileScript(szPath.c_str(), bytecode)) { printf("ERROR: Could not compile Lua script. "); printf("FILE: %s ", szPath.c_str()); printf("USER: %s ", pUser->GetName().c_str()); printf("ZONE: %d ", pUser->GetZoneID()); printf("NPC ID: %d ", pNpc->m_sSid); printf("- "); return false; } // Acquire the write lock (we're adding the compiled script) m_lock->AcquireWriteLock(); // Add the script to our map m_scriptMap[filename] = bytecode; // Now that we have the bytecode, we can use it. result = SelectAvailableScript()->ExecuteScript(pUser, pNpc, nEventID, bSelectedReward, filename, bytecode); // Done using the lock. m_lock->ReleaseWriteLock(); } else { // Already have the bytecode, so now we need to use it. result = SelectAvailableScript()->ExecuteScript(pUser, pNpc, nEventID, bSelectedReward, filename, itr->second); // Done using the lock. m_lock->ReleaseReadLock(); } //std::string EventMessage; //EventMessage = string_format("NpcID = %d - EventID = %d - Lua = %s", pNpc->m_sSid, nEventID, filename); //Packet EventNotice(WIZ_CHAT, uint8(PUBLIC_CHAT)); //EventNotice GetNation() GetSocketID() //pUser->Send(&EventNotice); return result; }
-
Merhaba.Bu npc lerin üzerinde npcidlerinin yeşille yani 1299 version daki gibi yazmasını nasıl sağlarım acaba?
-
Premium İsimleri değiştirme Ve Noticeden o şekilde görünmesi h.k
Bir konuya
BORNTOKILLiçerik ekledi : Genel YardımHerkese Merhaba Arkadaşlar 1298 Noticedeki Premium yazısını değiştirmek istiyorum mesela Gold Premium yazarken onu War premium yada Exp premium yazmak istiyorum PREMIUM_SERVICE Kısmından strType değiştirerek sorunsuz şekilde oluyor ama ben gold premium npc kırınca gold premium değilde Exp yada War Premium yazsın istiyorum Evt dosyalarından (E LOG_COUPON_ITEM 2 5) sütununu değiştirdim ama bu seferde premium kırıyorum hediyelerini veriyor ama Premium yüklenmiyor.. https://i.hizliresim.com/qGQ895.jpg