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
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
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
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.