Jump to content

Recommended Posts

Hello guys, 

I would need new quest trigger - pickup 

So i could do: 

when 19.pickup begin
    say("You've just picked up Sword+9'")
end

or:

when pickup with item.vnum == 19 begin
    say("You've just picked up Sword+9")
end

Can you help me with C++ part, please ? 

Link to comment
https://metin2.dev/topic/8280-need-pickup-quest-trigger/
Share on other sites

  • Premium
when 19.pick begin
    say("You've just picked up Sword+9'")
end

^Should work already if the type of the item is 18 / ITEM_QUEST.

If you want to change that open char_item.cpp and search for:

if (item->GetType() == ITEM_QUEST)
	quest::CQuestManager::instance().PickupItem (owner->GetPlayerID(), item);

Either you add another type to the if statement or simply remove it.

Edited by Avulsed
  • Love 3
Link to comment
https://metin2.dev/topic/8280-need-pickup-quest-trigger/#findComment-51146
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.