I am still creating it but this is what i have so far.
* the items work
* the icon is there
** offline tg npc
** offline tg
** revive command
* benefits are coming soon (im still creating them just give me time )
Add this into character.cs
Then go to UseItem.cs and add this :Quote:
public int HeavenBlessing = 0;
then go to Struct.Statustypes and add thisQuote:
case 1200000:// S prayingstone
{
CSocket.Client.HeavenBlessing += 259200;
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You used PrayingStone(S) And obtained 3 days of heavenblessing", Struct.ChatType.Top));
CSocket.Send(ConquerPacket.Status(CSocket, 512, CSocket.Client.HeavenBlessing, Struct.StatusTypes.HeavensBlessing));
Delete = true;
break;
}
case 1200001: // M Prayingstone
{
CSocket.Client.HeavenBlessing += 604800;
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You used PrayingStone(M) And obtained 7 days of heavenblessing", Struct.ChatType.Top));
CSocket.Send(ConquerPacket.Status(CSocket, 512, CSocket.Client.HeavenBlessing, Struct.StatusTypes.HeavensBlessing));
Delete = true;
break;
}
case 1200002: // L prayingstone
{
CSocket.Send(ConquerPacket.Chat(0, "SYSTEM", CSocket.Client.Name, "You used PrayingStone(L) And obtained 30 days of heavenblessing", Struct.ChatType.Top));
CSocket.Client.HeavenBlessing += 2592000;
CSocket.Send(ConquerPacket.Status(CSocket, 512, CSocket.Client.HeavenBlessing, Struct.StatusTypes.HeavensBlessing));
Delete = true;
break;
}
then go to packetprocessor and add this at the login part.Quote:
HeavensBlessing = 17,
then go to Structs -> StatusQuote:
if (CSocket.Client.HeavensBlessing > 1)
Packets.ConquerPacket.ToLocal(ConquerPacket.Effect (CSocket.Client.ID, "zf2-e128"), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, 0);
CSocket.Send(ConquerPacket.Status(CSocket, 512, CSocket.Client.HeavenBlessing, Struct.StatusTypes.HeavensBlessing));
then add in the code this :
** NPC ADDEDQuote:
if (CSocket.Client.HeavenBlessing > 1)
Status += 0x200000000;
Go to lovestone and add this
then the linkback is here tooQuote:
Link("I want to go to offline TG", 3, CSocket);
then go to character.cs and add thisQuote:
else if (LinkBack == 3)
{
if (CSocket.Client.HeavenBlessing > 1)
{
CSocket.Client.LogoutTime -= CSocket.Client.LogoutTime;
Teleport(601, 60, 54, 0, CSocket);
CSocket.Client.OfflineTG = true;
CSocket.Disconnect();
End(CSocket);
}
else { ErrorMsg("Only players blessed by heavenblessing can use this feature.", CSocket); }
}
then go toQuote:
public uint LogoutTime;
public bool OfflineTG;
Structs > Map.cs
and add this
then go to NpcTalk.cs and add thisQuote:
Nhouse04 = 601,
then go to packetprocessor.cs and add at the login part :Quote:
#region offline tg npc in offline tg
case 3836:
{
if (LinkBack == 0)
{
Text("You did get exp for : " + CSocket.Client.LogoutTime + " time./n", CSocket);
Text("The exp you have now : " + CSocket.Client.Exp + "/n ", CSocket);
Text("And your level is : " + CSocket.Client.Level + " /n", CSocket);
Text("Offline TG Status : " + CSocket.Client.OfflineTG + " /n", CSocket);
Text("/n", CSocket);
Text("/n", CSocket);
Link("I want to leave to twincity.", 1, CSocket);
Link("I want to stay here.", 255, CSocket);
End(CSocket);
}
if (LinkBack == 1)
{
CSocket.Client.LogoutTime -= CSocket.Client.LogoutTime;
Teleport(1002, 444, 444, 0, CSocket);
CSocket.Client.OfflineTG = false;
Text("There you go.", CSocket);
Link("Thanks", 255, CSocket);
End(CSocket);
}
break;
}
#endregion
add this in chat.csQuote:
CSocket.Client.LogoutTime = (uint)Environment.TickCount;
for (int a = 20; a < 50; a++)
if (CSocket.Client.OfflineTG)
{
CSocket.Client.Exp += (ulong)(Math.Abs((uint)Environment.TickCount - CSocket.Client.LogoutTime) * 0.71);
CSocket.Client.OfflineTG = false;
CSocket.Client.LogoutTime = 0;
/
}
Please press thanks,Quote:
case "rev":
{
if (CSocket.Client.Dead && CSocket.Client.HeavenBlessing > 1)
{
CSocket.Client.CurrentHP = CSocket.Client.MaxHP;
CSocket.Client.Dead = false;
CSocket.Send(ConquerPacket.Status(CSocket, 2, 0, Struct.StatusTypes.StatusEffect));
CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.Model, Struct.StatusTypes.Model));
CSocket.Send(ConquerPacket.Status(CSocket, 2, CSocket.Client.CurrentHP, Struct.StatusTypes.Hp));
ConquerPacket.ToLocal(ConquerPacket.General(CSocke t.Client.ID, CSocket.Client.X, CSocket.Client.Y, 0, 0, 0, Struct.DataType.EntityRemove), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, CSocket.Client.ID);
ConquerPacket.ToLocal(ConquerPacket.SpawnCharacter (CSocket), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, 0);
ConquerPacket.ToLocal(ConquerPacket.Effect(CSocket .Client.ID, "relive"), CSocket.Client.X, CSocket.Client.Y, (int)CSocket.Client.Map, 0, 0);
}
break;
}
Yashi.






..