Jump to content

Recommended Posts

  • Premium

Hi there.

 

i wanna use one item to give me one type of bonus only in one map and ONLY when we use it. For exemple:

Sword+0 give +15 ATTBONUS_SURA  by only at map_index 1.  

 

if (item->GetVnum() == 10 && GetMapIndex() == 1 )
    {
        PointChange(POINT_ATTBONUS_SURA,  GetPoint(POINT_ATTBONUS_SURA) +15);
    }

   

 

 

 

but dont work. so, how can i make this? Any help please!

 

if pc.get_sex() == true and npc.get_sex() == false then
	npc.purge()
end

 

Link to comment
https://metin2.dev/topic/12193-bonus-by-sorce/
Share on other sites

#define ENG_WARNING_0 = "Error ! Trade window is open or you already equipped this item!"
#define ENG_WARNING_1 = "Fuck you already you have this bonus active!"
						case ENG_BONUS_VNUM_0:
						{
							LPITEM item2;
							if (item2->IsExchanging() || item2->IsEquipped() || true == item->IsEquipped())
								ChatPacket(CHAT_TYPE_INFO, ENG_WARNING_0); return false;
							if (FindAffect(VEGAS_NEW_AFFECT_VNUM_INDEX_0) {
								ChatPacket(CHAT_TYPE_INFO, ENG_WARNING_1); return false; }
							if (GetMapIndex() == ENG_BONUS_MAPINDEX_0) 
								AddAffect(VEGAS_NEW_AFFECT_VNUM_INDEX_0, POINT_MAX_HP, ENG_BONUS_VALUE_0, 0, ENG_BONUS_TIME_0, 0, true);	}
							break;
		VEGAS_NEW_AFFECT_VNUM_INDEX_0,
	if (FindAffect(VEGAS_NEW_AFFECT_VNUM_INDEX_0){
		RemoveAffect(VEGAS_NEW_AFFECT_VNUM_INDEX_0);
	}
enum EBonusNewTypeForVnum_1
{
	ENG_BONUS_VNUM_1 = 159,
	ENG_BONUS_TIME_1 = 45*60,
	ENG_BONUS_MAPINDEX_1 = 41, // MapName: metin2_map_c1
	ENG_BONUS_VALUE_1 = 25, // Value bonus for bonus Monster
};

http://paste.ubuntu.com/17413797/

  • Love 1
Link to comment
https://metin2.dev/topic/12193-bonus-by-sorce/#findComment-70690
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.