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

[HELP] lever quest! rep++

Dramix

New Member
Joined
Jun 26, 2009
Messages
289
Reaction score
1
If this works: when you open the lever, a stone disappear, then when you open chest, so the stone will come back.
Or this: when you open the lever so the stone will disappear 20 minutes later, the stone come back

Rep++ for help :)
 
Bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
bump
 
i said you what you want but in the future respect other member.

For the lever delete the stone:

data\actions\actions.xml
Code:
<action actionid="XXXX" script="stonequest.lua"/>
data\actions\scripts\stonequest.lua
LUA:
local stonepos = {x=999, y=997, z=6, stackpos=1} -- change the position for the position of the stone
	
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.itemid == 1945 then
		doRemoveItem(getThingfromPos(stonepos).uid, 1)
		doTransformItem(item.uid, item.itemid + 1)
	elseif item.itemid == 1946 then
		doCreateItem(1304,1,stonepos)
		doTransformItem(item.uid, item.itemid - 1)
	else
		doPlayerSendCancel(cid,"You can't")
	end
	return true
end

The box with reward/create back the stone:

data\actions\actions.xml
Code:
<action uniqueid="XXXX" script="quests/stonequest.lua"/>
data\actions\scripts\quests\stonequest.lua
LUA:
local stonepos = {x=999, y=997, z=6, stackpos=1} -- change position of the stone

function onUse(cid, item, frompos, item2, topos)

        doCreateItem(1304,1,stonepos)
   	if item.uid == XXXX then -- change for the same uniqueid of actions.xml
   		queststatus = getPlayerStorageValue(cid,53401)
   		if queststatus == -1 then
   			doPlayerSendTextMessage(cid,22,"You have found a ...")
   			doPlayerAddItem(cid,2264,1) -- change the id of item ( here the id of item is 2264 )
   			setPlayerStorageValue(cid,53401,1)
   		else
   			doPlayerSendTextMessage(cid,22,"It is empty.")   		
   		end
	else
		return 0
   	end

   	return 1
end
 
Back
Top