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

Loading values or information

Cadyan

Well-Known Member
Joined
Mar 30, 2008
Messages
844
Reaction score
63
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

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:
Back
Top