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