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

Using Commands

xTremoxx

domasturb(cid, genital)
Joined
Aug 11, 2007
Messages
418
Reaction score
6
Location
Brazil
who i use comamand:

doPlayerAddItem

to add item in container(bag, backpack etc) located on ammo slot??

example: player open chest and item go to backpack located in ammo slot ... i need this script because in my server have one backpack in ammo slot and player can't move or drop. And some itens player can't move and drop too, and when player open chest i need this items go to backpack in ammo slot. please help !! and sorry for my bad english. :thumbup:
 
Example
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.actionid >= 12361 then
		local reward = 0
		if item.actionid == 12361 then
			reward = doCreateItemEx(1990,1)
			doAddContainerItem(reward, 7372, 1)
			doAddContainerItem(reward, 6569, 10)
			doAddContainerItem(reward, 6574, 1)
			doAddContainerItem(reward, 2114, 1)

So
reward = doCreateItemEx(1990,1)
&
doAddContainerItem(reward, 6574, 1)
 
Back
Top