Jetzt kostenlos registrieren! | Passwort vergessen?

Dein letzter Besuch war: Heute um 21:31 Uhr

  • Registriere dich kostenlos um Beiträge zu verfassen und alle Features zu nutzen!

Advertisement



Coding Help

Discussion on Coding Help within the CO2 Private Server forum part of the Conquer Online 2 category.

Antwort
 
Alt   #1
 
elite*gold: 20
Registriert seit: Apr 2008
Beiträge: 2.281
Erhaltene Thanks: 913
Coding Help

If you are currently working on a script for your server, and need help with it, feel free to ask for some help.

Be advised, I won't code the whole thing for you, but I will help you along the way.
kinshi88 ist offline  
Alt 08.10.2008, 08:38   #2
 
elite*gold: 0
Registriert seit: Feb 2008
Beiträge: 668
Erhaltene Thanks: 160
Zitat:
Zitat von kinshi88 Beitrag anzeigen
If you are currently working on a script for your server, and need help with it, feel free to ask for some help.

Be advised, I won't code the whole thing for you, but I will help you along the way.
When you are 2nd reborn, you got the effect, When you use Tornado or something like that, It will spawn the Effect again, So ya got 10 2nd reborn effects or more, You know how to fix this?
YukiXian ist offline  
Alt 08.10.2008, 10:18   #3
 
Benutzerbild von © Haydz
 
elite*gold: 20
Registriert seit: Jan 2008
Beiträge: 1.042
Erhaltene Thanks: 252
Zitat:
Zitat von YukiXian Beitrag anzeigen
When you are 2nd reborn, you got the effect, When you use Tornado or something like that, It will spawn the Effect again, So ya got 10 2nd reborn effects or more, You know how to fix this?
its not an effect its a flag in the spawnpacket
© Haydz ist offline  
Alt 08.10.2008, 16:16   #4
 
elite*gold: 0
Registriert seit: Feb 2008
Beiträge: 668
Erhaltene Thanks: 160
Zitat:
Zitat von © Haydz Beitrag anzeigen
its not an effect its a flag in the spawnpacket

Well, How to fix it?
YukiXian ist offline  
Alt 08.10.2008, 17:44   #5
 
Benutzerbild von _Emme_
 
elite*gold: 1142
Registriert seit: Aug 2006
Beiträge: 2.464
Erhaltene Thanks: 1.162
Rewrite effect packet
_Emme_ ist offline  
Alt 08.10.2008, 22:36   #6
 
elite*gold: 0
Registriert seit: Feb 2008
Beiträge: 1.590
Erhaltene Thanks: 154
Zitat:
Zitat von emildayan1 Beitrag anzeigen
Rewrite effect packet
No, the flag for reborn is in the spawn/characterinfo packets. If you include it in there, the clients will do the effect for you.

Off the top of my head, in spawn entity, i THINK reborn goes in the next byte after direction.
tao4229 ist offline  
Alt 09.10.2008, 15:59   #7
 
Benutzerbild von _Emme_
 
elite*gold: 1142
Registriert seit: Aug 2006
Beiträge: 2.464
Erhaltene Thanks: 1.162
But,look into the effect packet,dont you think its badly written?
_Emme_ ist offline  
Alt 09.10.2008, 18:03   #8
 
Benutzerbild von adz06676
 
elite*gold: 0
Registriert seit: Oct 2007
Beiträge: 450
Erhaltene Thanks: 68
Zitat:
Zitat von emildayan1 Beitrag anzeigen
But,look into the effect packet,dont you think its badly written?
this problem has completely nothing to do with the effect packet.
adz06676 ist offline  
Alt 11.10.2008, 06:58   #9
 
elite*gold: 20
Registriert seit: Apr 2008
Beiträge: 2.281
Erhaltene Thanks: 913
Zitat:
Zitat von YukiXian Beitrag anzeigen
When you are 2nd reborn, you got the effect, When you use Tornado or something like that, It will spawn the Effect again, So ya got 10 2nd reborn effects or more, You know how to fix this?
I guess one way to fix this, and this is just off the top of my head.

But in Character.cs, in void TimerElapsed(object source, ElapsedEventArgs e), you can make a if statement;
Code:
if (!SecRBEff)
{
      SecRBEff = true;
      (send effect)
}
Hmm.. donno if that would fix it =P, never actually seen this "bug".
Lol, now that I think about it, it probobly won't.

Maybe I'll look into it more.
But I'm not too keen on "looks", more fundamental "workingness" =P
kinshi88 ist offline  
Alt 11.10.2008, 18:35   #10
 
Benutzerbild von © Haydz
 
elite*gold: 20
Registriert seit: Jan 2008
Beiträge: 1.042
Erhaltene Thanks: 252
Zitat:
Zitat von kinshi88 Beitrag anzeigen
I guess one way to fix this, and this is just off the top of my head.

But in Character.cs, in void TimerElapsed(object source, ElapsedEventArgs e), you can make a if statement;
Code:
if (!SecRBEff)
{
      SecRBEff = true;
      (send effect)
}
Hmm.. donno if that would fix it =P, never actually seen this "bug".
Lol, now that I think about it, it probobly won't.

Maybe I'll look into it more.
But I'm not too keen on "looks", more fundamental "workingness" =P
its not an effect.. don't ever send the 2nd rb effect
© Haydz ist offline  
Alt 11.10.2008, 19:13   #11
 
elite*gold: 0
Registriert seit: Apr 2006
Beiträge: 64
Erhaltene Thanks: 32
What's a good source code base to start with for your own Pserver? Preferrably one that works with the latest CO client.

