Jump to content
metin2dev

Kori

Developer
  • Content count

    72
  • Joined

  • Last visited

Kori last won the day on January 8 2016

Kori had the most liked content!

Community Reputation

25 Good

1 Follower

About Kori

  • Rank
    Friendly

Profile Information

  • Gender
    Male

Recent Profile Visitors

1,513 profile views
  1. [free] online Patch Generator

    Not now Sorry
  2. [free] online Patch Generator

    I search a Developer for New Code but The Section is MAD
  3. [free] online Patch Generator

    Hello guys i habe changed the Domain http://m2patcher.m2tec.net Errors or Bugs please in this Thread thanks
  4. [Py] Request auto-cancel by overtime

    Nice Thanks for release, but for users without src Python modules changed like this: confirmDialog.SetAcceptEvent(lambda answer=True, pid=pid: m2net.SendQuestConfirmPacket(answer, pid) or self.confirmDialog.Hide()) confirmDialog.SetCancelEvent(lambda answer=False, pid=pid: m2net.SendQuestConfirmPacket(answer, pid) or self.confirmDialog.Hide()) change to this confirmDialog.SetAcceptEvent(lambda answer=True, pid=pid: net.SendQuestConfirmPacket(answer, pid) or self.confirmDialog.Hide()) confirmDialog.SetCancelEvent(lambda answer=False, pid=pid: net.SendQuestConfirmPacket(answer, pid) or self.confirmDialog.Hide())
  5. Safe Launcher Argument System

    Why use if(False == foo)? Use if(!foo) But thanks for Release
  6. Ingame Wiki System

    I can post the fixx next days sorry i have missed some in this version
  7. [HowTo*]Anti-Elixir in duel

    i think thats is better: int blocked_items[] = {72723, 72724, 72725, 72726}; for(size_t i = 0; i < INVENTORY_MAX_NUM; i++) { for (size_t id = 0; id < 4; id++) { if(pkChr->GetInventoryItem(i)> 0 && pkChr->GetInventoryItem(i)->GetSocket(0) == 1 && pkChr->GetInventoryItem(i)->GetVnum() == blocked_items[id]) { pkChr->ChatPacket(CHAT_TYPE_INFO, "%s potions are banned in duel" , pkChr->GetName()); pkChr->GetInventoryItem(i)->SetSocket(0, false); pkChr->GetInventoryItem(i)->Lock(false); } else if(pkVictim->GetInventoryItem(i)> 0 && pkVictim->GetInventoryItem(i)->GetSocket(0) == 1 && pkVictim->GetInventoryItem(i)->GetVnum() == blocked_items[id]) { pkVictim->ChatPacket(CHAT_TYPE_INFO, "%s potions are banned in duel" , pkVictim->GetName()); pkVictim->GetInventoryItem(i)->SetSocket(0, false); pkVictim->GetInventoryItem(i)->Lock(false); } } } but dont tested looks like: void CPVPManager::Insert(LPCHARACTER pkChr, LPCHARACTER pkVictim) { if (pkChr->IsDead() || pkVictim->IsDead()) return; int blocked_items[] = {72723, 72724, 72725, 72726}; CPVP kPVP(pkChr->GetPlayerID(), pkVictim->GetPlayerID()); CPVP * pkPVP; if ((pkPVP = Find(kPVP.m_dwCRC))) { // º¹¼öÇÒ ¼ö ÀÖÀ¸¸é ¹Ù·Î ½Î¿ò! if (pkPVP->Agree(pkChr->GetPlayerID())) { pkVictim->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s´Ô°úÀÇ ´ë°á ½ÃÀÛ!"), pkChr->GetName()); pkChr->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s´Ô°úÀÇ ´ë°á ½ÃÀÛ!"), pkVictim->GetName()); for(size_t i = 0; i < INVENTORY_MAX_NUM; i++) { for (size_t id = 0; id < 4; id++) { if(pkChr->GetInventoryItem(i)> 0 && pkChr->GetInventoryItem(i)->GetSocket(0) == 1 && pkChr->GetInventoryItem(i)->GetVnum() == blocked_items[id]) { pkChr->ChatPacket(CHAT_TYPE_INFO, "%s potions are banned in duel" , pkChr->GetName()); pkChr->GetInventoryItem(i)->SetSocket(0, false); pkChr->GetInventoryItem(i)->Lock(false); } else if(pkVictim->GetInventoryItem(i)> 0 && pkVictim->GetInventoryItem(i)->GetSocket(0) == 1 && pkVictim->GetInventoryItem(i)->GetVnum() == blocked_items[id]) { pkVictim->ChatPacket(CHAT_TYPE_INFO, "%s potions are banned in duel" , pkVictim->GetName()); pkVictim->GetInventoryItem(i)->SetSocket(0, false); pkVictim->GetInventoryItem(i)->Lock(false); } } } } return; } pkPVP = M2_NEW CPVP(kPVP); pkPVP->SetVID(pkChr->GetPlayerID(), pkChr->GetVID()); pkPVP->SetVID(pkVictim->GetPlayerID(), pkVictim->GetVID()); m_map_pkPVP.insert(map<DWORD, CPVP *>::value_type(pkPVP->m_dwCRC, pkPVP)); m_map_pkPVPSetByID[pkChr->GetPlayerID()].insert(pkPVP); m_map_pkPVPSetByID[pkVictim->GetPlayerID()].insert(pkPVP); pkPVP->Packet(); char msg[CHAT_MAX_LEN + 1]; snprintf(msg, sizeof(msg), LC_TEXT("%s´ÔÀÌ ´ë°á½ÅûÀ» Çß½À´Ï´Ù. ½Â³«ÇÏ·Á¸é ´ë°áµ¿ÀǸ¦ Çϼ¼¿ä."), pkChr->GetName()); pkVictim->ChatPacket(CHAT_TYPE_INFO, msg); pkChr->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("%s¿¡°Ô ´ë°á½ÅûÀ» Çß½À´Ï´Ù."), pkVictim->GetName()); // NOTIFY_PVP_MESSAGE LPDESC pkVictimDesc = pkVictim->GetDesc(); if (pkVictimDesc) { TPacketGCWhisper pack; int len = MIN(CHAT_MAX_LEN, strlen(msg) + 1); pack.bHeader = HEADER_GC_WHISPER; pack.wSize = sizeof(TPacketGCWhisper) + len; pack.bType = WHISPER_TYPE_SYSTEM; strlcpy(pack.szNameFrom, pkChr->GetName(), sizeof(pack.szNameFrom)); TEMP_BUFFER buf; buf.write(&pack, sizeof(TPacketGCWhisper)); buf.write(msg, len); pkVictimDesc->Packet(buf.read_peek(), buf.size()); } // END_OF_NOTIFY_PVP_MESSAGE } NOTE make top of this file #include "char_battle.cpp" and all error fixxed
  8. [KAMI SHOWCASE]

    Nice effect and 1 nice guy
  9. Heare is a Shellscript #!/bin/sh # Copyright (c) 2016 KoriDev Inc. # All rights reserved echo -e "Crear the Server...." Channel=1 Cores=5 cd /home/devusr for i in `seq 1 $Channel` do for f in `seq 1 $Cores` do cd /home/devusr/channel${i}/core${f} && rm -R syslog syserr PTS stdout done done echo -e "Channels Clear" echo -e "Clear Database..." cd /var/db/mysql rm *.err echo -e "Cleaning Done" https://koridev.eu/code/kzczYDiH.html Change the path and run this script and u have the error fixxed
  10. block function in map

    In the Server src: char.cpp search: void CHARACTER::PartyInvite(LPCHARACTER pchInvitee) add under: else if (pchInvitee->IsBlockMode(BLOCK_PARTY_INVITE)) { ChatPacket(CHAT_TYPE_INFO, LC_TEXT("<ÆÄƼ> %s ´ÔÀÌ ÆÄƼ °ÅºÎ »óÅÂÀÔ´Ï´Ù."), pchInvitee->GetName()); return; } this: if (ch->GetMapIndex() == 333) return false; this is not testet !
  11. [FIX]New guild vulnerability

    Why Exploit u LC_TEXT and then so do a crap . I would have done so if (!newmember->IsPC()) { ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("bug_is_fixxed")); return SubPacketLen; } Then you go into the locale_string and adds that one . So for the LC_TEXT is also thought and not for something mfg Kori
  12. SystemOption (Shadow Adjustment)

    LOl ? old really....
  13. add me in skype yukaikori
×