• 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 lua help

Juzzan

New Member
Joined
Jun 10, 2009
Messages
8
Reaction score
0
whats wrong with this script?
Code:
function onStepIn(cid, item, position, fromPosition)
    pos = getCreaturePosition(cid)
    doRemoveItem(item.uid, 1)
    doCreateItem(7454,1,{pos.x + 1, pos.y, pos.z})
    doMoveCreature(cid, 1)
    
	return TRUE
end

function onStepOut(cid, item, position, fromPosition)

end

it's supposed to move player to the right when stepped on, remove item, create item at player pos.x + 1, so player keeps moving to the right.
 
doRemoveItem(item.uid, 1)

You are not telling it what item.uid to remove. I mean, the unique ID of the item. You are just telling it to remove something - but what?

Also, are you getting any errors in your console while stepping on the title?
 
Back
Top