|
You last visited: Today at 16:47
Advertisement
[Huge-Release] All-In-One Basic NPC Scripts For The 5165 Source!
Discussion on [Huge-Release] All-In-One Basic NPC Scripts For The 5165 Source! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
01/22/2010, 23:05
|
#16
|
elite*gold: 0
Join Date: Jan 2008
Posts: 25
Received Thanks: 2
|
Thanks for the quick reply hunter.
Well am i forgeting to add something in somewhere?
Im using the rikardo source that alot of people use and all im changing is adding a line in the NPCs txt file in the OldCODB (which makes the NPC appear in my server fine) and im just adding that piece of code to NPCDialog.cs in the "Fixed Source" part, so like am i supposed to add something else somewhere to make the NPC say these things and take these actions?
Like i tried on an already existing and working NPC in the NPCDialog.cs, by just changing what he said, but the NPC just keeps saying what he was originally coded to say, hope im clear :P
appreciate the response
|
|
|
01/22/2010, 23:10
|
#17
|
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 119
|
I wouldent call it a huge release but a good release =P
|
|
|
01/22/2010, 23:14
|
#18
|
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
|
Quote:
Originally Posted by Nolaner
Thanks for the quick reply hunter.
Well am i forgeting to add something in somewhere?
Im using the rikardo source that alot of people use and all im changing is adding a line in the NPCs txt file in the OldCODB (which makes the NPC appear in my server fine) and im just adding that piece of code to NPCDialog.cs in the "Fixed Source" part, so like am i supposed to add something else somewhere to make the NPC say these things and take these actions?
Like i tried on an already existing and working NPC in the NPCDialog.cs, by just changing what he said, but the NPC just keeps saying what he was originally coded to say, hope im clear :P
appreciate the response
|
Only thing i could think of is your not debugging which im not sure if you are or your not but your brackets seem to be in the right place so makes me think you are debugging
|
|
|
01/22/2010, 23:23
|
#19
|
elite*gold: 0
Join Date: Jan 2008
Posts: 25
Received Thanks: 2
|
Hmm well im not sure then i'll just playing around with it until i get it right i guess :P
if i find out what i was doing wrong i'll post it here :P
thanks for the attempt anyway
|
|
|
01/23/2010, 02:40
|
#20
|
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
|
Quote:
Originally Posted by Nolaner
Hmm well im not sure then i'll just playing around with it until i get it right i guess :P
if i find out what i was doing wrong i'll post it here :P
thanks for the attempt anyway 
|
try to do both: (f6 Build) and (f5 Debug) right after you put the NPC in the NPC's text folder in OldCODB then save/exit and then add your code in the C# Compiler and "MAKE SURE" it doesn't have anything underlined in red or any errors...after you've made sure try the first thing I told you to: 1st. (f6 Build) and then (f5 Debug)...all I got atm but HEY! I'm a starter too so I'm glad you're learning! keep it up!
|
|
|
01/23/2010, 02:45
|
#21
|
elite*gold: 0
Join Date: Oct 2007
Posts: 181
Received Thanks: 68
|
You know the letter 'I' by itself must be capitalized at all time including " I' " (apostrophe I).
|
|
|
01/23/2010, 21:32
|
#22
|
elite*gold: 0
Join Date: Jan 2008
Posts: 25
Received Thanks: 2
|
Quote:
Originally Posted by killersub
|
hey thanks alot for the idea killersub i actually got it working, i was always getting these errors in the NPCDialog.cs but the source was running fine, so i never looked into it because i thought it was just one badly coded NPC (plus i didnt wanna touch it incase i ruined the server completely) but i made a backup and just debugged all the errors and bam worked like a charm so thank you and also everyone else that added they're ideas much appreciated
|
|
|
01/24/2010, 16:40
|
#23
|
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
|
Quote:
Originally Posted by Nolaner
hey thanks alot for the idea killersub i actually got it working, i was always getting these errors in the NPCDialog.cs but the source was running fine, so i never looked into it because i thought it was just one badly coded NPC (plus i didnt wanna touch it incase i ruined the server completely) but i made a backup and just debugged all the errors and bam worked like a charm so thank you and also everyone else that added they're ideas much appreciated 
|
happy to help!
|
|
|
01/25/2010, 02:34
|
#24
|
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
|
Here's a tip; when you copy/paste codes, instead of [ quote ]CODE[ /quote ]
Use: [ code ]CODE[ /code ]
And btw don't use the spaces.
Also, I'd like to talk about your Attribute NPC. You should have a checker so that people don't abuse it and get infinite Attributes then glitch their Chars. I would tell you how but I'm having some problems fixing my own, lol.
|
|
|
01/25/2010, 03:44
|
#25
|
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
|
Quote:
Originally Posted by copz1337
Here's a tip; when you copy/paste codes, instead of [ quote ]CODE[ /quote ]
Use: [ code ]CODE[ /code ]
And btw don't use the spaces.
Also, I'd like to talk about your Attribute NPC. You should have a checker so that people don't abuse it and get infinite Attributes then glitch their Chars. I would tell you how but I'm having some problems fixing my own, lol.
|
I'm sorry...Like I said It's my "First" time coding...I would love the help copz1337 if you can...I'll +thanks you if ya help meh  ...thanks in advance
|
|
|
01/25/2010, 05:08
|
#26
|
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,380
|
What is it you are trying to do? set a maximum stats that people can upgrade to? or a maximum number of time they can boost their stats via the npc?
Either way is quite simple.
Option 1: Max stats (to avoid glitched chars) simply check the stat being raised before raising it more. If it's above the max level (lets say 300-400 points) it will trigger an else statement describing to the player that this stat can't be boosted and more.
Option 2: Max npc use. Create either a field in your character database/ini file or create a new one to store data for the npc. Create an int for the character (public int BoostedUse = 0; or something similar) and a database function to load/update/save it to database/ini. Then have the npc check that BoostedUse < max amount of uses the npc can have per character. Make sure when using the npc successfully you raise the BoostedUse by 1 and update the database.
Either way would work and would be quite simple to avoid people farming gold/cp for hours and eventually creating chars with thousands of points in vitality making them essentially un kill-able (assuming you have corrected the atrocious attack calculations in lotf and aren't doing insane dmg anymore)
|
|
|
02/19/2010, 09:38
|
#27
|
elite*gold: 0
Join Date: Jun 2009
Posts: 22
Received Thanks: 1
|
Lawl Nice Release, Can you release the bit for the NPCs.txt?
|
|
|
02/19/2010, 15:26
|
#28
|
elite*gold: 0
Join Date: Apr 2007
Posts: 142
Received Thanks: 15
|
Quote:
Originally Posted by QuickCo
killersub lol :| what is that? omfg you just copy LostQuest & Buy Atribute npcc !! HAHA you are not codder !! stand DOWN !
|
Lol. Like He Said.. He just Took someone's codes and fixed them a bit. So, I don't see nothing wrong with that. Unless you can do better than that, you should prove it then, instead of laughing at him <.< At least he tried. And I think that's pretty good already that he fixed them a bit. So it proves that He knows some basics about coding. Just a little respect. You wouldn't like that if I came to you and call you a cheap copy cat.. even if you explained the things as he did. So no reason to flame or make fun of others. Thanks.
|
|
|
02/19/2010, 21:59
|
#29
|
elite*gold: 0
Join Date: May 2009
Posts: 884
Received Thanks: 211
|
Quote:
Originally Posted by Secrets-man
Lol. Like He Said.. He just Took someone's codes and fixed them a bit. So, I don't see nothing wrong with that. Unless you can do better than that, you should prove it then, instead of laughing at him <.< At least he tried. And I think that's pretty good already that he fixed them a bit. So it proves that He knows some basics about coding. Just a little respect. You wouldn't like that if I came to you and call you a cheap copy cat.. even if you explained the things as he did. So no reason to flame or make fun of others. Thanks.
|
I seriously don't blame myself for fixing his grammar-less codes, updating his NPCs,etc...he thinks he can code but makes all npcs like with a bunch of nonsense and errors  anyways I actually am proud of myself for making newbies even at least 1% happier(hey it's an improvement should I say so myself?)  and back to topic please(even for myself)
|
|
|
02/19/2010, 22:26
|
#30
|
elite*gold: 0
Join Date: Apr 2007
Posts: 142
Received Thanks: 15
|
Quote:
Originally Posted by killersub
I seriously don't blame myself for fixing his grammar-less codes, updating his NPCs,etc...he thinks he can code but makes all npcs like with a bunch of nonsense and errors  anyways I actually am proud of myself for making newbies even at least 1% happier(hey it's an improvement should I say so myself?)  and back to topic please(even for myself) 
|
Lol yeah :P Nothing wrong with that. He's just flaming people for fun, that's how it looks like. But Nice job dude ^^ I've seen a few npc releases and stuff where they got some little typos, but that's fine. So +k Looks pretty cool.
|
|
|
 |
