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

i need a little help

webline

New Member
Joined
Dec 20, 2008
Messages
16
Reaction score
0
i need help making an action that makes it when you use a item it summons a creature in a 7.6 client
 
Here's what I came up with for you. And BTW you did post in right spot, Nemo2010 don't know what he's talking about.
Don't know if it'll work on your 7.6 client but should only require a little editing.
Code:
function onUse(cid, item, frompos, item2, topos)
	_spawn = {x=1290, y=479, z=10}
	_monster = "Demon"
	doCreateMonster(_monster, _spawn)
end

Also to Check for item in invtory and remove item

Code:
function onUse(cid, item, frompos, item2, topos)
	local _spawn = {x=1290, y=479, z=10}
	local _monster = "Demon"
	local _item = "2177" -- Life Crystal
	
	if (getPlayerItemCount(cid, _item) >= 1) then
		doCreateMonster(_monster, _spawn)
		doPlayerRemoveItem(cid, _item, 1)
	end
	return true
end
 
Last edited:
Back
Top Bottom