Jump to content

dragontechi

Advanced members
  • Content Count

    292
  • Joined

  • Last visited

  • Days Won

    7

dragontechi last won the day on February 9

dragontechi had the most liked content!

Community Reputation

68 Good

5 Followers

About dragontechi

  • Rank
    First Mate

Recent Profile Visitors

2,601 profile views
  1. Hello, it looks like your account is currently compromised, please check if you have any malware as you have commented with a spam link.

    I suggest doing a thorough scan of your computer and also updating your password credentials.  

  2. BOOL CLoginScene::_InitUI() { // Encontrar el formulario de la ruta del logo y ocultarlo si existe frmPathLogo = CFormMgr::s_Mgr.Find("frmPathLogo"); if (!frmPathLogo) return false; frmPathLogo->SetIsShow(false); // Encontrar el formulario de la cuenta y ocultarlo si existe, también asignar el manejador de eventos frmAccount = CFormMgr::s_Mgr.Find("frmAccount"); if (!frmAccount) return false; frmAccount->SetIsShow(false); frmAccount->evtEntrustMouseEvent = _evtLoginFrm; // Encontrar el checkbox de guardar cuenta y configurar su estado chkID = dynamic_cast<CCheckBox*>(frmAccount->Find("chkID")); m_bSaveAccount = false; if (chkID) { ifstream inCheck("user\\SavedAccounts\\checkid.dat"); if (inCheck.is_open()) { char szChkID[128] = { 0 }; while (inCheck.getline(szChkID, 128)) { m_bSaveAccount = (Str2Int(szChkID) == 1); chkID->SetIsChecked(m_bSaveAccount); } } else { m_bSaveAccount = false; chkID->SetIsChecked(m_bSaveAccount); } } // Encontrar los campos de ID y contraseña y salir si alguno de ellos no existe edtID = dynamic_cast<CEdit*>(frmAccount->Find("edtID")); edtPassword = dynamic_cast<CEdit*>(frmAccount->Find("edtPassword")); if (!edtID || !edtPassword) return false; // Inicializar la cadena de la cuenta guardada m_sSaveAccount = ""; // Leer la cuenta guardada desde el archivo ifstream in("user\\SavedAccounts\\accounts.dat"); if (in.is_open()) { string line; if (getline(in, line)) { // Extraer la cuenta guardada y configurar el campo de ID si existe istringstream iss(line); getline(iss, m_sSaveAccount, ':'); if (edtID) { edtID->SetCaption(m_sSaveAccount.c_str()); edtID->evtEnter = _evtEnter; edtID->SetIsWrap(true); } // Configurar el campo de contraseña si existe if (edtPassword) { size_t pos = line.find_first_of(":"); if (pos != string::npos) { string encryptedPassword = line.substr(pos + 1); string key = "myencryptionkey"; string decryptedPassword = EncryptionUtils::EncryptDecrypt(encryptedPassword, key); edtPassword->SetIsPassWord(false); edtPassword->SetIsWrap(true); edtPassword->evtEnter = _evtEnter; m_sPassword = decryptedPassword; edtPassword->SetCaption(m_sPassword.c_str()); } } } in.close(); } else { // Manejar caso en el que no se puede leer el archivo de cuenta ofstream outUsername("user\\SavedAccounts\\accounts.dat"); if (outUsername.is_open()) { outUsername << ""; outUsername.close(); } } // Encontrar el formulario del teclado virtual y ocultarlo si existe frmKeyboard = CFormMgr::s_Mgr.Find("frmKeyboard"); if (!frmKeyboard) return false; frmKeyboard->Hide(); // Encontrar el checkbox de cambio de mayúsculas del teclado virtual CCheckBox* chkShift = dynamic_cast<CCheckBox*>(frmKeyboard->Find("chkShift")); if (!chkShift) return false; // Configurar el manejador de eventos de clic del ratón en el teclado virtual frmKeyboard->evtEntrustMouseEvent = _evtKeyboardFromMouseEvent; // Configurar los manejadores de eventos de activación para los campos de ID y contraseña if (edtID) edtID->evtActive = _evtAccountFocus; if (edtPassword) edtPassword->evtActive = _evtAccountFocus; // Encontrar las imágenes de logotipo en el formulario de la cuenta imgLogo1 = dynamic_cast<CImage*>(frmAccount->Find("imgLogo1")); imgLogo2 = dynamic_cast<CImage*>(frmAccount->Find("imgLogo2")); return true; } Quiero agradecer a todos por su ayuda. Gracias a sus sugerencias y colaboración, pude resolver el problema simplificando y eliminando partes innecesarias del código. La optimización ha mejorado significativamente la legibilidad y eficiencia de la implementación. Estoy muy agradecido por su apoyo y orientación. ¡Muchas gracias de nuevo a todos! I want to thank everyone for their help. Thanks to your suggestions and collaboration, I was able to solve the problem by simplifying and removing unnecessary parts of the code. The optimization has significantly improved the readability and efficiency of the implementation. I am very grateful for your support and guidance. Thanks again to all!
  3. @IfYouSeeMeRun@deguixI tried but I still have the same result. The problem you have is directly when you try to search for the character ':' when it gives the error if I have the character ':' in the file the process continues
  4. hahaha I thought you were going to sing xd when I saw it from this angle
  5. ddddddddd BOOL CLoginScene::_InitUI() { frmPathLogo = CFormMgr::s_Mgr.Find("frmPathLogo"); if (!frmPathLogo) return false; frmPathLogo->SetIsShow(false); frmAccount = CFormMgr::s_Mgr.Find("frmAccount"); if (!frmAccount) return false; frmAccount->SetIsShow(false); frmAccount->evtEntrustMouseEvent = _evtLoginFrm; chkID = (CCheckBox *)frmAccount->Find("chkID"); m_bSaveAccount = false; if (!chkID) return false; char szChkID[128] = {0}; string strChkID; ifstream inCheck("user\\SavedAccounts\\checkid.dat"); if (inCheck.is_open()) { while (!inCheck.eof()) { inCheck.getline(szChkID, 128); strChkID = szChkID; int nCheck = Str2Int(strChkID); m_bSaveAccount = (nCheck == 1) ? true : false; chkID->SetIsChecked(m_bSaveAccount); } } else { // Si el archivo no existe, establecer el estado del checkbox en false m_bSaveAccount = false; chkID->SetIsChecked(m_bSaveAccount); } edtID = dynamic_cast<CEdit*>(frmAccount->Find("edtID")); if (!edtID) return false; m_sSaveAccount = ""; ifstream in("user\\SavedAccounts\\accounts.dat"); if (in.is_open()) { string line; getline(in, line); istringstream iss(line); getline(iss, m_sSaveAccount, ':'); edtID->SetCaption(m_sSaveAccount.c_str()); edtID->evtEnter = _evtEnter; edtID->SetIsWrap(true); in.close(); } else { // Manejar caso en el que no se puede leer el archivo de cuenta ofstream outUsername("user\\SavedAccounts\\accounts.dat"); if (outUsername.is_open()) { outUsername << ""; outUsername.close(); } } // Leer la cuenta y la contraseña encriptada desde el archivo ifstream inAccounts("user\\SavedAccounts\\accounts.dat"); if (inAccounts.is_open()) { string line; getline(inAccounts, line); // Dividir la línea en la cuenta y la contraseña encriptada size_t pos = line.find(":"); if (pos != string::npos) { string username = line.substr(0, pos); string encryptedPassword = line.substr(pos + 1); // Desencriptar la contraseña string key = "myencryptionkey"; // Cambia esta clave por tu clave de cifrado string decryptedPassword = EncryptionUtils::EncryptDecrypt(encryptedPassword, key); // Configurar la interfaz de usuario con la cuenta y la contraseña desencriptada edtID = dynamic_cast<CEdit*>(frmAccount->Find("edtID")); if (edtID) { edtID->SetCaption(username.c_str()); edtID->evtEnter = _evtEnter; edtID->SetIsWrap(true); } edtPassword = dynamic_cast<CEdit*>(frmAccount->Find("edtPassword")); if (edtPassword) { edtPassword->SetIsPassWord(false); edtPassword->SetIsWrap(true); edtPassword->evtEnter = _evtEnter; m_sPassword = decryptedPassword; edtPassword->SetCaption(m_sPassword.c_str()); } } inAccounts.close(); } //Agregar la interfaz del teclado virtual frmKeyboard = CFormMgr::s_Mgr.Find("frmKeyboard"); if (!frmKeyboard) return false; frmKeyboard->Hide(); chkShift = (CCheckBox*)frmKeyboard->Find("chkShift"); if (!chkShift) return false; //Configurar el manejo de eventos de clic del ratón en la interfaz del teclado virtual frmKeyboard->evtEntrustMouseEvent = _evtKeyboardFromMouseEvent; edtID->evtActive = _evtAccountFocus; edtPassword->evtActive = _evtAccountFocus; imgLogo1 = (CImage*)frmAccount->Find("imgLogo1"); if (!imgLogo1) return false; imgLogo2 = (CImage*)frmAccount->Find("imgLogo2"); if (!imgLogo2) return false; return TRUE; } tengo un problema al tratar de buscar size_t pos = line.find(":"); me da error Access Violation The thread attempted to read from or write to a virtual address for which it does not have the appropriate access c:\users\techi\desktop\client source vs 2003\client\client\src\loginscene.cpp(1063) : Game.exe at CLoginScene::_InitUI() // Leer la cuenta y la contraseña encriptada desde el archivo ifstream inAccounts("user\\SavedAccounts\\accounts.dat"); if (inAccounts.is_open()) { string line; getline(inAccounts, line); // Dividir la línea en la cuenta y la contraseña encriptada size_t pos = line.find(":"); if (pos != string::npos) { string username = line.substr(0, pos); string encryptedPassword = line.substr(pos + 1); // Desencriptar la contraseña string key = "myencryptionkey"; // Cambia esta clave por tu clave de cifrado string decryptedPassword = EncryptionUtils::EncryptDecrypt(encryptedPassword, key); // Configurar la interfaz de usuario con la cuenta y la contraseña desencriptada edtID = dynamic_cast<CEdit*>(frmAccount->Find("edtID")); if (edtID) { edtID->SetCaption(username.c_str()); edtID->evtEnter = _evtEnter; edtID->SetIsWrap(true); } edtPassword = dynamic_cast<CEdit*>(frmAccount->Find("edtPassword")); if (edtPassword) { edtPassword->SetIsPassWord(false); edtPassword->SetIsWrap(true); edtPassword->evtEnter = _evtEnter; m_sPassword = decryptedPassword; edtPassword->SetCaption(m_sPassword.c_str()); } } inAccounts.close(); } esto ocurre cuando accounts.dat esta en blanco
  6. hey @V3ct0r wouldn't you have a performance problem due to the limitation of the gamerserver being 32 bit by having all the players in a single map?
  7. ya lo pude corregir solo era reducir el el tamaño donde inica y termina el cuado de dialogo -- entrada de gm chat edtGMSay = UI_CreateCompent( frmGM, EDIT_TYPE, "edtGMSay", 318, 95, 40, 30 ) UI_SetTextColor( edtGMSay, COLOR_BLACK ) UI_SetEditMaxNum( edtGMSay, 500) --UI_SetEditMaxNumVisible( edtGMSay, 500) UI_SetEditCursorColor( edtGMSay, COLOR_BLACK ) segun tengo entedido UI_SetEditMaxNumVisible( edtGMSay, 50) es para limitar la capacidad de el text visible porque no funciono con esto no se si estoy seguro si estoy en 1 error
  8. buenas a todos me gustaria saber si sabe porque me prensenta este problema el cliente al escribir en el paner de gm limito lo limito a UI_SetEditMaxNumVisible( edtGMSay, 50) pero el cliente me sigue mostrando 62 ------------------------------------ -- Crear formulario de entrada de GM ------------------------------------- frmGM = UI_CreateForm( "frmGM", FALSE, 378, 95, 300, 545, TRUE, FALSE ) UI_FormSetHotKey( frmGM, ALT_KEY, HOTKEY_P ) UI_ShowForm( frmGM, FALSE ) UI_AddFormToTemplete( frmGM, FORM_MAIN ) UI_FormSetIsEscClose( frmGM, FALSE ) UI_SetIsDrag( frmGM, TRUE ) UI_SetFormStyleEx( frmGM, FORM_BOTTOM, 0, 45) imgMain3 = UI_CreateCompent( frmGM, IMAGE_TYPE, "imgMain3", 378, 95, 0, 0 ) UI_LoadImage( imgMain3, "texture/ui/corsairs/gm_panel.tga", NORMAL, 378, 95, 0, 0 ) --Titulo gm chat labTitle = UI_CreateCompent( frmGM, LABELEX_TYPE, "labTitle", 378, 95, 10, 3 ) UI_SetCaption( labTitle, "GM Panel") UI_SetTextColor( labTitle, 4289000470 ) UI_SetLabelExFont( labTitle, DEFAULT_FONT, TRUE, COLOR_BLACK ) -- entrada de gm chat edtGMSay = UI_CreateCompent( frmGM, EDIT_TYPE, "edtGMSay", 378, 95, 40, 30 ) UI_SetTextColor( edtGMSay, COLOR_BLACK ) UI_SetEditMaxNum( edtGMSay, 500) UI_SetEditMaxNumVisible( edtGMSay, 50) UI_SetEditCursorColor( edtGMSay, COLOR_BLACK ) --cerrar gm chat btnClose = UI_CreateCompent( frmGM, BUTTON_TYPE, "btnClose", 14, 14, 361, 3 ) UI_LoadButtonImage( btnClose, "texture/ui/PublicC.tga", 14, 14, 116, 175, TRUE ) UI_SetButtonModalResult( btnClose, BUTTON_CLOSE )
  9. Could someone upload this skin again?
  10. ayuda con este npc quiero hacer que la cloack llegue con su nivel de reginado y gemas a temp bag --[[ ----------------------------------------------------------------------------------------------- - Transferir ítem al Temp Bag mediante el slot escogido - Desarrollado por Techi para PKODev ----------------------------------------------------------------------------------------------- --]] -- Definir la tabla de ítems permitidos con sus nombres local allowed_items = { {id = 6912, name = "[Bracelet]", description = "Bracelet description"}, {id = 6913, name = "[Handguard]", description = "Handguard description"}, {id = 6914, name = "[Belt]", description = "Belt description"}, {id = 9205, name = "[Belt]", description = "Belt description"}, -- Agregar más ítems según sea necesario } -- Función para enviar ítems al bolso temporal -- Función para enviar ítems al bolso temporal function SendItemsToTempBag(ignore, role, freq, time) local targetSlot = 47 -- Número de slot objetivo for _, item_info in ipairs(allowed_items) do local item_id = item_info.id local item_name = item_info.name -- Obtener el ítem en el slot local item_in_slot = GetChaItem(role, 2, targetSlot) local slot_item_id = GetItemID(item_in_slot) if slot_item_id == item_id then -- Obtener el nivel del ítem actual local item_level = GetItemAttr(item_in_slot, 55) -- Enviar el ítem al bolso temporal con el mismo nivel GiveItemX(role, 0, item_id, 1, 4, item_level) -- Eliminar el ítem del inventario TakeItem(role, 2, item_id, 1) -- Mostrar mensaje de envío BickerNotice(role, item_name .. " enviado al Temp Bag (Nivel " .. item_level .. ")") return 1 end end end -- Agregar hook Hook:AddPostHook("cha_timer", SendItemsToTempBag) esta leyendo el nivel actual de la capa en el envio llega nivel 0
  11. "Si alguien descubre las direciones de guardado, agradecería compartir esa información. Actualmente, esta modificación solo ajusta la resolución, lo que significa que la visualización que se presenta no refleja la resolución real, sino simplemente una imagen ampliada." 00008dc0 Andress de mi cliente el tuyo puede ser diferente busca 74 0C BE 00 04 00 00 BF 00 03 00 00 EB 0A BE 20 03 00 00 BF 58 02 00 00 Ancho y alto en alta resolución: Ancho: 00 04 -> 04 00 -> 1024 Altura: 00 03 -> 03 00 -> 768 se utilizo el contenido de @V3ct0r del post este exe es una calculadora de hex invertida esta diseñada en shell por algun motivo que desconoco mi antivirus la reconoce como troyano esta contiene el exe https://mega.nz/file/hG8SAKJJ#gL8y8Yj-O8VYfifKR8N5Rdw6h8nPqSC3VgnQcn8kndo https://www.virustotal.com/gui/file/957f3fb84601e53261ef38b911d9faf19681b98e1a27fd637ef85ebec8ce1199?nocache=1 esta otra el shell lo puede ejecutar de igual manera es el mismo uso lo unico que el metodo de carga es diferente https://www.virustotal.com/gui/file/f4af87c393124d7e65bfc0fbb7d0a46e2aacf8f9e87ec9742199d9d6a8a7094b?nocache=1 https://mega.nz/file/5eVhASgQ#qcfmixj8CJ5pcKl3ORjUBbrlE9sjZfxeGwOA0gxQVJY
  12. mi red es lenta instable por la zona donde estoy escoji Estados Unidos (Centro) y a todo los test le va bien por debajo de 50 ami como tengo una mala conexio me ba mal pero nunca eh sentido lag que me devuelva o algo asi lo digo asi porque ahun teniendo yo mas ping que lo demas nunca me en sentido lagg ni cuando ando a 110 tampoco es que me mueva mucho solo lo uso para test
  13. eso se basa en base donde estoy y mi red te recomiendo que lo verifiques tu mismo y vea que te da en https://contabo.com/en/vps/vps-m-ssd/?image=custom-images.8787&qty=1&contract=1&storage-type=vps-m-400-gb-ssd
  14. Estados Unidos (Centro) Buena latencia73 ms $2.65 Estados Unidos (Este) Buena latencia136 ms $3.60 Estados Unidos (Oeste) Buena latencia75 ms $3.15
  15. si verifica la donde te presentas los servidores donde se alojara te recomiendo que le envies el enlaze de ahi a varios amigo de diferente regio y que te mande una foto de ahi verifica cual es el mas estable osea el que menos suba en todas la regiones el ping y ese es eso claro si esperas que se conecten desde diferente zona pero cualquiera es jugable al final
×
×
  • Create New...