Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- points={}
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(name, true)
- points[name]=5
- end
- function eventPlayerWon(name)
- points[name]=10
- print("You have gathered 10 points! Your current points are"..points[name])
- end
- function eventMouse(name,x,y)
- if points[name]~=0 then
- tfm.exec.addShamanObject(24,x,y)
- points[name] = points[name] - 1
- print("You have used one spirit! You have "..points[name].." points left!")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment