Skocz do zawartości
Masz już aplikację Sharegon?

Odkryj wszystkie możliwości. Dowiedz się więcej

Sharegon.pl

Zainstaluj aplikację Sharegon i korzystaj z powiadomień push oraz licznika nowych aktywności bezpośrednio z ekranu głównego.

Aby zainstalować tę aplikację na iOS i iPadOS.
  1. Tap the Share icon in Safari
  2. Przewiń menu i stuknij Dodaj do ekranu początkowego.
  3. Stuknij Dodaj w prawym górnym rogu.
Zainstaluj aplikację Sharegon na Androidzie
  1. Otwórz Sklep Google Play na swoim smarfonie.
  2. Wyszukaj „Sharegon” w pasku wyszukiwania.
  3. Stuknij „Zainstaluj”, aby pobrać aplikację.

Sortowanie ekwipunku

Featured Replies

Opublikowano

Ss:

 

image.jpeg.2d1089eb74ae024ce65de24fd7abbb02.jpeg

 

Paczka:

 

 

Tylko zalogowani Zaloguj się, aby wyświetlić chronioną treść Ten post zawiera treści dostępne tylko dla członków. Zaloguj się lub utwórz konto, aby odblokować całą zawartość tego posta. Zaloguj się Utwórz konto
Opublikowano

Jeśli chodzi o estetykę moim zdaniem średnio to wygląda, już lepiej jakby bg było oryginalnie i obok napisu Ekwipunek ikonka sortowania ale to tylko moja opinia i to kwestia kosmetyczna.

Opublikowano
W dniu 12.12.2024 o 21:00, Tuike napisał(a):

Jeśli chodzi o estetykę moim zdaniem średnio to wygląda, już lepiej jakby bg było oryginalnie i obok napisu Ekwipunek ikonka sortowania ale to tylko moja opinia i to kwestia kosmetyczna.

aa widze Nerwia style XD

Opublikowano
W dniu 12.12.2024 o 21:07, ARK napisał(a):

aa widze Nerwia style XD

Ajj nigdy nie grałem na Nerwii chociaż miałem chęć ;d
Jakoś taki styl bardziej wydaje mi się estetyczny.

  • 3 tygodnie później...
  • 2 tygodnie później...
  • 3 miesiące temu...
Opublikowano

fajny mechanizm, miejsce w ui zmienic i luxus

  • 2 tygodnie później...
Opublikowano
W dniu 26.04.2025 o 23:25, ExoCarossa napisał(a):

coś więcej? :o

Warunki są tak dobrze napisane, że w przypadku autopotek zużytych prawie do zera przywraca ich wartości do full.

W dniu 26.04.2025 o 20:56, WhiteBambo88 napisał(a):

Fajny sposób na nieskończone auto potki xD

Może też zbugować wiele innych rzeczy :D

Warto też wspomnieć o "wycieku pamięci", który tutaj występuje

Edytowane przez KoYGeR

Opublikowano

Teraz powinno nie być kopiowania. Nie sprawdzałem, możecie dać znać

TextKod został skopiowany
 void CHARACTER::SortInventoryItems(){    if (IsDead() || GetExchange() || GetMyShop() || GetShopOwner() || IsOpenSafebox() || IsCubeOpen())    {        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Please close other windows before sorting your inventory."));        return;    }     int lastSortInventoryPulse = GetSortInventoryPulse();    int iPulse = thecore_pulse();     if (lastSortInventoryPulse > iPulse)    {        int deltaInSeconds = ((lastSortInventoryPulse / PASSES_PER_SEC(1)) - (iPulse / PASSES_PER_SEC(1)));        int minutes = deltaInSeconds / 60;        int seconds = (deltaInSeconds - (minutes * 60));         ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Please wait %d seconds to sort your inventory again."), seconds);        return;    }     static std::vector<LPITEM> v;    v.clear();     LPITEM item;    int size = INVENTORY_MAX_NUM;        SetPosition(POS_FIGHTING);     for (int i = 0; i < size; ++i)    {        if (!(item = GetInventoryItem(i)))            continue;         v.push_back(item);        item->RemoveFromCharacter();    }     std::sort(v.begin(), v.end(), [](const LPITEM& a, const LPITEM& b)    {        return std::string(a->GetName()) < std::string(b->GetName());    });     for (auto& it : v)    {        if (it)            AutoGiveItem(it, false);    }        SetSortInventoryPulse(thecore_pulse() + PASSES_PER_SEC(10));        SetPosition(POS_STANDING);         Save();     ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Your inventory items have been sorted."));}

jeszcze tutaj

TextKod został skopiowany
void CHARACTER::SortInventoryItems(){	int lastSortInventoryPulse = GetSortInventoryPulse();	int iPulse = thecore_pulse(); 	if (lastSortInventoryPulse > iPulse)	{		int deltaInSeconds = ((lastSortInventoryPulse / PASSES_PER_SEC(1)) - (iPulse / PASSES_PER_SEC(1)));		int minutes = deltaInSeconds / 60;		int seconds = (deltaInSeconds - (minutes * 60)); 		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Please wait %d seconds to sort your inventory again."), seconds);		return;	} 	if (IsDead() || GetExchange() || GetMyShop() || GetShopOwner() || IsOpenSafebox() || IsCubeOpen())	{		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Please close other windows before sorting your inventory."));		return;	} 	SetPosition(POS_FIGHTING); 	static std::vector<LPITEM> v;	v.clear(); 	LPITEM item;	int size = INVENTORY_MAX_NUM; 	for (int i = 0; i < size; ++i)	{		if (!(item = GetInventoryItem(i)))			continue; 		v.push_back(item); 		item->RemoveFromCharacter();	} 		std::sort(v.begin(), v.end(), [](const LPITEM& a, const LPITEM& b)	{		return std::string(a->GetName()) < std::string(b->GetName());	}); 	for (auto& it : v)	{		if (it)		{					AutoGiveItem(it, false);		}	} 	SetSortInventoryPulse(thecore_pulse() + PASSES_PER_SEC(10));	SetPosition(POS_STANDING); 	Save(); 	ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Your inventory items have been sorted."));}

