Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 06/06/16 in all areas

  1. M2 Download Center Download Here ( Internal ) Hi metin2dev i want to share skill party flag This flag will give buff to all members from your party. Sorry for my english Open skill.h Search: SKILL_FLAG_FIRE = (1 << 26), After this add: SKILL_FLAG_PARTY = (1 << 27), Now open char_skill.cpp Search: SKILL_RESIST_PENETRATE And after add: struct FPartyPIDCollector { std::vector <DWORD> vecPIDs; FPartyPIDCollector() { } void operator () (LPCHARACTER ch) { vecPIDs.push_back(ch->GetPlayerID()); } }; Like in picturehttps://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif Now search: if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY)) pkVictim = this; And after Add: if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && !GetParty()) pkVictim = this; And again: if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY)) pkVictim = this; After if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && !GetParty()) pkVictim = this; Now search: if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY)) ComputeSkill(dwVnum, this); And after: else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && !GetParty()) ComputeSkill(dwVnum, this); else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && GetParty()) { FPartyPIDCollector f; GetParty()->ForEachOnMapMember(f, GetMapIndex()); for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++) { LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it); ComputeSkill(dwVnum, ch); } } Open guild.cpp and search: if ((pkSk->dwFlag & SKILL_FLAG_SELFONLY)) { // 이미 걸려 있으므로 사용하지 않음. if (ch->FindAffect(pkSk->dwVnum)) return; victim = ch; } After add: if ((pkSk->dwFlag & SKILL_FLAG_PARTY)) { if (ch->FindAffect(pkSk->dwVnum)) return; victim = ch; } Open navicat->player->skill_proto->design table and at setFlag change the values with: 'ATTACK','USE_MELEE_DAMAGE','COMPUTE_ATTGRADE','SELFONLY','USE_MAGIC_DAMAGE','USE_HP_AS_COST','COMPUTE_MAGIC_DAMAGE','SPLASH','GIVE_PENALTY','USE_ARROW_DAMAGE','PENETRATE','IGNORE_TARGET_RATING','ATTACK_SLOW','ATTACK_STUN','HP_ABSORB','SP_ABSORB','ATTACK_FIRE_CONT','REMOVE_BAD_AFFECT','REMOVE_GOOD_AFFECT','CRUSH','ATTACK_POISON','TOGGLE','DISABLE_BY_POINT_UP','CRUSH_LONG','WIND','ELEC','FIRE','PARTY'
    1 point
  2. I'm uploaded unpacked packs, v16.2 patchs is inculded. [Hidden Content] Have a only missing some kr-tw patches
    1 point
  3. char_skill.cpp if (IS_SET(pkSk->dwFlag, SKILL_FLAG_SELFONLY)) ComputeSkill(dwVnum, this); else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && !GetParty())ComputeSkill(dwVnum, this); else if (IS_SET(pkSk->dwFlag, SKILL_FLAG_PARTY) && GetParty()) { FPartyPIDCollector f; GetParty()->ForEachOnMapMember(f, GetMapIndex()); for (std::vector <DWORD>::iterator it = f.vecPIDs.begin(); it != f.vecPIDs.end(); it++) { LPCHARACTER ch = CHARACTER_MANAGER::instance().FindByPID(*it); ComputeSkill(dwVnum, ch); } }
    1 point
  4. Hi, try to update gdb for last version pkg install gdb-7.9.1 and run it like /usr/local/bin/gdb791
    1 point
  5. I prefer to set a test whether the variable exists. If your query fails, the table is empty, or in the worst case, nil. So you can test it with an if statement like that : if query and query[1] then -- or if (query or {}) [1] then -- or chat('sth '.. ((query or {{0}})[1] or {0})[1}) the latest is pro code, you don't need to understand it, but if you do, Nice With those statements you prevent syserr messages Sent by Tapatalk @ Galaxy Note 10.1
    1 point
  6. In mysql result you have 2x table chat("something"..query[1][1].." ")
    1 point
  7. M2 Download Center Download Here ( Internal ) With this modifications to the original make.sh you can comment your locale_list. Prerequisites bash How to use? bash make.sh Source code #!/usr/local/bin/bash LIST_FILE='locale_list' BIN="./qc" if [ -r $LIST_FILE ]; then rm -rdf object mkdir object while read line; do firstChar="${line:0:1}" if [ "$firstChar" != "#" ] && [ -n "$firstChar" ]; then quest=${line%#*} $BIN $quest fi done < $LIST_FILE else echo $LIST_FILE' is missing' fi Example locale_list # First quest quest1.quest quest2.quest # Second quest quest3.quest quest4.quest Hope you like it.
    1 point
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.