1
[Ayuda] offline trainer Miér Mayo 06, 2015 12:25 am
Invitado

Invitado
Disculpe que moleste tanto!
Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...
function Player:isPremium()
return self:getPremiumDays() > 0 or configManager.getBoolean(configKeys.FREE_PREMIUM)
end
local statues = {
[18488] = SKILL_SWORD,
[18489] = SKILL_AXE,
[18490] = SKILL_CLUB,
[18491] = SKILL_DISTANCE,
[18492] = SKILL_MAGLEVEL
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local skill = statues[item.itemid]
if not skill then
return false
end
if not player:isPremium() then
player:sendTextMessage(MESSAGE_STATUS_SMALL, Game.getReturnMessage(RETURNVALUE_YOUNEEDPREMIUMACCOUNT))
return true
end
if player:isPzLocked() then
return false
end
doPlayerSetOfflineTrainingSkill(player, skill)
player:remove()
return true
end
Temas similares
Permisos de este foro:
No puedes responder a temas en este foro.
|
|