VIP 6

08/26/2010 18:36 FadMucker#1
how can i set my server to give all players vip level 6 automaticly on 5165?
08/26/2010 18:46 dowhatuwant#2
at creating character
GC.MyChar.VipLevel = 6;
08/26/2010 19:05 FadMucker#3
Quote:
Originally Posted by ☆★Zuper★☆ View Post
at creating character
GC.MyChar.VipLevel = 6;
in charactermaking.cs?
08/26/2010 19:24 dowhatuwant#4
ya
08/26/2010 19:47 FadMucker#5
Quote:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NewestCOServer.PacketHandling
{
class CharacterMaking
{
public static void Handle(Main.GameClient GC, byte[] Data)
{
string CharName = "";
for (int i = 0; i < 16; i++)
if (Data[20 + i] != 0)
CharName += Convert.ToChar(Data[20 + i]);

ushort Body = BitConverter.ToUInt16(Data, 52);
byte Job = Data[54];
if (GC.ValidName(CharName))
{
GC.AddSend(Packets.PopUpMessage(GC.MessageID, Database.CreateCharacter(GC.AuthInfo.Account, CharName, Body, Job)));
}
else
GC.AddSend(Packets.PopUpMessage(GC.MessageID, "Invalid character name!"));
}
GC.MyChar.VipLevel = 6;
}
}
is this correct?
08/26/2010 20:06 _Emme_#6
You ask about ALOT, like even the simplies and most logical things. Wouldn't it be easier if you spent about 1-2 weeks learning the base in both C# and the source your using, and save alot of time making new threads,waiting for reply etc etc.?
08/26/2010 20:13 FadMucker#7
Quote:
Originally Posted by EmmeTheCoder View Post
You ask about ALOT, like even the simplies and most logical things. Wouldn't it be easier if you spent about 1-2 weeks learning the base in both C# and the source your using, and save alot of time making new threads,waiting for reply etc etc.?
i am learning the base in both but im also learning by doing,if you dont want to help me why bother even posting?
08/26/2010 20:30 dowhatuwant#8
he is helping u right there.
His simply giving u a tip about go learn c#, so u wont ask this much :)
08/26/2010 20:45 FadMucker#9
Quote:
Originally Posted by ☆★Zuper★☆ View Post
he is helping u right there.
His simply giving u a tip about go learn c#, so u wont ask this much :)
tbh its not really help, dont you think i know to learn it, no point doing it if i wasnt gunna learn it,it was just a pointless post.
08/26/2010 21:05 dowhatuwant#10
it wasnt pointless, because if u was about to learn you wouldnt post this in first place.
U wouldn't even setup server yet.
Here is a good tip.

1. learn the basics about C#, so you know what the different things mean, public, private, void, bool, byte, ushort, ulong, int, uint, string, variable.

2. then start work on your server, cuz u know the basics and when to use the things and where to search etc. then u can look at variables in ur source and how they are used.

3. then learn some more advanced things for c#, such as packets etc.

A good idea would be to take a look at the Metadata for variables in c#.
08/27/2010 00:22 Arcо#11
Quote:
Originally Posted by ☆★Zuper★☆ View Post
A good idea would be to take a look at the Metadata for variables in c#.
This is a great way to learn.
Because metadata has comments telling what max/min values for variables are, and comments saying what some voids do etc.
08/27/2010 00:59 Korvacs#12
Quote:
Originally Posted by FadMucker View Post
i am learning the base in both but im also learning by doing,if you dont want to help me why bother even posting?
Perhaps then you should do less asking, and more doing?
08/27/2010 03:22 FadMucker#13
Quote:
Originally Posted by Korvacs View Post
Perhaps then you should do less asking, and more doing?
if you look at the previous posts you will see i tried doing it for myself. there s no rules in asking for help if your stuck or things aint working right so bite me!
08/29/2010 19:33 haotyca#14
or u could just wonder on forums about everything and learn stuff like i do xD
i will start posting just to help ppl after i learn how :P