View Full Version : Client showing spell effects.
Aonelyn
07-07-2008, 12:02 PM
How do i enable this on my server?
Aonelyn
07-07-2008, 03:33 PM
let me clarify this, When you cast a spell, or get a spell casted on you, how do you see what the spell does to you via client?
trevius
07-07-2008, 04:15 PM
You are wanting the text to appear that describes the effect of the spell once it is cast on you? If so, that is something that happens automatically if you run a Linux server (but it can be turned off on Linux). I don't know how to enable that in Windows, if that is what you are wanting.
If you just want to see the particle effects, all you have to do is "/showspell effects on".
Aonelyn
07-07-2008, 05:10 PM
yeah the linux thing is what i was looking for.
Thanks mate.
Weldarr
09-04-2008, 03:42 AM
You are wanting the text to appear that describes the effect of the spell once it is cast on you? If so, that is something that happens automatically if you run a Linux server (but it can be turned off on Linux). I don't know how to enable that in Windows, if that is what you are wanting.
If you just want to see the particle effects, all you have to do is "/showspell effects on".
Has anyone found a way to enable this for windows?
AndMetal
09-04-2008, 08:21 PM
Has anyone found a way to enable this for windows?
You have to define SPELL_EFFECT_SPAM when compiling zone. In Linux, it is defined in the makefile (http://eqemulator.cvs.sourceforge.net/eqemulator/EQEmuCVS/Source/zone/makefile?view=markup#l_15):
DFLAGS=-DEQDEBUG=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -DFIELD_ITEMS -DCOMBINED -DAPP_OPCODE_SIZE=2 -Di386
I haven't compiled anything in Windows, so I'm not sure what exactly you would need to do in Visual Studio to set this up.
Angelox
09-04-2008, 08:44 PM
You have to define SPELL_EFFECT_SPAM when compiling zone. In Linux, it is defined in the makefile (http://eqemulator.cvs.sourceforge.net/eqemulator/EQEmuCVS/Source/zone/makefile?view=markup#l_15):
DFLAGS=-DEQDEBUG=5 -DCATCH_CRASH -DNO_PIDLOG -DSHAREMEM -DSPELL_EFFECT_SPAM -DFIELD_ITEMS -DCOMBINED -DAPP_OPCODE_SIZE=2 -Di386
I haven't compiled anything in Windows, so I'm not sure what exactly you would need to do in Visual Studio to set this up.
I think there's a post somewhere that says this will not work for windows, or actually nothing will work for windows and this issue -
Secrets
09-06-2008, 07:39 AM
Has anyone found a way to enable this for windows?
I could've sworn you could just go into zone/spells.cpp and #define SPELL_EFFECTS_SPAM
It works the same for windows as it does linux. I haven't tested this, so don't blame me if it goes boom!
AndMetal
09-07-2008, 03:15 AM
I could've sworn you could just go into zone/spells.cpp and #define SPELL_EFFECTS_SPAM
It works the same for windows as it does linux. I haven't tested this, so don't blame me if it goes boom!
It looks like all of the SPELL_EFFECT_SPAM uses are in zone/spell_effects.cpp (http://eqemulator.cvs.sourceforge.net/eqemulator/EQEmuCVS/Source/zone/spell_effects.cpp?view=markup#l_18), so you should be able to add it near the top:
#include "../common/debug.h"
#include "spdat.h"
#include "masterentity.h"
#include "../common/packet_dump.h"
#include "../common/moremath.h"
#include "../common/Item.h"
#include "worldserver.h"
#include "../common/skills.h"
#include "../common/bodytypes.h"
#include "../common/classes.h"
#include "../common/rulesys.h"
#include <math.h>
#include <assert.h>
#ifndef WIN32
#include <stdlib.h>
#include "../common/unix.h"
#endif
#define SPELL_EFFECT_SPAM
Congdar
09-07-2008, 12:39 PM
I had this enabled at one time for windows.
1. In VC2005, right click on the Zone section and select Properties.
2. On the left side of the Zone Property Pages window select the C/C++ Preprocessor section under Configuration Properties.
3. On the right side of the Zone Property Pages window select Preprocessor Settings, these are the compiler settings.
4. Click on the tiny button on the right end of the Preprocessor Settings to open the Preprocessor Definitions window.
5. Edit SPELL_EFFECT_SPAM into its own line at the top of the list of compiler options.
6. Select OK to exit the Preprocessor Definitions window.
7. Select OK to exit the Zone Property Pages window.
8. Rebuild the executables.
trevius
10-02-2008, 12:11 AM
I see that on the most recent SVN builds, the spell effect spam is gone even from Linux. If possible, I think it would be awesome if we could add it back in, but make a new rule to allow it to be turned on or off easily.
I am unsure where this check would come in, since the spell effect spam check is done so many times in the spell_effects.cpp file. Does anyone know where this rule check would go in? Maybe in defining SPELL_EFFECT_SPAM?
if(RuleB(Spells, EnableSpellEffectSpam)){
Once that part is figured out, the only other thing would be to add the actual rule in like this:
ruletypes.h - Add this line to the Spells Category:
RULE_BOOL (Spells, EnableSpellEffectSpam, false) //Enable or Disable spell effect text spam
Then the optional SQL would be this:
Insert into rule_values values (0, 'Spells:EnableSpellEffectSpam', false);
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.