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

Pomoc w napisaniu oraz poprawieniu skryptu


Michael_AQUA

Rekomendowane odpowiedzi

Opublikowano

Cześć, chciałbym prosić Was o pomoc. Oto moje wypociny:

 

variables:
{pvp::staus} = false


command /pvp [<text>]:
trigger:
if argument 1 is "on":
if {pvp::staus} is false:
set {pvp::staus} to true:
send "&1&lPVP> &cWlaczyles PVP!" to the player
if argument 1 is "off":
if {pvp::staus} is true:
set {pvp::staus} to false"
send "&1&lPVP> &cWylaczyles PVP!" to the player
if argument 1 is "status":
if {pvp::staus} is on:
send "&1&lPVP> &cAktualny status PVP: &4WLACZONE." to the player
if {pvp::staus} is off:
send "&1&lPVP> &cAktualny status PVP: &4WYLACZONE." to the player


JESLI GRACZ UDERZY GRACZA:
JESLI UDERZONY GRACZ MA WLACZONE PVP:
JESLI UDERZAJACY GRACZ MA WLACZONE PVP:
ZASTOPUJ 
WYSLIL WIADOMOSC DO GRACZA


JESLI GRACZ UDERZY GRACZA:
JESLI UDERZONY GRACZ MA WYLACZONE PVP:
JESLI UDERZAJACY GRACZ MA WYLACZONE PVP:
ZASTOPUJ COFAJAC WYDARZENIE
WYSLIL WIADOMOSC DO GRACZA


JESLI GRACZ UDERZY GRACZA:
JESLI UDERZONT GRACZ MA WLACZONE PVP:
JESLI UDERZAJACY GRACZ MA WYLACZONE PVP:
ZASTOPUJ COFAJAC WYDERZENIE
WYSLIL WIADOMOSC DO GRACZA


JESLI GRACZ UDERZY GRACZA:
JESLI UDERZONT GRACZ MA WYLACZONE PVP:
JESLI UDERZAJACY GRACZ MA WLACZONE PVP:
ZASTOPUJ COFAJAC WYDERZENIE
WYSLIL WIADOMOSC DO GRACZA

Oczywiście wytabowane w pliku u mnie. Gdyby ktoś mógł sprawdzić i dokończyć opisaną po polsku treść skryptu to byłbym wdzięczny. 

 
 
 
Opublikowano
variables:
		{pvp::staus.%player%} = false


command /pvp [<text>]:
	trigger:
		if argument 1 is "on":
			if {pvp::staus.%player%} is false:
				set {pvp::staus.%player%} to true:
				send "&1&lPVP> &cWlaczyles PVP!" to the player
		if argument 1 is "off":
			if {pvp::staus.%player%} is true:
				set {pvp::staus.%player%} to false
				send "&1&lPVP> &cWylaczyles PVP!" to the player
		if argument 1 is "status":
			if {pvp::staus.%player%} is on:
				send "&1&lPVP> &cAktualny status PVP: &4WLACZONE." to the player
			if {pvp::staus.%player%} is off:
				send "&1&lPVP> &cAktualny status PVP: &4WYLACZONE." to the player

on damage:
	if attacker is a player:
    	if victim is a player:
        	if {pvp::status.%victim%} is true:
            	if {pvp::status.%attacker%} is true:
                	stop
                    
on damage:
	if attacker is a player:
    	if victim is a player:
        	if {pvp::status.%victim%} is false:
            	if {pvp::status.%attacker%} is false:
                	send "Masz wylaczone PVP" to attacker
                    send "Masz wylaczone PVP" to victim
                    cancel event
                	stop
                    
on damage:
	if attacker is a player:
    	if victim is a player:
        	if {pvp::status.%victim%} is true:
            	if {pvp::status.%attacker%} is false:
                	cancel event
                    send "Nie mozesz zadawac graczom obrazenia podczas wylaczonego PVP" to attacker
                    stop
                    
on damage:
	if attacker is a player:
    	if victim is a player:
        	if {pvp::status.%victim%} is false:
            	if {pvp::status.%attacker%} is true:
                	cancel event
                    send "Gracz ma wylaczone PVP" to attacker
                    stop

Takie cos?

Pomagam na PW (Prywatna Wiadomosc)

▄ . ► KONTAKT .
Wyślij do mnie Prywatną Wiadomość (PW)

►Skype: smith.polska

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...