- command /postac [<text>] [<text>] [<text>] [<text>]:
- trigger:
- if arg 1 is "usun":
- set {fabula::%player%} to false
- set {fabula::argumenty::1::%player%} to false
- set {fabula::argumenty::2::%player%} to false
- set {fabula::argumenty::3::%player%} to false
- set {fabula::argumenty::4::%player%} to false
- clear {argument1::%player%}
- clear {argument2::%player%}
- clear {argument3::%player%}
- clear {argument4::%player%}
- set {fabula::zrobiona::%player%} to false
- send "&8» &aWyszles ze swojej postaci!"
- stop
- if arg 1 is not set:
- send "&8» &7Postacie ulatwiaja pisanie na czacie, gdy sie jest w fabule!"
- send "&8» &7Wpisz /postac (nazwa postaci) (wiek) (co robi) (dot. info)"
- send "&8» &7Aby wyjsc ze swojej postaci, wpisz /postac usun"
- stop
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- if arg 4 is set:
- if {fabula::zrobiona::%player%} is false:
- set {argument1::%player%} to arg 1
- set {argument2::%player%} to arg 2
- set {argument3::%player%} to arg 3
- set {argument4::%player%} to arg 4
- set {fabula::zrobiona::%player%} to true
- send "&8» &7To twoja postac: &8[I:%arg 1% W:%arg 2% C:%arg 3% DI: %arg 4%]!"
- set {fabula::%player%} to true
- set {fabula::argumenty::4::%player%} to true
- stop
- else:
- send "&8» &7Masz juz fabule!"
- stop
- else:
- send "&8» &7To twoja postac: &8[I:%arg 1% W:%arg 2% C:%arg 3%]!"
- set {fabula::%player%} to true
- set {argument3::%player%} to arg 3
- set {fabula::argumenty::3::%player%} to true
- set {fabula::%player%} to true
- stop
- else:
- set {argument1::%player%} to arg 1
- set {argument2::%player%} to arg 2
- set {argument3::%player%} to arg 3
- set {argument4::%player%} to arg 4
- set {fabula::%player%} to true
- send "&8» &7To twoja postac: &8[I:%arg 1% W:%arg 2%]!"
- set {fabula::argumenty::2::%player%} to true
- else:
- send "&8» &7Podaj przynajmniej wiek postaci!"
- set {fabula::%player%} to true
- stop
- else:
- send "&8» &7Podaj przynajmniej wiek postaci!"
- stop
- on chat:
- if {fabula::%player%} is true:
- if player has permission "fabula.gracz":
- if {fabula::argumenty::2::%player%} is true:
- if {fabula::argumenty::3::%player%} is true:
- if {fabula::argumenty::4::%player%} is true:
- cancel event
- broadcast "&8[I:%{argument1::%player%}% W:%{argument2::%player%}% C:%{argument3::%player%}% DI:%{argument4::%player%}%] &7%player%&8» &7%message%"
- stop
- else:
- cancel event
- broadcast "&8[I:%{argument1::%player%}% W:%{argument2::%player%}% C:%{argument3::%player%}%] &7%player%&8» &7%message%"
- stop
- else:
- cancel event
- broadcast "&8[I:%{argument1::%player%}% W:%{argument2::%player%}%] &7%player%&8» &7%message%"
- stop
- if player has permission "fabula.vip":
- if {fabula::argumenty::2::%player%} is true:
- if {fabula::argumenty::3::%player%} is true:
- if {fabula::argumenty::4::%player%} is true:
- cancel event
- broadcast "&8[I:%{argument1::%player%}% W:%{argument2::%player%}% C:%{argument3::%player%}% DI:%{argument4::%player%}%] &bVIP&8: &7%player%&8» &7%message%"
- stop
- else:
- cancel event
- broadcast "&8[I:%{argument1::%player%}% W:%{argument2::%player%}% C:%{argument3::%player%}%] &bVIP&8: &7%player%&8» &7%message%"
- stop
- else:
- cancel event
- broadcast "&8[I:%{argument1::%player%}% W:%{argument2::%player%}%] &bVIP&8: &7%player%&8» &7%message%"
- stop