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

Let's learn how to use Remere's !

Status
Not open for further replies.
Do anyone know how to make items unmoveable in the newest remere and tfs 1.1?
I tried the sparkling..it works until someone goes the way with "Browse Field"...
Then u can just drag & drop it out of anything. :(

Any ideas?
 
Do anyone know how to make items unmoveable in the newest remere and tfs 1.1?
I tried the sparkling..it works until someone goes the way with "Browse Field"...
Then u can just drag & drop it out of anything. :(

Any ideas?
I think you can use one of these traps i dunno what they are called.
 
Do anyone know how to make items unmoveable in the newest remere and tfs 1.1?
I tried the sparkling..it works until someone goes the way with "Browse Field"...
Then u can just drag & drop it out of anything. :(

Any ideas?
try setting a action id on them, works for me
 
You say making an object unmovable just add an unused action id. I did but i can still move the items. What should i do? I'm trying to make it possible to not move plants and chairs.
 
Just set a UID... If you do action ids I think it has to be 1000-2000 or something.
 
If your server supports the onMoveItem function then you can use this...

Code:
local unmoveable = {
[1111] = {text = "You cannot move tables."}, 
[1111] = {text = "You cannot move chairs."}
}

function onMoveItem(cid, item, fromPosition, toPosition)
P = unmoveable[item.itemid]

if (not p) then
return true
end


doPlayerSendCancel(cid, P.text)
doTeleportThing(item.uid, fromPosition)
return true
end

set the same AID for any item you don't want moved and put the AID in moveevents.xml
 
If your server supports the onMoveItem function then you can use this...

Code:
local unmoveable = {
[1111] = {text = "You cannot move tables."},
[1111] = {text = "You cannot move chairs."}
}

function onMoveItem(cid, item, fromPosition, toPosition)
P = unmoveable[item.itemid]

if (not p) then
return true
end


doPlayerSendCancel(cid, P.text)
doTeleportThing(item.uid, fromPosition)
return true
end

set the same AID for any item you don't want moved and put the AID in moveevents.xml
Code:
doTeleportThing(item.uid, fromPosition)
Might be better to return effect false, so that the teleport effect isn't shown?
Code:
doTeleportThing(item.uid, fromPosition, false)
 
If you run it false it will send a default cancel saying "You cannot move this item". So if you try to use a special cancel like: You cannot move chairs it will be instantly removed and the cancel "you cannot move this item" will replace it
 
Hey guys, none of the images are loading up for me, is there any up to date guide like this one?
 
Status
Not open for further replies.
Back
Top