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.
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