EnesBurak#0001
on consume of potion of invisibility:
cancel event
set {gorunmezlik::%player%} to true
apply invisibility to player for 60 second
hide player from all players
wait 60 second
reveal the player from all players
set {gorunmezlik::%player%} to false
on damage of player:
if {gorunmezlik::%victim%} is true:
set {gorunmezlik::%victim%} to false
reveal the victim from all players
remove invisibility from victim
on death of player:
if {gorunmezlik::%victim%} is true:
set {gorunmezlik::%victim%} to false
reveal the victim from all players
remove invisibility from victim
bal10cu
merhaba çalışıyor ama içtikden sonra iksir silinmiyiyor.Böyle bir şey yaptım çalışıyor fakat tek sorun oyuncu 5. satırda diğer oyuncular tarafından görülmeyince (bu şekilde zırhı eli vs gözükmez.) diğer oyuncular görünmez olan oyuncuya vuramıyor. Bunu düzeltebilecek biri belki çıkar diye kodu buraya bırakıyorum. Ayrıca ek olarak görünmez oyuncu herhangi bir şekilde damage yerse veya öldürülürse görünmezliği kalkar.
Kod:on consume of potion of invisibility: cancel event set {gorunmezlik::%player%} to true apply invisibility to player for 60 second hide player from all players wait 60 second reveal the player from all players set {gorunmezlik::%player%} to false on damage of player: if {gorunmezlik::%victim%} is true: set {gorunmezlik::%victim%} to false reveal the victim from all players remove invisibility from victim on death of player: if {gorunmezlik::%victim%} is true: set {gorunmezlik::%victim%} to false reveal the victim from all players remove invisibility from victim
EnesBurak#0001
merhaba çalışıyor ama içtikden sonra iksir silinmiyiyor.
on consume of potion of invisibility:
remove potion of invisibility from player's inventory
cancel event
set {gorunmezlik::%player%} to true
apply invisibility to player for 60 second
hide player from all players
wait 60 second
reveal the player from all players
set {gorunmezlik::%player%} to false
on damage of player:
if {gorunmezlik::%victim%} is true:
set {gorunmezlik::%victim%} to false
reveal the victim from all players
remove invisibility from victim
on death of player:
if {gorunmezlik::%victim%} is true:
set {gorunmezlik::%victim%} to false
reveal the victim from all players
remove invisibility from victim
bal10cu
teşekkur ederim sorun cozulmustur konu kilit.Artık iksiri içince iksir envanterinden silinecek.Kod:on consume of potion of invisibility: remove potion of invisibility from player's inventory cancel event set {gorunmezlik::%player%} to true apply invisibility to player for 60 second hide player from all players wait 60 second reveal the player from all players set {gorunmezlik::%player%} to false on damage of player: if {gorunmezlik::%victim%} is true: set {gorunmezlik::%victim%} to false reveal the victim from all players remove invisibility from victim on death of player: if {gorunmezlik::%victim%} is true: set {gorunmezlik::%victim%} to false reveal the victim from all players remove invisibility from victim
Büyük bir topluluğun parçası ol, etkinliklere katıl ve özel hediyeler kazanma şansı yakala!