Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Naprawiony Dr Abawuwu (Nowe Pliki)


stacker123

Rekomendowane odpowiedzi

Opublikowano
case 'wheeloffortune':


		$acc = new Account(null, null, false, true);

		if($acc->data['wheel'] >= 20)
			exit();

		if($acc->data['wheel'] > 0 && $acc->data['mush'] <= 0)
			exit('Error:need more coins');

		if(($freeslot = $acc->getFreeBackpackSlot()) === false)
			exit("Error:need a free slot");

		if($acc->data['wheel'] > 0)
			$acc->data['mush']--;
		$acc->data['wheel']++;

		$reward = rand(0, 9);
		$quantity = 0;
		switch($reward){
			case 0: // mushrooms 
				$quantity = 10;
				$acc->data['mush'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID");
				break;
			case 1: case 6: //wood		small/big
				//work with $acc->data['b0'] - fortress lvl
				$quantity = 256;
				$acc->data['wood'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID;UPDATE fortress SET wood = wood + $quantity WHERE owner = $playerID");
				break;
			case 2: case 7: //exp		small/big
				$quantity = $acc->data['lvl'] * 30;
				$acc->addExp($quantity);
				$db->exec("UPDATE players SET lvl = {$acc->data['lvl']}, exp = {$acc->data['exp']}, mush = {$acc->data['mush']}, wheel = wheel + 1 WHERE ID = $playerID");
				break;
			case 3: case 8: //stone		small/big
				//work with $acc->data['b0'] - fortress lvl
				$quantity = 140;
				$acc->data['stone'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID;UPDATE fortress SET stone = stone + $quantity WHERE owner = $playerID");
				break;
			case 4: case 9: //silver	small/big
				$quantity = $acc->data['lvl'] * 150;
				$acc->data['silver'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']}, silver = silver + $quantity WHERE ID = $playerID");
				break;
			case 5: //item reward
				$item = Item::genItem(rand(1, 10), $acc->data['lvl'], $acc->data['class'], Settings::EPIC_WHEEL);
				$acc->insertItem($item, $freeslot);

				$freeslot += $freeslot >= 100 ? -94 : +1;
				$quantity = $freeslot;
				if($freeslot > 5)
					$ret[] = "fortresschest.item(".$acc->getFortressBackpackSize()."):".$acc->getFortressBackpackSave();
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID");
				break;
		}


		$ret[] = "Success:";
		$ret[] = "wheelresult(2):$reward/$quantity";
		$zabierz = -1;
		$db->exec("UPDATE players SET mush = mush + $zabierz WHERE ID = $playerID");
		$ret[] = "ownplayersave.playerSave:".$acc->getPlayerSave();
		$ret[] = "timestamp:".time();

		break;

 Działające zabieranie grzybu za losowanie, lecz nie działa maksymalna ilość używania.

 No ale tyle zrobiłem, może ktoś skorzysta.

Skrypt był w plikach @lujek1232 ja dodałem zabieranie grzybów przy losowaniu.

Opublikowano
case 'wheeloffortune':


		$acc = new Account(null, null, false, true);

		if($acc->data['wheel'] >= 20)
			exit();

		if($acc->data['wheel'] > 0 && $acc->data['mush'] <= 0)
			exit('Error:need more coins');

		if(($freeslot = $acc->getFreeBackpackSlot()) === false)
			exit("Error:need a free slot");

		if($acc->data['wheel'] > 0)
			$acc->data['mush']--;
		$acc->data['wheel']++;

		$reward = rand(0, 9);
		$quantity = 0;
		switch($reward){
			case 0: // mushrooms 
				$quantity = 10;
				$acc->data['mush'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID");
				break;
			case 1: case 6: //wood		small/big
				//work with $acc->data['b0'] - fortress lvl
				$quantity = 256;
				$acc->data['wood'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID;UPDATE fortress SET wood = wood + $quantity WHERE owner = $playerID");
				break;
			case 2: case 7: //exp		small/big
				$quantity = $acc->data['lvl'] * 30;
				$acc->addExp($quantity);
				$db->exec("UPDATE players SET lvl = {$acc->data['lvl']}, exp = {$acc->data['exp']}, mush = {$acc->data['mush']}, wheel = wheel + 1 WHERE ID = $playerID");
				break;
			case 3: case 8: //stone		small/big
				//work with $acc->data['b0'] - fortress lvl
				$quantity = 140;
				$acc->data['stone'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID;UPDATE fortress SET stone = stone + $quantity WHERE owner = $playerID");
				break;
			case 4: case 9: //silver	small/big
				$quantity = $acc->data['lvl'] * 150;
				$acc->data['silver'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']}, silver = silver + $quantity WHERE ID = $playerID");
				break;
			case 5: //item reward
				$item = Item::genItem(rand(1, 10), $acc->data['lvl'], $acc->data['class'], Settings::EPIC_WHEEL);
				$acc->insertItem($item, $freeslot);

				$freeslot += $freeslot >= 100 ? -94 : +1;
				$quantity = $freeslot;
				if($freeslot > 5)
					$ret[] = "fortresschest.item(".$acc->getFortressBackpackSize()."):".$acc->getFortressBackpackSave();
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID");
				break;
		}


		$ret[] = "Success:";
		$ret[] = "wheelresult(2):$reward/$quantity";
		$zabierz = -1;
		$db->exec("UPDATE players SET mush = mush + $zabierz WHERE ID = $playerID");
		$ret[] = "ownplayersave.playerSave:".$acc->getPlayerSave();
		$ret[] = "timestamp:".time();

		break;

 Działające zabieranie grzybu za losowanie, lecz nie działa maksymalna ilość używania.

 No ale tyle zrobiłem, może ktoś skorzysta.

Skrypt był w plikach @lujek1232 ja dodałem zabieranie grzybów przy losowaniu.

 

I na c**j to udostępniasz? Teraz powstanie następne pierdyliard tysięcy gotowców..

Opublikowano

 

case 'wheeloffortune':


		$acc = new Account(null, null, false, true);

		if($acc->data['wheel'] >= 20)
			exit();

		if($acc->data['wheel'] > 0 && $acc->data['mush'] <= 0)
			exit('Error:need more coins');

		if(($freeslot = $acc->getFreeBackpackSlot()) === false)
			exit("Error:need a free slot");

		if($acc->data['wheel'] > 0)
			$acc->data['mush']--;
		$acc->data['wheel']++;

		$reward = rand(0, 9);
		$quantity = 0;
		switch($reward){
			case 0: // mushrooms 
				$quantity = 10;
				$acc->data['mush'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID");
				break;
			case 1: case 6: //wood		small/big
				//work with $acc->data['b0'] - fortress lvl
				$quantity = 256;
				$acc->data['wood'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID;UPDATE fortress SET wood = wood + $quantity WHERE owner = $playerID");
				break;
			case 2: case 7: //exp		small/big
				$quantity = $acc->data['lvl'] * 30;
				$acc->addExp($quantity);
				$db->exec("UPDATE players SET lvl = {$acc->data['lvl']}, exp = {$acc->data['exp']}, mush = {$acc->data['mush']}, wheel = wheel + 1 WHERE ID = $playerID");
				break;
			case 3: case 8: //stone		small/big
				//work with $acc->data['b0'] - fortress lvl
				$quantity = 140;
				$acc->data['stone'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID;UPDATE fortress SET stone = stone + $quantity WHERE owner = $playerID");
				break;
			case 4: case 9: //silver	small/big
				$quantity = $acc->data['lvl'] * 150;
				$acc->data['silver'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']}, silver = silver + $quantity WHERE ID = $playerID");
				break;
			case 5: //item reward
				$item = Item::genItem(rand(1, 10), $acc->data['lvl'], $acc->data['class'], Settings::EPIC_WHEEL);
				$acc->insertItem($item, $freeslot);

				$freeslot += $freeslot >= 100 ? -94 : +1;
				$quantity = $freeslot;
				if($freeslot > 5)
					$ret[] = "fortresschest.item(".$acc->getFortressBackpackSize()."):".$acc->getFortressBackpackSave();
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID");
				break;
		}


		$ret[] = "Success:";
		$ret[] = "wheelresult(2):$reward/$quantity";
		$zabierz = -1;
		$db->exec("UPDATE players SET mush = mush + $zabierz WHERE ID = $playerID");
		$ret[] = "ownplayersave.playerSave:".$acc->getPlayerSave();
		$ret[] = "timestamp:".time();

		break;

 Działające zabieranie grzybu za losowanie, lecz nie działa maksymalna ilość używania.

 No ale tyle zrobiłem, może ktoś skorzysta.

Skrypt był w plikach @lujek1232 ja dodałem zabieranie grzybów przy losowaniu.

 

I na c**j to udostępniasz? Teraz powstanie następne pierdyliard tysięcy gotowców..

 

Bo na pewno przez jeden skrypt powstaną gotowce XDDDDDDDDD

784091427630431250239.png

Regulamin sygnatur

Opublikowano

 

 

case 'wheeloffortune':


		$acc = new Account(null, null, false, true);

		if($acc->data['wheel'] >= 20)
			exit();

		if($acc->data['wheel'] > 0 && $acc->data['mush'] <= 0)
			exit('Error:need more coins');

		if(($freeslot = $acc->getFreeBackpackSlot()) === false)
			exit("Error:need a free slot");

		if($acc->data['wheel'] > 0)
			$acc->data['mush']--;
		$acc->data['wheel']++;

		$reward = rand(0, 9);
		$quantity = 0;
		switch($reward){
			case 0: // mushrooms 
				$quantity = 10;
				$acc->data['mush'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID");
				break;
			case 1: case 6: //wood		small/big
				//work with $acc->data['b0'] - fortress lvl
				$quantity = 256;
				$acc->data['wood'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID;UPDATE fortress SET wood = wood + $quantity WHERE owner = $playerID");
				break;
			case 2: case 7: //exp		small/big
				$quantity = $acc->data['lvl'] * 30;
				$acc->addExp($quantity);
				$db->exec("UPDATE players SET lvl = {$acc->data['lvl']}, exp = {$acc->data['exp']}, mush = {$acc->data['mush']}, wheel = wheel + 1 WHERE ID = $playerID");
				break;
			case 3: case 8: //stone		small/big
				//work with $acc->data['b0'] - fortress lvl
				$quantity = 140;
				$acc->data['stone'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID;UPDATE fortress SET stone = stone + $quantity WHERE owner = $playerID");
				break;
			case 4: case 9: //silver	small/big
				$quantity = $acc->data['lvl'] * 150;
				$acc->data['silver'] += $quantity;
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']}, silver = silver + $quantity WHERE ID = $playerID");
				break;
			case 5: //item reward
				$item = Item::genItem(rand(1, 10), $acc->data['lvl'], $acc->data['class'], Settings::EPIC_WHEEL);
				$acc->insertItem($item, $freeslot);

				$freeslot += $freeslot >= 100 ? -94 : +1;
				$quantity = $freeslot;
				if($freeslot > 5)
					$ret[] = "fortresschest.item(".$acc->getFortressBackpackSize()."):".$acc->getFortressBackpackSave();
				$db->exec("UPDATE players SET wheel = wheel + 1, mush = {$acc->data['mush']} WHERE ID = $playerID");
				break;
		}


		$ret[] = "Success:";
		$ret[] = "wheelresult(2):$reward/$quantity";
		$zabierz = -1;
		$db->exec("UPDATE players SET mush = mush + $zabierz WHERE ID = $playerID");
		$ret[] = "ownplayersave.playerSave:".$acc->getPlayerSave();
		$ret[] = "timestamp:".time();

		break;

 Działające zabieranie grzybu za losowanie, lecz nie działa maksymalna ilość używania.

 No ale tyle zrobiłem, może ktoś skorzysta.

Skrypt był w plikach @lujek1232 ja dodałem zabieranie grzybów przy losowaniu.

 

I na c**j to udostępniasz? Teraz powstanie następne pierdyliard tysięcy gotowców..

 

Bo na pewno przez jeden skrypt powstaną gotowce XDDDDDDDDD

 

Przez jeden nie :D ale jak przyjdzie 10 takich jak on i będzie wrzucać to być może xD @stacker123 ja tutaj nie chcę Cię obrazić czy cuś (tak jakby coś)

Opublikowano

I tak zrobiony jest słabo, można to zrobić lepiej.

Pozatym to pierwszy skrypt mój na nowej wersji, więc wątpie że ktoś będzie z tego korzystał wogóle.

Opublikowano

AT38bln.jpg

+ Dodałem crona który resetuje co 24h gry na kole fortuny

 

Jak ktoś chce PW

Można to zrobić bez crona ;)

Opublikowano

Co cie tak bawi? I nie postuj zbędnie ;p

bo co mi zrobisz? :D

  • 1 miesiąc temu...

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...