Advertisement
Guest User

Untitled

a guest
Feb 15th, 2014
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.53 KB | None | 0 0
  1. --[[
  2. task2 :
  3. When running the script, make it that the first item spawned by the shaman will be removed after 3 seconds.
  4. You may not create any other variables or make any functions,
  5. You may only fill the events.
  6. ]]
  7.  
  8. for k,v in pairs(tfm.get.room.playerList) do
  9.     tfm.exec.setShaman(k)
  10. end
  11.  
  12. t = 0
  13. var = {}
  14.  
  15. function eventSummoningEnd(name, otype, x, y, angle, xv, yv, statics)
  16. if t<=0 then
  17. t=7
  18. end
  19. table.insert(var,otype)
  20. end
  21.  
  22. function eventLoop()
  23. t=t-1
  24. if t==1 then
  25. tfm.exec.removeObject(var[1])
  26. t=99999999
  27. end
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement