Register for your free account! | Forgot your password?

You last visited: Today at 03:41

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release]GuildWar Fix

Discussion on [Release]GuildWar Fix within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
[Release]GuildWar Fix

For lotf

Hello, i will show you how to fix guildwar in lotf.
First open World.cs
Then under:
Code:
public static Hashtable GWScores = new Hashtable();
add this:
Code:
public static bool GW = false;
Now search for: (in World.cs)
Code:
public static void UsingSkill
under it paste:
Code:
        public static void GWOFF(Character User)
        {
            if (User.LocMap == 1038)
            {
                if (GW == false)
                {
                    User.Teleport(1002, 431, 379);
                }
            }
        }
Now open Client.cs
Search for:
Code:
public void Drop()
Then find
Code:
                        if (MyChar.LocMap == 700)
                        {
                            MyChar.CPs += 27;
                            SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                            MyChar.Teleport(1036, 200, 200);
                        }
under it add:
Code:
                        if (MyChar.LocMap == 1038)
                        {
                            if (World.GW == false)
                            {
                                MyChar.Teleport(1002, 431, 379);
                            }
                        }
Now open Entities.cs
and search for:
Code:
World.SendMsgToAll(Winner.GuildName + " has won!", "SYSTEM", 2011);
under it add:
Code:
World.GW = false;
Those codes makes so, when pole is dead all get teleported to twincity and if gw is off and you are in guildwar map when offline, you will be send to twincity.
Now the npc for guildwar
(Thanks to PeTe Ninja for the Random thing)
NPC Talk:
Code:
                            if (CurrentNPC == 600) //Guild Controller
                            {
                                if (World.GW == true)
                                {
                                    SendPacket(General.MyPackets.NPCSay("Would you like to enter Guild Wars?."));
                                    SendPacket(General.MyPackets.NPCLink("Oh Yes Please!", 1));
                                    SendPacket(General.MyPackets.NPCLink("We have won and im GL, so i want the prize!", 2));
                                    SendPacket(General.MyPackets.NPCLink("No No No, It's Too Scary!", 255));//This is only because if you take reward before a new winner comes
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                                else
                                {
                                    SendPacket(General.MyPackets.NPCSay("GuildWar has not started, sorry. If you are GL you can claim your prize."));
                                    SendPacket(General.MyPackets.NPCLink("We have won and im GL, so i want the prize!", 2));
                                    SendPacket(General.MyPackets.NPCLink("Okay sorry.", 255));
                                    SendPacket(General.MyPackets.NPCSetFace(30));
                                    SendPacket(General.MyPackets.NPCFinish());
                                }
                            }
NPC Control:
Code:
                            if (CurrentNPC == 600) // Guild Controller Do
                            {
                                if (Control == 1) // What it does for your Respond
                                {
                                    Random R = new Random(); // New Random
                                    int Nr = R.Next(1, 10); // "Randomally" Picks a number 1-10 
                                    if (Nr == 1) //Random Spot 1
                                    {
                                        MyChar.Teleport(1038, 351, 341);
                                    }
                                    if (Nr == 2) //Random Spot 2
                                    {
                                        MyChar.Teleport(1038, 335, 345);
                                    }
                                    if (Nr == 3) //Random Spot 3
                                    {
                                        MyChar.Teleport(1038, 309, 369);
                                    }
                                    if (Nr == 4) //Random Spot 4
                                    {
                                        MyChar.Teleport(1038, 283, 340);
                                    }
                                    if (Nr == 5) //Random Spot 5
                                    {
                                        MyChar.Teleport(1038, 310, 327);
                                    }
                                    if (Nr == 6) //Random Spot 6
                                    {
                                        MyChar.Teleport(1038, 318, 297);
                                    }
                                    if (Nr == 7) //Random Spot 7
                                    {
                                        MyChar.Teleport(1038, 347, 309);
                                    }
                                    if (Nr == 8) //Random Spot 8
                                    {
                                        MyChar.Teleport(1038, 337, 320);
                                    }
                                    if (Nr == 9) //Random Spot 9
                                    {
                                        MyChar.Teleport(1038, 309, 293);
                                    }
                                    if (Nr == 10) //Random Spot 10
                                    {
                                        MyChar.Teleport(1038, 371, 300);
                                    }
                                }
                                if (Control == 2)
                                {
                                    if (MyChar.MyGuild != null && MyChar.MyGuild == World.PoleHolder && MyChar.GuildPosition == 100 && !MyChar.MyGuild.ClaimedPrize && MyChar.ItemsInInventory < 40)
                                    {
                                        MyChar.AddItem("720028-0-0-0-0-0", 0, (uint)General.Rand.Next(345636635));
                                        MyChar.MyGuild.ClaimedPrize = true;
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("Either the prize has been taken already, your guild has not been victorious the last time or you are not a deputy leader nor guild leader."));
                                        SendPacket(General.MyPackets.NPCLink("Ok.", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                            }
Now you need to add command for GuildWar.
Search for:
Code:
if (Status == 8)
Then add this commands under the other commands: (The command is for start gw)
Code:
                                            if (Splitter[0] == "/gwon")
                                            {
                                                World.GW = true;
                                                World.SendMsgToAll("GuildWar has open, hurry up to the area.", "SYSTEM", 2011);
                                            }
That was all =]
Hope you could use it
N¡ghtMare ?? WooT is offline  
Thanks
6 Users
Old 01/19/2010, 09:32   #2
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
#REMOVED
N¡ghtMare ?? WooT is offline  
Old 01/19/2010, 10:44   #3
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
that is not for loft 5165 rigth? :S
ramix is offline  
Thanks
1 User
Old 01/19/2010, 11:10   #4
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
Is for lotf =]
N¡ghtMare ?? WooT is offline  
Thanks
1 User
Old 01/19/2010, 11:15   #5
 
ramix's Avatar
 
elite*gold: 0
Join Date: Aug 2008
Posts: 272
Received Thanks: 61
ok
ramix is offline  
Old 01/19/2010, 11:18   #6
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
Quote:
Originally Posted by ramix View Post
ok
I would appriciate if you could hit the thanks button =]
N¡ghtMare ?? WooT is offline  
Thanks
1 User
Old 01/19/2010, 18:49   #7
 
elite*gold: 0
Join Date: Sep 2009
Posts: 17
Received Thanks: 0
the guild war fix 5165 yes or no
لعبة الحيا is offline  
Old 01/19/2010, 18:57   #8
 
.Ryu's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
Quote:
Originally Posted by لعبة الحيا View Post
the guild war fix 5165 yes or no
This is for LOTF 5017
.Ryu is offline  
Old 01/19/2010, 23:01   #9
 
gulpi_de_gulat's Avatar
 
elite*gold: 0
Join Date: Mar 2009
Posts: 71
Received Thanks: 40
this is easy to convert 5165 source i think
gulpi_de_gulat is offline  
Old 01/20/2010, 02:03   #10
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quote:
Originally Posted by gulpi_de_gulat View Post
this is easy to convert 5165 source i think
Yeah i used hes Random teleporting on the 5165
-Shunsui- is offline  
Old 01/20/2010, 03:18   #11
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
ya is easy to fix.
The things i did was
Quote:
-enter gw when is open only
-randomteleport made by PeTe Ninja
-if offline in map, send to tc
-when pole is down all teleport to tc
-command for start gw
N¡ghtMare ?? WooT is offline  
Old 01/20/2010, 05:19   #12
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Well, Glad you released it, Your Random Picking helped me and so i coded MoonBox with it,

Code:
#region MoonBox
                    case 721084:
                        {
                            Random R = new Random(); // New Random
                            int Nr = R.Next(1, 6); // "Randomally" Picks a number 1-6 
                            if (Nr == 1) 
                            {
                                AddItem(111006);//Helm
                                RemoveItem(I);
                            }
                            if (Nr == 2) 
                            {
                                AddItem(112058);//Veil
                                RemoveItem(I);
                            }
                            if (Nr == 3) 
                            {
                                AddItem(720027);//MetScroll
                                RemoveItem(I);
                            }
                            if (Nr == 4)
                            {
                                AddItem(723711);//met Tear Pack
                                RemoveItem(I);
                            }
                            if (Nr == 5) 
                            {
                                AddItem(723700);//Exp Ball
                                RemoveItem(I);
                            }
                            if (Nr == 6) 
                            {
                                AddItem(723584);//Black Tulip
                                RemoveItem(I);
                            }
                            break;
                        }
                    #endregion
-Shunsui- is offline  
Thanks
1 User
Old 01/20/2010, 23:43   #13
 
N¡ghtMare ?? WooT's Avatar
 
elite*gold: 1
Join Date: Dec 2009
Posts: 126
Received Thanks: 17
Quote:
Originally Posted by -Shunsui- View Post
Well, Glad you released it, Your Random Picking helped me and so i coded MoonBox with it,

Code:
#region MoonBox
                    case 721084:
                        {
                            Random R = new Random(); // New Random
                            int Nr = R.Next(1, 6); // "Randomally" Picks a number 1-6 
                            if (Nr == 1) 
                            {
                                AddItem(111006);//Helm
                                RemoveItem(I);
                            }
                            if (Nr == 2) 
                            {
                                AddItem(112058);//Veil
                                RemoveItem(I);
                            }
                            if (Nr == 3) 
                            {
                                AddItem(720027);//MetScroll
                                RemoveItem(I);
                            }
                            if (Nr == 4)
                            {
                                AddItem(723711);//met Tear Pack
                                RemoveItem(I);
                            }
                            if (Nr == 5) 
                            {
                                AddItem(723700);//Exp Ball
                                RemoveItem(I);
                            }
                            if (Nr == 6) 
                            {
                                AddItem(723584);//Black Tulip
                                RemoveItem(I);
                            }
                            break;
                        }
                    #endregion
Also thansk PeTe Ninja, is from his GuildController =]
N¡ghtMare ?? WooT is offline  
Old 01/21/2010, 07:01   #14
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Quote:
Originally Posted by N¡ghtMare ?? WooT View Post
Is for lotf =]

