[Release]My source...

07/14/2010 20:44 alexz003#211
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.
07/14/2010 21:38 .Beatz#212
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.
07/15/2010 20:56 MonstersAbroad#213
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!
07/16/2010 01:55 pro4never#214
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.
08/05/2010 11:49 .Beatz#215
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. :)
08/05/2010 20:51 pro4never#216
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
08/05/2010 21:36 .Beatz#217
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?
08/06/2010 00:26 Fish*#218
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
08/06/2010 01:22 _DreadNought_#219
1. Thanks for trying
2. Solved a very long time ago.
3. Nope not how it would be done its about 6 more lines.
08/11/2010 21:21 shini221#220
how to add gm/pm here??
08/11/2010 21:38 .Beatz#221
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.
08/12/2010 08:52 shini221#222
Oh alright sorry but can u answer me?
09/08/2010 15:14 mmno#223
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
09/08/2010 17:49 _DreadNought_#224
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...
09/09/2010 03:40 mmno#225
can you give me the best score here for 5095 or 5165 almost no bug please

thnx again