Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Need Lucky time help.

Newbie Spellweaver
Joined
Jan 27, 2007
Messages
69
Reaction score
0
ok we know how to add lucky time but how do we get the timer to display in game? can some one please help?
 
Experienced Elementalist
Joined
Jun 12, 2008
Messages
237
Reaction score
0
SendPacket(General.MyPackets.Vital(MyChar.UID, 29, (without() )));


"(whithout())" should be something like MyChar.LuckyTime something like MyChar.Level or thing like that and you will see the icon in his place starting from your lvl in down...i mean when u "pray" u get luckytime...and u have to add in character.cs something like uint LuckyTime = 0;
if u pray it will be increased(if u know how to code it:p) by simple LuckyTime++;
so it will be
SendPacket(General.MyPackets.Vital(MyChar.UID, 29, MyChar.LuckyTime)); <-- is made for client.cs
 
Newbie Spellweaver
Joined
Aug 30, 2008
Messages
74
Reaction score
0
I didn't add lucky time can you send me the guide please?
 
Newbie Spellweaver
Joined
Jan 27, 2007
Messages
69
Reaction score
0
SendPacket(General.MyPackets.Vital(MyChar.UID, 29, (without() )));


"(whithout())" should be something like MyChar.LuckyTime something like MyChar.Level or thing like that and you will see the icon in his place starting from your lvl in down...i mean when u "pray" u get luckytime...and u have to add in character.cs something like uint LuckyTime = 0;
if u pray it will be increased(if u know how to code it:p) by simple LuckyTime++;
so it will be
SendPacket(General.MyPackets.Vital(MyChar.UID, 29, MyChar.LuckyTime)); <-- is made for client.cs

My source doen't have "MyPackets"

it has somethign called "serverpackets" though.

and it doesn't have client.cs

it has coclient.cs

and something called packetbuilder.

Anyway, I now know how to make the number appear (it automatically starts counting down)

The other question is how to make the number appear in green and start counting up, and then after doing that, keep track of how long the bless skill has been active?
 
Newbie Spellweaver
Joined
Jan 27, 2007
Messages
69
Reaction score
0
for soem unacountable reason, i simly cannot send a number of milliseconds greater than 65535 in a luckytime packet! The code seems correct...

public static byte[] Vital(uint CharID, int Type, Int32 NewValue)
{
byte[] PacketData = new byte[0x1c];
PacketData[0] = 0x1c;
PacketData[1] = 0x00;
PacketData[2] = 0xf9;
PacketData[3] = 0x03;
PacketData[4] = (byte)(CharID & 0xff);
PacketData[5] = (byte)((CharID >> 8) & 0xff);
PacketData[6] = (byte)((CharID >> 16) & 0xff);
PacketData[7] = (byte)((CharID >> 24) & 0xff);
PacketData[8] = (byte)((uint)Type & 0xff);
PacketData[9] = (byte)(((uint)Type >> 8) & 0xff);
PacketData[10] = (byte)(((uint)Type >> 16) & 0xff);
PacketData[11] = (byte)(((uint)Type >> 24) & 0xff);
PacketData[12] = (byte)((uint)Type & 0xff);
PacketData[13] = (byte)(((uint)Type >> 8) & 0xff);
PacketData[14] = (byte)(((uint)Type >> 16) & 0xff);
PacketData[15] = (byte)(((uint)Type >> 24) & 0xff);
PacketData[16] = (byte)(NewValue & 0xff);
PacketData[17] = (byte)((NewValue >> 8) & 0xff);
PacketData[18] = (byte)((NewValue >> 16) & 0xff);
PacketData[19] = (byte)((NewValue >> 24) & 0xff);
PacketData[20] = 0x00;
PacketData[21] = 0x00;
PacketData[22] = 0x00;
PacketData[23] = 0x00;
PacketData[24] = 0x00;
PacketData[25] = 0x00;
PacketData[26] = 0x00;
PacketData[27] = 0x00;
return PacketData;
}

but anything greater than 65535 wraps around. 65536 gets me 0 lucky time.
 
Newbie Spellweaver
Joined
Jan 27, 2007
Messages
69
Reaction score
0
okay i'm trying EVERYThiNG, and i simplyt cannot get the luckytime counter to go above 1 minute 5 seconds! what the hell? is there a different packet used to send the updates?
 
Experienced Elementalist
Joined
Jun 12, 2008
Messages
237
Reaction score
0
ur using the source hat have the game and login server separed, dont u?
 
Back
Top