There are 3 different lotfs.
5017
5119
5165

Which one is this for?
Arcо is offline  
Old 01/22/2010, 04:43   #15
 
TheLeGend209's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 157
Received Thanks: 15
Nice Release +++

I used the Teleport INfo for my 5165 :P
TheLeGend209 is offline  
Reply


Similar Threads Similar Threads
GuildWar and SQL Command ?
08/07/2010 - CO2 Private Server - 11 Replies
hello .... what table to controll the guild war ?? like guild war has been started witch shows in da chat ... says some server guild war has been started ... and searched on cq action and didn't found it ... and how to add daily guild war ??
[Release]GuildWar LOTF
07/13/2010 - CO2 PServer Guides & Releases - 7 Replies
I will give you the release of a fixed GW (Some how) for LOTF 5017. First open World.cs then search for: public static Hashtable GWScores = new Hashtable(); under that paste: public static bool GW = false;
Help guildwar problem
08/02/2009 - CO2 Private Server - 9 Replies
http://i947.photobucket.com/albums/ad311/Durian200 998/22430217.jpg when i won the guildwar http://i947.photobucket.com/albums/ad311/Durian20 0998/22482671.jpg when i end the guildwar it says Guildwar has ended winner: COServer_Project.Guild. why is it that its COServer_Project.Guild? its suppose to be the guild winner is the one who will win the GW. Can someone help me with this. Thanks in advanced.
[Help] GuildWar
06/30/2009 - CO2 Private Server - 7 Replies
how do I Make a Guild War in my servver? I Use tq Binaries, I added NPCs like CPAdmin, Translated almost everything but i can't make a GW..:S help me please ;D



All times are GMT +1. The time now is 03:43.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.