1
[Ayuda] Script el Lun Sep 04, 2017 1:47 pm
David16

Nuevo Miembro

¡Gracias!
Tibiaface | Una comunidad Open Tibia donde encontras : mapas, scripts, Otserver, npc y amigos etc ...
----- Config -----
local config = {
cost = 2500, -- Price
item_id = 7591, -- Rune/Potion
backpack_id = 2000 -- Backpack
}
local name = getItemNameById(7591) -- Same as item_id above
----- End Config -----
function onUse(cid, item, fromPosition, itemEx, toPosition)
if doPlayerRemoveMoney(cid, config.cost) == TRUE then
local bp = doPlayerAddItem(cid, config.backpack_id, 1)
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doSendAnimatedText(fromPosition, "Comprado", TEXTCOLOR_BLACK)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "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
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Tu Necesitas ".. config.cost .." Gold Para Comprar Una Backpack De ".. name .."s.")
end
return TRUE
end
xxxx ------> unique id y que tendra que colocar con el rme a la palanca
Permisos de este foro:
No puedes responder a temas en este foro.
|
|