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

tfs.2 !hp !mana command

Yuji

Helper
Joined
Mar 18, 2010
Messages
438
Reaction score
33
Location
U.S.A New York
Can some one help me make a !hp command and a !mana comm and or combine them both, just needs to show max hp/mana for the char, I have a high exp server but when i try to make one it crashes lmfao!
 
Enjoy:

Both scripts you request are in one file:
Code:
<talkaction words="!hp" case-sensitive="no" event="script" value="hpmana.lua"/>
<talkaction words="!mana" case-sensitive="no" event="script" value="hpmana.lua"/>

Lua:
local otswe = {
		health = math.random(500, 1000),
		health_text = "Aaah HP",
--////////////////////////--
		mana = math.random(500,1000),
		mana_text = "Aaaah Mana"
}
function onSay(cid, words, param) 
		if words == "!hp" then
				doPlayerAddHealth(cid, otswe.health)
				doCreatureSay(cid,otswe.health_text,TALKTYPE_MONSTER)
			end
		if words == "!mana" then
				doPlayerAddMana(cid, otswe.mana)
				doCreatureSay(cid,otswe.mana_text,TALKTYPE_MONSTER)
			end
		return true
	end

Enjoy!
 
Last edited:
Back
Top