Zitat:
Zitat von kinshi88 Beitrag anzeigen
If you are currently working on a script for your server, and need help with it, feel free to ask for some help.

Be advised, I won't code the whole thing for you, but I will help you along the way.
BoboDundo ist offline  
Alt 11.10.2008, 20:45   #12
 
Benutzerbild von InfamousNoone
 
elite*gold: 20
Registriert seit: Jan 2008
Beiträge: 2.012
Erhaltene Thanks: 2.885
Zitat:
Zitat von BoboDundo Beitrag anzeigen
What's a good source code base to start with for your own Pserver? Preferrably one that works with the latest CO client.
You won't find one with that works with the latest client, because to obtain one of those, well; You just won't.
InfamousNoone ist offline  
Alt 11.10.2008, 21:17   #13
 
elite*gold: 20
Registriert seit: Apr 2008
Beiträge: 2.281
Erhaltene Thanks: 913
Zitat:
Zitat von BoboDundo Beitrag anzeigen
What's a good source code base to start with for your own Pserver? Preferrably one that works with the latest CO client.
Gotta code that urself, which you won't.
So, you won't get one.
kinshi88 ist offline  
Alt 12.10.2008, 13:13   #14
 
Benutzerbild von emogoth213
 
elite*gold: 0
Registriert seit: Jun 2008
Beiträge: 45
Erhaltene Thanks: 3
sorry for double post

remove
emogoth213 ist offline  
Alt 12.10.2008, 13:21   #15
 
Benutzerbild von emogoth213
 
elite*gold: 0
Registriert seit: Jun 2008
Beiträge: 45
Erhaltene Thanks: 3
Bugs on Pharmacist

How do i fixed this codes problem,to avoid bringing the pharmacist anywhere...
sorry for bad english... thanks in advance ...

here is the codes below...



Code:
MyChar.Ready = false;
                                    uint ItemID = (uint)((Data[0x0b] << 24) + (Data[0x0a] << 16) + (Data[0x09] << 8) + Data[0x08]);
                                    uint CPsVal = Data[18];
                                    uint Value = (uint)((Data[0x07] << 24) + (Data[0x06] << 16) + (Data[0x05] << 8) + Data[0x04]);
                                    byte Amount = Data[20];
                                    int Money = Data[5];
                                    if (Amount == 0)
                                        Amount = 1;

                                    string TehShop = System.IO.File.ReadAllText(System.Windows.Forms.Application.StartupPath + @"\Shop.dat");

                                    try
                                    {
                                        if (Other.CharExist(Convert.ToString(ItemID), TehShop))
                                        {
                                            foreach (uint[] item in DataBase.Items)
                                            {
                                                if (ItemID == item[0])
                                                {
                                                    Value = item[7];
                                                    CPsVal = item[15];
                                                }
                                            }
                                            for (int i = 0; i < Amount; i++)
                                            {
                                                if (MyChar.ItemsInInventory > 39)
                                                    return;
                                                if (MyChar.Silvers >= Value && CPsVal == 0 || MyChar.CPs > CPsVal && CPsVal != 0)
                                                {
                                                    if (CPsVal == 0)
                                                        MyChar.Silvers -= Value;
                                                    if (CPsVal > 0)
                                                        MyChar.CPs -= CPsVal;

                                                    if (MyChar.Silvers < 0)
                                                        MyChar.Silvers = 0;
                                                    if (MyChar.CPs < 0)
                                                        MyChar.CPs = 0;

                                                    byte WithPlus = 0;
                                                    if (ItemID == 730003)
                                                        WithPlus = 3;
                                                    if (ItemID == 730004)
                                                        WithPlus = 4;
                                                    if (ItemID == 730005)
                                                        WithPlus = 5;
                                                    if (ItemID == 730006)
                                                        WithPlus = 6;
                                                    if (ItemID == 730007)
                                                        WithPlus = 7;

                                                    MyChar.AddItem(Convert.ToString(ItemID) + "-" + WithPlus + "-0-0-0-0", 0, (uint)General.Rand.Next(10000000));
                                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                                    SendPacket(General.MyPackets.Vital(MyChar.UID, 30, MyChar.CPs));
                                                }
                                                else
                                                {
                                                    SendPacket(General.MyPackets.SendMsg(MessageId, "SYSTEM", MyChar.Name, "You don't have " + Value + " silvers or " + CPsVal + " CPs.", 2005));
                                                    break;
                                                }
                                            }
                                        }
                                        else
                                        {
                                            General.WriteLine("There is no such item in Shop.dat.(" + ItemID + ")");
                                        }
                                    }
                                    catch (Exception Exc) { General.WriteLine(Convert.ToString(Exc)); }
                                    MyChar.Ready = true;
                                    break;
                                }
emogoth213 ist offline  
Antwort


Ähnliche Themen Ähnliche Themen
*NEW CODING ART!!!..........:::::~WhiteLight D3D~:::::..........*NEW CODING ART!!!
21.09.2010 - WarRock Hacks, Bots, Cheats & Exploits - 25 Antworten
http://250kb.de/u/100911/p/m4buevNCZhoQ.PNG Download: Multiupload.com - upload your files to multiple file hosting sites! VirusScan: VirusTotal - Free Online Virus, Malware and URL Scanner Funktionen: SuperJump Teleport NoSpread NoRecoil
Uce Coding+ winhex coding
05.03.2009 - Dekaron - 8 Antworten
i was just wondering is it true if u do coding with winhex is it less dc?? tats all cuz uce coding dcs me alot



Alle Zeitangaben in WEZ +1. Es ist jetzt 21:33 Uhr.


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 | Kontakt | FAQ | Werbung | Datenschutzerklärung | Nutzungsbedingungen | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.