• 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!

Action Runes/Potions Levers 8.6

Bartastkd

Banned User
Joined
Sep 4, 2009
Messages
743
Reaction score
8
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:
Nice Bartastkd!
It's the first script, which working for me.

Thanks!
 
PHP:
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 need "..config.cost.." Gold coins")
            end
    return false
    end
 
In actions with the uniqueids in the script and add the uniqueids to the levers.
 
okey i gone try it

In actions with the uniqueids in the script and add the uniqueids to the levers.
ey @Limos may you msg me on private please? i need some help from you
 
Last edited by a moderator:
Back
Top