• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Need !Info Me Script ----> Look V

Bazi

Member
Joined
Oct 24, 2011
Messages
270
Reaction score
8
Location
Germany
Hey i want a Talkaction for !Info Me.

See some Informations Like this:

Max Mana/Max Hp

Current Mana/Current Hp

My Current Level

My Current Reborns

My Current House: If have House

My Current Money

Thank You Very Mutch! =)
 
To max mana and hp:

Code:
function onSay(cid, words, param)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Max HP: "..getCreatureMaxHealth(cid))
end
return TRUE
end

Code:
function onSay(cid, words, param)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Max MP: "..getCreatureMaxMana(cid))
end
return TRUE
end

Current Mana and health:

Code:
function onSay(cid, words, param)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "HP: "..getCreatureHealth(cid))
end
return TRUE
end

Code:
function onSay(cid, words, param)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "MP: "..getCreatureMana(cid))
end
return TRUE
end

Current level:

Code:
function onSay(cid, words, param)
if(param == "") then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Current level: "..getCreatureLevel(cid))
end
return TRUE
end
 
Did this in 5 minutes. Hope this works :)
LUA:
function onSay(cid, words, param)
	local info = {
		[1] = {"Max Mana: ", getCreatureMaxMana(cid)},
		[2] = {"Current Mana: ", getCreatureMana(cid)},
		[3] = {"Max Health: ", getCreatureMaxHealth(cid)},
		[4] = {"Current Health: ", getCreatureHealth(cid)},
		[5] = {"Level: ", getPlayerLevel(cid)},
		[6] = {"Reborn(s): ", getPlayerStorageValue(cid, 21821)},-- Reborn storage (I don't know it)
		[7] = {"Balance: ", getPlayerMoney(cid)}
	}
 
	local h = {"House: ", getHouseByPlayerGUID(getPlayerGUID(cid))}
	if(param == "") then
		for i = 1,#info do
			str = info[i][1] .."".. info[i][2] ..""
			doPlayerSendTextMessage(cid, 19, str)
		end
 
		if(h[2] ~= nil) then
			doPlayerSendTextMessage(cid, 19, h[1] .."".. getHouseName(h[2]) .."")
		else
			doPlayerSendTextMessage(cid, 19, h[1] .."None")
		end
	end
	return true
end
 
Last edited:
How I can make it on popup? Cause it will be better rather send global message

LUA:
function onSay(cid, words, param)
	local info = {
		[1] = {"Max Mana: ", getCreatureMaxMana(cid)},
		[2] = {"Current Mana: ", getCreatureMana(cid)},
		[3] = {"Max Health: ", getCreatureMaxHealth(cid)},
		[4] = {"Current Health: ", getCreatureHealth(cid)},
		[5] = {"Level: ", getPlayerLevel(cid)},
		[6] = {"Reborn(s): ", getPlayerStorageValue(cid, 21821)},-- Reborn storage (I don't know it)
		[7] = {"Balance: ", getPlayerMoney(cid)}
	}
	local h = {"House: ", getHouseByPlayerGUID(getPlayerGUID(cid))}
	
	local str = ""
	if(h[2] ~= nil) then
		str = h[1] .."".. getHouseName(h[2]) .."\n"
	else
		str = h[1] .."None\n"
	end
	
	for i = 1,#info do
		str = str .." ".. info[i][1] .."".. info[i][2] .."\n"
	end
	doPlayerPopupFYI(cid, "\n".. str)
 
	return true
end

There you go.
 
Back
Top