• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

problema sd rune

Brunobbing

New Member
Joined
Jan 11, 2009
Messages
1
Reaction score
0
amigos tengo un problema con la sd en mi server 8.60 las runas son apilables pero al ocupar 1 se gasta las 100


----- Config -----
local config = {
cost = 15000, -- Price
item_id = 2268, -- Rune/Potion
backpack_id = 2003 -- Backpack
}

local name = getItemNameById(2268) -- 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, 10)
doSendMagicEffect(fromPosition, CONST_ME_GIFT_WRAPS)
doSendAnimatedText(fromPosition, "Comprado", TEXTCOLOR_RED)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Você comprou uma backpack de ".. name .."s por ".. config.cost .." gold.")
for i=1,20 do
doAddContainerItem(bp, config.item_id, 3) -- You can edit this number, it will give shots per rune.
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você precisa de ".. config.cost .." gold para comprar uma backpack de ".. name .."s.")
end
return TRUE
end
 
Te refieres a que cuando tiras 1 se gastan 100 cargas? entonces no deberias mirar en el npc sino en las sources ;)
 
emmm como que el npcno tiene nah ke ver
ve en items.xml y spells.xml

creo ke por ai ta el rumbo de tu problema
y vesi isiste bn al actualizar las sourses de tfs por tu cuenta
por mi parte prefiero esperar a ke salgan las oficiales :D
 
Back
Top