Onenrico

Sim Meggie

May 22nd, 2016
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. options:
  2. mg: &a&lMegie&7
  3. command /simegie [<text>] [<text>] -a [<text>]:
  4. aliases: sm
  5. trigger:
  6. if arg 1 is "add":
  7. if arg 2 is not set:
  8. send "{@mg} Mau ajarin Meggie Apa %player%?"
  9. send "{@mg} /sm add <Pertanyaan> -a <Jawaban>"
  10. stop
  11. if arg 3 is not set:
  12. send "{@mg} Kalo Ada yang ngomong ""%arg 1%"" Megie harus jawab apa ?"
  13. send "{@mg} /sm add <Pertanyaan> -a <Jawaban>"
  14. stop
  15. remove arg 2 from {mg.input::*} #anti dupli variable
  16. add arg 2 to {mg.input::*}
  17. add arg 3 to {mg.output.%arg 2%::*}
  18. send "{@mg} Sip kakak , Megie akan jawab %arg 3% Jika ada orang bilang %arg 2%"
  19. if arg 1 is "remove":
  20. if arg 2 is not set:
  21. send "{@mg} Mau ngilangin Apa Dari ingatan Meggie %player%?"
  22. send "{@mg} /sm remove <Pertanyaan> -a <Jawaban>"
  23. stop
  24. if arg 3 is not set:
  25. send "{@mg} Kalo Ada yang ngomong ""%arg 1%"" gak harus jawab ?"
  26. send "{@mg} /sm remove <Pertanyaan> -a <Jawaban>"
  27. stop
  28. loop {mg.input::*}:
  29. if "%loop-value%" is "%arg 2%":
  30. loop {mg.output.%loop-value%::*}:
  31. if "%loop-value-2%" is "%arg 3%":
  32. send "{@mg} Oke kakak jawaban %arg 3% telah di hapus kalo ada yang ngomong %arg 2%"
  33. remove arg 3 from {mg.output.%loop-value-1%::*}
  34.  
  35. on chat:
  36. loop {mg.input::*}:
  37. if message contains "%loop-value%":
  38. set {_jawab} to random element out of {mg.output.%loop-value%::*}
  39. broadcast "{@mg} %{_jawab}%"
Advertisement
Add Comment
Please, Sign In to add comment