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

Can't enter sewer grate when white skull

Jajjje

New Member
Joined
Feb 21, 2009
Messages
21
Reaction score
0
Hello! I have a problem with my server, for some reason when somone have white skull they cant enter the sewers. Does anyone know how to fix this problem?
 
here is the lua

Code:
local UP_FLOORS = {1386, 3678, 5543, 8599, 10035, 13010}
local FIELDS = {1497, 1499, 11095, 11096}
local DRAW_WELL = 1369

function onUse(cid, item, fromPosition, itemEx, toPosition)
	if(item.itemid == DRAW_WELL and item.actionid ~= 100) then
		return false
	end

	local check = false
	fromPosition.stackpos = STACKPOS_GROUND
	if(isInArray(UP_FLOORS, item.itemid)) then
		fromPosition.z = fromPosition.z - 1
		fromPosition.y = fromPosition.y + 1
		if(doTileQueryAdd(cid, fromPosition, 38) ~= RETURNVALUE_NOERROR) then
			local field = getTileItemByType(fromPosition, ITEM_TYPE_MAGICFIELD)
			if(field.uid == 0 or not isInArray(FIELDS, field.itemid)) then
				fromPosition.y = fromPosition.y - 2
			else
				check = true
			end
		end
	else
		fromPosition.z = fromPosition.z + 1
	end

	if(not check and doTileQueryAdd(cid, fromPosition, 38) ~= RETURNVALUE_NOERROR) then
		local field = getTileItemByType(fromPosition, ITEM_TYPE_MAGICFIELD)
		if(field.uid == 0 or not isInArray(FIELDS, field.itemid)) then
			return false
		end
	end

	local pos, dir = getCreaturePosition(cid), SOUTH
	if(pos.x < fromPosition.x) then
		dir = EAST
	elseif(pos.x == fromPosition.x) then
		if(pos.y == fromPosition.y) then
			dir = getCreatureLookDirection(cid)
		elseif(pos.y > fromPosition.y) then
			dir = NORTH
		end
	elseif(pos.x > fromPosition.x) then
		dir = WEST
	end

	doTeleportThing(cid, fromPosition, false)
	doCreatureSetLookDirection(cid, dir)
	return true
end

Code:
<!-- Teleport (stairs, ladders) -->
	<action itemid="430" event="script" value="other/teleport.lua"/>
	<action itemid="1369" event="script" value="other/teleport.lua"/>
	<action itemid="1386" event="script" value="other/teleport.lua"/>
	<action itemid="3678" event="script" value="other/teleport.lua"/>
	<action itemid="5543" event="script" value="other/teleport.lua"/>
	<action itemid="8580" event="script" value="other/teleport.lua"/>
	<action itemid="8599" event="script" value="other/teleport.lua"/>
	<action itemid="10035" event="script" value="other/teleport.lua"/>
	<action itemid="13010" event="script" value="other/teleport.lua"/>

there are the actions for sewers (430)

Hope this is what you meant by sewers action script.
 
Well, it seems like I cannot go down the sewers when I have attacked a player, like its some kind of protection zone or non pvp sone etc. It works perfectly when i don't have attacked a player and when I got redskull but not the combat from attacking a player. Hope this helps more than what I first wrote :)
 
The sewers is surrounded by a lighblue square here is a pic of it http://4.ii.gl/QvQR5y.png I can't seem to get it away :/

edit:
And nobish as I am... It seems that all items placed on the ground have a light blue shimmer around it...


edit: this is solved, didnt reallise there were non-pvp zones down in the sewers... A big thanks for seleo for trying to help even tho im retarded :p rep++ to you
 
Last edited:
its non pvp zone
check non pvp flag like in this image
mkar1v.jpg
and hold the ctrl key and click in the tile to remove the non pvp flag
 
Back
Top