Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. ------------------------------
  2. -- Local settings --
  3. ------------------------------
  4.  
  5. MC_LIST={"Charlover Trampek"} -- list to send private message
  6. LABEL_CONDITION='Exp' -- in this label msg's will sending
  7. GLOBAL_MESSAGE={'go'} -- message to send_.math.random
  8.  
  9. ---------------------------------------
  10. -- Even listener in walker --
  11. ---------------------------------------
  12.  
  13. i,tries=0,30
  14. function read__label(label)
  15. -- Orginaly made by @Rafal, all rights reserved.
  16. if (label==LABEL_CONDITION)then
  17. if tries>0 then
  18. repeat
  19. name=MC_LIST[1+i]
  20. Self.PrivateMessage(name, (GLOBAL_MESSAGE[math.random(1,#GLOBAL_MESSAGE)]))
  21. wait(1000, 1700)
  22. tries,i=tries-1,i+1
  23. until tries==0 or MC_LIST[1+i]==nil
  24. tries,i=30,0
  25. end
  26. end
  27. end
  28. registerEventListener(WALKER_SELECTLABEL, "read__label")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement