Yes hello, i need help with a new voc /spell the spell is a thief spell it steals money from other players any one got a clue how to do that and a magic prison for druid please somone give me the item.xml list!! (8.4)
ex, where do i type wich items that is going to be add in the bp or something??
doPlayerAddItem(uid, itemid, <optional> count/subtype)
local config =
{
itemid = 2160,
count = 2
}
doPlayerAddItem(cid, config.itemid, config.count)
ex, where do i type wich items that is going to be add in the bp or something??
doPlayerAddItem(uid, itemid, <optional> count/subtype)
local config =
{ cost = 1000, itemid = 12345, countitem = 1, bpid = 64321, insidebp = 7 }
function onUse(cid, item, fromPosition, itemEx, toPosition)
local bp = doPlayerAddItem(cid, config.itemid, config.count)
if item.itemid == 1945 and doPlayerRemoveMoney(cid, config.cost) == 1 then
doAddContainerItem(bp, config.bpid, config.insidebp)
else
doPlayerSendCancel(cid,"Sorry, you don't have enough money!")
end
reurn TRUE
end
Learn to tab noobzor!!!
doPlayerAddItem(bp <-- doesn't need lol.
doPlayerAddItem(cid,
What if the player dont have enough capacitythink about it
doPlayerAddItem(cid <-- add to bp too.
local freecap = getPlayerFreeCap(cid)
local capitem = getItemWeightById(itemid, count)
if capitem <= freecap then