[RELEASE] Nobility

05/06/2009 21:48 PeTe Ninja#31
Quote:
Originally Posted by ph03nixx View Post
@adz
why comment? just su and wait,

@PeTe
Do you have any ideas why the f*cker wont talk ?
make sure its the same UID the npc i released uid is 8410 make sure the npc you created is 8410
05/06/2009 21:55 ph03nixx#32
ok this is maybe a main problem
Code:
MyChar.[COLOR="Red"]Rank[/COLOR] = 1;
                                        MyChar.[COLOR="red"]Donation [/COLOR]+= 500000000;
and that is will ALL MyChar.Rank and MyChar.Donation

its underlined Red so its an error

The error for Rank Describes:
Code:
'COServer_Project.Character' does not conatain a definiton of 'Rank' and no extension method 'Rank' accepting a first argument of type'COServer_Project.Charcacter'could be found (yo are missing a using directive or an assembly refernce?)
The error for Donation describes
Code:
'COServer_Project.Character' does not conatain a definiton of 'Donation' and no extension method 'Donation' accepting a first argument of type'COServer_Project.Charcacter'could be found (yo are missing a using directive or an assembly refernce?)
The UID of the NPC is the same but those are the main problems

Help:???: ?
05/06/2009 21:56 adz06676#33
Quote:
Originally Posted by PeTe Ninja View Post
i think you should do it since you just talk alot, i really want you to release something ok...release nobility working the real way since you said you can do it
i couldn't because i don't have the packets. and thats my point why do something if you can't do it properly.
05/06/2009 22:02 damianpesta#34
Quote:
Originally Posted by ph03nixx View Post
ok this is maybe a main problem
Code:
MyChar.[COLOR="Red"]Rank[/COLOR] = 1;
                                        MyChar.[COLOR="red"]Donation [/COLOR]+= 500000000;
and that is will ALL MyChar.Rank and MyChar.Donation

its underlined Red so its an error

The error for Rank Describes:
Code:
'COServer_Project.Character' does not conatain a definiton of 'Rank' and no extension method 'Rank' accepting a first argument of type'COServer_Project.Charcacter'could be found (yo are missing a using directive or an assembly refernce?)
The error for Donation describes
Code:
'COServer_Project.Character' does not conatain a definiton of 'Donation' and no extension method 'Donation' accepting a first argument of type'COServer_Project.Charcacter'could be found (yo are missing a using directive or an assembly refernce?)
The UID of the NPC is the same but those are the main problems

