kryxkan

sdtscript part 1

Dec 8th, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. options:
  2. maxgrzecznosc: 250 #max punkty niegrzeczności
  3. czekoladki: 10 #ile maksymalnie czekoladek ma być w bombonierce
  4. nazwarudolfa: <red>Rudolf #nazwa wyświetlana Rudolfa
  5. czasrefa: 5 #czas odświeżenia miejsca Rudolfa w sekundach
  6. #kod
  7. on death:
  8. victim is player:
  9. attacker is player:
  10. add 1 to {grzecznosc::%attacker%}
  11. send "Jestes niegrzeczny! Uwazaj, bo bedzie rozga pod choinka!"
  12. command /rudolf:
  13. permission: rudolf
  14. permission message: Nie maz w sobie ducha swiat! Rudolf nie przyjdzie do ciebie!
  15. trigger:
  16. {rudolf::loc} is not set:
  17. spawn wolf
  18. set name of last spawned entity to "{@nazwarudolfa}"
  19. set {rudolf::loc} to location of player
  20. send "Ho, ho, ho! Rudolf cię lubi!"
  21. else:
  22. set {rudolf::loc} to location of player
  23. loop all entities:
  24. loop-entity is wolf named "{@nazwarudolfa}":
  25. teleport loop-entity to player
  26. send "Ho, ho, ho! Rudolf cię lubi!"
  27. every {@czasrefa} seconds:
  28. loop all entities:
  29. loop-entity is wolf named "{@nazwarudolfa}":
  30. teleport loop-entity to {rudolf::loc}
  31. on click on wolf named "{@nazwarudolfa}":
  32. {grzecznosc::%player%} is greather or equal than {@grzecznosc}:
  33. show chest with 3
  34. rows named "Czego potrzebujesz?" to player
  35. format slot 1 of
  36. player with chert named "Bombonierka" to run
  37. "/rudolfwez bombonierka"
Advertisement
Add Comment
Please, Sign In to add comment