on left click:
if name of entity is "Hazardzista":
send "debug dziala wgl klikanie"
if name of player's tool is "&6Wygrana zdrapka":
set {_l} to uncoloured line 1 of player's tool's lore
set {_kasa} to subtext of {_l} from character 44 to (length of {_l} - 3)
send "debug"
send "%{_kasa}%"
Wie ktoś czemu nie zalicza mi left clicka? Klikam i nic.
Dodam, że identyczny kodzik wcześniej, a działa, a konkretniej taki:
on right click:
if name of entity is "Hazardzista":
open chest with 3 rows named "&lZdrapki" to player
set player's current inventory's slot 11 to paper named "&aMiniloto" with lore "&6Kliknij &l&cLPM&6, aby zakupić tę zdrapkę za &a50$."
set player's current inventory's slot 13 to paper named "&aTotoloto" with lore "&6Kliknij &l&cLPM&6, aby zakupić tę zdrapkę za &a250$."
set player's current inventory's slot 15 to paper named "&aMegaloto" with lore "&6Kliknij &l&cLPM&6, aby zakupić tę zdrapkę za &a500$."
Pytanie
MineRP 17
on left click: if name of entity is "Hazardzista": send "debug dziala wgl klikanie" if name of player's tool is "&6Wygrana zdrapka": set {_l} to uncoloured line 1 of player's tool's lore set {_kasa} to subtext of {_l} from character 44 to (length of {_l} - 3) send "debug" send "%{_kasa}%"Wie ktoś czemu nie zalicza mi left clicka? Klikam i nic.
Dodam, że identyczny kodzik wcześniej, a działa, a konkretniej taki:
on right click: if name of entity is "Hazardzista": open chest with 3 rows named "&lZdrapki" to player set player's current inventory's slot 11 to paper named "&aMiniloto" with lore "&6Kliknij &l&cLPM&6, aby zakupić tę zdrapkę za &a50$." set player's current inventory's slot 13 to paper named "&aTotoloto" with lore "&6Kliknij &l&cLPM&6, aby zakupić tę zdrapkę za &a250$." set player's current inventory's slot 15 to paper named "&aMegaloto" with lore "&6Kliknij &l&cLPM&6, aby zakupić tę zdrapkę za &a500$."
Edytowane przez xNightPower_Zmieniam tytuł na trochę lepszy niż "Problem".
Odnośnik do komentarza
https://skript.pl/temat/43688-nie-zalicza-left-clicka/Udostępnij na innych stronach
10 odpowiedzi na to pytanie
Rekomendowane odpowiedzi