Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[TuT] Custom Clan Wars! [317!!]

Joined
Jan 23, 2007
Messages
2,605
Reaction score
360
Ok mates, i am kinda bored init lol.
I thought hey, i made a custom clan wars for EvilScape as u might know if u downloaded the server.
And i was thinking, it seems a bit depressing i went through all that for basically nothing as i stopped on 317's now.

So i thought why not release how to add the custom clan wars to your server without having to download EvilScape server.

Im not sure if anyone of you will appreciate this, but heh, i dont care =)

Oooooook lets get started.

IM NOT GOING TO SPOON FEED YOU! You must know where to add all this. If you dont you seriously are stupid lulz...

Step 1:
Right first off your going to need to add a command.
Code:
                 if (command.startsWith("clanwars")) {
                teleportToX = 3304;
                teleportToY = 3123;
                sendMessage("Welcome to Clan Wars! (CLICK CHEST FOR CAPE!)");
                }
This obviously teleports you to the waiting area..

Step 2:
Secondly you are going to need 2 chests and 2 portals.
When you do the command you will see the 2 portals and 2 chests. On on your right with a chest next to it, and one to the left with a chest next to it...
One contains a cape for your clan (A coloured cape) and the other does the same (A different coloured cape)....
Ok for the 2 portals your going to need to add the globalobjects...
Here you go:
Code:
AddGlobalObj(3301, 3127, 4387, 0, 10);
AddGlobalObj(3305, 3127, 4388, 0, 10);

Step 3:
Same with the Chests which give you the capes.
Code:
AddGlobalObj(3300, 3125, 7351, 0, 10);
AddGlobalObj(3306, 3125, 8798, 0, 10);

