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

!eq talkaction

DestinationSer

@echo off
Joined
Mar 7, 2009
Messages
2,806
Solutions
1
Reaction score
675
I want so when a player says
!eq a backpack of id 1988 spawns in hes/her backpack and the items inside the id of them is: 2410, 9811, 9808, 9821, 9814, 9817, 2262 and 25 of id 2160.

Answer fast!

Thanks
 
create eq.lua and paste
Lua:
local items = { -- count only work on stackable items ex: gold,food, etc..
				[1] = {id = 2410, count = 1},  
				[2] = {id = 9811, count = 1},  
				[3] = {id = 9808, count = 1},  
				[4] = {id = 9821, count = 1},  
				[5] = {id = 9814, count = 1},  
				[6] = {id = 9817, count = 1},  
				[7] = {id = 2262 , count = 1},  
				[8] = {id = 2160, count = 25}
}				
local bpId = 1988     -- bp id
function onSay(cid, words, param, channel)
	local bp= doPlayerAddItem(cid,bpId)
	for _,item in ipairs(items) do 
		doAddContainerItem(bp, item.id, item.count)
	end
	return true
end

in talkaction.xml paste
XML:
<talkaction words="!eq" event="script" value="eq.lua"/>
 
Back
Top