Register for your free account! | Forgot your password?

You last visited: Today at 09:37

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

Advertisement



Fix 5290+ source NPC option!!!!

Discussion on Fix 5290+ source NPC option!!!! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 90
Received Thanks: 17
Fix 5290+ source NPC option!!!!

First thx pro4ever rel this source !!!!

I set up , and test it ...

Test the npc option is not work...

now i will teach you how to fix that

Open SocketClient.cs
Add code:
PHP Code:
public TQDialog TQDialog
Open NpcRequest.cs
Edit NpcRequest method like that:
PHP Code:
        public NpcRequest(byte[] PacketSocketClient Client)
        {
            
this.RequestedID BitConverter.ToUInt32(Packet4);
            
this.ControlID Packet[10];
            
this.TemporaryReplies = new List<uint>();
            
this.InteractType Packet[11];
                               
            
            switch (
this.ControlID)
            {
                case 
0:
                    
this.TQDialog = new TQDialog(Client);
                    
Client.TQDialog this.TQDialog;
                    if (
this.RequestedID != 0)
                    {
                        
ExecuteTask(ClientExodus.NpcPool[this.RequestedID]);
                        if (!
this.TQDialog.RegisteredTypes.Contains(120))
                            
this.TQDialog.MENUCREATE();
                    }
                    else
                    {
                        break;
                    }
                    break;
                default:
                    
uint RealOptionId = (uint)GetRealOption(ClientControlID);
                    
this.TQDialog = new TQDialog(Client);
                    
Client.TQDialog this.TQDialog;
                    
ExecuteTask(ClientRealOptionId);
                    if (!
this.TQDialog.RegisteredTypes.Contains(120))
                        
this.TQDialog.MENUCREATE();
                    break;
            }

            
this.TemporaryReplies.Clear();
        } 
And behind NpcRequest method
add another method:
PHP Code:
        public int GetRealOption(SocketClient Client,byte option)
        {
            for (
int i 0Client.TQDialog.NpcReplies.Counti++)
            {
                
NpcInteract item Client.TQDialog.NpcReplies[i];
                if (
item.OptionID == ControlID)
                {
                    return 
item.RealOptionID;
                }
            }
            return 
0;
        } 
Open TQDialog.cs
Find code:
PHP Code:
private List<NpcInteractNpcReplies
eidt like:
PHP Code:
public List<NpcInteractNpcReplies
And find method:
PHP Code:
private void MENULINK(string param
Edit like that:
PHP Code:
        private void MENULINK(string param)
        {
            
string[] Params GetSafeParam(param);
            
this.NpcReplies.Add(new NpcInteract(NpcInteract.OptionParams[0]) { OptionID = (byte)int.Parse(Params[1]), RealOptionID int.Parse(Params[1]) });
        } 
Complete , press F5 to Compile!!!

I think that this may not be the best way

But i work it up 100%!!

If help you , is my pleasure
262315610 is offline  
Thanks
4 Users
Old 09/18/2010, 19:51   #2
 
elite*gold: 0
Join Date: May 2010
Posts: 13
Received Thanks: 14
tyy & nice res..
.: RoCK :. is offline  
Reply


Similar Threads Similar Threads
[Release] 5290+ Source (Immune's)
03/05/2011 - CO2 PServer Guides & Releases - 119 Replies
ok so there has been so many people who have already made their own sources for new patches or upgraded existing ones and me and others have released some info on how to go about it... This has caused a bunch of 'nubs' (there are exceptions, talking in general here) to start begging for a working 5290 base to experiment with. While I agree with the argument that it's super easy to upgrade with the information already provided, I do understand that not everyone has access to a proxy to log...
[Project] 5290+ source
11/19/2010 - CO2 Private Server - 86 Replies
Ok so as promised... project tracking thread for my source. In the last couple days of messing around with the concept for this project it's gone through a ton of changes so lemme lay out what's happening here. Custom Source: I am still planning to do a custom source... but doubt I'll be releasing that (if it ever gets done). Patch: As of right now I got lazy and decided to use an existing source to test things so that I knew what I was doing (that way I have a reference and can...
5290+ source montser spawn code??
09/12/2010 - CO2 Private Server - 1 Replies
first , thank pro4ever,Immu..rel this source!! I want try spawn monster like this code: (but not work!) public class MobSpawn : ExodusPacket { public MobSpawn(uint UID,Status type,ulong value)
pro4never's 5290 source ???
09/03/2010 - CO2 Private Server - 2 Replies
who can work it online...and login no error please help me how to setup one by one
where can i download 5290 c# Source
09/02/2010 - CO2 Private Server - 19 Replies
hello I saw some people talking about the new 5290 C# Source. if any one have it or know from where can i download Source. Tell ME Please (If it is full or not, there are my friends will be working In IT ) They Learned C# Language Sorry For My Bad English:p



All times are GMT +2. The time now is 09:37.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.