-
Activity
-
0
Looking for Someone to create the queries etc for armors and weapons
Hello I am looking for someone who will create the queries from the ground up and item proto etc everything required to implement a few armor and weapon sets for my server such as these - https://imgur.com/a/sUwencb Paid service obviously Contact me on discord for more info - whait#7061 -
13
Official Private Shop Search
From where get this Cheque-System that are used in this system -
944
[40250] Reference Serverfile + Client + Src [15 Available Languages]
Hi tmp4, I was trying to increase the pull range by editing FuncAggregateMonster. But it seems that there is something other than the DISTANCE_APPROX check limiting the max range. struct FuncAggregateMonster { LPCHARACTER m_ch; FuncAggregateMonster(LPCHARACTER ch) { m_ch = ch; } void operator()(LPENTITY ent) { if (ent->IsType(ENTITY_CHARACTER)) { LPCHARACTER ch = (LPCHARACTER) ent; if (ch->IsPC()) return; if (!ch->IsMonster()) return; if (ch->GetVictim()) return; if (DISTANCE_APPROX(ch->GetX() - m_ch->GetX(), ch->GetY() - m_ch->GetY()) < 20000) if (ch->CanBeginFight()) { ch->AddAffect(AFFECT_MOV_SPEED, POINT_MOV_SPEED, 700, AFF_MOV_SPEED_POTION, 500, 0, true); ch->BeginFight(m_ch); } } } }; I added a movementspeed Affect and got very weird behaviour. The movementspeed bonus is applied to mobs way further than the "standard" pull range, yet no mobs outside of the standard pull range get aggressive towards my character. Do you know what's causing this? EDIT: Oh and I am posting this here, because the same code snipped works on other serverfiles. -
79
GUI Teleport System
Working With press button, but how can i add under indevtory button? -
0
inventory slot marking system cant compile
Hey guys! As i have mentioned in the title i have problems with compiling client src for inventory slot marking system. Server src is fine but in client src i get errorr that arg4 is not member of class exchange_packet... where can i add the member ? -
8
Inventory Bug
syserr is empty.. refreshbagslot I have it like this def SetInventoryPage(self, page): self.inventoryTab[self.inventoryPageIndex].SetUp() self.inventoryPageIndex = page self.inventoryTab[self.inventoryPageIndex].Down() self.RefreshBagSlotWindow() and def RefreshBagSlotWindow(self): getItemVNum=player.GetItemIndex getItemCount=player.GetItemCount setItemVNum=self.wndItem.SetItemSlot for i in xrange(self.wndItem.GetSlotCount()): self.wndItem.DeactivateSlot(i) for i in xrange(player.INVENTORY_PAGE_SIZE): slotNumber = self.__InventoryLocalSlotPosToGlobalSlotPos(i) itemCount = getItemCount(slotNumber) # itemCount == 0이면 소켓을 비운다. if 0 == itemCount: self.wndItem.ClearSlot(i) continue elif 1 == itemCount: itemCount = 0 itemVnum = getItemVNum(slotNumber) setItemVNum(i, itemVnum, itemCount) ## 자동물약 (HP: #72723 ~ #72726, SP: #72727 ~ #72730) 특수처리 - 아이템인데도 슬롯에 활성화/비활성화 표시를 위한 작업임 - [hyo] if constInfo.IS_AUTO_POTION(itemVnum): # metinSocket - [0] : 활성화 여부, [1] : 사용한 양, [2] : 최대 용량 metinSocket = [player.GetItemMetinSocket(slotNumber, j) for j in xrange(player.METIN_SOCKET_MAX_NUM)] if slotNumber >= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex: slotNumber -= player.INVENTORY_PAGE_SIZE*self.inventoryPageIndex isActivated = 0 != metinSocket[0] if isActivated: self.wndItem.ActivateSlot(slotNumber) potionType = 0; if constInfo.IS_AUTO_POTION_HP(itemVnum): potionType = player.AUTO_POTION_TYPE_HP elif constInfo.IS_AUTO_POTION_SP(itemVnum): potionType = player.AUTO_POTION_TYPE_SP usedAmount = int(metinSocket[1]) totalAmount = int(metinSocket[2]) player.SetAutoPotionInfo(potionType, isActivated, (totalAmount - usedAmount), totalAmount, self.__InventoryLocalSlotPosToGlobalSlotPos(i)) else: self.wndItem.DeactivateSlot(slotNumber) if app.WJ_ENABLE_TRADABLE_ICON: self.RefreshMarkSlots(i) self.__HighlightSlot_Refresh() self.wndItem.RefreshSlot() if self.wndBelt: self.wndBelt.RefreshSlot() if app.WJ_ENABLE_TRADABLE_ICON: map(lambda wnd:wnd.RefreshLockedSlot(), self.bindWnds) def RefreshEquipSlotWindow(self): getItemVNum=player.GetItemIndex getItemCount=player.GetItemCount setItemVNum=self.wndEquip.SetItemSlot for i in xrange(player.EQUIPMENT_PAGE_COUNT): slotNumber = player.EQUIPMENT_SLOT_START + i itemCount = getItemCount(slotNumber) if itemCount <= 1: itemCount = 0 setItemVNum(slotNumber, getItemVNum(slotNumber), itemCount) if app.ENABLE_NEW_EQUIPMENT_SYSTEM: for i in xrange(player.NEW_EQUIPMENT_SLOT_COUNT): slotNumber = player.NEW_EQUIPMENT_SLOT_START + i itemCount = getItemCount(slotNumber) if itemCount <= 1: itemCount = 0 setItemVNum(slotNumber, getItemVNum(slotNumber), itemCount) print "ENABLE_NEW_EQUIPMENT_SYSTEM", slotNumber, itemCount, getItemVNum(slotNumber) self.wndEquip.RefreshSlot() if self.wndCostume: self.wndCostume.RefreshCostumeSlot() def RefreshItemSlot(self): self.RefreshBagSlotWindow() self.RefreshEquipSlotWindow() -
63
Metin2 Dev - Changelogs
Duplicate posts (warns, topics, PM's...) are resolved 2FA re-enabled IP Board Upgrade IPS 4.7.0 Beta 10 (Dev Build)- 2
-
-
-
9
-
0
[BUG] Can't select my own character (Select Target)
Hello metin2dev, I've been facing a bug since quite some time and I can't get my head around it. The bug is mainly happening only for the main character, for every other instance you can select them properly, however for the main chararacter, neither the select circle effect won't appear when you point the click on the character neither right clicking on it will have an effect. Here's a gif with the problem: [Hidden Content] The weird part is that I don't have any error in syserr related to it or to anything, as a matter of fact.
-
-
Recently Browsing
- No registered users viewing this page.
Question
DomeSs 0
Hi, can some one help me fix this quest? if i complete quest i did not get reward and did not get quest +1
thx for help
quest lovecky begin state start begin when login begin pc.setqf("lovecky_ukol", 1) setstate(lovecky) end end state lovecky begin function lovecky_tabulka() local lovecky_tabulkaX = { [1] = {1, 15, 101, 50000, 114000, 1, 124000, 1, 134000, 1, 144000, 1, 154000, 1, 164000, 1}, [2] = {5, 20, 104, 100000, 114000, 1, 124000, 1, 134000, 1, 144000, 1, 154000, 1, 164000, 1}, [3] = {10, 25, 110, 150000, 114000, 2, 124000, 2, 134000, 2, 144000, 2, 154000, 2, 164000, 2}, [4] = {15, 30, 114, 200000, 114000, 2, 124000, 2, 134000, 2, 144000, 2, 154000, 2, 164000, 2}, [5] = {20, 35, 302, 250000, 114000, 3, 124000, 3, 134000, 3, 144000, 3, 154000, 3, 164000, 3}, [6] = {25, 40, 303, 300000, 114000, 3, 124000, 3, 134000, 3, 144000, 3, 154000, 3, 164000, 3}, [7] = {30, 45, 404, 350000, 114000, 4, 124000, 4, 134000, 4, 144000, 4, 154000, 4, 164000, 4}, [8] = {35, 50, 405, 400000, 114000, 4, 124000, 4, 134000, 4, 144000, 4, 154000, 4, 164000, 4}, [9] = {40, 55, 634, 450000, 114000, 5, 124000, 5, 134000, 5, 144000, 5, 154000, 5, 164000, 5}, [10] = {45, 60, 2301, 500000, 114000, 5, 124000, 5, 134000, 5, 144000, 5, 154000, 5, 164000, 5}, [11] = {50, 65, 2303, 600000, 114000, 6, 124000, 6, 134000, 6, 144000, 6, 154000, 6, 164000, 6}, [12] = {55, 70, 2064, 650000, 114000, 6, 124000, 6, 134000, 6, 144000, 6, 154000, 6, 164000, 6}, [13] = {60, 75, 2065, 700000, 114000, 7, 124000, 7, 134000, 7, 144000, 7, 154000, 7, 164000, 7}, [14] = {65, 80, 2314, 750000, 114000, 7, 124000, 7, 134000, 7, 144000, 7, 154000, 7, 164000, 7}, [15] = {70, 85, 2315, 800000, 114000, 8, 124000, 8, 134000, 8, 144000, 8, 154000, 8, 164000, 8}, [16] = {75, 90, 2401, 850000, 114000, 8, 124000, 8, 134000, 8, 144000, 8, 154000, 8, 164000, 8}, [17] = {80, 95, 2402, 900000, 114000, 9, 124000, 9, 134000, 9, 144000, 9, 154000, 9, 164000, 9}, [18] = {85, 100, 2403, 950000, 114000, 9, 124000, 9, 134000, 9, 144000, 9, 154000, 9, 164000, 9}, [19] = {90, 200, 4000, 1000000, 114000, 10, 124000, 10, 134000, 10, 144000, 10, 154000, 10, 164000, 10}, [20] = {95, 200, 4001, 1050000, 114000, 10, 124000, 10, 134000, 10, 144000, 10, 154000, 10, 164000, 10}, [21] = {100, 200, 4005, 1100000, 114000, 11, 124000, 11, 134000, 11, 144000, 11, 154000, 11, 164000, 11}, [22] = {105, 200, 4006, 1200000, 114000, 11, 124000, 11, 134000, 11, 144000, 11, 154000, 11, 164000, 11}, [23] = {110, 200, 4007, 1300000, 114000, 12, 124000, 12, 134000, 12, 144000, 12, 154000, 12, 164000, 12}, [24] = {115, 200, 4008, 1400000, 114000, 12, 124000, 12, 134000, 12, 144000, 12, 154000, 12, 164000, 12}, [25] = {120, 200, 4010, 1500000, 114000, 13, 124000, 13, 134000, 13, 144000, 13, 154000, 13, 164000, 13}, [26] = {125, 200, 4011, 1600000, 114000, 13, 124000, 13, 134000, 13, 144000, 13, 154000, 13, 164000, 13}, [27] = {130, 200, 4012, 1700000, 114000, 14, 124000, 14, 134000, 14, 144000, 14, 154000, 14, 164000, 14}, [28] = {135, 200, 4013, 1800000, 114000, 14, 124000, 14, 134000, 14, 144000, 14, 154000, 14, 164000, 14}, [29] = {140, 200, 4015, 1900000, 114000, 15, 124000, 15, 134000, 15, 144000, 15, 154000, 15, 164000, 15}, [30] = {145, 200, 4016, 2000000, 114000, 15, 124000, 15, 134000, 15, 144000, 15, 154000, 15, 164000, 15}, [31] = {150, 400, 4017, 2100000, 114000, 16, 124000, 16, 134000, 16, 144000, 16, 154000, 16, 164000, 16}, [32] = {155, 400, 4018, 2200000, 114000, 16, 124000, 16, 134000, 16, 144000, 16, 154000, 16, 164000, 16}, [33] = {160, 400, 4020, 2300000, 114000, 17, 124000, 17, 134000, 17, 144000, 17, 154000, 17, 164000, 17}, [34] = {165, 400, 4021, 2400000, 114000, 17, 124000, 17, 134000, 17, 144000, 17, 154000, 17, 164000, 17}, [35] = {170, 400, 4022, 2500000, 114000, 18, 124000, 18, 134000, 18, 144000, 18, 154000, 18, 164000, 18}, [36] = {175, 400, 4023, 2600000, 114000, 18, 124000, 18, 134000, 18, 144000, 18, 154000, 18, 164000, 18}, [37] = {180, 400, 4025, 2700000, 114000, 19, 124000, 19, 134000, 19, 144000, 19, 154000, 19, 164000, 19}, [38] = {185, 400, 4026, 2800000, 114000, 19, 124000, 19, 134000, 19, 144000, 19, 154000, 19, 164000, 19}, [39] = {190, 400, 4027, 2900000, 114000, 20, 124000, 20, 134000, 20, 144000, 20, 154000, 20, 164000, 20}, [40] = {195, 400, 4028, 3000000, 114000, 20, 124000, 20, 134000, 20, 144000, 20, 154000, 20, 164000, 20}, [41] = {200, 400, 4030, 3100000, 114000, 21, 124000, 21, 134000, 21, 144000, 21, 154000, 21, 164000, 21}, [42] = {205, 700, 4031, 3200000, 114000, 21, 124000, 21, 134000, 21, 144000, 21, 154000, 21, 164000, 21}, [43] = {210, 700, 4032, 3300000, 114000, 22, 124000, 22, 134000, 22, 144000, 22, 154000, 22, 164000, 22}, [44] = {215, 700, 4033, 3300000, 114000, 22, 124000, 22, 134000, 22, 144000, 22, 154000, 22, 164000, 22}, [45] = {220, 700, 4045, 3400000, 114000, 22, 124000, 22, 134000, 22, 144000, 22, 154000, 22, 164000, 22}, [46] = {225, 700, 4046, 3400000, 114000, 22, 124000, 22, 134000, 22, 144000, 22, 154000, 22, 164000, 22}, [47] = {230, 700, 4047, 3500000, 114000, 23, 124000, 23, 134000, 23, 144000, 23, 154000, 23, 164000, 23}, [48] = {235, 700, 4048, 3500000, 114000, 23, 124000, 23, 134000, 23, 144000, 23, 154000, 23, 164000, 23}, [49] = {240, 700, 4040, 3600000, 114000, 23, 124000, 23, 134000, 23, 144000, 23, 154000, 23, 164000, 23}, [50] = {245, 700, 4041, 3600000, 114000, 23, 124000, 23, 134000, 23, 144000, 23, 154000, 23, 164000, 23}, [51] = {250, 700, 4042, 3700000, 114000, 24, 124000, 24, 134000, 24, 144000, 24, 154000, 24, 164000, 24}, [52] = {255, 700, 4043, 3700000, 114000, 24, 124000, 24, 134000, 24, 144000, 24, 154000, 24, 164000, 24}, [53] = {260, 700, 4044, 3800000, 114000, 24, 124000, 24, 134000, 24, 144000, 24, 154000, 24, 164000, 24}, } return lovecky_tabulkaX end when kill begin local tabulka = lovecky.lovecky_tabulka() local lovecky_ukol = pc.getqf("lovecky_ukol") local lovecky_pocet = table.getn(tabulka) if lovecky_ukol <= lovecky_pocet then if pc.level >= tabulka[lovecky_ukol][1] then if npc.get_race() == tabulka[lovecky_ukol][3] then pc.setqf("lovecky_pocet", pc.getqf("lovecky_pocet")+1) q.set_counter(mob_name(tabulka[lovecky_ukol][3]), tabulka[lovecky_ukol][2]-pc.getqf("lovecky_pocet")) if pc.getqf("lovecky_pocet") >= tabulka[lovecky_ukol][2] then setstate(lovecky_odmena) end end end end end when letter begin send_letter("Lovecký úkol - Zadání ") end when button or info begin local tabulka = lovecky.lovecky_tabulka() local lovecky_ukol = pc.getqf("lovecky_ukol") local lovecky_pocet = table.getn(tabulka) if lovecky_ukol <= lovecky_pocet then q.set_counter(mob_name(tabulka[lovecky_ukol][3]), tabulka[lovecky_ukol][2]-pc.getqf("lovecky_pocet")) say_title("[DELAY value;0]Lovecký úkol "..tabulka[lovecky_ukol][1].." Lv.") say("") say("Lovecký úkol :") if pc.level >= tabulka[lovecky_ukol][1] then say("Úkol level: "..tabulka[lovecky_ukol][1]) else say("Úkol level: "..tabulka[lovecky_ukol][1]) end say("Co musíš zabít? "..mob_name(tabulka[lovecky_ukol][3])..".") say("Počet: "..tabulka[lovecky_ukol][2]) say("Zůstává: "..tabulka[lovecky_ukol][2] - pc.getqf("lovecky_pocet")) say("") say("") say(""..locale.logo.."") say("") else say("Již jsi dokončil veškeré lovecké úkoly. ") q.set_counter("Polowanie ukończone", 0) end end end state lovecky_odmena begin when letter begin send_letter("Lovecký úkol - Dokončeno ") end when button or info begin local tabulka = lovecky.lovecky_tabulka() local lovecky_ukol = pc.getqf("lovecky_ukol") local lovecky_pocet = table.getn(tabulka) say_title("Gratulujeme, dokončil jsi Lovecký úkol! ") say("") say("Lovecký úkol:") say("") say("Za ochotu, a způsobené škody získáváš: ") say("Yangů: "..(tabulka[lovecky_ukol][4])) say(item_name(tabulka[lovecky_ukol][5]).." "..tabulka[lovecky_ukol][6].." ks.") say(item_name(tabulka[lovecky_ukol][7]).." "..tabulka[lovecky_ukol][8].." ks.") say(item_name(tabulka[lovecky_ukol][9]).." "..tabulka[lovecky_ukol][10].." ks.") say(item_name(tabulka[lovecky_ukol][11]).." "..tabulka[lovecky_ukol][12].." ks.") say(item_name(tabulka[lovecky_ukol][13]).." "..tabulka[lovecky_ukol][14].." ks.") say(item_name(tabulka[lovecky_ukol][15]).." "..tabulka[lovecky_ukol][16].." ks.") say("") say(""..locale.logo.."") say("") pc.change_money(tabulka[lovecky_ukol][4]) if tabulka[lovecky_ukol][5] > 0 then pc.give_item2(tabulka[lovecky_ukol][5], tabulka[lovecky_ukol][6]) end if tabulka[lovecky_ukol][7] > 0 then pc.give_item2(tabulka[lovecky_ukol][7], tabulka[lovecky_ukol][8]) end if tabulka[lovecky_ukol][9] > 0 then pc.give_item2(tabulka[lovecky_ukol][9], tabulka[lovecky_ukol][10]) end if tabulka[lovecky_ukol][11] > 0 then pc.give_item2(tabulka[lovecky_ukol][11], tabulka[lovecky_ukol][12]) end if tabulka[lovecky_ukol][13] > 0 then pc.give_item2(tabulka[lovecky_ukol][13], tabulka[lovecky_ukol][14]) end if tabulka[lovecky_ukol][15] > 0 then pc.give_item2(tabulka[lovecky_ukol][15], tabulka[lovecky_ukol][16]) end say("") pc.setqf( "lovecky_ukol", pc.getqf("lovecky_ukol") + 1 ) pc.setqf("lovecky_pocet", 0) clear_letter() setstate(lovecky) end end end
Link to comment
Share on other sites
Top Posters For This Question
2
Popular Days
Nov 20
2
Top Posters For This Question
DomeSs 2 posts
Popular Days
Nov 20 2020
2 posts
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now