Skocz do zawartości
  • 0

Skrypt Na Exp i Bronie / Zbroje Od Danego Lv


Pytanie

Hej! :)
Chciałbym prosić aby ktoś zrobił mi Skrypt / kilka skryptów

Pierwszy Skrypt:

Ma To Być Skrypt o Poziomie Bohatera, Na Czacie I Obok Nicku (nie na czacie) Ma Widnieć Jego Poziom.

Exp Niezbędny Do Wbicia Lv Up Pozyskiwany Będzie z Kopania Węgla itp. i również z zabijania potworów (np. Widmo 5Lv)

1Lv = 50Xp Lv UP

2Lv = 100Xp Lv UP

3Lv = 150Xp Lv Up
Pod Level'e Potrzebuję tylko Podstawę Resztę Sobie Dorobie..

Drugi Skrypt:

W Tym Skrypcie Ma Być Że Np. (Żelazny Miecz o Nazwie "Zatrute Ostrze")  Jest Od +8Lv, Jeśli Się Uderzy Tym Mieczem Bez Danego Lv

To Wyskakuje "Nie Masz Wystarczającego Poziomu By Posługiwać Się Tą Bronią/Narzędziem" i Nie Zadaje Obrażeń Potworą Tym Mieczem, To Samo Łuk Żeby

Nie Strzelał Bez Danego Lv. Tak Samo Z Narzędziem Żeby Nie Mogło Kopać No I Jeszcze Zbroje By Ich Nie Można Było Założyć :))

Trzeci Skrypt:

Teleporty Od Danego Lv, Jest Teleport Do Expowiska / Wioski Od Np. 20Lv I Dopiero Można Przez Niego Przejść Jak Ma Się +20Lv

Czwarty Skrypt:

Kowal, (HUMAM NPC) Gdy Na Niego Klikniemy Wyskakuje GUI i Może On Ulepszyć Nasz Ekwipunek A Jednocześnie go Zniszczyć Jest Max Ulepszenie +5 By Ulepszyć Broń / Zbroję

Potrzeba Monety, i na dalsze ulepszenia materiały
+0 --> +1 - 80% (Monety)

+1 --> +2 - 60% (Monety Pojedyncze Surowce)

+2 --> +3 - 40% (Monety Pojedyncze Surowce)

+3 --> +4 - 20% (Monety Pojedyncze Surowce)

+4 --> +5 - 10% (Monety Pojedyncze Surowce)

Piąty Skrypt:

Przydomki... Np. Gdy Wykopię 1000 Rudy  Miedzi (Żelaza) to Możemy Dać Sobię Przydomek Górnik itp.

Zakończenie:

Za Pomoc I Wszelkie Starania Wynagrodzę To Rep+

Mam Zamiar Zrobić Naprawdę Fajny Serwer RPG :)

 

//Formatowanie ~Myszak

 

 

Edytowane przez Myszak
Odnośnik do komentarza
https://skript.pl/temat/17344-skrypt-na-exp-i-bronie-zbroje-od-danego-lv/
Udostępnij na innych stronach

12 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

1 oraz 2 a jesli chodzi o trzeci skript to musiałbys mi powiedziec jaki sposób czy przejscie przez postal czy moze klikanie na tabliczke :)

Spoiler

options:
	pkt.za.zabicie: 5 								#ilosc pkt za zabicie moba,gracza#
	pkt.potrzebne.na.LVLUP: 10  					#ilosc pkt potrzebne na LVLUP#
variables:
	{lvl.%player%} = 0
	{lvl.progres.%player%} = 0
on chat:
	cancel event
	broadcast "&c[%{lvl.%player%}%]&7%player%: %message%"
on join:
	set player's tag to "&c[%{lvl.%player%}%]&7"
on death:
	if attacker is a player:
		set {_lvl} to {lvl.%attacker%}
		add {@pkt.za.zabicie} to {lvl.progres.%attacker%}
		set {_} to {_lvl}*{@pkt.potrzebne.na.LVLUP}
		if {lvl.progres.%attacker%} >= {_}:
			add 1 to {lvl.%attacker%}
			send "&2Awansowales na lvl %{lvl.%attacker%}%" to attacker
			set attacker's tag to "&c[%{lvl.%attacker%}%]&7"
