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

Is there any way to change the message?

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
Is there any way to change the message? from English to another language?

"You see BLABLABLA"

I think it is this function: onLook...
Example:

Code:
if msg == "You see a "..Monster.."." then
local youSeeMonster = "Voc\ê v\ê um "..Monster.."."
return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "youSeeMonster")
end

if msg == "You see a "..ItemName.."("..ItemAttack..", "..ItemDef..")\n"..ItemOz.."." then
local youSeeMonster = "Voc\ê v\ê uma "..ItemName.."("..ItemAttack..", "..ItemDef..")\n"..ItemOz.."."
return doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "youSeeMonster")
end
 
That's what I thought. Meh.

Offtopic:
Also; how could you execute a recognition of a storage value on sources?
PHP:
	if(player->getStorageValue(key, value))
		// something
	else // optional, you can remove this
		// something else
 
function onLook works with functions, for example

LUA:
function onLook(cid, bla bla bla..)

if(isPlayer(lookThing) then
doPlayerSendTextMessage(cid, 15, "You are looking a player")
end
end
 
function onLook works with functions, for example

LUA:
function onLook(cid, bla bla bla..)

if(isPlayer(lookThing) then
doPlayerSendTextMessage(cid, 15, "You are looking a player")
end
end

Ooo, you are great :thumbup:

PHP:
	if(player->getStorageValue(key, value))
		// something
	else // optional, you can remove this
		// something else

I thought it's:
Code:
int xdd = player->getStorage(key);
xd
 
Back
Top