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

Lua Problem with HOTA Quest

bivan

New Member
Joined
Dec 18, 2008
Messages
125
Reaction score
1
I'm using a Cykotitan script:
Code:
local config = {
	ids = {from=2335, to=2341},
	storage = 4449,
	item = 2342
}
function onStepIn(cid, item, position, fromPosition)
	if getPlayerStorageValue(cid, config.storage) < 1 then
		for i = config.ids.from, config.ids.to do
			if getPlayerItemCount(cid, i) < 1 then
				failed = true
				break
			end
		end
		if not failed then
			for i = config.ids.from, config.ids.to do
				doPlayerRemoveItem(cid, i, 1)
			end
			local pos = getCreaturePosition(cid)
			doCreateItem(config.item, 1, {x=pos.x, y=pos.y-1, z=pos.z})
			setPlayerStorageValue(cid, config.storage, 1)
		else
			doPlayerSendCancel(cid, "You don't have all the required items.")
		end
	else
		doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You already done this quest.")
	end
end
And select uniqueid at the stone tile before altar stone and put all parts of helmet and is nothing happened. Can somebody help me?
 
Back
Top