A Project for Chronicle 4 based on L2JServer.


    TvT and CtF Events

    Share

    G-hamsteR

    Posts : 60
    Join date : 2013-04-26

    TvT and CtF Events

    Post  G-hamsteR on 10th June 2013, 20:49

    Hello,

    How about adding TvT and Capture the Flag events?

    I think it would be great!
    avatar
    DnR
    Admin
    Admin

    Posts : 1023
    Join date : 2012-12-03

    Re: TvT and CtF Events

    Post  DnR on 10th June 2013, 22:22

    G-hamsteR wrote:Hello,

    How about adding TvT and Capture the Flag events?

    I think it would be great!

    Yes, it would. I might take a look at this, once i have free time.
    I'm also trying to invent a new event, but still no ideas.
    avatar
    DanielaCZ

    Posts : 507
    Join date : 2013-01-07
    Age : 27
    Location : Newcastle Upon Tyne

    Re: TvT and CtF Events

    Post  DanielaCZ on 17th June 2013, 20:59

    very nice idea just please fix npc player cant find npc for registration to event. And can someone make a command? like: .tvtjoin .tvtleave .tvtinfo i think is important-
    avatar
    DnR
    Admin
    Admin

    Posts : 1023
    Join date : 2012-12-03

    Re: TvT and CtF Events

    Post  DnR on 17th June 2013, 22:04

    DanielaCZ wrote:very nice idea just please fix npc player cant find npc for registration to event. And  can someone make a command? like: .tvtjoin .tvtleave .tvtinfo i think is important-

    Npc is spawned in peace zone of Coliseum. But you can change its spawn coords in Configs.
    I'll add TvT commands, soon.
    avatar
    DanielaCZ

    Posts : 507
    Join date : 2013-01-07
    Age : 27
    Location : Newcastle Upon Tyne

    Re: TvT and CtF Events

    Post  DanielaCZ on 17th June 2013, 22:53

    In coliseum? and wehere is event? tis is so very crazy :-(
    avatar
    DnR
    Admin
    Admin

    Posts : 1023
    Join date : 2012-12-03

    Re: TvT and CtF Events

    Post  DnR on 17th June 2013, 23:10

    DanielaCZ wrote:In coliseum? and wehere is event?  tis is so very crazy :-(

    Event takes place inside coliseum arena. NPC is not inside arena, but behind door (near broadcasting tower and Arena Manager (CP restore)).
    As i said, you can change its spawn location in configs.
    In the future, i will add more configs, so as to handle team spawns if you wish to start event in a different location.
    avatar
    DanielaCZ

    Posts : 507
    Join date : 2013-01-07
    Age : 27
    Location : Newcastle Upon Tyne

    Re: TvT and CtF Events

    Post  DanielaCZ on 17th June 2013, 23:14

    yes i understant this is nice. But need more protection. Example dualbox, or cp or mp potions etc.. But i am so very happy for this event :-) i am so glad :-P
    avatar
    DnR
    Admin
    Admin

    Posts : 1023
    Join date : 2012-12-03

    Re: TvT and CtF Events

    Post  DnR on 17th June 2013, 23:39

    DanielaCZ wrote:yes i understant this is nice. But need more protection. Example dualbox, or cp or mp potions etc.. But i am so very happy for this event :-) i am so glad :-P

    Potions are not allowed in TvT anymore.
    Added checks to prevent TvT participants from using offline store.
    Players who have the same IP cannot register in TvT Event.
    I couldn' t test IP protection, so i' m awaiting your results Smile.
    avatar
    DanielaCZ

    Posts : 507
    Join date : 2013-01-07
    Age : 27
    Location : Newcastle Upon Tyne

    Re: TvT and CtF Events

    Post  DanielaCZ on 17th June 2013, 23:49

    U are best man! :-) its so very quickly! :-) nice job thanks for your time :-)

    G-hamsteR

    Posts : 60
    Join date : 2013-04-26

    Re: TvT and CtF Events

    Post  G-hamsteR on 18th June 2013, 15:13

    Could you please add another option to give a reward to the looser team too?

    G-hamsteR

    Posts : 60
    Join date : 2013-04-26

    Re: TvT and CtF Events

    Post  G-hamsteR on 18th June 2013, 15:29

    Or if I want to do it, I am in TvTManager.java

    I have found this:
    Code:
    if (_blueTeamKills > _redTeamKills)
            {
                for (L2PcInstance blue : _blueTeam)
                {
                    if (blue == null)
                        continue;

                    blue.addItem("TvTReward", Config.TVT_REWARD, Config.TVT_REWARD_COUNT, null, true);
                   
                }
            }

    If I want to add 1 quantity of the rewarded item to the loser team, can I make it like this?
    Code:
    if (_blueTeamKills > _redTeamKills)
            {
                for (L2PcInstance blue : _blueTeam)
                {
                    if (blue == null)
                        blue.addItem("TvTReward", Config.TVT_REWARD, 1, null, true);

                    blue.addItem("TvTReward", Config.TVT_REWARD, Config.TVT_REWARD_COUNT, null, true);
                   
                }
            }
    avatar
    DnR
    Admin
    Admin

    Posts : 1023
    Join date : 2012-12-03

    Re: TvT and CtF Events

    Post  DnR on 18th June 2013, 16:52

    Just add the missing parts.

    Code:

            if (_blueTeamKills > _redTeamKills)
            {
                for (L2PcInstance blue : _blueTeam)
                {
                    if (blue == null)
                        continue;

                    blue.addItem("TvTReward", Config.TVT_REWARD, Config.TVT_REWARD_COUNT, null, true);
                }

                for (L2PcInstance red : _redTeam)
                {
                    if (red == null)
                        continue;

                    red.addItem("TvTReward", Config.TVT_REWARD, 1, null, true);
                }
            }
            else if (_redTeamKills > _blueTeamKills)
            {
                for (L2PcInstance red : _redTeam)
                {
                    if (red == null)
                        continue;

                    red.addItem("TvTReward", Config.TVT_REWARD, Config.TVT_REWARD_COUNT, null, true);
                }

                for (L2PcInstance blue : _blueTeam)
                {
                    if (blue == null)
                        continue;

                    blue.addItem("TvTReward", Config.TVT_REWARD, 1, null, true);
                }
            }

    G-hamsteR

    Posts : 60
    Join date : 2013-04-26

    Re: TvT and CtF Events

    Post  G-hamsteR on 18th June 2013, 17:19

    Thank you very much!

    Sponsored content

    Re: TvT and CtF Events

    Post  Sponsored content


      Current date/time is 26th September 2017, 13:51