• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

WalkThroughable Players

ELEM3NT

LUA Status: Beginner
Joined
Mar 12, 2009
Messages
191
Reaction score
0
Location
In your room without you knowing.
Hello there people of the OTland community, I am current seeking for a script that makes people able to walk through eachother? It was in one of the new tibia's functions, I think it was out in 8.54? My server is 8.54 and I'm using 0.3.6pl1. I need it because I have this event that is a maze and has alot of 1 way pathways and I don't want people trapping eachother.

>>I already tried adding a new group id (7) and making custom flags and making a script that changes there group id, and it still doesnt work.<<

So please, if anyone can help me, please do so ;]!

PleaseAndThankYou,
ELEM3NT :thumbup:

*I know already made an old thread about this but it wasn't the main request, so I made a new thread to make it the main request.*
Sorry if it's called "double posting" or whatever xD! :*
 
@wesoly136
Thanks for taking your time and looking for them threads but It's still not working... I'm looking for something to make it so like right click lever>then that player can walk through players OR if it's possible make it so like right click>changes PvP mode to No-PvP? Because on my OT, when it's NO-PvP, people can walk through eachother.

So yea, thank you!
ELEM3NT
 
@Lokokota
I put setWorldType(No-PVP) or setWorldType(non-pvp) into my script and I get this error...
LUA:
[23/06/2010 15:39:08] data/actions/scripts/custom/Maze Lever.lua:onUse
[23/06/2010 15:39:08] Description: 
[23/06/2010 15:39:08] data/actions/scripts/custom/Maze Lever.lua:8: attempt to perform arithmetic on global 'no' (a nil value)
[23/06/2010 15:39:08] stack traceback:
[23/06/2010 15:39:08] 	data/actions/scripts/custom/Maze Lever.lua:8: in function <data/actions/scripts/custom/Maze Lever.lua:1>

The script:

LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local outfit = { lookType = 21, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0 }	
	 if item.actionid == 6273 then 
	 
		doSetCreatureOutfit(cid, outfit, 10000*60*1000)
		doSendAnimatedText(getPlayerPosition(cid), "CHEESE!", 78)
		doChangeSpeed(cid, 350 - getCreatureSpeed(cid))
		setWorldType(No-PVP)
		doPlayerSendTextMessage(cid,22,"Please here while the event gets started.")
		doTeleportThing(cid, {x=1742, y=2052, z=7})
end
  end

EDIT: NVM! GOT EVERYTHING WORKING! Just had to change no-pvp to 1. Thank you everyone! Rep++ >:D


Thanks,
ELEM3NT
 
Back
Top