• 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 Writeables and Readables action

Autran

New Member
Joined
Mar 27, 2013
Messages
8
Reaction score
0
Location
Brazil
Hello, here i am again asking for help :$

Well, i've downloaded an old server based on Otserv SVN Version 0.60. It is 8.1 and XML.

What happens with it is that the readables ain't working...

It says that the function "doShowTextWindow" is deprecated... So, i haven't found a substitute, if anyone could help me on this one.

Just for information, the OTB and items.xml are configured well. And here is the script of the readables and writeables:

Code:
function onUse(cid, item, frompos, item2, topos)
   	rw = getItemRWInfo(item.uid)
   	if rw and 1 then
   		if rw and 2 then
   			doShowTextWindow(item.uid,100,1)
   		else
   			doShowTextWindow(item.uid,0,0)
   		end
   	else
   		if item.itemid == 2598 then
   			doShowTextWindow(item.uid,0,0)
   		end
   	end
   
   	return 1
    
   end

The error:
Code:
Lua Script Error: [Action Interface]
data/actions/scripts/rwitems.lua:onUse

luaDoShowTextWindow(). Deprecated function.

Thank you one more time!
 
Back
Top