Register for your free account! | Forgot your password?

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

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

Advertisement



[Question] Effects at Coordinates

Discussion on [Question] Effects at Coordinates within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
[Question] Effects at Coordinates

Hey Everyone!
I'm trying to set off this effect on the roof at a coordinate only for the person doing the quest:



I'm having a hard time with it however since the code I'm trying to use doesn't work with it. Anyone have an idea?
-NewDawn- is offline  
Old 04/06/2010, 10:35   #2
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Well tell us this, what code are you using for it?
Arcо is online now  
Old 04/06/2010, 10:41   #3
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by .Arco View Post
Well tell us this, what code are you using for it?
Well, the code i'm using it for is so that when a certain NPC (the KunFuBoy) ends the conversation, it triggers the effect (which I have down so far):
Code:
if (Control == 2)
                                    {
                                        GC.AddSend(Packets.NPCSay("It seems that you have mastered this skill. Good. My sister, Kungfu Girl, has stolen my Jade Glyph and has hidden it on the roof behind me. Can you go and fetch it for me?"));
                                        GC.AddSend(Packets.NPCLink("No problem!", 3));
                                        GC.AddSend(Packets.NPCSetFace(N.Avatar));
                                        GC.AddSend(Packets.NPCFinish());
                                            GC.MyChar.MyClient.AddSend(Packets.String(GC.MyChar.MyClient.MyChar.EntityID, 10, "angelwing"));
                                            GC.MyChar.Experience = 100;
                                            GC.LocalMessage(2000, "You've received an EXP reward.");
                                            //hidden from Elitepvpers for now.
                                        
                                        
                                    }
Code:
if (Control == 3)
                                    {
                                        // /effect clewarbignor
                                        
                                        GC.AddSend(Packets.NPCSay("Press CTRL and left click with your mouse to jump to the roof and find KungfuGirl."));
                                        GC.AddSend(Packets.NPCFinish());
                                        
                                    }
and the base code I'm trying to use to set the coords is by editing this code:
Code:
GC.MyChar.MyClient.AddSend(Packets.String(GC.MyChar.MyClient.MyChar.EntityID, 10, "effectname"));
which.. isn't working.

#edit: going to sleep- night all!
-NewDawn- is offline  
Old 04/06/2010, 14:59   #4


 
Korvacs's Avatar
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,126
Received Thanks: 2,518
I told you previously, this was brought in, in later editions of the client so they probably have a much simpler way of doing it (by sending effects with cordinates).

At the moment using that client the only way i can think of doing it (Since you cant send effect packets to cordinates directly) would be to spawn an invisible monster and to cast the effect on them. But this would most likely crash the client since you cannot spawn something without a mesh and thus an appearence.
Korvacs is offline  
Old 04/06/2010, 15:45   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
...why did you make two threads for two simliar questions?
PeTe Ninja is offline  
Old 04/06/2010, 20:21   #6
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by PeTe Ninja View Post
...why did you make two threads for two simliar questions?
They're not Pete. One is finding out an effect name and another one is how to make an effect at a coord (which I think is important for people to be able to search for).
-NewDawn- is offline  
Old 04/06/2010, 22:13   #7
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by -NewDawn- View Post
They're not Pete. One is finding out an effect name and another one is how to make an effect at a coord (which I think is important for people to be able to search for).
create a new "npc type thingy" like a non playable anything or movable.. make its coords that and make its visible part the effect...
PeTe Ninja is offline  
Old 04/07/2010, 01:57   #8
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by PeTe Ninja View Post
create a new "npc type thingy" like a non playable anything or movable.. make its coords that and make its visible part the effect...
that's for if you want to make something like a flower...
I'm talking about actually setting off on effect as a result of an action. I don't want to have the arrow be there 24/7 if you know what i mean.

So far I've been looking at the packets but I haven't came up with much of anything...

