• 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 Greetrings in the script.lua?

Ezzz

Developer of Nostalrius and The Violet Project
Joined
Feb 26, 2010
Messages
1,889
Solutions
3
Reaction score
795
Location
Spain, Europe
Hello,

I want to know, how to configure the Hello, and Bye parameters in the script .LUA nor in the .XML.

I know it's by "if msg contains" but. I have no idea how to do it, anyhelp will be appreciated.
 
Lua:
if(msgcontains(msg, 'hi') or msgcontains(msg, 'hello'))then
npcHandler:say('Hello, ' .. getCreatureName(cid) .. '.', cid)
end

And just remove the message_greeting from the .xml file. It should still focus. Same with bye, it should still unfocus.
 
Back
Top