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

Action script onUse Error

Justin123456

New Member
Joined
Mar 24, 2011
Messages
177
Reaction score
4
Hey everyone I keep getting this error whenever I open the book with writing in it that has the id of 1964 and uniqueid 65534, it gives me this error:
Code:
[26/06/2012 14:24:26] [Error - Action Interface] 
[26/06/2012 14:24:26] data/actions/scripts/rwitems.lua:onUse
[26/06/2012 14:24:26] Description: 
[26/06/2012 14:24:26] data/actions/scripts/rwitems.lua:5: attempt to call global 'doShowTextWindow' (a nil value)
[26/06/2012 14:24:26] stack traceback:
[26/06/2012 14:24:26] 	data/actions/scripts/rwitems.lua:5: in function <data/actions/scripts/rwitems.lua:1>

Here's my rwitems script:
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,100,1)
   		end
   	else
   		if item.itemid == 2598 then
   			doShowTextWindow(item.uid,0,0)
   		end
   	end
   
   	return 1
    
   end

I'm using TFS 0.3.6
Thanks everyone! I'll REP whoever helps! :D
 
Okay thanks :D But the text that is in the book is on the map editor, so when I use "doShowTextDialog(cid, item.uid, and the text here)" What should I put where "and the text here" is?
 
Okay thanks :D But the text that is in the book is on the map editor, so when I use "doShowTextDialog(cid, item.uid, and the text here)" What should I put where "and the text here" is?

Man, if it is on the map editor you don't need any script, only put the text capacity on item.xml and write what you want on the map editor
 
Back
Top