Register for your free account! | Forgot your password?

You last visited: Today at 13:43

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

 

Help .. Flag system!

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2013
Posts: 24
Received Thanks: 0
Question Help .. Flag system!

Hello ElitePVPers!

I am editing a source for the new Conquer .. "the updated version"

my question is about the flags after Tops .. "wars"

in the source code there is this :

client.Player.AddTopStatus((ulong)MsgUpdate.Flags3 .DragonFlow, 2, DateTime.Now.AddDays(7));


what does the number 2 after the name of the flag mean ?
sometimes i find it 3 .. sometimes 4 .. what is this ?


another question ..

in the MsgUpdate file there is this
DragonFlow = 1UL << 148,

in Conquer Online 2.0\ini\statuseffect file .. there is this
148 blooddrcontin NULL 10148

in Conquer Online 2.0\c3\effect\skill\blooddrcontin
there are c3 files of the Dragonflow effect of the dragonwarrior "in game effect"


but if i use MsgUpdate.Flags3.DragonFlow, 2, it shows the top 3 trojan effect!!
in totally different folder! ..
please i need help !! it makes no sense >> how this works



xyazanx is offline  
Old   #2
 
elite*gold: 12
Join Date: Jul 2011
Posts: 6,832
Received Thanks: 3,297
Quote:
Originally Posted by xyazanx View Post
Hello ElitePVPers!

I am editing a source for the new Conquer .. "the updated version"

my question is about the flags after Tops .. "wars"

in the source code there is this :

client.Player.AddTopStatus((ulong)MsgUpdate.Flags3 .DragonFlow, 2, DateTime.Now.AddDays(7));


what does the number 2 after the name of the flag mean ?
sometimes i find it 3 .. sometimes 4 .. what is this ?


another question ..

in the MsgUpdate file there is this
DragonFlow = 1UL << 148,

in Conquer Online 2.0\ini\statuseffect file .. there is this
148 blooddrcontin NULL 10148

in Conquer Online 2.0\c3\effect\skill\blooddrcontin
there are c3 files of the Dragonflow effect of the dragonwarrior "in game effect"


but if i use MsgUpdate.Flags3.DragonFlow, 2, it shows the top 3 trojan effect!!
in totally different folder! ..
please i need help !! it makes no sense >> how this works
Go to the function definition and find out?


Spirited is offline  
Old   #3
 
elite*gold: 0
Join Date: Jan 2013
Posts: 24
Received Thanks: 0
Quote:
Originally Posted by Spirited View Post
Go to the function definition and find out?
you were answering my first question .. thanks


it refers to a case ..


what about the flag thing ? could you help me please ?
xyazanx is offline  
Old   #4
 
elite*gold: 12
Join Date: Jul 2011
Posts: 6,832
Received Thanks: 3,297
Quote:
Originally Posted by xyazanx View Post
how to do that ?

Sorry Im kinda new ..




Do you mean like this ?




then what ?
Yes, but highlighting the right thing first.
You should go through this entirely before attempting to even run a server, if you haven't already:
https://docs.microsoft.com/en-us/dot...ng-guide/index


Spirited is offline  
Old   #5
 
elite*gold: 0
Join Date: Jan 2013
Posts: 24
Received Thanks: 0
Quote:
Originally Posted by Spirited View Post
Yes, but highlighting the right thing first.
You should go through this entirely before attempting to even run a server, if you haven't already:
https://docs.microsoft.com/en-us/dot...ng-guide/index
I went through it .. Did not help in my problem ..

I am asking how can I make totally new statusflags (by photoshop)
how to put them in the right folder to use them IN GAME ..
xyazanx is offline  
Old   #6
 
elite*gold: 12
Join Date: Jul 2011
Posts: 6,832
Received Thanks: 3,297
And I'm saying figure it out. You should know how to find a function definition. Or did you figure that out already? In which case, what do you need help with exactly? We're here to answer questions, not run a server for you.
Spirited is offline  
Old   #7
 
elite*gold: 0
Join Date: Jan 2013
Posts: 24
Received Thanks: 0
Quote:
Originally Posted by Spirited View Post
And I'm saying figure it out. You should know how to find a function definition. Or did you figure that out already? In which case, what do you need help with exactly? We're here to answer questions, not run a server for you.
so helping me in a small issue is "running a server" for you ?
I can run my own server .. I am asking simple questions and you are not answering .. I am not a coder but i edited more than 90% of this source by myself by "coding" .. Faced a problem .. posted here .. 0 help >> you are telling me to figure it out .. i spent days trying to .. could not

THANKS FOR YOUR HELP
xyazanx is offline  
Old   #8
 
elite*gold: 12
Join Date: Jul 2011
Posts: 6,832
Received Thanks: 3,297
Quote:
Originally Posted by xyazanx View Post
so helping me in a small issue is "running a server" for you ?
I can run my own server .. I am asking simple questions and you are not answering .. I am not a coder but i edited more than 90% of this source by myself by "coding" .. Faced a problem .. posted here .. 0 help >> you are telling me to figure it out .. i spent days trying to .. could not

THANKS FOR YOUR HELP
I'm referring to the ~5 threads you have open. And if you're not a programmer, then why are you editing source code? That's dangerous. High performance server code shouldn't be modified by someone who doesn't know what they're doing. That's what leads to these sources having more bugs, more exploits, and more performance problems. That's why your source isn't allowed here to begin with. It's already in that state. So let's try again. What do you want from us? What is your question?
Spirited is offline  
Old   #9
 
