Advertisement
slp13at420

Vip_Talent_Point_Adjuster

Jan 26th, 2013
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.67 KB | None | 0 0
  1. -- upon login this will set your talanet points to a predetermined amount based on acct's Vip level
  2. -- vip1=71 , vip2=71+14 vip2=71+(14*2) vip3=71+(14*3) .......
  3. function Talentadj(event, player)
  4.  
  5. local Checktp = WorldDBQuery("SELECT `talents` FROM logon.accounts WHERE `login` = '"..player:GetAccountName().."';");
  6. local Tp = Checktp:GetColumn(0):GetLong()-- a preset value that talent points should be for acct vip level
  7. -- local Xtp = players current talent point count
  8. player:SetTalentPoints(0, (Tp-Xtp))-- adjusts talent points prime without stacking
  9. player:SetTalentPoints(1, (Tp-Xtp))-- adjusts talent points second without stacking
  10.  
  11. end
  12.  
  13. RegisterServerHook(4, Talentadj)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement