Register for your free account! | Forgot your password?

You last visited: Today at 03:18

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

Advertisement



Save Guild Enemies/Allies

Discussion on Save Guild Enemies/Allies within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #46
 
elite*gold: 0
Join Date: Sep 2010
Posts: 13
Received Thanks: 0
Thats so gay// I Can Code Simple NPCs to sell ***** , to teleport you to some map or coords and etc , but npc like this ? not really so , Please help me!
†he Knight §olari§ is offline  
Old   #47
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Quote:
Originally Posted by †he Knight §olari§ View Post
Thats so gay// I Can Code Simple NPCs to sell ***** , to teleport you to some map or coords and etc , but npc like this ? not really so , Please help me!
page 1 ---> buttom
Fish* is offline  
Old   #48
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
Quote:
Originally Posted by †he Knight §olari§ View Post
Thats so gay// I Can Code Simple NPCs to sell ***** , to teleport you to some map or coords and etc , but npc like this ? not really so , Please help me!
Beatz released my npc in this thread. Check his posts.
Arcо is offline  
Thanks
1 User
Old   #49
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Quote:
Originally Posted by †he Knight §olari§ View Post
yes he relased it , But It's not for tanels source so...
I Got it converted also.. Looks Like this

Also it's only part but I got error at GC.My.Char.MyGuildAddAlly(Ally); ...
How Can I Add it at the dictonary ...?
whats the exact error
Fish* is offline  
Old   #50
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
For the millionth time, that was a personal void used by me, it is not in the source by default. Just add the name to the dictionary like so;
GC.MyChar.MyGuild.Allies.Add(string, uint);
Arcо is offline  
Thanks
1 User
Old   #51
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
Not trying to be a ****, but go learn some C# via tutorials on the internet before even attempting to code on a source, cause you're just going to run into problems copying and pasting released codes. So go learn some C# for a few weeks, then come back trying all this.

Greets.
Arcо is offline  
Old   #52
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
I already gave you my advice, me nor the community will spoonfeed you every step of the way. We start out that way to give you a good pushstart, now its time for you to start learning on your own.
Arcо is offline  
Old   #53
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
I already told you how.
Now its up to you to take that knowledge into effect.
Arcо is offline  
Old   #54
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
And thats the ignorance that will get you nowhere in life. You think by calling me a "**** *******" people are gonna want to help you? Nope. You just need to start learning on your own.
Arcо is offline  
Old   #55
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Quote:
Originally Posted by †he Knight §olari§ View Post
**** YOU AGAIN I DONT NEED ANYBODY'S HELP !
Quote:
Originally Posted by †he Knight §olari§ View Post
YOU ARE ****** MODERATOR ! NEVER RELASE ANY FIXED THING , ALL WITH ERRORS! AND YOUR ****** REBORN SCRIPTS AND YOUR ****** GUILD ALLIES/ENEMIES THING AND EVERYTHING!
#Reported - Spam and Flaming oh and Double Posting

Dude you are very stupid, flaming a mod is NOT a good idea.

I would also like to add that all of Arco's scripts that I have used or tested work perfect, although for my source they need a bit of editing. Also quite alot of people do NOT release stuff 100% working so people can have the chance to work on it themselves and actually learn something.
.Beatz is offline  
Thanks
2 Users
Old   #56
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,791
Received Thanks: 5,310
Quote:
Originally Posted by †he Knight §olari§ View Post
FUCK YOU AGAIN I DONT NEED ANYBODY'S HELP !
..........orly

Quote:
Originally Posted by †he Knight §olari§ View Post
Where is the dictonary lols ? I Don't understand anything again lol ... Sorry about this eh...
More help pls ? :/
Quote:
Originally Posted by †he Knight §olari§ View Post
oh Cmon Please..My English Doesn't allow me to learn C# so..HEEEELPP!
Quote:
Originally Posted by †he Knight §olari§ View Post
Dude I'm a jerk can't do shit .. I Tried to learn , i even got a book from the internet from C# but still cant learn so.. Please tell me how can I add to the dictonary x(
Well alrighty then.
Herpderp.
Arcо is offline  
Thanks
1 User
Old   #57
 
BitzIn's Avatar
 
elite*gold: 0
Join Date: Jun 2007
Posts: 92
Received Thanks: 4
Quote:
Originally Posted by †he Knight §olari§ View Post
YOU ARE ****** MODERATOR ! NEVER RELASE ANY FIXED THING , ALL WITH ERRORS! AND YOUR ****** REBORN SCRIPTS AND YOUR ****** GUILD ALLIES/ENEMIES THING AND EVERYTHING!
Arco.'s the best mod from wat ive seen his guides are bugless ur the stupid one for not copy and pasting them correctly -.-

