[Release] NPC Of Divorce!!

10/26/2008 04:24 felipeboladao#1
Search for

Code:
                                if (CharID != 0)
                                    MyChar.MyGuild.KickPlayer(CharID, Name, Pos);

                            }
Add Below

Code:
if (CurrentNPC == 304)
                            {
                                if (Control == 1)
                                {
                                    if (MyChar.Silvers >= 1000)
                                    {
                                        MyChar.Silvers -= 1000;
                                        MyChar.Spouse = "Nome";
                                        MyChar.SaveSpouse();
                                        SendPacket(General.MyPackets.CharacterInfo(MyChar));
                                        MyChar.SendEquips(false);
                                        SendPacket(General.MyPackets.Vital(MyChar.UID, 26, MyChar.GetStat()));
                                        World.SpawnMeToOthers(MyChar, true);
                                        MyChar.Stamina = 100;
                                        MyChar.MyClient.SendPacket(General.MyPackets.Vital(MyChar.UID, 9, MyChar.Stamina));
                                        MyChar.Teleport(MyChar.LocMap, MyChar.LocX, MyChar.LocY);
                                        SendPacket(General.MyPackets.Vital(MyChar.UID, 4, MyChar.Silvers));
                                    }
                                    else
                                    {
                                        SendPacket(General.MyPackets.NPCSay("You only have " + MyChar.Silvers + " silvers."));
                                        SendPacket(General.MyPackets.NPCLink("Sorry.", 255));
                                        SendPacket(General.MyPackets.NPCSetFace(30));
                                        SendPacket(General.MyPackets.NPCFinish());
                                    }
                                }
                            }
And Search for

Code:
if (CurrentNPC == 266)
Add under

Code:
                            if (CurrentNPC == 304)
                            {
                                SendPacket(General.MyPackets.NPCSay("coming to Divorce!!"));
                                SendPacket(General.MyPackets.NPCLink("Yes", 1));
                                SendPacket(General.MyPackets.NPCLink("No", 255));
                                SendPacket(General.MyPackets.NPCSetFace(30));
                                SendPacket(General.MyPackets.NPCFinish());
                            }
Working 100%!!
10/26/2008 04:34 lostsolder05#2
lol,

MyChar.Spouse = "Nome";


'Nome' also where in that is it divorcing u from your spouse? ;)
10/26/2008 04:40 felipeboladao#3
use "none" from you private serv lol!!
10/26/2008 05:42 lostsolder05#4
Quote:
Originally Posted by felipeboladao View Post
use "none" from you private serv lol!!
still, from what i can tell it'll only divorce u from ure spouse

yet not ure spouse from u ;)
10/26/2008 09:48 _Emme_#5
No,this doesnt even work properly,I just saw by looking at it.
You havent tell them to define SaveSpouse?
Nome isnt even a word
Doesnt divorce your spouse from you
Send unnessecerry things,such as Stamina,LOL?!
10/26/2008 13:11 XxArcherMasterxX#6
added to all-in-1 thread
10/26/2008 13:20 nTL3fTy#7
Quote:
Originally Posted by XxArcherMasterxX View Post
added to all-in-1 thread
Do you even look at the released code and/or look at the replies in the topic before you go adding a new "guide" to your "All-in-One"?

Quote:
Originally Posted by emildayan1 View Post
No,this doesnt even work properly,I just saw by looking at it.
You havent tell them to define SaveSpouse?
Nome isnt even a word
Doesnt divorce your spouse from you
Send unnessecerry things,such as Stamina,LOL?!
10/26/2008 13:20 pauldexter#8
Not good, maybe you can improve this.
10/26/2008 14:08 tao4229#9
You don't even need to send the char info packet.... ewwww, if I'm not mistaken, that is the biggest packet(of the few I have right now, I haven't even done spawn yet x.x)... which is a waste to send.

String packet type 9.
10/26/2008 15:38 tanelipe#10
Character Info packet is only needed on the login rest of the updates are either handle by the update packet or string packet (for strings, du'h)
10/26/2008 16:52 pauldexter#11
What is the packet type of spouse?

*Edit: Never Mind i got it from myself
10/26/2008 16:58 Basser#12
What if I call my character "None" or in this case "Nome"?
Why the .. did you give Stamina?
and what is happening with the old spouse?
And please tell me who is "Nome".

Oh and change the 100% to 33% please.
kthanksbai :)
10/26/2008 17:05 © Haydz#13
Yeah as tane said, character info packet should only EVER be sent once, thats at login...
10/26/2008 17:06 pauldexter#14
thanks tao4229 and tanelipe, i got it now.
10/26/2008 17:27 tao4229#15
Quote:
Originally Posted by © Haydz View Post
Yeah as tane said, character info packet should only EVER be sent once, thats at login...
Haxxx i said it first #02
(Kinda..)