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

Movement StepIn

LucasFerraz

Systems Analyst
Joined
Jun 10, 2010
Messages
2,857
Reaction score
96
Location
Brazil
I got this script
LUA:
function onStepIn(cid, item, pos)

local pos = {x=32861, y=32235, z=9}
local leave = {x=32861, y=32239, z=9}

    if(getPlayerItemCount(cid, 2684) >= 1) then
			doPlayerRemoveItem(cid, 2684, 1)
                        doTeleportThing(cid,pos)
                        doSendMagicEffect({x=32861, y=32239, z=9}, 2)
                        doSendMagicEffect({x=32860, y=32238, z=9}, 2)
                        doSendMagicEffect({x=32860, y=32237, z=9}, 2)
                        doSendMagicEffect({x=32861, y=32236, z=9}, 2)
                        doSendMagicEffect({x=32861, y=32235, z=9}, 2)

elseif(getPlayerItemCount(cid, 2684) < 1) then
			doTeleportThing(cid, leave, CONST_ME_NONE)
			doPlayerSendCancel(cid, "You need a carrot.")
        end

end


imagemkvx.jpg

I got effects but I miss one and I don't know how to do it: "Mjam!"
This function does not fit:
LUA:
doCreatureSay(cid, 'Mjam!', TALKTYPE_ORANGE_1)
 
LUA:
function onStepIn(cid, item, pos, fromPos)
	if isPlayer(cid) then
		if doPlayerRemoveItem(cid, 2684, 1) then
			doTeleportThing(cid, {x=32861, y=32235, z=9})
			doSendMagicEffect({x=32861, y=32239, z=9}, 2)
			doSendMagicEffect({x=32860, y=32238, z=9}, 2)
			doSendMagicEffect({x=32860, y=32237, z=9}, 2)
			doSendMagicEffect({x=32861, y=32236, z=9}, 2)
			doSendMagicEffect({x=32861, y=32235, z=9}, 2)
			doCreatureSay(cid, 'Mjam!', TALKTYPE_ORANGE_1, false, 0, {x=100, y=100, z=7})
		else
			doTeleportThing(cid, {x=32861, y=32239, z=9})
			doPlayerSendCancel(cid, 'You need a carrot.')
		end
	end
end
 
Back
Top