• 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 Help please with a vip script ILL REP!!!!

Next time, post in here for script requests: Requests

LUA:
local config = {
	newpos = {x = XXX, y = XXX, z = XXX},
	remItem = XXXX,
	count = X
	}

function onStepIn(cid, item, position, fromPosition, toPosition, lastPosition, actor)
	if getPlayerItemCount(cid, config.remItem) >= 1 then
		doTeleportThing(cid, config.newpos)
		doPlayerRemoveItem(cid, config.remItem, config.count)
	else
		doPlayerSendCancel(cid, "Not enough tokens.")
        end
	return true
end

Just a guess.
 
Yes, in movements.
Put XXXX actionid in the teleport in the mapeditor.

XML:
<movevent type="StepIn" actionid="XXXX" event="script" value="XXXX.lua"/>
 
Back
Top