Advertisement
alilp

Wow Eluna Reset talent announcement

Dec 21st, 2015
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.30 KB | None | 0 0
  1. function Resettalents(event, player, msg)
  2. local VIP = AuthDBQuery("SELECT `vip` FROM `account` WHERE `id`='"..player:GetAccountId().."'")
  3. VIP = VIP:GetUInt32(0) --pls add an intiger (11) field with name "vip" to youre account table.
  4. local name = player:GetName()
  5. if(VIP == 1)then
  6. SendWorldMessage("|cff00ff00VIP1|R:{|cffff6060"..name.."|R} Reset his/her talents And got |cffff6060 5|R more talents.")
  7. end
  8. if(VIP == 2)then
  9. SendWorldMessage("|cff00ff00VIP2|R:{|cffff6060"..name.."|R} Reset his/her talents And got |cffff6060 10|R more talents.")
  10. end
  11. if(VIP == 3)then
  12. SendWorldMessage("|cff00ff00VIP3|R:{|cffff6060"..name.."|R} Reset his/her talents And got |cffff6060 15|R more talents.")
  13. end
  14. if(VIP == 4)then
  15. SendWorldMessage("|cff00ff00VIP4|R:{|cffff6060"..name.."|R} Reset his/her talents And got |cffff6060 20|R more talents.")
  16. end
  17. if(VIP == 5)then
  18. SendWorldMessage("|cff00ff00VIP5|R:{|cffff6060"..name.."|R} Reset his/her talents And got |cffff6060 25|R more talents.")
  19. end
  20. if(VIP == 6)then
  21. SendWorldMessage("|cff00ff00VIP6|R:{|cffff6060"..name.."|R} Reset his/her talents And got |cffff6060 30|R more talents.")
  22. end
  23. if(VIP == 7)then
  24. SendWorldMessage("|cff00ff00VIP7|R:{|cffff6060"..name.."|R} Reset his/her talents And got |cffff6060 35|R more talents.")
  25. end
  26. end
  27.  
  28. RegisterPlayerEvent( 17, Resettalents)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement