hachiwari
Active Member-
Posts
299 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by hachiwari
-
Check with for i in range(0,90*2): attachedSlotType = player.INVENTORY attachedInvenType = player.SlotTypeToInvenType(attachedSlotType) itemVnum = player.GetItemIndex(attachedInvenType, i) if itemVnum == SWITCH_RARE_VNUM: chat.AppendChat(chat.CHAT_TYPE_INFO, "Odłamek znaleziony") net.SendExchangeItemAddPacket(attachedInvenType, i, exslot) exslot += 1
-
Hello, I have a question, is event optimal with e.g. 6 hours? I think about: event_create(refresh_time_event, info, 6 * 60 * 60 * passes_per_sec); // 6 hours Hm? or someone have any solution for timer with long time? (but not proces loop with thecore_heart->pulse because i think that the worst solution :c )
-
Nice idea!
-
Sorry, but my level of english doesnt allow me to write all suggestions :X I write only simple opinion. I didnt released, hmm.. because I think same about my code // edit I think that it will be better if my code is on gitlab as private repository xd And i published some topics, but not here, only worse forum .I hope you will undestand me.
-
This is not event spahetii code, its shit code XD
-
Awesome, man.
-
Block Mob Safezone / Move Bosses
hachiwari replied to Speachless's topic in Hack Protection & Security
Twisted sister ;3 -
Log System Info of Players Anonymously
hachiwari replied to Distraught's topic in Features & Metin2 Systems
wtf? int i = 0; check >> i; if (i > 0) return false; -
I didnt read all code, but your names of function or variable is strange xD tip. read a book cleancode
-
How to block deal damage
hachiwari replied to avertuss's topic in Community Support - Questions & Answers
LPITEM pItem = pkAttacker->GetWear(WEAR_WEAPON); if (pItem && pItem->GetVnum() == 15 && pItem->IsEquipped() && pkVictim->IsNPC()) return 0; -
In questlua_item.cpp
-
pc.remove_item(vnum, count)
-
dont be negative about our comments, its not hate :/
-
Lel, overflow in packet, in this system you only need list of vnum and count. For what you create page and slot, in client you can position it.
-
std::string NumberToMoneyString(long long n) { std::string s; int cnt = 0; do { s.insert(0, 1, char('0' + n % 10)); n /= 10; if (++cnt == 3 && n) { s.insert(0, 1, '.'); cnt = 0; } } while (n); return s; } whose better?
-
Metin2 Bob FIXED forever.
hachiwari replied to megatixos's topic in Community Support - Questions & Answers
I will be the first customer! -
Excetpions not caught.. and without source is useless.
-
official v17.5 Element Image on Target
hachiwari replied to metin2-factory's topic in Features & Metin2 Systems
Hmm dict type can you show more? ;3 -
#sexicode
-
official v17.5 Element Image on Target
hachiwari replied to metin2-factory's topic in Features & Metin2 Systems
function GetMonsterRaceFlag is in source anyway this topic, your, my version work, but topic version have a extend packet (bad! for me), and your is good, but way is wrong (so wrong) its my opinion! this addition is simple and you extended packet so every target packet is bigger.. this is not optimal. -
official v17.5 Element Image on Target
hachiwari replied to metin2-factory's topic in Features & Metin2 Systems
lol bad code, raceFlag = nonplayer.GetMonsterRaceFlag(chr.GetVirtualNumber(self.vid)) and for example: if (raceFlag & (1 << nonplayer.RACE_FLAG_ATT_ELEC)): flag = true not better? -,- -
official v17.5 Element Image on Target
hachiwari replied to metin2-factory's topic in Features & Metin2 Systems
Nope Nope