forked from BlackWolfsDen/Eluna_VIP_System
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathVIP_ResetTP.lua
More file actions
26 lines (22 loc) · 812 Bytes
/
VIP_ResetTP.lua
File metadata and controls
26 lines (22 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-- use local chat "/say #reset"
local command = "#reset"
function VIPresetTP(event, player, message, type, language)
local Paccid = player:GetAccountId()
if(message == command) then
player:ResetTalents()
local Tp = (78+(ACCT[Paccid].Vip*ACCT["SERVER"].Tp_mod))
player:SetFreeTalentPoints(Tp, 0)
player:SetFreeTalentPoints(Tp, 1)
player:SendBroadcastMessage("|cff00cc00All your talents are reset!|r")
return false;
end
end
RegisterPlayerEvent(18, VIPresetTP)
function VIP_reset_comm(event, player, message, type, language)
if(message:lower() == ACCT["SERVER"].Commands) then
player:SendBroadcastMessage("/say "..command.." |cff00cc00To reset your talent points and apply a point bonus.|r")
end
return;
end
RegisterPlayerEvent(18, VIP_reset_comm)
print("Grumbo'z VIP Reset TP loaded.")