1
[Actions] chest de addon el Sáb Sep 02, 2017 11:51 am
Miguel Albertto

Miembro

la consola que uso es otxserver tfs 1.3 10.00
gracias

Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...
local config = {
outfit = { ["female"] = 136, ["male"] = 128 },
addons = 3,
name = "Citizen"
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
local outfit = player:getSex() == PLAYERSEX_FEMALE and config.outfit["female"] or config.outfit["male"]
if player:hasOutfit(outfit, config.addons) then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have already obtained the " .. config.addons .. " addons.")
return false
end
player:addOutfitAddon(config.outfit["female"], config.addons)
player:addOutfitAddon(config.outfit["male"], config.addons)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Enjoy your new addons to your " .. config.name .. " outfit!")
player:getPosition():sendMagicEffect(CONST_ME_FIREWORK_YELLOW)
return true
end
Permisos de este foro:
No puedes responder a temas en este foro.