on damage:
	if name of attacker's tool contains "Lv":
		set {_n} to uncolored name of attacker's tool
		replace all "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "r" and "s" and "t" and "u" and "w" and "y" and "z" and "+" and "L" and "v" and " " and "." and "&" and "!" with "" in {_n}
		set {_n} to {_n} parsed as number
		set {_lvl.%attacker%} to {lvl.%attacker%}
		if {_lvl.%attacker%} >= {_n}:
			stop
		cancel event
		send "&cBron: %name of attacker's tool%&c jest dostepny od poziomu &2%{_n}%" to attacker
on break:
	if name of player's tool contains "Lv":
		set {_n} to uncolored name of player's tool
		replace every "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "r" and "s" and "t" and "u" and "w" and "y" and "z" and "+" and "L" and "v" and " " and "." and "&" and "!" with "" in {_n}
		set {_n} to {_n} parsed as number
		if {lvl.%player%} >= {_n}:
			stop
		cancel event
		send "&cBron: %name of player's tool%&c jest dostepny od poziomu &2%{_n}%" to player	
on inventory close:  
	if gamemode of player is survival:
		set {_helm} to uncolored name of player's helmet
		set {_klata} to uncolored name of player's chestplate
		set {_spodnie} to uncolored name of player's leggings
		set {_buty} to uncolored name of player's boots
		replace every "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "r" and "s" and "t" and "u" and "w" and "y" and "z" and "+" and "L" and "v" and " " and "." and "&" and "!" with "" in {_helm}
		replace every "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "r" and "s" and "t" and "u" and "w" and "y" and "z" and "+" and "L" and "v" and " " and "." and "&" and "!" with "" in {_klata}
		replace every "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "r" and "s" and "t" and "u" and "w" and "y" and "z" and "+" and "L" and "v" and " " and "." and "&" and "!" with "" in {_spodnie}
		replace every "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "r" and "s" and "t" and "u" and "w" and "y" and "z" and "+" and "L" and "v" and " " and "." and "&" and "!" with "" in {_buty}
		set {_h} to {_helm} parsed as number
		set {_k} to {_klata} parsed as number
		set {_s} to {_spodnie} parsed as number
		set {_b} to {_buty} parsed as number
		if {lvl.%player%} < {_h}:
			set {_helm} to name of player's helmet
			set {_helm.} to type of player's helmet	
			if player can hold {_helm.} named "%{_helm}%":
				give player {_helm.} named "%{_helm}%"
			else:
				drop {_helm.} named "%{_helm}%"
			set player's helmet to air
			send "Helm: %{_helm}%&c jest dostepny od poziomu &2%{_h}% " to player
		if {lvl.%player%} < {_k}:
			set {_klata} to name of player's chestplate
			set {_klata.} to type of player's chestplate	
			if player can hold {_klata.} named "%{_klata}%":
				give player {_klata.} named "%{_klata}%"
			else:
				drop {_klata.} named "%{_klata}%"
			set player's chestplate to air
			send "Klata: %{_klata}%&c jest dostepna od poziomu &2%{_k}% " to player
		if {lvl.%player%} < {_s}:
			set {_spodnie} to name of player's leggings
			set {_spodnie.} to type of player's leggings	
			if player can hold {_spodnie.} named "%{_spodnie}%":
				give player {_spodnie.} named "%{_spodnie}%"
			else:
				drop {_spodnie.} named "%{_spodnie}%"
			set player's leggings to air
			send "Spodnie: %{_spodnie}%&c sa dostepne od poziomu &2%{_s}% " to player
		if {lvl.%player%} < {_b}:
			set {_buty} to name of player's boots
			set {_buty.} to type of player's boots	
			if player can hold {_buty.} named "%{_buty}%":
				give player {_buty.} named "%{_buty}%"
			else:
				drop {_buty.} named "%{_buty}%"
			set player's boots to air
			send "Buty: %{_buty}%&c jest dostepny od poziomu &2%{_b}% " to player

w procesie zrobienia skript bede edytował ten post :)

Wrzucam kod w spoiler //Michma1707

Edytowane przez Michma1707
Odnośnik do komentarza
https://skript.pl/temat/17344-skrypt-na-exp-i-bronie-zbroje-od-danego-lv/#findComment-118669
Udostępnij na innych stronach

  • 0
Dnia 28.03.2017 o 23:54, kaol48s napisał:

