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

EXP Door entry for a price

Ghost Creations

Active Member
Joined
Aug 2, 2011
Messages
234
Solutions
1
Reaction score
28
Location
Now in Korat, Thailand
Use a EXP door and have players pay to get thourgh the EXP door. Get to a door, and a sign says Leather Set 10,000 gold coins to enter.
Then you click on the door to enter and it takes 10,000 gold coins from you, If you only have 9,000 gold coins it says you don't have enough gold, come back when you have enough Gold.

I was trying to figure a way to sell Sets accually, you have to pay to get through the door then you get a chest with the set in it.
 
Last edited:
LUA:
local t = {
	[1234] = {{x="x", y="y", z="z"}, 10000}
	--[actionid] = {{if player has the money teleport to}, cost}
	}
function onUse(cid, item, fromPosition, itemEx, toPosition)
local v = t[getItemAttribute(item.uid, 'aid')]
	if doPlayerRemoveMoney(cid, v[2]) then
		doTeleportThing(cid, v[1])
	else
		return doPlayerSendCancel(cid, "Sorry, you need "..v[2].." GPs to go through this door!") and false
	end
return TRUE
end
 
Back
Top