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

Compiling [C++] Combo Auto Detector by Gesior {Help}

Just have to replace this:
Code:
g_game.broadcastMessage(comboNamesList.str(), MSG_STATUS_WARNING);
for this?
Code:
addExhaust(ExhaustType, time);

PS.: Will this add 3 seconds of exaustion for runes and spells?
 
use ::addExhaust(ExhaustType, time); function.
what type of exhaust will the player get ? combat = spell/runes that causes dmg to other players or healing wich ofc is spell/runes/potions that give you healt so if you want combat you write combat and the time is how long time until they can use combat spells.
 
Just have to replace this:
Code:
g_game.broadcastMessage(comboNamesList.str(), MSG_STATUS_WARNING);
for this?
Code:
addExhaust(ExhaustType, time);

PS.: Will this add 3 seconds of exaustion for runes and spells?
 
Remove this line:
g_game.broadcastMessage(comboNamesList.str(), MSG_STATUS_WARNING);

and try replacing:
[cpp]Creature* creature = g_game.getCreatureByID(ccit2->first);
if(creature != NULL)
comboNamesList << ", " << creature->getName();[/cpp]

with:
[cpp]Creature* creature = g_game.getCreatureByID(ccit2->first);
if(Player* player = creature->getPlayer())
player->addExhaust(3*1000, EXHAUST_COMBAT);[/cpp]
 
Thank you! I will test it today :D

I'm getting this error:

`virtual bool RuneSpell::executeUse(Player*, Item*, const PositionEx&, const PositionEx&, bool, uint32_t)':
`NM_ME_STUN' was not declared in this scope
`TEXTCOLOR_GREEN' was not declared in this scope
`NM_ME_CAKE' was not declared in this scope
[Build Error] [obj//spells.o] Error 1
 
Last edited by a moderator:
Back
Top