[Help] Proficiency God

03/08/2010 04:04 .Beatz#1
Hey guys i started a few hours ago on a code for Prof God. During the early stages .Arco helped me quite a bit but now i need some more help.
I just need someone to fix a line for me because it keeps coming up with errors.

Here is the code
Code:
if (Control == 4)
                                    {
                                        if (GC.MyChar.InventoryContains(1088000, 1))
                                        {
                                            GC.AddSend(Packets.NPCSay("Congratulations your weapon proficiency has improved"));
                                            GC.AddSend(Packets.NPCLink("Thank you", 255));
                                            GC.MyChar.RemoveItem(GC.MyChar.NextItem(1088000));
                                             GC.MyChar.RWProf(new Game.Prof() { ID = 000, [COLOR="Red"]Lvl += 1[/COLOR], Exp = 0 });
                                            GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                            GC.AddSend(Packets.NPCFinish());
                                        }
Here are the errors
Quote:
Error 1 The name 'Lvl' does not exist in the current context C:\5165 Source\PacketHandling\NPCDialog.cs 9990 90 NewestCOServer
Error 2 Invalid initializer member declarator C:\5165 Source\PacketHandling\NPCDialog.cs 9990 90 NewestCOServer
The code in red is what is giving me the error.
Thanks in advance
03/08/2010 04:27 Arcо#2
Try this
GC.MyChar.RWProf(new Game.Prof() { ID = 000, Lvl++, Exp = 0 });
Not 100% sure I need to look into the source.
03/08/2010 04:43 .Beatz#3
ok i will try it if not i can go tv with you when your not busy xD

*EDIT*
No thats still coming up with the same error :S
03/08/2010 13:22 LegalConquer#4
IDK lol i normally try untill i get no errors but shouldnt it = 0
and the level up be on a differant line.
with coemu it was prof then weaponid
have youi checked the prof cs file?
for what your actully changing
03/08/2010 13:27 .Beatz#5
**EDIT**
Hey guys. anyone can help me with this? Im sure its very simple to do just i am quite new to this still :D
i can go tv with someone :)
I am all outta ideas on what to do. I have tried some of my own ideas i have tried .Arcos ideas and also LegalConquer! someone please help i really want this, as this will be a great achievement for me. My first NPC made from scratch that as far as i am aware of no one else has or at least released :D
03/08/2010 21:07 Arcо#6
Quote:
Originally Posted by Bolopia View Post
Arco release a Profiency God I think, so just use his. It is a pretty well coded one.
He wants so try making is own level by level prof god decker.
03/08/2010 21:10 .Beatz#7
Quote:
Originally Posted by Bolopia View Post
Arco release a Profiency God I think, so just use his. It is a pretty well coded one.
.Arco is right i am trying to make it lvl up by one lvl at a time using a DB each time. because in my source i dont have EXPBalls.
03/08/2010 21:40 .Beatz#8
@.Arco you got any ideas? sorry to keep asking you lol but you seem to be the only one that acc does anything lol
03/08/2010 21:41 Arcо#9
Quote:
Originally Posted by mattyc2580 View Post
@.Arco you got any ideas? sorry to keep asking you lol but you seem to be the only one that acc does anything lol
Hum, I will work on it.
I'll report later with results.
03/08/2010 21:42 .Beatz#10
Quote:
Originally Posted by .Arco View Post
Hum, I will work on it.
I'll report later with results.
ok cheers man. talk to me on msn if you need anyting :D