Facebook
From Edgy Rhinoceros, 6 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 266
  1. command /postac [<text>] [<text>] [<text>] [<text>]:
  2.         trigger:
  3.                 if arg 1 is "usun":
  4.                         set {fabula::%player%} to false
  5.                         set {fabula::argumenty::1::%player%} to false
  6.                         set {fabula::argumenty::2::%player%} to false
  7.                         set {fabula::argumenty::3::%player%} to false
  8.                         set {fabula::argumenty::4::%player%} to false
  9.                         clear {argument1::%player%}
  10.                         clear {argument2::%player%}
  11.                         clear {argument3::%player%}
  12.                         clear {argument4::%player%}
  13.                         set {fabula::zrobiona::%player%} to false
  14.                         send "&8» &aWyszles ze swojej postaci!"
  15.                         stop
  16.                 if arg 1 is not set:
  17.                         send "&8» &7Postacie ulatwiaja pisanie na czacie, gdy sie jest w fabule!"
  18.                         send "&8» &7Wpisz /postac (nazwa postaci) (wiek) (co robi) (dot. info)"
  19.                         send "&8» &7Aby wyjsc ze swojej postaci, wpisz /postac usun"
  20.                         stop
  21.                 if arg 1 is set:
  22.                         if arg 2 is set:
  23.                                 if arg 3 is set:
  24.                                         if arg 4 is set:
  25.                                                 if {fabula::zrobiona::%player%} is false:
  26.                                                         set {argument1::%player%} to arg 1
  27.                                                         set {argument2::%player%} to arg 2                            
  28.                                                         set {argument3::%player%} to arg 3                            
  29.                                                         set {argument4::%player%} to arg 4
  30.                                                         set {fabula::zrobiona::%player%} to true
  31.                                                         send "&8» &7To twoja postac: &8[I:%arg 1% W:%arg 2% C:%arg 3% DI: %arg 4%]!"                                          
  32.                                                         set {fabula::%player%} to true
  33.                                                         set {fabula::argumenty::4::%player%} to true
  34.                                                         stop
  35.                                                 else:
  36.                                                         send "&8» &7Masz juz fabule!"
  37.                                                         stop
  38.                                         else:
  39.                                                 send "&8» &7To twoja postac: &8[I:%arg 1% W:%arg 2% C:%arg 3%]!"
  40.                                                 set {fabula::%player%} to true
  41.                                                 set {argument3::%player%} to arg 3    
  42.                                                 set {fabula::argumenty::3::%player%} to true
  43.                                                 set {fabula::%player%} to true
  44.                                                 stop
  45.                                 else:
  46.                                         set {argument1::%player%} to arg 1
  47.                                         set {argument2::%player%} to arg 2                            
  48.                                         set {argument3::%player%} to arg 3                            
  49.                                         set {argument4::%player%} to arg 4
  50.                                         set {fabula::%player%} to true
  51.                                         send "&8» &7To twoja postac: &8[I:%arg 1% W:%arg 2%]!"
  52.                                         set {fabula::argumenty::2::%player%} to true
  53.                         else:
  54.                                 send "&8» &7Podaj przynajmniej wiek postaci!"
  55.                                 set {fabula::%player%} to true
  56.                                 stop
  57.  
  58.                 else:
  59.                         send "&8» &7Podaj przynajmniej wiek postaci!"
  60.                         stop
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. on chat:
  68.         if {fabula::%player%} is true:
  69.                 if player has permission "fabula.gracz":
  70.                         if {fabula::argumenty::2::%player%} is true:
  71.                                 if {fabula::argumenty::3::%player%} is true:
  72.                                         if {fabula::argumenty::4::%player%} is true:
  73.                                                 cancel event
  74.                                                 broadcast "&8[I:%{argument1::%player%}% W:%{argument2::%player%}% C:%{argument3::%player%}% DI:%{argument4::%player%}%] &7%player%&8» &7%message%"
  75.                                                 stop
  76.                                         else:
  77.                                                 cancel event
  78.                                                 broadcast "&8[I:%{argument1::%player%}% W:%{argument2::%player%}% C:%{argument3::%player%}%] &7%player%&8» &7%message%"
  79.                                                 stop
  80.                                 else:
  81.                                         cancel event
  82.                                         broadcast "&8[I:%{argument1::%player%}% W:%{argument2::%player%}%] &7%player%&8» &7%message%"
  83.                                         stop
  84.  
  85.                 if player has permission "fabula.vip":
  86.                         if {fabula::argumenty::2::%player%} is true:
  87.                                 if {fabula::argumenty::3::%player%} is true:
  88.                                         if {fabula::argumenty::4::%player%} is true:
  89.                                                 cancel event
  90.                                                 broadcast "&8[I:%{argument1::%player%}% W:%{argument2::%player%}% C:%{argument3::%player%}% DI:%{argument4::%player%}%] &bVIP&8: &7%player%&8» &7%message%"
  91.                                                 stop
  92.                                         else:
  93.                                                 cancel event
  94.                                                 broadcast "&8[I:%{argument1::%player%}% W:%{argument2::%player%}% C:%{argument3::%player%}%] &bVIP&8: &7%player%&8» &7%message%"
  95.                                                 stop
  96.                                 else:
  97.                                         cancel event
  98.                                         broadcast "&8[I:%{argument1::%player%}% W:%{argument2::%player%}%] &bVIP&8: &7%player%&8» &7%message%"
  99.                                         stop