• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Exhaust w c++

MeNi

*^#%$%
Joined
Jul 23, 2008
Messages
183
Reaction score
12
Jak:

1) dodać exhaust (na gracza, nie globalny)ale taki, żeby sie nie gryzł z innymi exhaustami w silniku, tylko jako osobny zupełnie exhaust.

2) jaka go sprawdzić, czyli coś jak:
Code:
if player->isSpecExhausted()
  return;
 
cc801609b7b14e5b6102acaf7b13e78a.jpg
 
PHP:
player->addExhaust(ticks, EXHAUST_COMBAT);
 
PHP:
player->addExhaust(ticks, EXHAUST_COMBAT);

Ten exhaust bedzie sie gryzl z innymi exhaustami, zastanaiwalem sie, zeby dodac jakis osobny zamiast EXHAUST_COMBAT, np SPECEXHAUST_COMBAT, ale srednio to powien szczerze dzialalo
 
Code:
if(player->hasCondition(CONDITION_EXHAUST, [B]TUTAJ DAJ ID[/B]))
	{
		player->sendTextMessage(MSG_STATUS_SMALL, "[B]Tutaj daj treść wiadomości[/B].");
		return false;
	}
		if(Condition* [B]podajnazwezmiennej [/B]= Condition::createCondition(CONDITIONID_DEFAULT, CONDITION_EXHAUST, [B]tutaj czas w milisekundach[/B], 0, false, [B]tutaj podaj id te co na górze[/B]))
		{
	player->addCondition([B]podajnazwezmiennej[/B]);
	}
 
player.h
PHP:
enum Exhaust_t
{
	EXHAUST_COMBAT = 1,
	EXHAUST_HEALING = 2
};
Jak chcesz SPECEXHAUST_COMBAT to możesz sobie tutaj dodać.
 
Back
Top