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

Thief!!!

Montuni

New Member
Joined
Mar 6, 2009
Messages
25
Reaction score
0
Location
Sweden
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)
 
ex, where do i type wich items that is going to be add in the bp or something??

doPlayerAddItem(uid, itemid, <optional> count/subtype)

if you want to add items with a bp .

PHP:
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
 
Last edited:
Learn to tab noobzor!!! :)
doPlayerAddItem(bp <-- doesn't need lol.

doPlayerAddItem(cid,

wtf?


What if the player dont have enough capacity :) think about it ;)

doPlayerAddItem(cid <-- add to bp too.



how funny O:

to check cap? lol easy

PHP:
local freecap = getPlayerFreeCap(cid)
local capitem = getItemWeightById(itemid, count)

if capitem <= freecap then

o:
 
Back
Top