elite*gold: 0
Join Date: Jan 2013
Posts: 24
Received Thanks: 0
this is it ..

in the MsgUpdate file there is this
DragonFlow = 1UL << 148,

in Conquer Online 2.0\ini\statuseffect file .. there is this
148 blooddrcontin NULL 10148

in Conquer Online 2.0\c3\effect\skill\blooddrcontin
there are c3 files of the Dragonflow effect of the dragonwarrior "in game effect"


but if i use MsgUpdate.Flags3.DragonFlow, 2, it shows the top 3 trojan effect!!
in totally different folder! ..


everything is ordered correctly but the results make no sense .. loading a flag from another folder .. why ? .. any idea how the "client" works ?
xyazanx is offline  
Old   #10
 
elite*gold: 12
Join Date: Jul 2011
Posts: 6,832
Received Thanks: 3,297
Alright, so look up bitflags for C#. That answers your first question. Second question is the same, look up the function definition. Right click on the function name and select go to definition if you haven't figured that out yet. Same as F12. From there, it should have a variable name and be used in the function. Read the function and figure out what it's being used for if the variable name isn't helpful. And likely the flags aren't correct (that's what I mean about bugs in these sources). You'll need to figure it out using that status effect file for your client version.
Spirited is offline  
Old   #11
 
elite*gold: 0
Join Date: Jan 2013
Posts: 24
Received Thanks: 0
Quote:
Originally Posted by Spirited View Post
Alright, so look up bitflags for C#. That answers your first question. Second question is the same, look up the function definition. Right click on the function name and select go to definition if you haven't figured that out yet. Same as F12. From there, it should have a variable name and be used in the function. Read the function and figure out what it's being used for if the variable name isn't helpful. And likely the flags aren't correct (that's what I mean about bugs in these sources). You'll need to figure it out using that status effect file for your client version.


Now thats a good answer thanks ..

the definition of number 2 is [public struct Int32] from metadata
nevermind about this ..

the second question .. the flags works fine but with different names ..

different folder locations .. i cant figure how to organize them ..


let me ask you about the UL << 148
i know it is a bitshift .. what is UL "unsigned Long"?
what does the whole UL << 148 means ?
I though the number 148 is the order number in the file statuseffect.ini
in the column number 148 there is this "148 blooddrcontin NULL 10148"
then there is a folder with the name "blooddrcontin" has the c3 files "dds files"
am I right ? no ?
xyazanx is offline  
Old   #12
 
elite*gold: 0
Join Date: Mar 2005
Posts: 1,303
Received Thanks: 1,356
btw status flags are just a bigint
Ultimation is offline  
Old   #13
 
elite*gold: 12
Join Date: Jul 2011
Posts: 6,832
Received Thanks: 3,297
Quote:
Originally Posted by xyazanx View Post
Now thats a good answer thanks ..

the definition of number 2 is [public struct Int32] from metadata
nevermind about this ..

the second question .. the flags works fine but with different names ..

different folder locations .. i cant figure how to organize them ..


let me ask you about the UL << 148
i know it is a bitshift .. what is UL "unsigned Long"?
what does the whole UL << 148 means ?
I though the number 148 is the order number in the file statuseffect.ini
in the column number 148 there is this "148 blooddrcontin NULL 10148"
then there is a folder with the name "blooddrcontin" has the c3 files "dds files"
am I right ? no ?
http://www.alanzucconi.com/2015/07/26/enum-flags-and-bitwise-operators/

And sometimes folders are compressed in wdf files. Like c3.wdf.
Spirited is offline  
Old   #14
 
elite*gold: 0
Join Date: Jan 2013
Posts: 24
Received Thanks: 0
Quote:
Originally Posted by Spirited View Post
http://www.alanzucconi.com/2015/07/26/enum-flags-and-bitwise-operators/

And sometimes folders are compressed in wdf files. Like c3.wdf.
number 2 refers to flag type


HTML Code:
public void AddTopStatus(UInt64 Title, byte flagtype, DateTime EndsOn, Boolean Db = true)
xyazanx is offline  
Old   #15
 
elite*gold: 12
Join Date: Jul 2011
Posts: 6,832
Received Thanks: 3,297
Quote:
Originally Posted by xyazanx View Post
number 2 refers to flag type


HTML Code:
public void AddTopStatus(UInt64 Title, byte flagtype, DateTime EndsOn, Boolean Db = true)
Seems like they implemented it as three separate status bitmaps rather than one bigint bitmap (as Ultimation suggested it be implemented as). That's probably why you have multiple status flag enums, weird ids, etc. As I said, those sources are pretty awful. It's confusing for us to have to deal with as well, especially when there are so many variants.


Spirited is offline  
Thanks
1 User
Reply



« Previous Thread | Next Thread »

Similar Threads
Flag-Sro l Cap110 l Coin System l Fight-Power System l New System l High Rate
http://i.epvpimg.com/Q62Bb.png if you Like Old School Join us Web Site Flag-Sro - Silkroad Online Private Server Download Flag-Sro - Silkroad...
1 Replies - SRO PServer Advertising
[Selling] Verkaufe TCG-Item "OWN3D"-Flag / Flag of Ownership
Hey Leute, habe wieder ein paar Karten bekommen. Unter den Loots sind 2x die Flag of Ownership. http://ingame.ingame.de/pics/48210_530_397.jpg ...
20 Replies - World of Warcraft Trading



All times are GMT +2. The time now is 13:43.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.