|
Similar Threads
|
[Release] Extremely basic (but working/bugless) C# Source
11/30/2012 - CO2 PServer Guides & Releases - 348 Replies
This pretty much has a very finite amount of stuff done in it. Specifically this is pretty much all thats in it.
If your serious about trying to develop a server in C#, I suggest looking at this. There's a DLL also included (check the "bin" folder) which will need to be added as a reference. SocketNetwork.dll pretty much handles the socket-system and encryptions for you it is not packed or obfuscated if you would like to decompile it and take a look at it, be my guest.
I included a folder...
|
[Release]5165 Source
06/13/2010 - CO2 PServer Guides & Releases - 0 Replies
This is an old 5165 Source I was adding stuff to when I was helping with EmperionCO, now its ForsakendCO. Nothing really special about it..lots of copy/paste stuff and a few small stuff I added in myself. Kept all the really cool stuff I made for myself, adding to pringles release, if anyone remembers it, which I won't release because I dont have a good enough computer to host it myself and will not have someone else host it and run off and call it thiers the same as this source im posting...
|
[FINAL RELEASE]HuB- Source (BASIC) (Original LOTF easier workable)
11/14/2009 - CO2 PServer Guides & Releases - 25 Replies
#REMOVED
|
[RELEASE] Basic LOTF Source
09/03/2009 - CO2 PServer Guides & Releases - 17 Replies
hey this is a basic lotf source edited based off shadowco, if you dont like it then dont post here... flames will be told on!!! :D i will tell on you to the mods if you flame
What it has...
- LuckyTime
- Guard
- 24/7 GW
|
All times are GMT +1. The time now is 16:47.
|
|