P Server "NPC base code/shops/drop items" for who asked me 2 do it

06/26/2008 00:18 zane203#1036
yikes, I missed a lot! sorry about that, school band kinda popped up with something urgent. Anyways What I miss O_o I've read quite a few pages and only seen a bunch of coding... gratz on the work guys ^^
-
Adz, please tell me you're going to release a guide on coding C# someday O_O i would love to learn your methods. Other than that, Im getting VB C# to do some tests of my own.
-

Thanks everyone ^^
06/26/2008 01:55 stephanyd#1037
How can i have the text box in guild director dialog??
06/26/2008 02:23 SweeTFlower#1038
Quote:
Originally Posted by stephanyd View Post
How can i have the text box in guild director dialog??
hun never post ss of your server here TQ might see and you lose that char. edit it remove the chat and name of the char and server.
06/26/2008 02:56 plasma-hand#1039
yes edit that out as soon as you can
06/26/2008 03:07 stephanyd#1040
Quote:
Originally Posted by SweeTFlower View Post
hun never post ss of your server here TQ might see and you lose that char. edit it remove the chat and name of the char and server.
Thnks for advised... i removed it;)... but anyone can help with text box in guild director dialog??
06/26/2008 03:44 IHateHomos#1041
Quote:
Originally Posted by samehvan View Post
coz toooo many ppl be4 complained that Vista couldnt deal with any online games ,then they release a finale version of the service pack 1 , they said the original one was bugged , so if u use the original one , try to dld the latest version and try again , may be it will work , although i am not sure it would but just try andd let me know the result plz
Nope, It doesn't work on upgraded SP1 either, I had Vista, then updated the SP1, and it still didn't work.

I downgraded to XP Pro Essential ^^
06/26/2008 04:12 gfun1#1042
For those of you who want to have a chat.cs with commands "GM Only"

here's mine,
06/26/2008 05:44 samehvan#1043
Quote:
Originally Posted by IAmHawtness View Post
Oh yea, btw.. When you change the color of your gear you get "superhuman strength"?
Well, I found a solution

Find this in NpcDialog.cs



Change ClickyClient.MyChar.SendEquips(); to ClickyClient.MyChar.SendEquips2();

:)

It should look like this
i cant get what bug u are talking about , so explain it and i will try to fix it , my color changer works very fine here ,
Quote:
Originally Posted by gfun1 View Post
For those of you who want to have a chat.cs with commands "GM Only"

here's mine,
thank u
06/26/2008 05:55 Bottingpunk#1044
Hey ok when i like open the TheCoServer where u can build soulition and stuff. Ok when i open that then open login.cs and change the system message when u login. And then usly u have to build soultion and then save i try building i get errors. and i try to fix them but idk how lol casue i dont have books to read on how to code with C# i have been trying to teach myself lmao not working. So any one got anything that could teach me how to code within like a few weeks are so. If so tell me. Ty

Good job Samehvan!
06/26/2008 06:03 Danutzhaha#1045
ya you can build it try more and you can remove the errors.


btw any know the MECH for:
Slinger
GoldGhost???
06/26/2008 06:48 Bottingpunk#1046
well idk what to change the errors to. Still looking for somthing that could teach me how to code with C#.

[2071]
face=100
txt0=Gold and Cps
opt0=999999999 gold-210 cps
req=0-0
rew=gold,999999999-cps,210

GRRR wont work for some reason =( i had it working till i messed somthing up
also when u type /com it comes up with a diff server name how do i fix that

and also when i build sloution now it says warrnings -.- lol funny stuff
06/26/2008 10:42 IAmHawtness#1047
Quote:
Originally Posted by samehvan View Post
i cant get what bug u are talking about , so explain it and i will try to fix it , my color changer works very fine here
Someone said that when he changes color of his gear, he gets stronger.. Well, try to hit a Pheasant outside TC and see how much you damage on them. Now, change the color of your gear, and try hitting a Pheasant again, you'll deal much greater damage on them.. It's because the SendEquips function sends your equipments to your char PLUS their stats, but SendEquips2 is a function that does the same, without adding the stats of the items.. Kinda hard to explain, at least in English, since I don't originally speak English :p

.. Oh and, I already told you how to fix the bug lol
06/26/2008 12:02 YukiXian#1048
Quote:
Originally Posted by adz06676 View Post
Okay here is how to make a timer since so many people askin for it im only gonna post this once:

This will be a guide for a message Timer Go into Character.cs

find this :

Quote:
public Timer HPTimer = new Timer();
under it add this:

Quote:
public Timer HPTimer = new Timer();
public Timer MsgTimer = new Timer();
then find this:

Quote:
SkillTimer.Elapsed += new ElapsedEventHandler(CanUseSkill);
under it make your own timer so for the msgtimer it would be like:

Quote:
MsgTimer.Interval = 600000;
MsgTimer.Elapsed += new ElapsedEventHandler(MsgTimer_Elapsed);
MsgTimer.Start();
then go down and add this:


Quote:
void MsgTimer_Elapsed(object sender, ElapsedEventArgs e)
{
MsgTimer.Stop();
MyClient.SendPacket(ThePackets.SendMsg(MyClient.Me ssageId, "System", MyClient.MyChar.CharName, "MESSAGE HERE", 2011));
MsgTimer.Start();
}

if that helped gibz thanks plx :p
Thxx man :p ( How to make an Second Message? ) :D

---------------------------------------

Someone Knows how to make the server run on an newer patch for Conquer Online?
06/26/2008 12:56 IAmHawtness#1049
Is there any way to make some kind of timer when you use scatter, so instead of killing all monsters at the same time, it kills them one after one with a lets say 10 ms delay?
06/26/2008 13:21 gfun1#1050
Quote:
Originally Posted by IAmHawtness View Post
Is there any way to make some kind of timer when you use scatter, so instead of killing all monsters at the same time, it kills them one after one with a lets say 10 ms delay?
Yes!!!

In the loop / while where the server looks for each mob to kill with an arrow when you use scatter, you will need to add a "pause" timer, where the script execution will not continue until X amount of milliseconds have passed.

Problem with this is, if the script execution for scatter is not made in an instance, then you will run into a "lag spike" where nothing will work until the script has been executed.

A way around that would be to instance the execution of the code for scatter. Another issue that would then be presented would be, YOU would have a lag spike (Not everyone on the server) where you will not see any of those mobs die until X number of mobs * X amount of seconds has passed, then the packet would be sent.

What you would need to do then, would be to add the send packet for each of the mobs dieing. In turn, this is not an efficient option, and if your server was "mass scale" then using this skill would cause congestion. All in all, it's not really worth doing it.