Step 4:
Ok now we need to add the arenas looks...
You will firstly need to add the surroundings. This place i built in the desert from scratch and was dam complicated, but yeh i have already done it for you.
Here is the surroundings. (I used obelisks, there nice and tall and look great!)
Code:
AddGlobalObj(3266, 3080, 6483, 0, 10);
AddGlobalObj(3266, 3081, 6483, 0, 10);
AddGlobalObj(3266, 3082, 6483, 0, 10);
AddGlobalObj(3266, 3083, 6483, 0, 10);
AddGlobalObj(3266, 3084, 6483, 0, 10);
AddGlobalObj(3266, 3085, 6483, 0, 10);
AddGlobalObj(3266, 3086, 6483, 0, 10);
AddGlobalObj(3266, 3087, 6483, 0, 10);
AddGlobalObj(3266, 3088, 6483, 0, 10);
AddGlobalObj(3266, 3089, 6483, 0, 10);
AddGlobalObj(3266, 3090, 6483, 0, 10);
AddGlobalObj(3266, 3091, 6483, 0, 10);
AddGlobalObj(3266, 3092, 6483, 0, 10);
AddGlobalObj(3266, 3093, 6483, 0, 10);
AddGlobalObj(3266, 3094, 6483, 0, 10);
AddGlobalObj(3266, 3095, 6483, 0, 10);
AddGlobalObj(3266, 3096, 6483, 0, 10);
AddGlobalObj(3266, 3097, 6483, 0, 10);
AddGlobalObj(3266, 3098, 6483, 0, 10);
AddGlobalObj(3266, 3099, 6483, 0, 10);
AddGlobalObj(3266, 3100, 6483, 0, 10);
AddGlobalObj(3266, 3101, 6483, 0, 10);
AddGlobalObj(3266, 3102, 6483, 0, 10);
AddGlobalObj(3266, 3103, 6483, 0, 10);
AddGlobalObj(3266, 3104, 6483, 0, 10);
AddGlobalObj(3266, 3105, 6483, 0, 10);
AddGlobalObj(3266, 3106, 6483, 0, 10);
AddGlobalObj(3266, 3107, 6483, 0, 10);
AddGlobalObj(3266, 3108, 6483, 0, 10);
AddGlobalObj(3266, 3109, 6483, 0, 10);
AddGlobalObj(3266, 3110, 6483, 0, 10);
AddGlobalObj(3266, 3111, 6483, 0, 10);
AddGlobalObj(3266, 3112, 6483, 0, 10);
AddGlobalObj(3266, 3113, 6483, 0, 10);
AddGlobalObj(3266, 3114, 6483, 0, 10);
AddGlobalObj(3266, 3115, 6483, 0, 10);
AddGlobalObj(3266, 3116, 6483, 0, 10);
AddGlobalObj(3266, 3117, 6483, 0, 10);
AddGlobalObj(3266, 3118, 6483, 0, 10);
AddGlobalObj(3266, 3119, 6483, 0, 10);
AddGlobalObj(3266, 3120, 6483, 0, 10);
AddGlobalObj(3266, 3121, 6483, 0, 10);
AddGlobalObj(3266, 3122, 6483, 0, 10);
AddGlobalObj(3266, 3123, 6483, 0, 10);
AddGlobalObj(3265, 3123, 6483, 0, 10);
AddGlobalObj(3264, 3123, 6483, 0, 10);
AddGlobalObj(3263, 3123, 6483, 0, 10);
AddGlobalObj(3262, 3123, 6483, 0, 10);
AddGlobalObj(3261, 3123, 6483, 0, 10);
AddGlobalObj(3260, 3123, 6483, 0, 10);
AddGlobalObj(3259, 3123, 6483, 0, 10);
AddGlobalObj(3258, 3123, 6483, 0, 10);
AddGlobalObj(3257, 3123, 6483, 0, 10);
AddGlobalObj(3256, 3123, 6483, 0, 10);
AddGlobalObj(3255, 3123, 6483, 0, 10);
AddGlobalObj(3254, 3123, 6483, 0, 10);
AddGlobalObj(3253, 3123, 6483, 0, 10);
AddGlobalObj(3252, 3123, 6483, 0, 10);
AddGlobalObj(3251, 3123, 6483, 0, 10);
AddGlobalObj(3250, 3123, 6483, 0, 10);
AddGlobalObj(3250, 3080, 6483, 0, 10);
AddGlobalObj(3251, 3080, 6483, 0, 10);
AddGlobalObj(3252, 3080, 6483, 0, 10);
AddGlobalObj(3253, 3080, 6483, 0, 10);
AddGlobalObj(3254, 3080, 6483, 0, 10);
AddGlobalObj(3255, 3080, 6483, 0, 10);
AddGlobalObj(3256, 3080, 6483, 0, 10);
AddGlobalObj(3257, 3080, 6483, 0, 10);
AddGlobalObj(3258, 3080, 6483, 0, 10);
AddGlobalObj(3259, 3080, 6483, 0, 10);
AddGlobalObj(3260, 3080, 6483, 0, 10);
AddGlobalObj(3261, 3080, 6483, 0, 10);
AddGlobalObj(3262, 3080, 6483, 0, 10);
AddGlobalObj(3263, 3080, 6483, 0, 10);
AddGlobalObj(3264, 3080, 6483, 0, 10);
AddGlobalObj(3265, 3080, 6483, 0, 10);
AddGlobalObj(3250, 3082, 6483, 0, 10);
AddGlobalObj(3250, 3083, 6483, 0, 10);
AddGlobalObj(3250, 3084, 6483, 0, 10);
AddGlobalObj(3250, 3085, 6483, 0, 10);
AddGlobalObj(3250, 3086, 6483, 0, 10);
AddGlobalObj(3250, 3087, 6483, 0, 10);
AddGlobalObj(3250, 3088, 6483, 0, 10);
AddGlobalObj(3250, 3089, 6483, 0, 10);
AddGlobalObj(3250, 3090, 6483, 0, 10);
AddGlobalObj(3250, 3091, 6483, 0, 10);
AddGlobalObj(3250, 3092, 6483, 0, 10);
AddGlobalObj(3250, 3093, 6483, 0, 10);
AddGlobalObj(3250, 3094, 6483, 0, 10);
AddGlobalObj(3250, 3095, 6483, 0, 10);
AddGlobalObj(3250, 3096, 6483, 0, 10);
AddGlobalObj(3250, 3097, 6483, 0, 10);
AddGlobalObj(3250, 3098, 6483, 0, 10);
AddGlobalObj(3250, 3099, 6483, 0, 10);
AddGlobalObj(3250, 3100, 6483, 0, 10);
AddGlobalObj(3250, 3101, 6483, 0, 10);
AddGlobalObj(3250, 3102, 6483, 0, 10);
AddGlobalObj(3250, 3103, 6483, 0, 10);
AddGlobalObj(3250, 3104, 6483, 0, 10);
AddGlobalObj(3250, 3105, 6483, 0, 10);
AddGlobalObj(3250, 3106, 6483, 0, 10);
AddGlobalObj(3250, 3107, 6483, 0, 10);
AddGlobalObj(3250, 3108, 6483, 0, 10);
AddGlobalObj(3250, 3109, 6483, 0, 10);
AddGlobalObj(3250, 3110, 6483, 0, 10);
AddGlobalObj(3250, 3111, 6483, 0, 10);
AddGlobalObj(3250, 3112, 6483, 0, 10);
AddGlobalObj(3250, 3113, 6483, 0, 10);
AddGlobalObj(3250, 3114, 6483, 0, 10);
AddGlobalObj(3250, 3115, 6483, 0, 10);
AddGlobalObj(3250, 3116, 6483, 0, 10);
AddGlobalObj(3250, 3117, 6483, 0, 10);
AddGlobalObj(3250, 3118, 6483, 0, 10);
AddGlobalObj(3250, 3119, 6483, 0, 10);
AddGlobalObj(3250, 3120, 6483, 0, 10);
AddGlobalObj(3250, 3121, 6483, 0, 10);
AddGlobalObj(3250, 3122, 6483, 0, 10);
AddGlobalObj(3259, 3119, 861, 0, 10);
AddGlobalObj(3259, 3085, 860, 0, 10);

