Pagina 1 din 1

[C++]Fix bug biolog Vegas

Scris: Mie Feb 22, 2023 8:45 pm
de F. Gabriel
Caută în biolog.cpp:

Cod: Selectaţi tot

ch->SetBiologState("biolog_lv92.used_window", 1);
Adaugă sub:

Cod: Selectaţi tot

ch->SetBiologState("biolog_lv92.reward", 1);
Sub întreaga structură a funcției if, adaugă:

Cod: Selectaţi tot

	if (pSelectReward[0] != 0 && ch->GetBiologState(pTableStringGlobal[3][8]) == 1)
	{
		if (!strcmp(iReward, "92_reward_1") && pSelectReward[0] != 0){
			return ch->ChatPacket(CHAT_TYPE_INFO, "<Biolog> Misiune indisponibilă.");
		}
		if (!strcmp(iReward, "92_reward_2") && pSelectReward[0] != 0){
			return ch->ChatPacket(CHAT_TYPE_INFO, "<Biolog> Misiune indisponibilă.");
		}
		if (!strcmp(iReward, "92_reward_3") && pSelectReward[0] != 0){
			return ch->ChatPacket(CHAT_TYPE_INFO, "<Biolog> Misiune indisponibilă.");
		}
	}
Imagine

Caută funcția:

Cod: Selectaţi tot

ch->SetBiologState("biolog_lv94.used_window", 1);
Adaugă sub:

Cod: Selectaţi tot

ch->SetBiologState("biolog_lv94.reward", 1);
Sub întreaga structură a funcției if, adaugă:

Cod: Selectaţi tot

	if (pSelectReward[1] != 0 && ch->GetBiologState(pTableStringGlobal[3][9]) == 1)
	{
		if (!strcmp(iReward, "94_reward_1") && pSelectReward[0] != 0){
			return ch->ChatPacket(CHAT_TYPE_INFO, "<Biolog> Teapa, dc incerci buguri?.");
		}
		if (!strcmp(iReward, "94_reward_2") && pSelectReward[0] != 0){
			return ch->ChatPacket(CHAT_TYPE_INFO, "<Biolog> Teapa, dc incerci buguri?.");
		}
		if (!strcmp(iReward, "94_reward_3") && pSelectReward[0] != 0){
			return ch->ChatPacket(CHAT_TYPE_INFO, "<Biolog> Teapa, dc incerci buguri?.");
		}
	}
Imagine