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

Im Request item not dropable, Rep!

zippy

Member
Joined
Feb 1, 2011
Messages
233
Reaction score
8
I need a script when a player try to drop a item inside this array (2160,2400) will come dosendplaycancel: this item not dropable, but they player can drop it inside dp if that possible. If not doesnt matter only its not dropable on the map.

I will rep the scripter!
 
try that, it's a MOVEMENT!!! so add it in movements
LUA:
local items = {}
for i = 2160, 2400 do
	table.insert(items, i)
end
function onAddItem(cid, moveitem, fromPos, toPos)
if isInArray(items, moveitem.itemid) then
	doPlayerSendCancel(cid, "You cannot drop that item.")
	doRemoveItem(moveitem.uid, 1)
	doPlayerAddItem(cid, moveitem.itemid, 1)
end
end

updated
 
Last edited:
I get this error:

Code:
[18/02/2012 14:12:31] [Error - LuaScriptInterface::loadFile] data/movements/scripts/nodrop.lua:8: 'end' expected (to close 'function' at line 5) near '<eof>'
[18/02/2012 14:12:31] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/nodrop.lua)
[18/02/2012 14:12:31] data/movements/scripts/nodrop.lua:8: 'end' expected (to close 'function' at line 5) near '<eof>'
[18/02/2012 14:12:31] [Error - LuaScriptInterface::loadFile] data/movements/scripts/nodrop.lua:8: 'end' expected (to close 'function' at line 5) near '<eof>'
[18/02/2012 14:12:31] [Warning - Event::loadScript] Cannot load script (data/movements/scripts/nodrop.lua)
[18/02/2012 14:12:31] data/movements/scripts/nodrop.lua:8: 'end' expected (to close 'function' at line 5) near '<eof>'
 
Damn :(, ok could you make this script to me then :/

I have rune named water rune and when i have summoned water elemental in array, when i use this rune on whiril pool which got itemid.

When i have the monster summoned i can use this item to get underwater. When i go underwater i get speical outfit and when i get up with rope it remove that outfit. Please comment if you didnt understand
 
Last edited:
Back
Top