Step 5:
Ok now you added the surroundings, lets add all the stuff inside the arena.
There is catapults, A food desk, barricades, walls, broken catapults and flags..
Basically something to make it look Cool...
And again here are the globalobjects:
Code:
AddGlobalObj(3252, 3104, 2153, 0, 10);
AddGlobalObj(3253, 3104, 2153, 0, 10);
AddGlobalObj(3254, 3104, 2153, 0, 10);
AddGlobalObj(3255, 3104, 2153, 0, 10);
AddGlobalObj(3256, 3104, 2153, 0, 10);
AddGlobalObj(3257, 3104, 2153, 0, 10);
AddGlobalObj(3260, 3104, 2153, 0, 10);
AddGlobalObj(3261, 3104, 2153, 0, 10);
AddGlobalObj(3262, 3104, 2153, 0, 10);
AddGlobalObj(3263, 3104, 2153, 0, 10);
AddGlobalObj(3264, 3104, 2153, 0, 10);
AddGlobalObj(3265, 3104, 2153, 0, 10);
AddGlobalObj(3265, 3099, 2153, 0, 10);
AddGlobalObj(3252, 3099, 2153, 0, 10);
AddGlobalObj(3253, 3099, 2153, 0, 10);
AddGlobalObj(3254, 3099, 2153, 0, 10);
AddGlobalObj(3255, 3099, 2153, 0, 10);
AddGlobalObj(3256, 3099, 2153, 0, 10);
AddGlobalObj(3257, 3099, 2153, 0, 10);
AddGlobalObj(3260, 3099, 2153, 0, 10);
AddGlobalObj(3261, 3099, 2153, 0, 10);
AddGlobalObj(3262, 3099, 2153, 0, 10);
AddGlobalObj(3263, 3099, 2153, 0, 10);
AddGlobalObj(3264, 3099, 2153, 0, 10);
AddGlobalObj(3265, 3099, 2153, 0, 10);
AddGlobalObj(3255, 3110, 4904, -2, 10);
AddGlobalObj(3262, 3092, 4904, 0, 10);
AddGlobalObj(3261, 3106, 863, -2, 10);
AddGlobalObj(3257, 3106, 863, -2, 10);
AddGlobalObj(3261, 3098, 864, 0, 10);
AddGlobalObj(3257, 3098, 864, 0, 10);
AddGlobalObj(3255, 3092, 824, 0, 10);
AddGlobalObj(3256, 3092, 824, 0, 10);
AddGlobalObj(3257, 3092, 824, 0, 10);
AddGlobalObj(3258, 3092, 824, 0, 10);
AddGlobalObj(3263, 3112, 824, -2, 10);
AddGlobalObj(3262, 3112, 824, -2, 10);
AddGlobalObj(3261, 3112, 824, -2, 10);
AddGlobalObj(3260, 3112, 824, -2, 10);
AddGlobalObj(3263, 3117, 3976, -2, 10);
AddGlobalObj(3261, 3117, 3976, -2, 10);
AddGlobalObj(3253, 3084, 3976, 0, 10);
AddGlobalObj(3255, 3084, 3976, 0, 10);
AddGlobalObj(3254, 3121, 4458, 0, 10);
AddGlobalObj(3263, 3085, 4458, 0, 10);

Step 6:
Wow now were really getting somewhere arent we?
Humm not really lolz, you still gotta add it so when you click the chest it gives you stuff..
So here is the click chest, additem code for both chests:
Code:
if(objectID == 7351) {
		addItem(4373, 1);
}
if(objectID == 8798) {
		addItem(4399, 1);
}
This is basically saying, once object id 7351 or 8798 are clicked, it will add the item 4373 or 4399 and only 1.