So far I have this:
Code:
GC.MyChar.MyClient.AddSend(Packets.Effect(407, 327, 10, "clewarbignor"));
and this:
Code:
public static COPacket Effect(ushort X, ushort Y, byte Type, string str) // Note1
        {
            byte[] Packet = new byte[8 + 11 + str.Length];
            COPacket P = new COPacket(Packet);

            P.WriteInt16((ushort)(Packet.Length - 8));
            P.WriteInt16((ushort)0x3f7);
            P.WriteInt16(X);
            P.WriteInt16(Y);
            P.WriteByte(Type); // Type 10 = effect
            P.WriteByte(1);
            P.WriteByte((byte)str.Length);
            P.WriteString(str);
            
            return P;
        }
doesn't work at all. rofl. Without uint UID, there is no target and the effect cannot be seen... but with UID, the target is set to you along with your coords. Help? =\
-NewDawn- is offline  
Old 04/07/2010, 02:05   #9
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Wait you're trying to create your own packet?
Arcо is online now  
Old 04/07/2010, 08:16   #10
 
elite*gold: 0
Join Date: Feb 2010
Posts: 378
Received Thanks: 86
Quote:
Originally Posted by .Arco View Post
Wait you're trying to create your own packet?
Kinda =\ Yah...
Not working. lol
-NewDawn- is offline  
Old 04/07/2010, 09:35   #11
 
elite*gold: 0
Join Date: Feb 2009
Posts: 262
Received Thanks: 161
try
Code:
                        if (Cmd[0] == "/test1")
                        {
                            GC.MyChar.MyClient.AddSend(Packets.String(GC.MyChar.EntityID, 10, "cantask"));
                        }
teroareboss1 is offline  
Old 04/07/2010, 10:03   #12
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,783
Received Thanks: 5,304
Well a command for effects is already coded so he can just do /effect cantask
Arcо is online now  
Old 04/07/2010, 16:09   #13
 
elite*gold: 0
Join Date: Oct 2009
Posts: 768
Received Thanks: 550
I have something on my mind. I'll test then I'll post the results.

And it actually works!!!



Nasty! LOL


Beg for it and you'll have it.
-impulse- is offline  
Old 04/07/2010, 17:36   #14
 
_Emme_'s Avatar
 
elite*gold: 1142
Join Date: Aug 2006
Posts: 2,464
Received Thanks: 1,162
@Impulse

It's funny that most of the post you do is bragging of what you can do/have. Get real, you brag too much, seriously.
_Emme_ is offline  
Old 04/07/2010, 17:59   #15
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,922
Received Thanks: 491
Quote:
Originally Posted by EmmeTheCoder View Post
@Impulse

It's funny that most of the post you do is bragging of what you can do/have. Get real, you brag too much, seriously.
i like his bragging. it enlightens me. all you do is whine and cry.
PeTe Ninja is offline  
Reply


Similar Threads Similar Threads
[Question] Get coordinates by left mouseclick
06/19/2009 - Kal Online - 17 Replies
Hey epvpers, Im alten kalhackit gabs doch ne funktion, wo man STRG+Linksklick gemacht hat und dann wurde man zu der location "geportet". Weiß nicht ob das so ist aber sicherlich war das nur mit Movepackets sprich mit Superspeed da. Easy, eigentlich....Doch wie bekam das kalhackit die coords von dem linksklick raus? Meine Theorie wäre ja, dadurch das man linksklickt bewegt man sich ja. So. Der weiße Kreis der am Ende auf dich wartet sind deine Zielcoordinaten. Der Client (oder Server?!)...
[Question]Saving Coordinates.
01/18/2009 - CO2 Programming - 2 Replies
My memory based archer bot is close to done, it can jump to a certain coordinate and scatter which are the most important things right now. Anyway, I'm trying to see what would be the best way to save specific coordinates to a file and then ofcourse read them. (See it as setting a path to follow) It also has to allow other users to manipulate them to their likings, wich can be shared etc.. etc.. Now for my question, how should i approach this? Or better yet what would be my best bet and...
[Question]VB6 - Coordinates
11/28/2008 - CO2 Programming - 12 Replies
So I got a question, Im reading process memory for coordinates and i want to let it jump to another set of coordinates where would i start with making a jump? Is this possible to do without simulating clicks and having to have screen on top?



All times are GMT +1. The time now is 08:54.


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.