1 oraz 2 a jesli chodzi o trzeci skript to musiałbys mi powiedziec jaki sposób czy przejscie przez postal czy moze klikanie na tabliczke :)

Spoiler


options:
	pkt.za.zabicie: 5 								#ilosc pkt za zabicie moba,gracza#
	pkt.potrzebne.na.LVLUP: 10  					#ilosc pkt potrzebne na LVLUP#
variables:
	{lvl.%player%} = 0
	{lvl.progres.%player%} = 0
on chat:
	cancel event
	broadcast "&c[%{lvl.%player%}%]&7%player%: %message%"
on join:
	set player's tag to "&c[%{lvl.%player%}%]&7"
on death:
	if attacker is a player:
		set {_lvl} to {lvl.%attacker%}
		add {@pkt.za.zabicie} to {lvl.progres.%attacker%}
		set {_} to {_lvl}*{@pkt.potrzebne.na.LVLUP}
		if {lvl.progres.%attacker%} >= {_}:
			add 1 to {lvl.%attacker%}
			send "&2Awansowales na lvl %{lvl.%attacker%}%" to attacker
			set attacker's tag to "&c[%{lvl.%attacker%}%]&7"
on damage:
	if name of attacker's tool contains "Lv":
		set {_n} to uncolored name of attacker's tool
		replace all "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "r" and "s" and "t" and "u" and "w" and "y" and "z" and "+" and "L" and "v" and " " and "." and "&" and "!" with "" in {_n}
		set {_n} to {_n} parsed as number
		set {_lvl.%attacker%} to {lvl.%attacker%}
		if {_lvl.%attacker%} >= {_n}:
			stop
		cancel event
		send "&cBron: %name of attacker's tool%&c jest dostepny od poziomu &2%{_n}%" to attacker
on break:
	if name of player's tool contains "Lv":
		set {_n} to uncolored name of player's tool
		replace every "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "r" and "s" and "t" and "u" and "w" and "y" and "z" and "+" and "L" and "v" and " " and "." and "&" and "!" with "" in {_n}
		set {_n} to {_n} parsed as number
		if {lvl.%player%} >= {_n}:
			stop
		cancel event
		send "&cBron: %name of player's tool%&c jest dostepny od poziomu &2%{_n}%" to player	
on inventory close:  
	if gamemode of player is survival:
		set {_helm} to uncolored name of player's helmet
		set {_klata} to uncolored name of player's chestplate
		set {_spodnie} to uncolored name of player's leggings
		set {_buty} to uncolored name of player's boots
		replace every "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "r" and "s" and "t" and "u" and "w" and "y" and "z" and "+" and "L" and "v" and " " and "." and "&" and "!" with "" in {_helm}
		replace every "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "r" and "s" and "t" and "u" and "w" and "y" and "z" and "+" and "L" and "v" and " " and "." and "&" and "!" with "" in {_klata}
		replace every "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "r" and "s" and "t" and "u" and "w" and "y" and "z" and "+" and "L" and "v" and " " and "." and "&" and "!" with "" in {_spodnie}
		replace every "a" and "b" and "c" and "d" and "e" and "f" and "g" and "h" and "i" and "j" and "k" and "l" and "m" and "n" and "o" and "p" and "r" and "s" and "t" and "u" and "w" and "y" and "z" and "+" and "L" and "v" and " " and "." and "&" and "!" with "" in {_buty}
		set {_h} to {_helm} parsed as number
		set {_k} to {_klata} parsed as number
		set {_s} to {_spodnie} parsed as number
		set {_b} to {_buty} parsed as number
		if {lvl.%player%} < {_h}:
			set {_helm} to name of player's helmet
			set {_helm.} to type of player's helmet	
			if player can hold {_helm.} named "%{_helm}%":
				give player {_helm.} named "%{_helm}%"
			else:
				drop {_helm.} named "%{_helm}%"
			set player's helmet to air
			send "Helm: %{_helm}%&c jest dostepny od poziomu &2%{_h}% " to player
		if {lvl.%player%} < {_k}:
			set {_klata} to name of player's chestplate
			set {_klata.} to type of player's chestplate	
			if player can hold {_klata.} named "%{_klata}%":
				give player {_klata.} named "%{_klata}%"
			else:
				drop {_klata.} named "%{_klata}%"
			set player's chestplate to air
			send "Klata: %{_klata}%&c jest dostepna od poziomu &2%{_k}% " to player
		if {lvl.%player%} < {_s}:
			set {_spodnie} to name of player's leggings
			set {_spodnie.} to type of player's leggings	
			if player can hold {_spodnie.} named "%{_spodnie}%":
				give player {_spodnie.} named "%{_spodnie}%"
			else:
				drop {_spodnie.} named "%{_spodnie}%"
			set player's leggings to air
			send "Spodnie: %{_spodnie}%&c sa dostepne od poziomu &2%{_s}% " to player
		if {lvl.%player%} < {_b}:
			set {_buty} to name of player's boots
			set {_buty.} to type of player's boots	
			if player can hold {_buty.} named "%{_buty}%":
				give player {_buty.} named "%{_buty}%"
			else:
				drop {_buty.} named "%{_buty}%"
			set player's boots to air
			send "Buty: %{_buty}%&c jest dostepny od poziomu &2%{_b}% " to player

