• 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 Comand to a npc open a file

knightxd

Member
Joined
Feb 21, 2009
Messages
211
Reaction score
16
Location
Rio de Janeiro
Is there any way to put an command on lua script that on say something the npc open a file located on my computer?

well, an introduction, i'm creating an offline game, that gives you prizes, i wanna know if its possible to make a npc open a file on my computer, i tried this code but it havn't worked..

anyone have a solution? :thumbup:


local file = io.read('C:\H otserver\data\npc\scripts\test.txt','r')
texto = file:read(-1)
file:close()
 
Back
Top