[RELEASE]Fixing Guild Conducter Bug

04/05/2009 14:23 koio#1
this is for 5017 Sources
search for
Code:
if (CurrentNPC < 618 && CurrentNPC > 613)
at the npc do part and replae it with
Code:
                            if (CurrentNPC < 618 && CurrentNPC > 613)
                                if (Control == 1)
                                {
                                    if (MyChar.Silvers >= 500)
                                    {
                                        MyChar.Teleport(1038, 350, 339);
                                        MyChar.Silvers -= 500;
                                        SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("You donīt have 500 Silver"));
                                        SendPacket(General.MyPackets.NPCLink("Damn.", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
search for
Code:
if (CurrentNPC == 610)
(NPCDO Part)
and replace it with
Code:
if (CurrentNPC == 610)
                                if (Control == 1)
                                {
                                    if (MyChar.Silvers >= 1000)
                                        if (DataBase.GC1Map != 0)
                                        {
                                            MyChar.Teleport(DataBase.GC1Map, (ushort)(DataBase.GC1X - 2), DataBase.GC1Y);
                                            MyChar.Silvers -= 1000;
                                            SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                        }
                                        else
                                        {
                                            SendPacket(General.MyPackets.NPCSay("You donīt have 1000 Silvers"));
                                            SendPacket(General.MyPackets.NPCLink("Damn.", 255));
                                            SendPacket(General.MyPackets.NPCSetFace(30));
                                            SendPacket(General.MyPackets.NPCFinish());
                                        }
                                }
search for
Code:
if (CurrentNPC == 611)
replace with
Code:
if (CurrentNPC == 611)
                                if (Control == 1)
                                {
                                if (MyChar.Silvers >= 1000)
                                    if (DataBase.GC2Map != 0)
                                    {
                                        MyChar.Teleport(DataBase.GC2Map, (ushort)(DataBase.GC2X - 2), DataBase.GC2Y);
                                        MyChar.Silvers -= 1000;
                                        SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("You donīt have 1000 Silvers"));
                                        SendPacket(General.MyPackets.NPCLink("Damn.", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
search for
Code:
if (CurrentNPC == 612)
replace with
Code:
if (CurrentNPC == 612)
                                if (Control == 1)
                                {
                                if (MyChar.Silvers >= 1000)
                                    if (DataBase.GC3Map != 0)
                                    {
                                        MyChar.Teleport(DataBase.GC3Map, (ushort)(DataBase.GC3X - 2), DataBase.GC3Y);
                                        MyChar.Silvers -= 1000;
                                        SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("You donīt have 1000 Silvers"));
                                        SendPacket(General.MyPackets.NPCLink("Damn.", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
and search for
Code:
if (CurrentNPC == 613)
and replace it with
Code:
if (CurrentNPC == 613)
                                if ( Control == 1)
                                {
                                if (MyChar.Silvers >= 1000)
                                    if (DataBase.GC4Map != 0)
                                    {
                                        MyChar.Teleport(DataBase.GC4Map, (ushort)(DataBase.GC4X - 2), DataBase.GC4Y);
                                        MyChar.Silvers -= 1000;
                                        SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("You donīt have 1000 Silvers"));
                                        SendPacket(General.MyPackets.NPCLink("Damn.", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
And done
04/05/2009 15:42 PeTe Ninja#2
im confused.. whats wrong with the guild conductor? or you mean those four people.