Jump to content

Recommended Posts

Use 5% of your brain for make this.

 

		case 71027:
			int szTimeVegas = ch->GetQuestFlag("mall.wait_time");

			if (szTimeVegas) 
			{
				if (get_global_time() < szTimeVegas + 10) {
					ChatPacket(CHAT_TYPE_INFO, "You can not do that so fast, wait 10 second!");
					return;
				}
			}

			if (!FindAffect(MALL_INDEX_1))
			{
				AddAffect(MALL_INDEX_1, POINT_MAX_HP_PCT, NEW_MALL_VALUE, 0, NEW_MALL_TIME, 0, true);
				ChatPacket(CHAT_TYPE_INFO, "Points of life were increased with 20% + for xx time.");
				item->SetCount(item->GetCount()-1);
			}
			else
			{
				ChatPacket(CHAT_TYPE_INFO, "This item has been used already!");
				return;
			}
				break;
	ch->SetQuestFlag("mall.wait_time", get_global_time());

 

	MALL_INDEX_1,
enum ETypeMallBonus
{
	NEW_MALL_VALUE = 20,
	NEW_MALL_TIME = 0*0*0,
};
#define IS_NO_CLEAR_ON_DEATH_AFFECT(type) ((type) == AFFECT_BLOCK_CHAT || (type) == MALL_INDEX_1 || ((type) >= 500 && (type) < 600))

 

Link to comment
https://metin2.dev/topic/12379-plush-use-10sec/#findComment-71416
Share on other sites

On 28.06.2016 at 3:58 PM, VegaS said:

Use 5% of your brain for make this.

 


		case 71027:
			int szTimeVegas = ch->GetQuestFlag("mall.wait_time");

			if (szTimeVegas) 
			{
				if (get_global_time() < szTimeVegas + 10) {
					ChatPacket(CHAT_TYPE_INFO, "You can not do that so fast, wait 10 second!");
					return;
				}
			}

			if (!FindAffect(MALL_INDEX_1))
			{
				AddAffect(MALL_INDEX_1, POINT_MAX_HP_PCT, NEW_MALL_VALUE, 0, NEW_MALL_TIME, 0, true);
				ChatPacket(CHAT_TYPE_INFO, "Points of life were increased with 20% + for xx time.");
				item->SetCount(item->GetCount()-1);
			}
			else
			{
				ChatPacket(CHAT_TYPE_INFO, "This item has been used already!");
				return;
			}
				break;

	ch->SetQuestFlag("mall.wait_time", get_global_time());

 


	MALL_INDEX_1,

enum ETypeMallBonus
{
	NEW_MALL_VALUE = 20,
	NEW_MALL_TIME = 0*0*0,
};

#define IS_NO_CLEAR_ON_DEATH_AFFECT(type) ((type) == AFFECT_BLOCK_CHAT || (type) == MALL_INDEX_1 || ((type) >= 500 && (type) < 600))

 

in which file it do?

On 27.06.2016 at 1:44 AM, Aerrow said:

Why do you want this?

cuz have bug with it plush.. can use 2x time it plushs..after teleport

Link to comment
https://metin2.dev/topic/12379-plush-use-10sec/#findComment-71543
Share on other sites

On 28.06.2016 at 3:13 PM, .Devil. said:

You can do a check on affects and verify if they are loaded with IsLoadedAffect. We're sorry but we don't known to code it, you can use your brain. Oh, and please, delete this comment. again. As you have done.

if you do not want to help, then do not get smart

Link to comment
https://metin2.dev/topic/12379-plush-use-10sec/#findComment-71545
Share on other sites

2 hours ago, bumxd said:

if you do not want to help, then do not get smart

I'm not doing the smart person, are you kidding me? I've told you a simple solution: check if affect is loaded with IsLoadedAffect. What is so hard to understand? I'm helping you.

Link to comment
https://metin2.dev/topic/12379-plush-use-10sec/#findComment-71568
Share on other sites

49 minutes ago, .Devil. said:

I'm not doing the smart person, are you kidding me? I've told you a simple solution: check if affect is loaded with IsLoadedAffect. What is so hard to understand? I'm helping you.

hm,then sorry..but where i can find it IsLoadedAffect? 

Link to comment
https://metin2.dev/topic/12379-plush-use-10sec/#findComment-71575
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.