Mira t posteo mis scripts y nombres,
exprate.lua (creaturescript)
y en creaturescript.xml agregue esto
registerCreatureEvent(cid, "exprate")
exprate.lua (creaturescript)
local ex = getPlayerRates(cid)[SKILL__LEVEL]
function onLogin(cid)
if isPremium(cid) == TRUE and getPlayerStorageValue(cid, 12345) == 0 then
setPlayerStorageValue(cid, 12345, 1)
doPlayerSetRate(cid, SKILL__LEVEL, (ex+0.05))
elseif isPremium(cid) == FALSE and getPlayerStorageValue(cid, 12345) == 1 then
doPlayerSetRate(cid, SKILL__LEVEL, (ex-0.05))
setPlayerStorageValue(cid, 12345, 0)
end
return TRUE
end
y en creaturescript.xml agregue esto
registerCreatureEvent(cid, "exprate")