Register for your free account! | Forgot your password?

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

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

Advertisement



[HELP] in my code the gw gate mesh 12tails source

Discussion on [HELP] in my code the gw gate mesh 12tails source within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2011
Posts: 46
Received Thanks: 1
[HELP] in my code the gw gate mesh 12tails source

I believe this code, is to change the mesh of the gate when it is open, but is not working, can someone tell me why?

public void Die(Game.Entity killer)
{
if (MapID == 1038)
{
if (UID != 6700)
{
if (Hitpoints != 0 || Mesh != 251 && Mesh != 287)
{
if (Mesh == 241)
Mesh = (ushort)(251 + Mesh % 10);
else
Mesh = (ushort)(287 + Mesh % 10);

Update upd = new Update(true);
upd.UID = UID;
upd.Append(Update.Mesh, Mesh);
killer.Owner.SendScreen(upd, true);
Hitpoints = 0;
}
Attack attack = new Attack(true);
attack.Attacker = killer.UID;
attack.Attacked = UID;
attack.AttackType = Network.GamePackets.Attack.Kill;
attack.X = X;
attack.Y = Y;
killer.Owner.Send(attack);
killer.KOCount++;
}
}
else
{
Attack attack = new Attack(true);
attack.Attacker = killer.UID;
attack.Attacked = UID;
attack.AttackType = Network.GamePackets.Attack.Kill;
attack.X = X;
attack.Y = Y;
killer.Owner.Send(attack);
Hitpoints = MaxHitpoints;
Update upd = new Update(true);
upd.UID = UID;
upd.Append(Update.Hitpoints, MaxHitpoints);
killer.Owner.SendScreen(upd, true);
}
}

And here is the code of the mesh!

public enum SOBType : ushort
{
Gate = 0x1A,
Scarecrow = 0x16,
Shop = 14,
Stake = 0x15,
Pole = 0x0A
}
public enum SOBMesh : ushort
{
ShopFlag = 406,
LeftGate = 0x00F1,
LeftGateOpen = 251,
RightGate = 0x0115,
RightGateOpen = 287,
Pole = 0x471
}

If someone can tell me where is the error I will thank a lot.
djneo31 is offline  
Old 07/12/2011, 10:18   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,282
Received Thanks: 4,190
Hitpoints != 0
(I've never coded Guild War so idk the meshes from heart, but I would try changing that first to see what happens)
Spirited is offline  
Thanks
1 User
Old 07/12/2011, 10:36   #3

 
Kiyono's Avatar
 
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
It's not actually broken, first you need to start GW and second you just need to update the gate with the gate open thingy when it dies.
Kiyono is offline  
Thanks
1 User
Old 07/12/2011, 14:53   #4
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Hitpoints != 0 should be Hitpoints > 0.

Also remember that source was not intended to make a server, but to be used as a resource for making your own.
BaussHacker is offline  
Thanks
2 Users
Old 07/13/2011, 04:16   #5
 
elite*gold: 0
Join Date: Feb 2011
Posts: 46
Received Thanks: 1
Thank you for answering me, I sure hope I can make my own source one day, but I'm not at that level, but I'm learning, I would just like to make a simple server with a public source. thanks all!
djneo31 is offline  
Old 07/13/2011, 05:26   #6
 
elite*gold: 0
Join Date: May 2011
Posts: 1,769
Received Thanks: 756
Quote:
Originally Posted by djneo31 View Post
Thank you for answering me, I sure hope I can make my own source one day, but I'm not at that level, but I'm learning, I would just like to make a simple server with a public source. thanks all!
Just practice, read tutorials, try yourself. Learn to think programmatic.

That way it will be easier for you to understand how these things work etc.

Good luck learning.
BaussHacker is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[HELP] I Need help in source 12tails
07/11/2011 - CO2 Private Server - 3 Replies
Hello, I'm willing to work with the source 12tails, but I am having some difficulties here and would like some assistance if possible, there are three things I would fix it, the top halo does not appear, arenaqualify is not continuing, and the gates of war does not break I would like some advice on where I should fix it. thanks! :D :handsdown:
about 12tails source...
05/17/2011 - CO2 Private Server - 4 Replies
i want add TeratoDragon in twincity ...how can i do
question about 12tails source
05/16/2011 - CO2 Private Server - 1 Replies
Hey Friends, someone told me today a big bad problem. its high ping.... he told me that he made the server with 12tails's source and joined 2 players & when they joined the ping become 2high and they went to strange maps i just wanna anyone tried it tell me that is right or what cuz i didnt try to make server yet. :handsdown:
about 12tails source... Little Help
05/16/2011 - CO2 Private Server - 0 Replies
How to add Frozen grrotto and how can i make guild war works fine and class pk envoy ? ?
Question about 12tails source
05/14/2011 - CO2 Private Server - 3 Replies
the command @skill doesn't work,i can't get any skill, so is the command coded or not?



All times are GMT +1. The time now is 13:31.


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.