w procesie zrobienia skript bede edytował ten post :)

Wrzucam kod w spoiler //Michma1707

w Skrypcie Trzecim Rozchodzi Się O Przejście Przez Portal.
Zaraz Sprawdzę Na Serwerze ten Twój Skrypcik Mistrzu ;)

 

@kaol48s Chciałbym Cię Prosić o Jedną Rzecz Jeszcze. Żebyś Mi Zrobił Np Za Zabicie Widmo 5Lv dostaje 5 xp a za Widmo 1 Lv 1 xp

Łączę //Michma1707

Edytowane przez Michma1707
Odnośnik do komentarza
https://skript.pl/temat/17344-skrypt-na-exp-i-bronie-zbroje-od-danego-lv/#findComment-118698
Udostępnij na innych stronach

  • 0

tak może zostać

 

będę jutro rano by odpisać na jakieś pytanie.
mam jedną prośbę jeszcze czy dało by się żeby np. łucznik mógł się posługiwać tylko łukiem? żeby mieczem nie mógł. a jednak żeby w ekwipunku mógł posiadać łuk.

Łączę //Michma1707

Odnośnik do komentarza
https://skript.pl/temat/17344-skrypt-na-exp-i-bronie-zbroje-od-danego-lv/#findComment-118784
Udostępnij na innych stronach

  • 0

klasy bedzie sie wybierało w jaki sposób? a co do kowala to robie taz ze jak klikniesz na kowala itemkiem to zabiera go i po 5 sekundach oddaje taki sam albo ulepszony

zalezne od % na ulepszenie a pozatym bedziesz musiał do kazdej broni np

on damage:

 if name of attacker's tool is "nazwa broni"

   set damage to 100

   if name of attacker tool contains "+1"

      set damage to damage+10

 

i tak do kazdej broni

 

 

 

 

Edytowane przez kaol48s
Odnośnik do komentarza
https://skript.pl/temat/17344-skrypt-na-exp-i-bronie-zbroje-od-danego-lv/#findComment-118813
Udostępnij na innych stronach

  • 0
https://code.skript.pl/p3ivQnDv/

prosze trzymaj skript jest skonczony w 80% daje ci go anyś sprawdził czy wszystko pasuje i co jeszcze mam dodać/zmienić

Dłuższe skrypty należy umieszczać na code.skript.pl //Michma1707

Edytowane przez Michma1707
Odnośnik do komentarza
https://skript.pl/temat/17344-skrypt-na-exp-i-bronie-zbroje-od-danego-lv/#findComment-118912
Udostępnij na innych stronach

  • 0

@kaol48s niestety sprawdze dopiero w niedzielę ponieważ nie ma mnie obecnie w domu.

 

widzę że się postarałeś. trochę z skryptu ogarniam jak to działa, ale jednak mógł w skrypcie mi opisać na #(opis) jak to działa? ;x

 

i jeszcze jedna rzecz, gdzie jest kod żeby np dodać że widmo 5lv daje 5 expa a Zwiadowca 20lv daje np. 100 xp

 

Łączę //Michma1707

Łączę v2 //Michma1707

Odnośnik do komentarza
https://skript.pl/temat/17344-skrypt-na-exp-i-bronie-zbroje-od-danego-lv/#findComment-119001
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...