1
[Ayuda] Scritp Miér Sep 06, 2017 2:58 pm
David16

Nuevo Miembro

Si me podrian ayudar con ese error se los agradeceria mucho.
Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...
Cuidado no puede comentar su tema si a ver recibido una respuesta por favor espere a que un moderador le resuelva su problema |
----- Config -----
local config = {
cost = 2500, -- Price
item_id = 7591, -- Rune/Potion
backpack_id = 2000 -- Backpack
}
----- End Config -----
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:removeMoney(config.cost) == TRUE then
local bp = player:addItem(config.backpack_id, 1)
toPosition:sendMagicEffect(CONST_ME_GIFT_WRAPS)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Tu Haz Comprado Una Backpack De ".. name .."s Por ".. config.cost .." Gold.")
for i=1,1 do
doAddContainerItem(bp, config.item_id, 1) -- You can edit this number, it will give shots per rune.
end
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Tu Necesitas ".. config.cost .." Gold Para Comprar Una Backpack De "..ItemType(config.item_id):getName().."s.")
end
return TRUE
end
----- Config -----
local config = {
cost = 2500, -- Price
item_id = 7591 -- Rune/Potion
}
----- End Config -----
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:removeMoney(config.cost) == TRUE then
player:addItem(config.item_id, 100)
toPosition:sendMagicEffect(CONST_ME_GIFT_WRAPS)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Tu Haz Comprado 100 "..ItemType(config.item_id):getName().."s Por ".. config.cost .." Gold.")
else
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Tu Necesitas ".. config.cost .." Gold Para Comprar 100 "..ItemType(config.item_id):getName().."s.")
end
return TRUE
end
Temas similares
Permisos de este foro:
No puedes responder a temas en este foro.
|
|