Help:???: ?
your an idiot , define the god damn Rank and Donation in character.cs ... It clearly SAYS What the problem is... geez learn to read or get a glasses.
05/06/2009 22:04 Vortex.#35
Not bad could be better.. Why are so many effects being sent?
05/06/2009 22:05 ph03nixx#36
@damian
geez i have glasses, but im a bit tired i have to do crap, So define it in Charactaer.cs?
lol....
05/06/2009 22:08 Vortex.#37
also upload the effects for me.... (the dds files and ect. please..
05/06/2009 22:08 PeTe Ninja#38
Quote:
Originally Posted by ph03nixx View Post
ok this is maybe a main problem
Code:
MyChar.[COLOR="Red"]Rank[/COLOR] = 1;
                                        MyChar.[COLOR="red"]Donation [/COLOR]+= 500000000;
and that is will ALL MyChar.Rank and MyChar.Donation

its underlined Red so its an error

The error for Rank Describes:
Code:
'COServer_Project.Character' does not conatain a definiton of 'Rank' and no extension method 'Rank' accepting a first argument of type'COServer_Project.Charcacter'could be found (yo are missing a using directive or an assembly refernce?)
The error for Donation describes
Code:
'COServer_Project.Character' does not conatain a definiton of 'Donation' and no extension method 'Donation' accepting a first argument of type'COServer_Project.Charcacter'could be found (yo are missing a using directive or an assembly refernce?)
The UID of the NPC is the same but those are the main problems

Help:???: ?
first part of my whole guide...follow the steps please

Quote:
Originally Posted by adz06676 View Post
i couldn't because i don't have the packets. and thats my point why do something if you can't do it properly.
Quote:
Originally Posted by damianpesta View Post
your an idiot , define the god damn Rank and Donation in character.cs ... It clearly SAYS What the problem is... geez learn to read or get a glasses.
xD

Quote:
Originally Posted by Vortex. View Post
Not bad could be better.. Why are so many effects being sent?
make it better then :D


Quote:
Originally Posted by adz06676 View Post
i couldn't because i don't have the packets. and thats my point why do something if you can't do it properly.
hmm.. ok..

why did the people make titanic if they couldn't do it right?

why did the wright brothers make the airplane if for a while they couldnt do it right?

why is USA fighthing everyone trying to make peace if they cant do it right?

answer my questions and those will be the answer of yours.
05/06/2009 22:35 adz06676#39
Quote:
Originally Posted by PeTe Ninja View Post
first part of my whole guide...follow the steps please





xD



make it better then :D




hmm.. ok..

why did the people make titanic if they couldn't do it right?

why did the wright brothers make the airplane if for a while they couldnt do it right?

why is USA fighthing everyone trying to make peace if they cant do it right?

answer my questions and those will be the answer of yours.
they made the titanic right but it hit an iceberg?

and anyway to do this properly you need the packets, the way your doing it will cause fps lag.
05/06/2009 22:39 Pete1990#40
Quote:
Originally Posted by adz06676 View Post
they made the titanic right but it hit an iceberg?

and anyway to do this properly you need the packets, the way your doing it will cause fps lag.
there is no ftp lag the effect only goes off when needed not ever sec
05/07/2009 12:45 PeTe Ninja#41
i posted a few new things on the main thread at top and bottom about some things taht happen when you have this
05/07/2009 15:07 alexbigfoot#42
Well...this is the first part of my entire release:
//As i know, there is no delete character added to LOTF, and i`m going to use it for donations. Its a faster way to do it...

Find in client.cs "case 1010:"
add
Code:
case 95:
                                    {
                                        uint Donation = (uint)((Data[15] << 24) + (Data[14] << 16) + (Data[13] << 8) + Data[12]);
                                        if (MyChar.Silvers >= Donation)
                                        {
                                            MyChar.Silvers -= Donation;
                                            MyChar.Donation += Donation;
                                            if (MyChar.Donation >= 800000000)
                                            {
                                                switch (MyChar.Model)
                                                {
                                                    case 1003:
                                                    case 1004: MyChar.Rank = 1; World.SendMsgToAll(MyChar.Name + " is a King now! ", "SYSTEM", 2010); break;
                                                    case 2001:
                                                    case 2002: MyChar.Rank = 2; World.SendMsgToAll(MyChar.Name + " is a Queen now! ", "SYSTEM", 2010); break;
                                                }
                                                return;
                                            }//King/Queen
                                            if (MyChar.Donation <= 800000000 && MyChar.Donation >= 500000000)
                                                MyChar.Rank = 4;//Prince
                                            if (MyChar.Donation <= 500000000 && MyChar.Donation >= 200000000)
                                                MyChar.Rank = 3;//Duke
                                            if (MyChar.Donation <= 200000000 && MyChar.Donation >= 100000000)
                                                MyChar.Rank = 5;//Earl
                                            if (MyChar.Donation <= 100000000 && MyChar.Donation >= 50000000)
                                                MyChar.Rank = 7;//Baron
                                            if (MyChar.Donation <= 50000000 && MyChar.Donation >= 30000000)
                                                MyChar.Rank = 6;//Knight
                                            switch (MyChar.Rank)
                                            {
                                                case 0: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You have no rank right now.", 2010)); break;
                                                case 1: 
                                                case 2: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You reached the last rank.", 2010));break;
                                                case 3: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You can become a Prince.", 2010));break;
                                                case 4: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You can become a King or a Queen.", 2010));break;
                                                case 5: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You can become a Duke.", 2010));break;
                                                case 6: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You can become a Baron.", 2010));break;
                                                case 7: SendPacket(General.MyPackets.SendMsg(MessageId, "System", "", "Your donation is: " + MyChar.Donation + ". You can become a Earl.", 2010));break;
                                            }
                                            MyChar.SaveRank();
                                            MyChar.SaveDonation();
                                            World.UpdateSpawn(MyChar);
                                        }
                                    }break;
To donate you`ll go to Options->Delete->OK->Set how much you want to donate->OK

You can now delete the npc.

EDIT: Also i modified the donation need to be another rank...
#Delete and repost reason: I`m sorry but i didnt try the code, now it is fully working thx to IcedEarth who told me the errors.
05/08/2009 02:32 PeTe Ninja#43
wow real nice alex...never though of using a different button :D
05/08/2009 05:25 Pete1990#44
Dont get it lol sup with that does it use a button or somthing?
05/09/2009 23:16 _Emme_#45
One thing that's making this code longer is every line to send the rank all the time. Here, add this void into Character.cs, and each time you want to send the rank packets/effects, just throw MyChar.SendRank();


Quote:
public void SendRank()
{
for (int i = 8; i > 0; i--)
{
if (Rank == i)
MyClient.SendPacket(General.MyPackets.String(UID, 10, "letter" + i));
}
if (Rank == 1)
MyClient.SendPacket(General.MyPackets.String(UID, 10, "coronet4"));
if (Rank == 2)
MyClient.SendPacket(General.MyPackets.String(UID, 10, "coronet4"));
}