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

freak15

Professional Hoster
Joined
Dec 31, 2008
Messages
356
Reaction score
2
Location
Sweden
Hello Guys Demon Oak Quest Work On my Realmap 8.42 crying desom newest version.. but after quest when you go to gravestone and click on it nothing happens :S u dont get teleported to reward rome check script

HTML:
<action uniqueid="30330" script="grave_room.lua" />


HTML:
 local roomPos  = {x = 32710, y = 32398, z = 8}

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if item.uid == 30330 then 
	if(getPlayerStorageValue(cid, 20000) == TRUE) and (getPlayerStorageValue(cid, 20001) == TRUE) and (getPlayerStorageValue(cid, 20002) == TRUE) and (getPlayerStorageValue(cid, 20003) == TRUE) then
	   doTeleportThing(cid, roomPos, TRUE)
	   doSendMagicEffect(roomPos, CONST_ME_TELEPORT)
  end
 end
  return TRUE
end

And Here is The Item id On grav

And No Errors In Console
 
Last edited:
First of all..
Code:
<action uniqueid="30330" event="script" value="grave_room.lua" />
And then..
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local roomPos  = {x = 32710, y = 32398, z = 8}
	if item.uid == 30330 then 
		if(getPlayerStorageValue(cid, 20000) == TRUE and getPlayerStorageValue(cid, 20001) == TRUE and getPlayerStorageValue(cid, 20002) == TRUE and getPlayerStorageValue(cid, 20003) == TRUE) then
			doTeleportThing(cid, roomPos, TRUE)
			doSendMagicEffect(roomPos, CONST_ME_TELEPORT)
		end
	end
	return TRUE
end
 
How about this

Code:
room = {x=32716, y=32346, z=7}

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,30) == 1 and getPlayerStorageValue(cid,31) == 1 and getPlayerStorageValue(cid,32) == 1 and getPlayerStorageValue(cid,33) == 1 and getPlayerStorageValue(cid,34) == 1 then
            doTeleportThing(cid,room)
			doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Welcome to Demon Oak Hell.")
        end
		end
 
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local roomPos  = {x = 32701, y = 32201, z = 9}
	if item.uid == 30330 then 
		if(getPlayerStorageValue(cid, 20000) == 1 and getPlayerStorageValue(cid, 20001) == 1 and getPlayerStorageValue(cid, 20002) == 1 and getPlayerStorageValue(cid, 20003) == 1)then
			doTeleportThing(cid, roomPos, TRUE)
			doSendMagicEffect(roomPos, CONST_ME_TELEPORT)
	
		end
	end
	return TRUE
end

-.-
 
Back
Top