Edytowane przez MalikOo

Opublikowano
W dniu 27.04.2025 o 09:27, MalikOo napisał(a):

Teraz powinno nie być kopiowania. Nie sprawdzałem, możecie dać znać

TextKod został skopiowany
 void CHARACTER::SortInventoryItems(){    if (IsDead() || GetExchange() || GetMyShop() || GetShopOwner() || IsOpenSafebox() || IsCubeOpen())    {        ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Please close other windows before sorting your inventory."));        return;    }     int lastSortInventoryPulse = GetSortInventoryPulse();    int iPulse = thecore_pulse();     if (lastSortInventoryPulse > iPulse)    {        int deltaInSeconds = ((lastSortInventoryPulse / PASSES_PER_SEC(1)) - (iPulse / PASSES_PER_SEC(1)));        int minutes = deltaInSeconds / 60;        int seconds = (deltaInSeconds - (minutes * 60));         ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Please wait %d seconds to sort your inventory again."), seconds);        return;    }     static std::vector<LPITEM> v;    v.clear();     LPITEM item;    int size = INVENTORY_MAX_NUM;        SetPosition(POS_FIGHTING);     for (int i = 0; i < size; ++i)    {        if (!(item = GetInventoryItem(i)))            continue;         v.push_back(item);        item->RemoveFromCharacter();    }     std::sort(v.begin(), v.end(), [](const LPITEM& a, const LPITEM& b)    {        return std::string(a->GetName()) < std::string(b->GetName());    });     for (auto& it : v)    {        if (it)            AutoGiveItem(it, false);    }        SetSortInventoryPulse(thecore_pulse() + PASSES_PER_SEC(10));        SetPosition(POS_STANDING);         Save();     ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Your inventory items have been sorted."));}

jeszcze tutaj

TextKod został skopiowany
void CHARACTER::SortInventoryItems(){	int lastSortInventoryPulse = GetSortInventoryPulse();	int iPulse = thecore_pulse(); 	if (lastSortInventoryPulse > iPulse)	{		int deltaInSeconds = ((lastSortInventoryPulse / PASSES_PER_SEC(1)) - (iPulse / PASSES_PER_SEC(1)));		int minutes = deltaInSeconds / 60;		int seconds = (deltaInSeconds - (minutes * 60)); 		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Please wait %d seconds to sort your inventory again."), seconds);		return;	} 	if (IsDead() || GetExchange() || GetMyShop() || GetShopOwner() || IsOpenSafebox() || IsCubeOpen())	{		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Please close other windows before sorting your inventory."));		return;	} 	SetPosition(POS_FIGHTING); 	static std::vector<LPITEM> v;	v.clear(); 	LPITEM item;	int size = INVENTORY_MAX_NUM; 	for (int i = 0; i < size; ++i)	{		if (!(item = GetInventoryItem(i)))			continue; 		v.push_back(item); 		item->RemoveFromCharacter();	} 		std::sort(v.begin(), v.end(), [](const LPITEM& a, const LPITEM& b)	{		return std::string(a->GetName()) < std::string(b->GetName());	}); 	for (auto& it : v)	{		if (it)		{					AutoGiveItem(it, false);		}	} 	SetSortInventoryPulse(thecore_pulse() + PASSES_PER_SEC(10));	SetPosition(POS_STANDING); 	Save(); 	ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Your inventory items have been sorted."));}

Teraz trochę dobrych praktyk:

C++Kod został skopiowany
void CHARACTER::SortInventoryItems(){	const uint32_t& last_inventory_sort_pulse = GetSortInventoryPulse();	const uint32_t& cur_pulse = thecore_pulse(); 	if (cur_pulse < last_inventory_sort_pulse)	{		const uint32_t& left_seconds = static_cast<uint32_t>((last_inventory_sort_pulse - cur_pulse) / PASSES_PER_SEC(1));		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Please wait %d seconds to sort your inventory again."), left_seconds);		return;	} 	if (IsDead() || GetExchange() || GetMyShop() || GetShopOwner() || IsOpenSafebox() || IsCubeOpen())	{		ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Please close other windows before sorting your inventory."));		return;	} 	std::vector<LPITEM> v;	LPITEM item;	for (uint16_t i = 0; i < INVENTORY_MAX_NUM; ++i)	{		if ((item = GetInventoryItem(i)))		{			v.push_back(item);			item->RemoveFromCharacter();		}	} 	std::sort(v.begin(), v.end(), [](const LPITEM& a, const LPITEM& b)	{		return std::string(a->GetName()) < std::string(b->GetName());	}); 	for (auto& it : v)		AutoGiveItem(it, false); 	ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Your inventory items have been sorted."));	SetSortInventoryPulse(cur_pulse + PASSES_PER_SEC(10));}

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Konto

Nawigacja

Skonfiguruj powiadomienia push w przeglądarce.

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Wybierz Uprawnienia → Powiadomienia.
  3. Dostosuj swoje preferencje.
Chrome (Desktop)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje preferencje.