Sim Kluimaster, mas preciso do talkactions, eu consegui montar um script 90% funcional, porém ele transfere valores negativos, exemplo: !transfere Druidzinho, -3. Dai o Druidzinho fica com -3 points e quem usou o comando ganha +3 pontos de graça. Creio que alguém conseguirá me ajudar.
Edit --------------
Consegui adaptar sua Script Omega, porém ta com o mesmo problema da minha, o player pode usar o comando com valores negativos
function onSay(cid, words, param)
local param = string.explode(param, ',')
local pts = param[2]
local toPlayer = param[1]
local player_prem_pts = getAccountPoints(cid)
if not pts or not toPlayer then
doPlayerSendCancel(cid, "You need to specify a valid online player and premium days to transfer premium days.")
elseif not tonumber(pts) then
doPlayerSendCancel(cid, "You have to specify a valid number of premium days to transfer.")
elseif player_prem_pts < tonumber(pts) then
doPlayerSendCancel(cid, "You don't have the specified premium days to transfer.")
else
toPlayer = getCreatureByName(toPlayer)
if not isPlayer(toPlayer) then
doPlayerSendCancel(cid, "You have to specify a valid online player to transfer premium days.")
else
doAccountRemovePoints(cid, tonumber(pts))
doAccountAddPoints(toPlayer, tonumber(pts))
doPlayerSendTextMessage(cid, 27, "You have sucessfully transfered ".. pts .." premium days.")
doPlayerSendTextMessage(toPlayer, 27, getCreatureName(cid).." has transfered "..pts.." premium days for your account.")
end
end
return true
end
Exemplo:
ADM -> !transfere Druidzinha, -6
17:18 You have sucessfully transfered -6 premium points.
Druidzinha -> 17:18 [ADM] has transfered -6 premium points for your account.
17:19 Sua conta possui -6 points. Saiba mais sobre points no site......