Quote:
Originally Posted by †he Knight §olari§ View Post
oh Cmon Please..My English Doesn't allow me to learn C# so..HEEEELPP!
If you cant learn or are not willing to learn it dont bother making a private server and insulting people.

idk if its the right time to request it but can u add tanels source allys and enemies :P
^Just a request
BitzIn is offline  
Thanks
1 User
Old   #58
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Quote:
Originally Posted by Аrco View Post
..........orly





Well alrighty then.
Herpderp.
Fish* is offline  
Old   #59
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Quote:
Originally Posted by †he Knight §olari§ View Post
Korvacs Forever! **** YOU ARCO!
I feel a ban above.

Dude u take the internet to serious.
Fish* is offline  
Old   #60
 
marlyandedsel's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 343
Received Thanks: 21
Hi, this code is not working in my source I am using c# im using tanels source

Quote:
Originally Posted by .Beatz View Post
The NPC you already have should be fine for the allys/enemys just add this code into the NPC under Disband. Not sure if this will work for you but it works for me and has done for a while now. All you should need to do is change a few things.
NOTE! : This is JUST Allys you should be able to work out enemys for yourself.
Code:
#region Ally
                                    if (option == 20)
                                    {
                                        Say("Who would you like to ally?", GC);
                                        Link2("Ally", 21, GC);
                                        Done(30, GC);

                                    }
                                    if (option == 21)
                                        if (GC.MyChar.MyGuild != null && GC.MyChar.GuildRank == MayaCo.Features.GuildRank.GuildLeader)
                                        {
                                            string Ally = ReadString(Data);
                                            foreach (Features.Guild g in Features.Guilds.AllTheGuilds.Values)
                                            {
                                                if (g.GuildName == Ally)
                                                {
                                                    if (g.Creator.Info != null)
                                                    {
                                                        if (g.Creator.Info.MyTeam.Members.Contains(GC.MyChar.EntityID))
                                                        {
                                                            if (!GC.MyChar.MyGuild.Allies.ContainsValue(Ally))
                                                            {
                                                                GC.MyChar.MyGuild.AddAlly(Ally);
                                                                GC.AddSend(Packets.String(g.GuildID, 21, Ally));
                                                                Say(g.GuildName + " is now your ally!", GC);
                                                                Link("Thanks.", 255, GC);
                                                            }
                                                            else
                                                            {
                                                                Say(g.GuildName + " is already your ally.", GC);
                                                                Link("Damn.", 255, GC);
                                                            }
                                                        }
                                                        else
                                                        {
                                                            Say("Make sure the guild leader of the Features guild is in your team.", GC);
                                                            Link("Okay", 255, GC);
                                                        }
                                                    }
                                                }
                                            }
                                            break;
                                        }
                                    #endregion
If this doesn't work for you I will recode it using Tanels source.

can you recode it to a working one, this code is not working to my source.
thanks in advance
marlyandedsel is offline  
Reply


Similar Threads Similar Threads
[Problem]Guild Allies and Enemies
08/16/2010 - CO2 Private Server - 2 Replies
Well after two days of having a go at this, and one day of asking people for help, I finally decided it was time to ask the community for help. Well I am trying to load allies from the Guilds.dat file. They are defined as public Dictionary<uint, string> Allies = new Dictionary<uint, string>(); When something is added to the dictionary its like this. Allies.Add(GuildID, GuildName); Now when saving to the guild.dat file, its saved like this. BW.Write((int)Allies.Count); ...
allies and enemies
03/31/2010 - CO2 Private Server - 1 Replies
Anybody know if Guild Allie and Enemy code is released for LOTF? The status are added, but not codes for npc. And im to lazy to make it, so if is not released ill just leave it untill i got time to make it ^^ Thanks
[Help]Guild Allies
02/14/2010 - CO2 Private Server - 9 Replies
could someone help me with allies this is what i have so far if (MyChar.GuildPosition == 100) { if (MyChar.MyGuild.Allies.Count <= 6) { string Allies = ""; for (int i = 14; i < 14 + Data; i++) { Allies +=...
[Question]Guild Allies
02/02/2010 - CO2 Private Server - 0 Replies
could someone help me with adding allies its for 5017
guild and allies
12/29/2007 - CO2 Weapon, Armor, Effects & Interface edits - 0 Replies
hi all i was thinking does anyone know if its possible to make allie colors yellow and guild green cause i like the green more grtz



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


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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