![](https://metin2.dev/uploads/theme-resources/set_resources_31/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
![](https://metin2.dev/uploads/theme-resources/set_resources_31/84c1e40ea0e759e3f1505eb1788ddf3c_default_photo.png)
amosth
-
Posts
163 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by amosth
-
-
3 hours ago, WeedHex said:
MapEditor -> Block-PvP on the zone that you want block.
Or if you can't use W.E. you can make new checks from battle files.
You make a bool IsInPvpMap(GetMapIndex()) and block in every damage function if is there.
Example in source code
bool battle_is_attackable(LPCHARACTER ch, LPCHARACTER victim) { if (victim->IsDead()) return false; switch(ch->GetMapIndex()) { case 4: case 113: case 351: case 352: { if (victim->IsPC()) return false; } } // ¾ÈÀüÁö´ë¸é Áß´Ü { SECTREE *sectree = NULL; sectree = ch->GetSectree(); if (sectree && sectree->IsAttr(ch->GetX(), ch->GetY(), ATTR_BANPK)) return false; sectree = victim->GetSectree(); if (sectree && sectree->IsAttr(victim->GetX(), victim->GetY(), ATTR_BANPK)) return false; } #ifdef NEW_ICEDAMAGE_SYSTEM if (!battle_is_icedamage(ch, victim)) return false; #endif // ³»°¡ Á×¾úÀ¸¸é Áß´ÜÇÑ´Ù. if (ch->IsStun() || ch->IsDead()) return false; if (ch->IsPC() && victim->IsPC()) { CGuild* g1 = ch->GetGuild(); CGuild* g2 = victim->GetGuild(); if (g1 && g2) { if (g1->UnderWar(g2->GetID())) return true; } } if (IS_CASTLE_MAP(ch->GetMapIndex()) && false==castle_can_attack(ch, victim)) return false; if (CArenaManager::instance().CanAttack(ch, victim) == true) return true; return CPVPManager::instance().CanAttack(ch, victim); }
Function bloq duel
switch(ch->GetMapIndex()) { case 4: case 113: case 351: case 352: { if (victim->IsPC()) return false; } }
is correct?
-
Hi gui
I would like to know how to block on the map?:
DUEL
PVP MODE
ALL MODE
EXAMPLE EVENT OX
-
Can anyone help me do this?
SCRIPT AUTOPOTION >> https://pastebin.com/L2XhxcJv
PRINT: https://metin2.download/picture/3bi4Bumh7saXNZV08WOscSk3kczK2ViR/.jpg
-
59 minutes ago, WLsj24 said:
The correct is:
pet.unsummon(mobVnum)if pet is 34001, then: pet.unsummon(34001)
i used locale vnum thanks.
-
Hello friends, how are you?
What am I doing wrong?
when 11111.chat."PET" begin pet.unsummon() end
-
On 6/19/2018 at 5:08 AM, Dobrescu Sebastian said:
Query remake.
I decided to change the offline shop thank you very much.
#closed
-
1 hour ago, WeedHex said:
It was a question...
If you think that we're magic, you're wrong.
Question Mark?
Well the mistake happens when I take the item out of the store
(Close store, buy item or remove)
-
5 hours ago, WeedHex said:
It happens when you open the shop for the first time or when you add items while shop's already open.
And how can I solve this?
-
Hi guys.
could you help me with this error?
BUG GIF: https://metin2.download/picture/nXW9RxDNXUjV1S1hzaBRTPbHG6UGXIEy/.gif
This error happens when I close the shop offline
-
Hi guys
Help me please..
I'm installing this new price system: http://
Movie:
error initiating my client:
line 614:
localeinfo.py complete:
-
2
-
-
Hi guys
help me please
Is my error syserr:
locale_find: LOCALE_ERROR: "%dÃÊ ³²¾Ò½À´Ï´Ù.";
-
Hi guys
help me please ^^
Is my error:
-
Solved:
Add locale/locale_interface.txt
-
6 hours ago, Owsap said:
Add TASKBAR_OFFLINE_SHOP in your locale/locale_game.txt
not work =/
-
22 hours ago, WeedHex said:
Packet.h is included so i think that the problem is on packet.h.
Share also it please.
Thank you very much.
Now it shows this error in syserr:
0606 23:41:18845 :: cannot find " in shaman_w.msm:1612 0606 23:41:20692 :: invalid idx 0 0606 23:41:03044 :: Failed to load script file : locale/it/ui/InventoryWindow.py 0606 23:41:03048 :: ui.py(line:2763) LoadScriptFile system.py(line:192) execfile system.py(line:163) Run locale/it/ui/InventoryWindow.py(line:131) <module> LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.AttributeError'>:'module' object has no attribute 'TASKBAR_OFFLINE_SHOP' 0606 23:41:03048 :: ============================================================================================================ 0606 23:41:03048 :: Abort!!!! 0606 23:41:03051 :: uiInventory.py(line:295) __LoadWindow ui.py(line:2780) LoadScriptFile exception.py(line:36) Abort InventoryWindow.LoadWindow.LoadObject - <type 'exceptions.SystemExit'>: 0606 23:41:03051 :: ============================================================================================================ 0606 23:41:03051 :: Abort!!!!
My inventorywindow.py
-
-
Push help me please =/
-
Done:
Change: .msm in root
-
Hi,
When I try to equip the armor (costume) it becomes invisible.
Helpe me please ^^
-
3 hours ago, Mareq said:
You need add time in database
=/
-
push
I have no sysser bug error =/
There is no connection to the database. -
Hi..
Rename uiGifit > to > uigifit
-
1
-
-
Hi Guys,
Help me please?
-
#solved
it was my lack of attention
Bloq ataq, duel, pvp in map
in Community Support - Questions & Answers
Posted · Edited by Metin2 Dev
Core X - External 2 Internal
Not work =/
https://metin2.download/picture/Zf9e0as62rpd9g04pRFR7QU9X0RtrqHt/.gif