PDA

View Full Version : Legendary [Release] [Patchfile] New GM commands: Block .summon, Block .appear - 1 We



Nika
10-02-09, 08:46 PM
Credits: Twisted7 (http://www.************/forums/members/twisted7.html)[/URL]
Twisted's AppearOff/SummonOff GM Commands v1.01


Background Infohttp://i40.tinypic.com/282mk5c.jpg

Hai everyone, this release is a small addition I made to my server's core today and I figured it might be useful to other people.

The owner of the server I develop for accepts donations for GM powers (bad idea, I know) which of course means there are crappy GMs running around all over the place. As the sole developer of the server, GMs would constantly be nagging me when they came across any stupid problem, usually a pressing issue like "lul wats teh dsiplayid for illidan???". Ignoring them sometimes worked, but the persistent ones who thought I just might not have seen their message will then helpfully proceed to .summon or .appear to me, interrupting whatever important work I'm doing for their trivial problem.

But no more! I've gotten fed up with this, so I added these commands. Basically what this patchfile does is add two new GM commands, available to everyone with the "t" access tag, though you can change that. The "t" access tag is the one that lets GMs use .gm on and .gm off.


Usage Info
Here are the commands, like I said, they are available to any GM with the "t" tag.

.gm toggleappear - Toggles allowing other GMs to appear to you.
.gm togglesummon - Toggles allowing other GMs to summon you.

Any GMs with the "az" access tag (aka admins) are unaffected by these commands and can appear to or summon anyone regardless of whether or not they are set.


Installation Instructions
This is the semi-annoying part. This patch was created on ArcEmu revision 2047. The whole point of patchfiles is for them to work with other revisions but if it doesn't want to apply due to conflicts you can just copy and paste the code into the files yourself.

IMPORTANT: You cannot apply this release if you are using a repack. Sorry.

1) Install [URL="http://tortoisesvn.net/downloads"]TortoiseSVN (http://www.************/forums/members/twisted7.html) or some other SVN client, if you don't already have one.
2) Download patchfile, from here (http://leetsoft.net/downloads/appearsummonblock.rar).
3) Right click on the patchfile you downloaded, go to TortoiseSVN->Apply Patch.
4) TortoiseMerge will open and ask you for a folder. Navigate to wherever you have your ArcEmu source code, then select the folder \src and then \arcemu-world. Then hit OK.
5) The FilePatches window will open. Double-click on each file in that window and make sure the changes look good, i.e. no errors or conflicts.
6) Right click anywhere in the File patches window and select Patch all.
7) After it finishes that in about one second, close TortoiseMerge and compile ArcEmu as normal.


Updates
1.02 - February 2, 2009: BUG FIX: Fixed issue where .gm togglesummon and .gm toggleappear both linked to the HandleToggleSummon function. If you have already applied 1.01, just open up Chat.cpp in your server's source and Ctrl+F toggleappear. Then change HandleToggleSummon to HandleToggleAppear.
1.01 - February 2, 2009: Simplified code, there are now two toggle commands instead of four on/off commands. I will add an incremental patchfile soon. In the meantime, if you already used the previous patchfile I posted just revert the files that were modified and then reapply the patch.


Don't have ArcEmu, or does TortoiseMerge show conflicts?
This patchfile doesn't add very much so it's pretty easy to just manually copy/paste the code in yourself. Open up each file in the patch in TortoiseMerge, select the new code highlighted in orange and then copy it into your original file in Visual Studio.

Sorry that this is kinda complex, but hopefully you get it working. If you need help installing it (please read the steps carefully first!) then post here and I'll see what I can do. Or if you want to suggest something for me to add/change, or if you want to report a problem, post here and I'll take a look.

Hope you enjoy these commands, and feel free to check out my SwiftDiscipline GM addon ([Addon Release] [ArcEmu] SwiftDiscipline GM Addon by Twist3d) (http://www.************/forums/programs/158537-addon-release-arcemu-swiftdiscipline-gm-addon-twist3d.html)!

enegue
11-02-09, 04:00 AM
Copied and pasted from *******?

Avidgamer
11-02-09, 07:20 AM
Doesn't matter. It's not on here and Nika gave credits.

So, +rep

halo636
11-02-09, 07:49 AM
nice post nik, might try this in my server, +rep

Nika
11-02-09, 01:12 PM
Thank you very much

Nika
16-02-09, 02:51 PM
Recommend this! For all servers

Avidgamer
17-02-09, 07:47 AM
Yeah, it's 2 very nice commands :)

enegue
20-02-09, 04:35 AM
Whoa, why did Nika get banned?

Avidgamer
20-02-09, 06:30 AM
For being rude to A moderator and some members. It's not allowed and I wanred him multiple times on MSN. Ignored all warnings.