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

talk action

God Nixez

Member
Joined
Sep 20, 2009
Messages
413
Reaction score
18
m looking for a talkaction that buys bp of runes (is it possible?). For example: !bpsd and you get a bp of sd for an x ammount of money

!bpuh .. the same, but its of uhs.

is anyone able to do this? thanks!! :p
 
LUA:
----------
-- Aveo --
----------

local cost = 6000
local rune = 2268
local name = getItemNameById(rune)

function onSay(cid, item, fromPosition, itemEx, toPosition, param)
       if doPlayerRemoveMoney(cid, cost) == TRUE then
       local container = doPlayerAddItem(cid, 2003, 1)
           doPlayerPopupFYI(cid, "Successfull! buyed 1x backpack of "..name.."")
	          for i=1,20 do
                     doAddContainerItem(container, rune, 3)
                end
                  else
                      doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "You dont have money to buy this, you need "..cost.." gps.")
                     end
                         return FALSE
                          end

Take my script :) Rep++ me ^^
 
Back
Top