I was wondering if there is any way to do something along the lines of this:
Mystic 0.2.15
This is to simply cut down script size
Mystic 0.2.15
This is to simply cut down script size
Code:
-- Values Script --
local m_Desc = MESSAGE_INFO_DESCR
local c_Phys = COMBAT_PHYSICALDAMAGE
local c_Blood = CONST_ME_DRAWBLOOD
local m_Red = MESSAGE_STATUS_CONSOLE_RED
local tar = getCreatureTarget(cid)
-- End Script --
Code:
function onCastSpell(cid, var)
loadInformation("values.lua")
if isPlayer(tar) then
doTargetCombatHealth(0, tar, c_Phys, -1, -10, c_Blood)
doPlayerSendTextMessage(cid, m_Desc, '!')
doPlayerSendTextMessage(tar, m_Red, '!')
else
doTargetCombatHealth(0, tar, c_Phys, -1, -10, c_Blood)
end
return true
end
Last edited: