Guest User

Untitled

a guest
Nov 7th, 2012
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. Function Testjens(pUnit, Event)
  2. pUnit:RegisterEvent("Harald_say", 200000, 0)
  3. end
  4.  
  5. function Harald_say(pUnit, Event)
  6. local chance = math.random(1,4)
  7. if(chance == 1) then
  8. pUnit:SendChatMessage(12, 0, "Got some spare change?")
  9. end
  10. if(chance == 2) then
  11. pUnit:SendChatMessage(12, 0, "Mind your own business, pal!")
  12. end
  13. if(chance == 3) then
  14. pUnit:SendChatMessage(12, 0, "Are you looking for a fight, you prick?")
  15. end
  16. if(chance == 4) then
  17. pUnit:SendChatMessage(12, 0, "Come over here!")
  18. end
  19. end
  20.  
  21. function Name_Died(Unit, Event)
  22. Unit:RemoveEvents()
  23. end
  24.  
  25. RegisterUnitEvent(1, 18, "Testjens")
  26. RegisterUnitEvent(1, 4, "Name_Died")
Advertisement
Add Comment
Please, Sign In to add comment