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

Books with text

Jgarder

Tprogramming Ex-Adm|n
Premium User
Joined
Jun 7, 2007
Messages
355
Reaction score
3
Location
Michigan
im not finding any documentation on anything regarding a book with words..

this is what i want...

a quest box that gives a Book with special writing in it..

this is what i have and it doesnt work


Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

        if item.itemid == 1985 then	
		text = "i love jake"
		doSetItemText(uid,text)
end       
end

i would really like some help on how this all works.. because i want to add special descriptions to items you loot and also books with text in them -.-
 
<action itemid="1985" script="ilovejake.lua" /> <--in your action.xml


function onUse(cid, item, frompos, item2, topos)
doSetItemText(item.uid,"I Love Jake.")

end
end <---- Ilovejake.lua
 
No, it will not work, 2 END's on end ;p

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

        if item.itemid == 1985 then	
		text = "i love jake"
		doSetItemText(item.uid,text)
end       
end
 
now what about making a script that you loot a chest and it gives you a item with text.. anyway to define specific?? even if it defined a special action id for a item i would like it :p
 
Back
Top