Hello, runes/potions levers 8.6(buy with 100 charges):
PHP:
--[[
Rune Script 8.6
By Bartastkd
]]--
local config = {
[7000] = {potion = 2268, cost = 5000,}, -- sudden death rune
[7001] = {potion = 2293, cost = 5000}, -- magic Wall rune
[7002] = {potion = 2278, cost = 5000}, -- paralyze rune
[7003] = {potion = 2269, cost = 10000,}, -- wild growth rune
[7004] = {potion = 2305, cost = 8000,}, -- firebomb rune
[7005] = {potion = 2274, cost = 8000,}, -- avalanche
[7006] = {potion = 2273, cost = 8000,}, -- ultimate healing rune
} -- config end --
function onUse(cid, item, fromPosition, itemEx, toPosition)
local potion = config[item.uid]
if isInArray({1945, 1946}, item.itemid) ~= TRUE then
return TRUE
end
if doPlayerRemoveMoney(cid,potion.cost) == TRUE then
doPlayerAddItem(cid,potion.potion,100)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You Bought " .. getItemNameById(potion.potion) .. "")
else
doPlayerSendCancel(cid, "You Dont Have Money.")
end
return false
end
Last edited: