[Request] Auto Cps for World Conquer V2

03/01/2023 19:00 AngelusInkubus#1
Greetings. I've been trying to setup a CO server and implement some ideas, but I'm a newbie to programming. At least I've managed to make it work :D
Looking for help of a kind soul to teach me how to add auto cps on this source, based on monster level, like pheasants gives 1 cp and so on.
I'm willing to learn, and I've tried searching for threads/posts with this subject but none came up.
Thanks in advance.
03/01/2023 20:59 Spirited#2
Don't you have a release on adding CPs to another source? Or was that not your work?
03/01/2023 22:46 AngelusInkubus#3
Quote:
Originally Posted by Spirited View Post
Don't you have a release on adding CPs to another source? Or was that not your work?
Honestly I don't remember, it's been a few years since I got involved with sources.
But if posted something about, it wasn't my work and I apologize if I didn't gave the credit for who did.

Edit: BTW, thanks for reminding me of this. I've dropped Albetros source years ago, and at that time, Pro4Never helped me on that code.
I'm trying again on another source.
03/01/2023 23:46 Spirited#4
Quote:
Originally Posted by AngelusInkubus View Post
Honestly I don't remember, it's been a few years since I got involved with sources.
But if posted something about, it wasn't my work and I apologize if I didn't gave the credit for who did.

Edit: BTW, thanks for reminding me of this. I've dropped Albetros source years ago, and at that time, Pro4Never helped me on that code.
I'm trying again on another source.
Ah, okay. Well, you could do something similar. There's gotta be a looting table in World Conquer v2 as well. You could add support for dropping CPs in that system.
03/01/2023 23:59 AngelusInkubus#5
Quote:
Originally Posted by Spirited View Post
Ah, okay. Well, you could do something similar. There's gotta be a looting table in World Conquer v2 as well. You could add support for dropping CPs in that system.
I'm trying to automatically send it to the owner/killer inventory instead of dropping cp items, like that code for Albetros.

I've tried this:

Quote:
#region CP Award
public Character(MsgUserInfo pMsg, DbUser dbUser, Client pClient)
public uint Emoney;

{
Emoney = m_dbUser.Emoney;
get { return m_dbUser.Emoney; }
set
{
m_dbUser.Emoney = m_dbMonster.Level;

UpdateClient(ClientUpdateType.CONQUER_POINTS, value);
Save();

}
}
#endregion
But hadn't succeeded. Albetros was simpler I guess...
Any ideas?
03/04/2023 17:48 pintinho12#6
Quote:
Originally Posted by AngelusInkubus View Post
I'm trying to automatically send it to the owner/killer inventory instead of dropping cp items, like that code for Albetros.

I've tried this:

But hadn't succeeded. Albetros was simpler I guess...
Any ideas?
Dude, you can do this just by checking if the attacker is a Character on BeKill method of Monster


I just downloaded the code from the topic and it already have the CPs drop implemented
03/05/2023 02:12 AngelusInkubus#7
Quote:
Originally Posted by pintinho12 View Post
Dude, you can do this just by checking if the attacker is a Character on BeKill method of Monster


I just downloaded the code from the topic and it already have the CPs drop implemented
If i'm not mistaken, these cps given to character are based on vip level and has a drop chance while farming.
I was trying to implement for each kill, based on monster level, while vip level would give a bonus like it's already doing.
With this code you already gave me an answer to another question, 'bout drop chances, which I'd like to change a little bit. Thanks!
03/06/2023 13:32 pintinho12#8
Quote:
Originally Posted by AngelusInkubus View Post
If i'm not mistaken, these cps given to character are based on vip level and has a drop chance while farming.
I was trying to implement for each kill, based on monster level, while vip level would give a bonus like it's already doing.
With this code you already gave me an answer to another question, 'bout drop chances, which I'd like to change a little bit. Thanks!
With that code you can already do what you need ^^, just change it to your desire
03/09/2023 14:31 Devsome#9
#moved
03/10/2023 03:01 AngelusInkubus#10
Thanks pintinho12 for the tips about the source,and the source itself (gr8 job), already managed to change what I've wanted. Btw, you're brazilian too, right?

Also, thanks to Devsome for moving the topic to the right section. =D