Register for your free account! | Forgot your password?

You last visited: Today at 13:12

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

Advertisement



[Release]My source...

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

Reply
 
Old 07/14/2010, 20:44   #211
 
elite*gold: 0
Join Date: Jun 2007
Posts: 31
Received Thanks: 5
Quote:
Originally Posted by mattyc2580 View Post
In this project there are 2 separate projects. The main game project and the NPCDialogues. You should just need to open the NPCDialogues project and add the NPCs in there. I am not sure as I have not looked at this source in too much detail. Someone feel free to correct me if I am wrong.
But if all the npc's are in a dll, how am i supposed to retrieve them all? when i opened the project up, only 2 npc's were coded.
alexz003 is offline  
Old 07/14/2010, 21:38   #212
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Quote:
Originally Posted by alexz003 View Post
But if all the npc's are in a dll, how am i supposed to retrieve them all? when i opened the project up, only 2 npc's were coded.
well if only 2 NPCs were coded then I would guess yano not that I have used my brain at all but I guess you would have to make some more. Its called from a dll if you update the Dialogues then it will read from that. So just try adding a new NPC and see if that works.
.Beatz is offline  
Old 07/15/2010, 20:56   #213
 
elite*gold: 0
Join Date: May 2010
Posts: 298
Received Thanks: 57
Can someone fix this up for me?
Code:
                #region Firwork EndlessLove
                case 720031:
                    {
                        client.Send([COLOR="Red"]GamePackets.StringPacket[/COLOR](client.Entity.UID, GamePackets.StringPacket.Effect, "firework-1love"));
                        client.Inventory.Remove(item, Game.Enums.ItemUse.Remove);
                        //MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "firework-1love"));
                    }
                    break;
                #endregion
Would be very helpful!
MonstersAbroad is offline  
Old 07/16/2010, 01:55   #214
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Quote:
Originally Posted by alexz003 View Post
But if all the npc's are in a dll, how am i supposed to retrieve them all? when i opened the project up, only 2 npc's were coded.
None of them are coded. You have to do that yourself. It's a BASIC source.
pro4never is offline  
Old 08/05/2010, 11:49   #215
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Anyone still working on this source? If so can someone please help me!
I have been at it for days and can't get mobs to spawn. I have tried different ways.... e.g calling from Sql and txt files neither way works for me and I don't know why.
If anyone can offer me a solution to my problem this would be very grateful.
Also I tried creating mobs the same way portals are loaded and also the same way NPCs are loaded (kind of) couldn't figure it out 100% though.
Currently I am trying to load from txt files again.
Here
This is under LoadPortals in DMaps.cs

and this is in Map.cs

Someone please tel me where I am being very nooby.
Oh btw I know that mob infos are not called yet. I need to figure this out as well.

Looked at many guides and many sources for help but to no avail
Thanks in advance

@Mods and Other epvp users. I posted for help here as it keeps everything about Impulses source in one place and makes it easier for everyone.
.Beatz is offline  
Old 08/05/2010, 20:51   #216
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
Ok so gonna skip over what code you wrote so far and write my own 2c worth...


You need to create something to hold monster variables (look at the character/entity class for examples)

