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

Quest and level doors "Rev973" (Trunk)

Status
Not open for further replies.

MartyX

I'm renewing
Joined
Jun 6, 2007
Messages
1,240
Solutions
3
Reaction score
170
Location
El Grullo
GitHub
mattyx14
there is a problem in what are not you the quest to surrender when I click mark make this mistake is not my fault that this compilation

[12/07/2008 20:17:11] data/actions/scripts/quests/quests.lua:4: attempt to call global 'getItemWeight' (a nil value)
[12/07/2008 20:17:11] stack traceback:
[12/07/2008 20:17:11] data/actions/scripts/quests/quests.lua:4: in function <data/actions/scripts/quests/quests.lua:2>

and the level of doors and was posted
 
Last edited:
quests.lua:
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.uid > 1000 and item.uid < 10000 then
		if getPlayerStorageValue(cid, item.uid) == -1 then
					doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'You have found a treasure')
				doPlayerAddItem(cid, item.uid ,1)
				setPlayerStorageValue(cid, item.uid, 1)
		else
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is empty.")
		end
	else
		return FALSE
	end
	return TRUE
end


try this one, I know it is very simple and noobish, but it works xD
 
Because it is getItemWeightById(itemid) now! :blink:
 
I already tryed with getItemWeightById(idemid) and it doent work :> can anybody share perfect working script?
 
Status
Not open for further replies.
Back
Top