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

Spell Name

xTremoxx

domasturb(cid, genital)
Joined
Aug 11, 2007
Messages
418
Reaction score
6
Location
Brazil
Iam, can you help me? i need this Script for compile..


Player Say: Exura, and say global Text (Orange) Light Healing


Player Say: Utevo Lux and say Global Text (Orange) Light

And Etc Etc..
This script is working in Unline Server, check it please!
 
Example:
Light Healing:
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0.08, 0, 0.33, 0)

function onCastSpell(cid, var)
    doSendAnimatedText(getPlayerPosition(cid),"Healing",TEXTCOLOR_ORANGE)
    return doCombat(cid, combat, var)
end
 
Hi,
if you wanna remove the yellow text above player just follow this steps:

In game.cpp search function Game::playerSaySpell and remove:
return internalCreatureSay(player, SPEAK_SAY, text);

If you want it as Animated text just follow this steps:

Replace the function with :

game.cpp:

Code:
bool Game::playerSaySpell(Player* player, SpeakClasses type, const std::string& text)
{
	if(player->getName() == "Account Manager")
		return internalCreatureSay(player, SPEAK_SAY, text);

	TalkActionResult_t result;
	result = g_talkActions->playerSaySpell(player, type, text);
	if(result == TALKACTION_BREAK)
		return true;

	result = g_spells->playerSaySpell(player, type, text);
	if(result == TALKACTION_BREAK)
    {
        if (g_config.getString(ConfigManager::ANIMATED_SPELLS) == "yes")     
        return internalCreatureSay(player, SPEAK_MONSTER_SAY, text);
        else              
		return internalCreatureSay(player, SPEAK_SAY, text);
		
		}
		
	else if(result == TALKACTION_FAILED)
		return true;
     
	return false;
}

then in configmanager.cpp add:

Code:
m_confString[ANIMATED_SPELLS] = getGlobalString(L, "animatedspells", "no");

above:

Code:
m_confString[FREE_PREMIUM] = getGlobalString(L, "freePremium", "no");

in configmanager.h:

Code:
ANIMATED_SPELLS,
above
Code:
FREE_PREMIUM,

I forget you have to add :

Code:
-- animated spells above player (yes/no)
	animatedspells = "yes"
this in config.lua

It's very simple to make ;)

good luck
 
Last edited:
Back
Top