Not answered Martysama 5.8 dnd

Member
Nov
Threads
1
5
0
1
Anybody know how to use dnd in quests?

On martysama's site i found this usage, but not works: when itemvnum.dnd begin etc..

in char_item.cpp -> bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell) I saw in the code, the item has to be have ITEM_FLAG_APPLICABLE, i've did add in item_proto ITEM_APPLICABLE, restarted the server and everything but still not works, any idea?

here is the code in UseItemEx:
#ifdef ENABLE_QUEST_DND_EVENT
if (IS_SET(item->GetFlag(), ITEM_FLAG_APPLICABLE))
{
LPITEM item2;

if (!GetItem(DestCell) || !(item2 = GetItem(DestCell)))
return false;

if (item2->IsExchanging() || item2->IsEquipped()) // @fixme114
return false;

quest::CQuestManager::instance().DND(GetPlayerID(), item, item2, false);
return true;
}
#endif
 
Last edited:
Metin2Hub Bot
M2Hub Bot
Feb
Threads
66
2,410
2
1,313
113
Anybody know how to use dnd in quests?

On martysama's site he i found this usage, but not works: when itemvnum.dnd begin etc..

in char_item.cpp -> bool CHARACTER::UseItemEx(LPITEM item, TItemPos DestCell) I saw in the code, the item has to be have ITEM_FLAG_APPLICABLE, i've did add in item_proto ITEM_APPLICABLE, restarted the server and everything but still not works, any idea?

here is the code in UseItemEx:
#ifdef ENABLE_QUEST_DND_EVENT
if (IS_SET(item->GetFlag(), ITEM_FLAG_APPLICABLE))
{
LPITEM item2;

if (!GetItem(DestCell) || !(item2 = GetItem(DestCell)))
return false;

if (item2->IsExchanging() || item2->IsEquipped()) // @fixme114
return false;

quest::CQuestManager::instance().DND(GetPlayerID(), item, item2, false);
return true;
}
#endif

Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features of our website. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock