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

going down a hole requires a rope.

GhostX

Mapping Board Moderator
Staff member
Board Moderator
Joined
Nov 2, 2011
Messages
6,051
Reaction score
1,817
Location
UK
Twitch
ghostxpr0
Basically as stated in the title. I need a script that when you walk on square with action id: xxxx if you have rope, you drop down the hole, else if no rope, then you get pushed back to previous square and message "I think i should get a rope before i venture down here!"

Fairly simple i guess

Regards
 
Code:
local ropeid = XXXX
local positiontotp = {x=0, y=0, z=0}

function onStepIn(cid, item, pos)

	if(not isPlayer(cid)) then
		return true
	end
	if(getPlayerItemCount(cid, ropeid) == 0) then
		doTeleportThing(cid, positiontotp, TRUE) 
      		doSendMagicEffect(sala,12)
	end
end

Hope it helped :)
 
hmm if i am not mistaken this would teleport player to position if he has a rope.. Isn't there a way i can apply the same Action id to all squares i want and before it does the squares action (e.g. holes) It checks if player has a rope, if so the player can step on the hole/square.
 
Code:
local ropeid = XXXX

function onStepIn(cid, item, pos)
	local position = getCreaturePosition(cid)
	if(not isPlayer(cid)) then
		return true
	end
	if(getPlayerItemCount(cid, ropeid) == 0) then
		doTeleportThing(cid, {x=position.x+2, y=position.y, z=position.z}, TRUE) 
      		doSendMagicEffect(position,12)
	end
end

Btw, big lolsies @ your post on necronia thread ^^
 
I wouldn't mind some rep if it helped you :)
(Btw, even though i don't like loosing my stuff there, those guys are right, server reset is the only possible option to make the server be as it should be)
 
Yh i will rep you when i test :) don't worry :D and well idk, i feel half of the community that have actually spent time getting to where they are will not appreciate a reset and leave. It is just as easy to reset banks to 100k~ if it was higher (is reasonable) and delete all gold from depot.

That was the only issue people seem to have jumped on. The LJ was fixed ages ago so i don't see what the fuss is about.
 
People already made their money out of it. And, to be honest, all imporant things on the server are already messed up. They should have either solved them before the server start, or solve them now and reset the server afterwards.
 
Like i said on the thread though.. Reset balances to a max of 100k. And remove gold from depot.. Economy solved. But i can make 50k profit from a dragon hunt in an hour.. So i don't see a major issue in it.
 
Back
Top