Thread: How to add your own custom Clan Wars (317 rsps)

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1 How to add your own custom Clan Wars (317 rsps) 
    Registered Member
    Join Date
    Aug 2011
    Posts
    8
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    I thought hey, i made a custom clan wars for my 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 my server.

    Im not sure if anyone of you will appreciate this.
    Ok lets get started.

    IM NOT GOING TO SPOON FEED YOU! You must know where to add all this.

    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!
    Humm not really lol, 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:
    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:
    Lol 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!!!

    Credits: 75% Mike 25% me!

    I hope this can Help you
     

  2. #2  
    Registered Member Pakku's Avatar
    Join Date
    Mar 2010
    Posts
    1,234
    Thanks given
    127
    Thanks received
    111
    Rep Power
    47
    Use code tags. And this isn't very good clan wars.
     

  3. Thankful users:


  4. #3  
    Registered Member Glenn's Avatar
    Join Date
    May 2011
    Age
    25
    Posts
    333
    Thanks given
    3
    Thanks received
    18
    Rep Power
    0
    Great work I guess. Maybe someone will use it, but I highly doubt it because this is Delta. Anyways, I have a few recommendations for you: Instead of making the players open the chest to get the cape, why not just make it give it to them when they teleport? I'm not familiar with Delta, but I think it would be giveItem(ID, 1).
     

  5. #4  
    Mysteria Developer

    DatguyJay's Avatar
    Join Date
    Mar 2011
    Age
    25
    Posts
    2,134
    Thanks given
    295
    Thanks received
    161
    Rep Power
    212
    this is hit and its in tutorial you need to say were to put it and l2use code tags
     

  6. #5  
    Registered Member
    Join Date
    Aug 2011
    Posts
    8
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    This is a custom mini game so you do not have to add the chest, it was just something I did in my free time for the fun of it.

    Also, this isn't for just delta, this is for all 317's. It's mostly focused at PI.

    But thank you for the suggestions!
     

  7. #6  
    Registered Member
    Join Date
    Dec 2010
    Age
    26
    Posts
    1,186
    Thanks given
    513
    Thanks received
    340
    Rep Power
    35
    IDK how to read unless someone uses code tags. :L

    EDIT: i just realized, i scimmed through the tutorial, is there anything stopping you from attacking your teammates?

    But yeah, nice I guess, i wont be using though.
     

  8. #7  
    Registered Member
    Join Date
    Aug 2011
    Posts
    8
    Thanks given
    0
    Thanks received
    1
    Rep Power
    0
    alright, ill add code tags, i'm new to this forum so I don't really know what those are.
     

  9. #8  
    Registered Member
    Join Date
    Dec 2010
    Age
    26
    Posts
    1,186
    Thanks given
    513
    Thanks received
    340
    Rep Power
    35
    Quote Originally Posted by Fatal D View Post
    alright, ill add code tags, i'm new to this forum so I don't really know what those are.
    [code ], [/code ]

    He's new D:

    He didn't know, at-least he's posting something that could be useful for some people
     

  10. #9  
    Registered Member Pakku's Avatar
    Join Date
    Mar 2010
    Posts
    1,234
    Thanks given
    127
    Thanks received
    111
    Rep Power
    47
    I don't see anything related to clans either.
     

  11. #10  
    Acid Paradox'

    Kidd's Avatar
    Join Date
    Jul 2011
    Posts
    501
    Thanks given
    20
    Thanks received
    41
    Rep Power
    119
    Maybe it will help some people.


    Oh, Really?
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Strp custom clan wars
    By Andrew in forum Show-off
    Replies: 13
    Last Post: 08-11-2010, 01:29 PM
  2. Strp 317 Full custom clan wars
    By Andrew in forum Advertise
    Replies: 2
    Last Post: 08-09-2010, 07:11 PM
  3. Replies: 9
    Last Post: 06-13-2010, 12:41 PM
  4. Replies: 6
    Last Post: 04-12-2010, 11:46 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •