Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 12:48

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[REL] Heavensblessing for coEmu v2 (Partiall)

Discussion on [REL] Heavensblessing for coEmu v2 (Partiall) within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2009
Posts: 260
Received Thanks: 59
[REL] Heavensblessing for coEmu v2 (Partiall)

Hello all, Im still new and yeah i'd like to share my things.

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
Quote:
public int HeavenBlessing = 0;
Then go to UseItem.cs and add this :
Quote:
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 Struct.Statustypes and add this
Quote:
HeavensBlessing = 17,
then go to packetprocessor and add this at the login part.
Quote:
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 go to Structs -> Status

then add in the code this :
Quote:
if (CSocket.Client.HeavenBlessing > 1)
Status += 0x200000000;
** NPC ADDED

Go to lovestone and add this
Quote:
Link("I want to go to offline TG", 3, CSocket);
then the linkback is here too
Quote:
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 to character.cs and add this

Quote:
public uint LogoutTime;
public bool OfflineTG;
then go to
Structs > Map.cs
and add this

Quote:
Nhouse04 = 601,
then go to NpcTalk.cs and add this

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
then go to packetprocessor.cs and add at the login part :
Quote:
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;

/

}
add this in chat.cs

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;
}
Please press thanks,
Yashi.
ImmortalYashi is offline  
Thanks
8 Users
Old 09/18/2009, 17:47   #2
 
CooP^TooL's Avatar
 
elite*gold: 0
Join Date: Sep 2009
Posts: 56
Received Thanks: 5
Is nice that you release things so quick
Goodluck and nice release
CooP^TooL is offline  
Old 09/18/2009, 17:52   #3
 
elite*gold: 0
Join Date: Sep 2009
Posts: 260
Received Thanks: 59
Thanks,
Npcs added and benefits ( Offline TG ) and revive command.
ImmortalYashi is offline  
Old 09/20/2009, 11:48   #4
 
elite*gold: 0
Join Date: Sep 2009
Posts: 260
Received Thanks: 59
#BUMP
Effects added and a fix:P
ImmortalYashi is offline  
Old 09/20/2009, 17:19   #5
 
felipeboladao's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 255
Received Thanks: 273
How to increase more 50% to instamina?
felipeboladao is offline  
Old 09/20/2009, 17:32   #6
 
elite*gold: 0
Join Date: Aug 2008
Posts: 889
Received Thanks: 199
Nice release
OFFTOPIC:felipe add me i wanna talk with you
zbest is offline  
Old 09/20/2009, 19:06   #7
 
elite*gold: 0
Join Date: Sep 2009
Posts: 260
Received Thanks: 59
ehh well i have another system written for stamina but just change when you login.

If im right it sets the stamina there to 100 just do

Quote:
if(HeavensBlessing > 0)
CSocket.Client.Stamina = 150;
// and here the send packet
ImmortalYashi is offline  
Old 09/20/2009, 19:21   #8
 
felipeboladao's Avatar
 
elite*gold: 0
Join Date: Jul 2007
Posts: 255
Received Thanks: 273
ok, my name is Diego , now I only owner of Felipe.

My msn is ..
I am not a good coder,But I'm learning.

I already studied the Coemu source, and already did some modifications, such as Heaven Blessing + benefits.

I'm from Brazil.
I hope that does not have any problem in our communication here in Elitepvprs.

ok, meu nome é Diego, agora eu só proprietário de Felipe.

Meu msn é diego.alef @ hotmail.com ..
Eu não sou um programador bom, mas eu estou aprendendo.

Já estudou a fonte Coemu, e já fiz algumas modificações, como Heaven Bênção + benefícios.

Eu sou do Brasil.
Espero que não tenha nenhum problema na nossa comunicação aqui no Elitepvprs.
felipeboladao is offline  
Old 09/25/2009, 23:15   #9
 
elite*gold: 0
Join Date: Jul 2007
Posts: 30
Received Thanks: 0
srr for this question but
where can i find this??
then go to Structs -> Status
minakaram is offline  
Old 09/26/2009, 10:38   #10
 
elite*gold: 0
Join Date: Sep 2009
Posts: 260
Received Thanks: 59
Right.. open your source then go to structs and then status.cs
ImmortalYashi is offline  
Old 09/26/2009, 18:48   #11
 
elite*gold: 0
Join Date: Jul 2007
Posts: 30
Received Thanks: 0
Quote:
Originally Posted by ImmortalYashi View Post
Right.. open your source then go to structs and then status.cs
there no status at structs
minakaram is offline  
Old 09/30/2009, 09:46   #12
 
elite*gold: 0
Join Date: Sep 2009
Posts: 260
Received Thanks: 59
Make a screen shot and prove it isn't there,
So far you are the only one saying it isn't there.

Please look better this time,
Yashi.
ImmortalYashi is offline  
Old 09/30/2009, 20:59   #13
 
elite*gold: 0
Join Date: Jul 2007
Posts: 30
Received Thanks: 0
here u go
Attached Files
File Type: rar New Bitmap Image.rar (82.0 KB, 4 views)
minakaram is offline  
Old 09/30/2009, 21:31   #14
 
elite*gold: 0
Join Date: Sep 2009
Posts: 260
Received Thanks: 59
GOSH!
How's that not there as i stated something like that.

Status.cs or Statustypes.cs LMAO..
ImmortalYashi is offline  
Old 10/02/2009, 23:06   #15
 
killerdiggs's Avatar
 
elite*gold: 0
Join Date: Dec 2008
Posts: 46
Received Thanks: 1
hey can u pls post the definition for HeavenBlessing thx
killerdiggs is offline  
Reply


Similar Threads Similar Threads
Help COEmu v2
06/27/2009 - CO2 Private Server - 3 Replies
How to make my account GM?:)
[HELP] CoEmu v2
06/05/2009 - CO2 Private Server - 5 Replies
#solved
i need help in CoEmu v2
05/29/2009 - CO2 Private Server - 2 Replies
i need backup for all thing fixd in CoEmu v2 cq_actions for COEMU v2 CoEmu v2 Character Creation Page LadyLuck in Prize room request for leaving Birth Village CoEmu V2 5095 Skills V5095 Client For The New Source Release! Fix the ShopMall in Coemu Source Cup Awards / CoEmuV2 MAKE SCROLLS WORK CoEmuV2 Talisman in Coemu V2 Source
heavensblessing hack?
01/17/2009 - Conquer Online 2 - 3 Replies
hi all, im now a lvl 104(maby when you read this 105/106) archer i train still very good in lab. but i die most of the time before i run out of arows and need 2000 vp again:mad:, is there some kind of heavens blessing hack that i can revive here always?
heavensblessing bugged?
08/04/2007 - Conquer Online 2 - 1 Replies
i baught a praying stone and i get all the benefits of it except i cant revive here. does anyone else have this problem? could it be my multiclient? thanks in advance



All times are GMT +1. The time now is 12:51.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.