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

Fast help with buying effects

Majeski20

New Member
Joined
Apr 21, 2008
Messages
602
Reaction score
4
Location
Sweden
Hi again.

Could somone change this script?
Make another effect , cuz i got an 8.1 ot and this script doesnt work.
Just make a little more simple effect please.
Now when i buy sds it doesnt say anything , i just get the bp with sds, very boring and maybe some ppls doesnt know they got it.

Thanks in advance.

PHP:
local t = {
	cost = 6000,
	backpack = 2003,
	itemid = 2268,
	charges = 3,
	effect = CONST_ME_GIFT_WRAPS
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if doPlayerRemoveMoney(cid, t.cost) then
		local backpack = doPlayerAddItem(cid, t.backpack, 1)
		for i = 1, 20 do
			doAddContainerItem(backpack, t.itemid, t.charges)
		end
		doCreatureSay(cid, "You bought a backpack of " .. getItemInfo(t.itemid).plural .. " for " .. t.cost .. " gold", TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
		doSendMagicEffect(getThingPos(cid), t.effect)
	else
		doPlayerSendCancel(cid, "You don't have enough money.")
		doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
	end
	return true
end
 
Back
Top