Register for your free account! | Forgot your password?

You last visited: Today at 00:02

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

 

[Release] 5165 Warehouses Auth System

Reply
 
Old   #16
 
elite*gold: 0
Join Date: Jun 2010
Posts: 2,188
Received Thanks: 846
Well guys how I did mine was different.

btw why are you doing
Code:
#region Warehouses
                            case 8:
                                {
                                 if (isCorrectWHPassword(GC, Data, NPC, Control))
                                    {
                                        GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 4, N.Loc.X, N.Loc.Y, 0x7e));
                                    }
                                  break;
                                }
                            case 10012:
                                {
                                    if (isCorrectWHPassword(GC, Data, NPC, Control))
                                    {
                                     GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 4, N.Loc.X, N.Loc.Y, 0x7e));
                                    }
                                    break;
                                }
                            case 10028:
                                {
                                    if (isCorrectWHPassword(GC, Data, NPC, Control))
                                    {
                                      GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 4, N.Loc.X, N.Loc.Y, 0x7e));
                                    }
                                    break;
                                }
                            case 10011:
                                {
                                    if (isCorrectWHPassword(GC, Data, NPC, Control))
                                    {                                    
                                     GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 4, N.Loc.X, N.Loc.Y, 0x7e));
                                    }
                                    break;
                                }
                            case 10027:
                                {
                                    if (isCorrectWHPassword(GC, Data, NPC, Control))
                                    {
                                    GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 4, N.Loc.X, N.Loc.Y, 0x7e));
                                    }
                                    break;
                                }
                            case 44:
                                {
                                    if (isCorrectWHPassword(GC, Data, NPC, Control))
                                    {
                                        GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 4, N.Loc.X, N.Loc.Y, 0x7e));
                                    }
                                    break;
                                }
                            case 4101:
                                {
                                    if (isCorrectWHPassword(GC, Data, NPC, Control))
                                    {
                                        GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 4, N.Loc.X, N.Loc.Y, 0x7e));
                                    }
                                    break;
                                }
                            #endregion
When this is so much more logical
Code:
#region Warehouses
                            case 8:
                            case 10012:
                            case 10028:
                            case 10011:
                            case 10027:
                            case 44:
                            case 4101:
                                {
                                    if (isCorrectWHPassword(GC, Data, NPC, Control))
                                    {
                                        GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 4, N.Loc.X, N.Loc.Y, 0x7e));
                                    }
                                    break;
                                }
                            #endregion
as for checking if you have already entered your warehouse and not to ask again untill next login just define 'bool Warehouseopen;" and do like
Code:
#region Warehouses
                            case 8:
                            case 10012:
                            case 10028:
                            case 10011:
                            case 10027:
                            case 44:
                            case 4101:
                                {
                                    if (WarehouseOpen == false)
                                    {
                                    if (isCorrectWHPassword(GC, Data, NPC, Control))
                                    {
WarehouseOpen = true;
GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 4, N.Loc.X, N.Loc.Y, 0x7e));
                                    }
                                    }
                                    else { GC.AddSend(Packets.GeneralData(GC.MyChar.EntityID, 4, N.Loc.X, N.Loc.Y, 0x7e)); }
                                    break;
                                }
                            #endregion



_DreadNought_ is offline  
Thanks
1 User
Old   #17
 
elite*gold: 0
Join Date: May 2006
Posts: 127
Received Thanks: 90
Quote:
Originally Posted by Eliminationn View Post
Well guys how I did mine was different
:-) nice fixed thanks


kamote is offline  
Old   #18
 
elite*gold: 0
Join Date: Dec 2006
Posts: 100
Received Thanks: 13
Does this still work?
SomeNublet is offline  
Old   #19
 
elite*gold: 0
Join Date: Nov 2010
Posts: 1,162
Received Thanks: 369
Quote:
Originally Posted by SomeNublet View Post
Does this still work?
No. It broke a leg and stopped working.


Syst3m_W1z4rd is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
[Release] Flower System (5165)
Heya! Mostly complete... just figure a way to save it on your server.... ScreenShots: http://img98.imageshack.us/img98/1949/164947279.jpg...
71 Replies - CO2 PServer Guides & Releases
[RELEASE]Anti bot system 5165
Here is an simple anti bot system. Credits goes to Arco for the npc send thing :) First go to MyThreads.cs and find: interval =...
15 Replies - CO2 PServer Guides & Releases
[RELEASE]Fully Working AFK System 5165
Hello Elitepvpers. I will start release things again. I released a tdm for not long time ago, but now i will release a fully working afk system....
9 Replies - CO2 PServer Guides & Releases
[Release]NPC system 5165 simplified
//
14 Replies - CO2 PServer Guides & Releases



All times are GMT +2. The time now is 00:02.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.