Go remake script potion lever, removing backpacks and adding a thing: "doPlayerAddItem(cid, potionid, 100)"
Go remake script potion lever, removing backpacks and adding a thing: "doPlayerAddItem(cid, potionid, 100)"
local t = {
[2000] = {7590,100,15000},
[2001] = {7588,100,7000}
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local v = t[item.uid]
if v then
if doPlayerRemoveMoney(cid,v[3]) then
doPlayerAddItem(cid, v[1], v[2])
else
doPlayerSendCancel(cid, "You need " .. v[3] .. " gps to buy this")
end
end
return true
end
<action uniqueid="2000-2001" event="script" value="pots.lua"/>