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?
 
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
 
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?
 
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.
 
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?
 
Back