You need to create a dictionary to store spawns (I'd use a spawn key + a dictionary of monsters?)

You need to load them from .txt or sql db (looks like you have that somewhat correct but you are loading spawns... not individual monsters)

You then need to spawn them using a spawn packet (test out a hardcoded spawn packet first.. make sure it works) by running through each monster in the monster spawns db and spawning them (then do something like a bool to say it's alive/spawned so you know for future reference)

You then need a thread to control monster movement/attacking (loop through monsters, check if it's spawned/alive, then check conditions for movement/attacking). If mob is not alive, start a respawn for it (make sure there is a delay or it will respawn as soon as it dies!


Hopefully that answers some questions.

What you have under your map file is the SPAWNS, not the individual monsters
pro4never is offline  
Thanks
1 User
Old 08/05/2010, 21:36   #217
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Quote:
Originally Posted by pro4never View Post
Ok so gonna skip over what code you wrote so far and write my own 2c worth...


You need to create something to hold monster variables (look at the character/entity class for examples)

You need to create a dictionary to store spawns (I'd use a spawn key + a dictionary of monsters?)

You need to load them from .txt or sql db (looks like you have that somewhat correct but you are loading spawns... not individual monsters)

You then need to spawn them using a spawn packet (test out a hardcoded spawn packet first.. make sure it works) by running through each monster in the monster spawns db and spawning them (then do something like a bool to say it's alive/spawned so you know for future reference)

You then need a thread to control monster movement/attacking (loop through monsters, check if it's spawned/alive, then check conditions for movement/attacking). If mob is not alive, start a respawn for it (make sure there is a delay or it will respawn as soon as it dies!


Hopefully that answers some questions.

What you have under your map file is the SPAWNS, not the individual monsters
Thanks for the info I will keep this in mind. I am going to use Sql to call the spawns and mob infos, got the basics of it down just need to work out a few bugs in the code and write the Sql File then I should be good to go. I have taken examples from different sources and managed to code it near enough complete as I say just a few minor bugs and a couple of errors. But nothing that can't be fixed without a little common sense I hope.
@pro4never Any chance I can add you on msn. Just incase I run into minor problems that I can't fix?
.Beatz is offline  
Old 08/06/2010, 00:26   #218
 
elite*gold: 0
Join Date: Feb 2009
Posts: 1,765
Received Thanks: 382
Quote:
Originally Posted by MonstersAbroad View Post
Can someone fix this up for me?
Code:
                #region Firwork EndlessLove
                case 720031:
                    {
                        client.Send([COLOR="Red"]GamePackets.StringPacket[/COLOR](client.Entity.UID, GamePackets.StringPacket.Effect, "firework-1love"));
                        client.Inventory.Remove(item, Game.Enums.ItemUse.Remove);
                        //MyClient.AddSend(Packets.String(MyClient.MyChar.EntityID, 10, "firework-1love"));
                    }
                    break;
                #endregion
Would be very helpful!
Code:
                #region Firwork EndlessLove
                case 720031:
                    {
                        MyClient.Inventory.Remove(item, Game.Enums.ItemUse.Remove);//Dont know about this, in this version
                        GC.AddSend(Packets.String(GC.MyChar.EntityID, 10, "firework-1love"));
                    }
                    break;
                #endregion
Fish* is offline  
Old 08/06/2010, 01:22   #219
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
1. Thanks for trying
2. Solved a very long time ago.
3. Nope not how it would be done its about 6 more lines.
_DreadNought_ is offline  
Old 08/11/2010, 21:21   #220
 
elite*gold: 0
Join Date: Sep 2009
Posts: 36
Received Thanks: 17
how to add gm/pm here??
shini221 is offline  
Old 08/11/2010, 21:38   #221
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
Quote:
Originally Posted by shini221 View Post
how to add gm/pm here??
#Reported - No need for a post and a thread asking the same question.
.Beatz is offline  
Old 08/12/2010, 08:52   #222
 
elite*gold: 0
Join Date: Sep 2009
Posts: 36
Received Thanks: 17
Oh alright sorry but can u answer me?
shini221 is offline  
Old 09/08/2010, 15:14   #223
 
elite*gold: 0
Join Date: Sep 2009
Posts: 103
Received Thanks: 0
is there new updte for this one ? ( i want full server no buge for myself only) i like to play with my country only)

cn some one give me one? please

thnx
mmno is offline  
Old 09/08/2010, 17:49   #224
 
_DreadNought_'s Avatar
 
elite*gold: 28
Join Date: Jun 2010
Posts: 2,226
Received Thanks: 868
Quote:
Originally Posted by shini221
Oh alright sorry but can u answer me?
Use the search button. It's in this thread.

Quote:
Originally Posted by mmno View Post
is there new updte for this one ? ( i want full server no buge for myself only) i like to play with my country only)

cn some one give me one? please

thnx
No, It takes work, time, effort etc...
_DreadNought_ is offline  
Old 09/09/2010, 03:40   #225
 
elite*gold: 0
Join Date: Sep 2009
Posts: 103
Received Thanks: 0
can you give me the best score here for 5095 or 5165 almost no bug please

thnx again
mmno is offline  
Reply


Similar Threads Similar Threads
[RELEASE] [OPEN SOURCE] CE 5.5 Pointer to AutoIt Source-Code
02/13/2011 - AutoIt - 6 Replies
Habe heute erst gemerkt, dass es hier eine AutoIt Sektion gibt xD also poste ich mal mein Programm mit rein. Funktionsweise: 1. in CE Rechtsklick auf den Pointer und auf "Copy" klicken 2. in meinem Programm auf "Code generieren" klicken 3. In euer Scite gehen und einfügen Hier ist der Source Code vom Programm:
[Release]How To Make Tq Source Work + Working Source + Server ByBass + Commands
12/08/2008 - CO2 PServer Guides & Releases - 15 Replies
1: How To Make The Server Work In fact, before other people did not just let ACC now with hi EACC Columbia landing on the settlement of the issue, and the rest is our own how to improve the content of those interested can improve the next. MY MY set and the same. INI MAP INI files and MAP with the client-to-date coverage of the account. server.dat ! And then as long as the client will be able to modify server.dat! 127.0.0.1 192.168.0.1 192.168.1.1 IP。 Please do generally use...



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


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.