Step 7:
Omfg, ok we have that done.
Now we need to make it so when you click the portals it will teleport you to your fighting area.
So for both portals here are the codes:
Code:
if (objectID == 4387) {
            if (playerHasItem(1854)) {
                teleportToX = 3258;
                teleportToY = 3084;
            }
             else {
                sendMessage("You need a shantay pass from your clan leader!!");
            }
        }
             if (objectID == 4388) {
            if (playerHasItem(1854)) {
                teleportToX = 3258;
                teleportToY = 3120;
            }
             else {
                sendMessage("You need a shantay pass from your clan leader!!");
            }
        }
Ok to stop people from just going to clan wars and doing stuff you dont want your clan to do. I have made it so you HAVE to have item id 1854 to enter the portals. The item id is shantay pass.
So you MUST have a shantay pass to enable you to go into clan wars portals.

Step 8:
Lolz ok now were actually nearly finished.
Right now we have chest working, teleports working, objects placed..
We need to make it so the tables in clan wars give you food.
So now what you need to do is add this code:
Code:
if(objectID == 4458) {
		addItem(385, 1);
}

Step 9:
Now add the bandages emotes/gfx to your cases:
Code:
case 4049:
deleteItem(4049, GetItemSlot(4049), 1);
NewHP = getLevelForXP(playerXP[3]);
playerLevel[3] = 20;
setSkillLevel(3, 20, playerLevel[3]);
playerGfx(302, 0);
setAnimation(1500);
updateRequired = true;
appearanceUpdateRequired = true;
sendMessage("You are healed at clan wars!.");
break;
Thats basically saying if you use the bandage, it will do all the emotes and gfx it says..

Step 10:
Ok finally!!
Add something like this to make the place attackable.. Im not 100% sure if its the correct one...
Code:
(absY <= 3122 && absY >= 3082 && absX <= 3265 && absX >= 3122)

Note: YOU WILL LOOSE ITEMS IN THIS AREA! BUT IM SURE YOU CAN FIGURE THAT OUT!!!

Okii dokii i think thats all lmao... Would be a good idea to add clan chat to your server, but heh you can do it...

Screenshots:

Joe9099 - [TuT] Custom Clan Wars! [317!!] - RaGEZONE Forums

Joe9099 - [TuT] Custom Clan Wars! [317!!] - RaGEZONE Forums

Joe9099 - [TuT] Custom Clan Wars! [317!!] - RaGEZONE Forums

Joe9099 - [TuT] Custom Clan Wars! [317!!] - RaGEZONE Forums


Credits:
Joe9099

Ps. (If i missed anything please say below!!)
 
Newbie Spellweaver
Joined
Oct 25, 2008
Messages
55
Reaction score
0
Hi Joe, Nice Release, im going to try this.

EDIT: IT WORKS!!!!
 
Newbie Spellweaver
Joined
Oct 26, 2008
Messages
24
Reaction score
1
Ya, what about the flag to carry to other side to score points?
 
Newbie Spellweaver
Joined
Dec 17, 2008
Messages
6
Reaction score
0
Post Some pictures please :D that will help alot for the members that are hesitant to add stuff mostly for newer coders :D
 
Initiate Mage
Joined
Apr 25, 2009
Messages
3
Reaction score
0
what do the stars mean?
It gives me errors. a bunch of ppl have them in their tuts on coords what are they. I'm running a deltascape source.
 
Last edited:
Newbie Spellweaver
Joined
Feb 13, 2009
Messages
49
Reaction score
0
u didnt add the part where u tell them where to put the add global objects

if your using delta what i would do is search for:

public void NewObjects() {

after you have found that put the object under it but rename the first part before the brackets to:

makeglobalobject

-------------
E.G
I would change this:

AddGlobalObj(3252, 3**** 2153, 0, 10);

to this:
makeglobalobject(3252, 3**** 2153, 0, 10);

correct me if im wrong but im pretty sure this is right
 
Last edited:
Initiate Mage
Joined
Jan 9, 2010
Messages
1
Reaction score
0
u didnt add the part where u tell them where to put the add global objects

if your using delta what i would do is search for:

public void NewObjects() {

after you have found that put the object under it but rename the first part before the brackets to:

makeglobalobject

-------------
E.G
I would change this:

AddGlobalObj(3252, 3**** 2153, 0, 10);

to this:
makeglobalobject(3252, 3**** 2153, 0, 10);

correct me if im wrong but im pretty sure this is right

Well that's one of the problem but it's not what he's talking about.

Some of the numbers are starred and causing errors if you look in the codes.

A person would have to manually find those cords to successfully compile it. I'll try and work on it some

EDIT: Most of the numbers go in order from the number above. Other than that just play with the cords. A few don't follow a pattern so either take them out or put in a random cord for now.
 
Last edited:
Back
Top