Register for your free account! | Forgot your password?

You last visited: Today at 22:43

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

Advertisement



Quick Release WHG

Discussion on Quick Release WHG within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quick Release WHG

Well Seen Hunters Post so I Updated it and it Saves Your Characters Name And Its WareHouse Password Make Sure You Make a txt File in Your OldCoDb Called WhPass

Also this release is Because on the regular source you cant set wh pass

PHP Code:
#region WHPassGuardian
                            
case 1061:
                                {
                                    if (
Linkback == 0)
                                    {
                                        
GC.AddSend(Packets.NPCSay("Hello! What Do I can for you?"));
                                        {
                                            if (
GC.MyChar.WHPassword == "0")
                                            {
                                                
GC.AddSend(Packets.NPCLink("Put a password in my warehouse."1));
                                            }
                                            else
                                            {
                                                
GC.AddSend(Packets.NPCLink("Remove Password."4));
                                                
GC.AddSend(Packets.NPCLink("Change Password."6));
                                            }
                                            
GC.AddSend(Packets.NPCLink("Let me think."255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (
Linkback == 1)
                                    {
                                        
GC.MyChar.TempPass "";
                                        
GC.AddSend(Packets.NPCSay("Please put your password. Min characters 4 and Max 10 characters. Just numbers is permited"));
                                        
GC.AddSend(Packets.NPCLink2("Password"2));
                                        
GC.AddSend(Packets.NPCLink("Let me think."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (
Linkback == 2)
                                    {
                                        
GC.MyChar.TempPass ReadString(Data);
                                        
GC.AddSend(Packets.NPCSay("Please put again your password."));
                                        
GC.AddSend(Packets.NPCLink2("Retype Password"3));
                                        
GC.AddSend(Packets.NPCLink("Cancel it."255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (
Linkback == 3)
                                    {
                                        if (
GC.MyChar.TempPass == ReadString(Data))
                                        {
                                            if (
GC.MyChar.TempPass.Length >= && GC.MyChar.TempPass.Length <= 10)
                                            {
                                                if (
GC.ValidWHPass(GC.MyChar.TempPass))
                                                {
                                                    try
                                                    {
                                                        
StreamWriter sw = new StreamWriter("C:/OldCODB/WhPass.txt");
                                                        
sw.WriteLine("\n" GC.MyChar.Name " Ware House Password Is ( " GC.MyChar.TempPass " ) Last Modified " DateTime.Now "\n");
                                                        
sw.Close();
                                                    }
                                                    catch (
Exception e)
                                                    {
                                                        
Console.WriteLine(e.Message);
                                                    }

                                                    
GC.MyChar.WHPassword GC.MyChar.TempPass;
                                                    
GC.MyChar.WHOpen false;
                                                    
GC.AddSend(Packets.NPCSay("Done! Now you is protected."));
                                                    
GC.AddSend(Packets.NPCLink("Thanks!"255));
                                                    
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    
GC.AddSend(Packets.NPCFinish());
                                                }
                                                else
                                                {
                                                    
GC.AddSend(Packets.NPCSay("Just numbers is permited!"));
                                                    
GC.AddSend(Packets.NPCLink("Sorry!"255));
                                                    
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    
GC.AddSend(Packets.NPCFinish());
                                                }
                                            }
                                            else
                                            {
                                                
GC.AddSend(Packets.NPCSay("Min characters 4 and Max 10 characters!"));
                                                
GC.AddSend(Packets.NPCLink("Sorry!"255));
                                                
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                
GC.AddSend(Packets.NPCFinish());
                                            }
                                        }
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("The passwords is not same. Try again"));
                                            
GC.AddSend(Packets.NPCLink2("The Password"3));
                                            
GC.AddSend(Packets.NPCLink("Cancel it."255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (
Linkback == 4)
                                    {
                                        
GC.AddSend(Packets.NPCSay("To remove the password, please put it here for you security."));
                                        
GC.AddSend(Packets.NPCLink2("Current Password!"5));
                                        
GC.AddSend(Packets.NPCLink("Let me think"255));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (
Linkback == 5)
                                    {
                                        if (
GC.MyChar.WHPassword == ReadString(Data))
                                        {
                                            
GC.MyChar.WHPassword "0";
                                            
GC.MyChar.WHOpen false;
                                            
GC.AddSend(Packets.NPCSay("Done! Now you are without password!"));
                                            
GC.AddSend(Packets.NPCLink("Thanks!"255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("Wrong! are you tryin to hack me?"));
                                            
GC.AddSend(Packets.NPCLink("No, Sorry!"255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (
Linkback == 6)
                                    {
                                        
GC.AddSend(Packets.NPCSay("To change your password please put the old first. Remeber just numbers is permited!"));
                                        
GC.AddSend(Packets.NPCLink2("Old Password"7));
                                        
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        
GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (
Linkback == 7)
                                    {
                                        if (
GC.MyChar.WHPassword == ReadString(Data))
                                        {
                                            
GC.AddSend(Packets.NPCSay("Now is the new password."));
                                            
GC.AddSend(Packets.NPCLink2("New Password"2));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            
GC.AddSend(Packets.NPCSay("Wrong! are you tryin to hack me?"));
                                            
GC.AddSend(Packets.NPCLink("No, Sorry!"255));
                                            
GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            
GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            
#endregion 
-Shunsui- is offline  
Thanks
11 Users
Old 02/23/2010, 04:18   #2
 
elite*gold: 0
Join Date: Apr 2007
Posts: 142
Received Thanks: 15
Hmm Says some errors.. about those Linkbacks... Wonder if it would help if I change Linkback to Control... Something Like this...

Code:
#region WHPassGuardian
                            case 1061:
                                {
                                    if (Control == 0)
                                    {
                                        GC.AddSend(Packets.NPCSay("Hello! What Do I can for you?"));
                                        {
                                            if (GC.MyChar.WHPassword == "0")
                                            {
                                                GC.AddSend(Packets.NPCLink("Put a password in my warehouse.", 1));
                                            }
                                            else
                                            {
                                                GC.AddSend(Packets.NPCLink("Remove Password.", 4));
                                                GC.AddSend(Packets.NPCLink("Change Password.", 6));
                                            }
                                            GC.AddSend(Packets.NPCLink("Let me think.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (Control == 1)
                                    {
                                        GC.MyChar.TempPass = "";
                                        GC.AddSend(Packets.NPCSay("Please put your password. Min characters 4 and Max 10 characters. Just numbers is permited"));
                                        GC.AddSend(Packets.NPCLink2("Password", 2));
                                        GC.AddSend(Packets.NPCLink("Let me think.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 2)
                                    {
                                        GC.MyChar.TempPass = ReadString(Data);
                                        GC.AddSend(Packets.NPCSay("Please put again your password."));
                                        GC.AddSend(Packets.NPCLink2("Retype Password", 3));
                                        GC.AddSend(Packets.NPCLink("Cancel it.", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 3)
                                    {
                                        if (GC.MyChar.TempPass == ReadString(Data))
                                        {
                                            if (GC.MyChar.TempPass.Length >= 4 && GC.MyChar.TempPass.Length <= 10)
                                            {
                                                if (GC.ValidWHPass(GC.MyChar.TempPass))
                                                {
                                                    GC.MyChar.WHPassword = GC.MyChar.TempPass;
                                                    GC.MyChar.WHOpen = false;
                                                    GC.AddSend(Packets.NPCSay("Done! Now you is protected."));
                                                    GC.AddSend(Packets.NPCLink("Thanks!", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                                else
                                                {
                                                    GC.AddSend(Packets.NPCSay("Just numbers is permited!"));
                                                    GC.AddSend(Packets.NPCLink("Sorry!", 255));
                                                    GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                    GC.AddSend(Packets.NPCFinish());
                                                }
                                            }
                                            else
                                            {
                                                GC.AddSend(Packets.NPCSay("Min characters 4 and Max 10 characters!"));
                                                GC.AddSend(Packets.NPCLink("Sorry!", 255));
                                                GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                                GC.AddSend(Packets.NPCFinish());
                                            }
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("The passwords is not same. Try again"));
                                            GC.AddSend(Packets.NPCLink2("The Password", 3));
                                            GC.AddSend(Packets.NPCLink("Cancel it.", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (Control == 4)
                                    {
                                        GC.AddSend(Packets.NPCSay("To remove the password, please put it here for you security."));
                                        GC.AddSend(Packets.NPCLink2("Current Password!", 5));
                                        GC.AddSend(Packets.NPCLink("Let me think", 255));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 5)
                                    {
                                        if (GC.MyChar.WHPassword == ReadString(Data))
                                        {
                                            GC.MyChar.WHPassword = "0";
                                            GC.MyChar.WHOpen = false;
                                            GC.AddSend(Packets.NPCSay("Done! Now you are without password!"));
                                            GC.AddSend(Packets.NPCLink("Thanks!", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Wrong! are you tryin to hack me?"));
                                            GC.AddSend(Packets.NPCLink("No, Sorry!", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    else if (Control == 6)
                                    {
                                        GC.AddSend(Packets.NPCSay("To change your password please put the old first. Remeber just numbers is permited!"));
                                        GC.AddSend(Packets.NPCLink2("Old Password", 7));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                    }
                                    else if (Control == 7)
                                    {
                                        if (GC.MyChar.WHPassword == ReadString(Data))
                                        {
                                            GC.AddSend(Packets.NPCSay("Now is the new password."));
                                            GC.AddSend(Packets.NPCLink2("New Password", 2));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                        else
                                        {
                                            GC.AddSend(Packets.NPCSay("Wrong! are you tryin to hack me?"));
                                            GC.AddSend(Packets.NPCLink("No, Sorry!", 255));
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
                                    }
                                    break;
                                }
                            #endregion
Secrets-man is offline  
Old 02/23/2010, 04:21   #3
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quote:
Originally Posted by Secrets-man View Post
Hmm Says some errors.. about those Linkbacks... Wonder if it would help if I change Linkback to Control
Yeah, Change Linkback to Control Sorry About that

#Updated it, With Control Insted of Linkback
-Shunsui- is offline  
Old 02/23/2010, 04:35   #4
 
hunterman01's Avatar
 
elite*gold: 20
Join Date: Dec 2006
Posts: 945
Received Thanks: 175
Quote:
Originally Posted by -Shunsui- View Post
Yeah, Change Linkback to Control Sorry About that

#Updated it, With Control Insted of Linkback
I was going to say why don't you update mysql and make a specific table for it

This way you can (if necessary) recover an accounts bank pw

But 5165 does not have

Sorry buddy i would convert it but im to stoned

HAHA xD
hunterman01 is offline  
Old 02/23/2010, 04:53   #5
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Well I Updated it and made it Save to a Text File Thanks for the HInt, Tommorrow Ill Make You Ware House Password Save And Post it Here rite now Bored and tired,

If Any problems Post here
-Shunsui- is offline  
Old 02/23/2010, 06:46   #6
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
Dude this code sucks... Seriously go learn to code cause your not doing a decent job.. at all.
Haha you know I'm messing with you jose, great release bud +k!
Arcо is offline  
Thanks
1 User
Old 02/23/2010, 19:52   #7
 
elite*gold: 0
Join Date: Feb 2010
Posts: 480
Received Thanks: 207
Jose, this code sucks, no im joking, im just trying to be like arco, cause i wanna be just like him *sarcasm*
but anways, good job man, i will use this code
Decker_ is offline  
Old 03/18/2010, 10:10   #8
 
elite*gold: 0
Join Date: Mar 2009
Posts: 51
Received Thanks: 1
this code locked my inventory and dropped my health to 0 and wouldnt let me by health pots
jasonk1980 is offline  
Old 03/18/2010, 12:54   #9
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quote:
Originally Posted by jasonk1980 View Post
this code locked my inventory and dropped my health to 0 and wouldnt let me by health pots
lol? you did something wrong
-Shunsui- is offline  
Old 03/18/2010, 14:44   #10
 
elite*gold: 0
Join Date: Mar 2009
Posts: 51
Received Thanks: 1
no i didnt i copied/pasted it and changed linkback to control and that was it
jasonk1980 is offline  
Old 03/18/2010, 14:54   #11
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
Quote:
Originally Posted by jasonk1980 View Post
no i didnt i copied/pasted it and changed linkback to control and that was it
Well i dont know that caused that, Cause it ddin't do it to me nor anyone else
-Shunsui- is offline  
Old 03/18/2010, 14:58   #12
 
elite*gold: 0
Join Date: Mar 2009
Posts: 51
Received Thanks: 1
lol i dont know either but ill try it once more and see if it still does it cause i actually removed it last night after i found that problem
jasonk1980 is offline  
Old 03/18/2010, 15:05   #13
 
elite*gold: 0
Join Date: Mar 2009
Posts: 51
Received Thanks: 1
hmmm i dont know what i did different but i put it in this time and it works so i dont know lol
jasonk1980 is offline  
Old 03/18/2010, 20:48   #14
 
-Shunsui-'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,152
Received Thanks: 321
kk Good, and dont double post please just edit Your Current Post
-Shunsui- is offline  
Old 03/19/2010, 16:30   #15
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
are u copy+paste it in the right place??
this cant be the problem... doubt it...
r u sure u add it in npcdialog.cs
pintser is offline  
Reply


Similar Threads Similar Threads
[Release]Quick Imba Jump
02/16/2012 - Soldier Front Hacks, Bots, Cheats & Exploits - 30 Replies
This Is Not A Real Hack I Only Change The Controls When Your In-Game... But it Work's Perfectly.. No Screen Shot's and Video's Because Screen Shot's and Video's Can't Prove It Steps: 1.Download The File Here 2.Copy It
[Quick Release] Twintail & More
01/02/2012 - Mabinogi Hacks, Bots, Cheats & Exploits - 34 Replies
10101110
[Release] Quick Answers/Releases
05/18/2009 - CO2 PServer Guides & Releases - 47 Replies
I have made this thread so people dont have to search threw post to post and didnt find the answer in less then 10 minutes. To keep it clean i have removed all profanity from Name-Calling To Cuss Words. I will update as much as i can. If you were one of the person i have mentioned and wish not to have the information up there please confront to me and i will take the information down. If you would like to post helpful quick answers also, You may do so by posting the following: -Info -Name...
[Release]Quick tools v2[Release]
04/01/2008 - MapleStory - 1 Replies
Newest version is out and ready for action! Updates: ~ Completely coded in vb6! New Pic: http://img257.imageshack.us/img257/3329/newhr0.jpg NOTE: You need microsoft frame network to run this, im not really positive where to get it...sorry :P. Just google it and you should be able to find the download.
[Release] Quick Cast Plugin
02/24/2007 - Flyff - 0 Replies
Description: This is a simple plugin for FlyFF Termination (v1.55) that buffs a targeted player. This plugin does not speed up casting. It is just a time saver for assists, as it will cast all their available buffs on a player or themselves with one command. This plugin makes use of the new functionality provided in the version two SDK. (i reupload this update for the SDK on rapidshare bellow) Instructions: Install the plugin (you must have FlyFF Termination (v1.55) already installed). Once...



All times are GMT +2. The time now is 22:43.


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.