• 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 7.6 Food

Matti96

Abyss
Joined
Apr 17, 2009
Messages
254
Reaction score
46
Location
Poland/Germany
Hello,
today I got for you:
How to make a voice like Mmmh... when I eat food?
It´s not Really difficult:

go to data\actions\scripts\food.lua
the first data will be:
if item.itemid == 2328 then
food = 96

now paste this down the text"if item.itemid == 2328 then
food = 96"


doPlayerSendTextMessage(cid,22,'enter here the text you want to say if you eat the food')

cid=CharacterID

the characters after cid, is 22...
22=You can only see the text,but You can change it :)

in the end it must look so:
if item.itemid == 2328 then
food = 96
doPlayerSendTextMessage(cid,22,'enter here the text you want to say if you eat the food')


sorry for bad quality
i hope you know now how to do this :D

thx for reading
 
Last edited:
To make character say something use doCreatureSay(), not doPlayerSendTextMessage() ;)
 
For people don't wanna click on pic to waist time at Image~
=
uo0002a.jpg


Edit: This Picture is awful -.-"
 
You can make great picture even using PAINT. Just save your screen in PNG format and that should do the trick.
 
Back
Top