Jump to content
KONG

Corsairs Online Source codes

Recommended Posts

we upgraded the serialize module,
I think Billy was the creator of it. There are examples inside the serverfiles if you need reference.

Share this post


Link to post
Share on other sites

@KONG

 

Thank you for your reply.

 

I realised that it didn't add the last parameter in the StoneInfo.txt, which was why it was not compiling, so I just added a parameter from a gem already there and it worked.

 

I then proceeded to play around with the gem colors that was in the StoneInfo and was wondering where I can get more info about those gem colors.

 

Regards.

Share this post


Link to post
Share on other sites
1 hour ago, bayne94 said:

@KONG

 

Thank you for your reply.

 

I realised that it didn't add the last parameter in the StoneInfo.txt, which was why it was not compiling, so I just added a parameter from a gem already there and it worked.

 

I then proceeded to play around with the gem colors that was in the StoneInfo and was wondering where I can get more info about those gem colors.

 

Regards.

Those are hex number for colors, here's an example, if that's what you're asking.

Share this post


Link to post
Share on other sites
On 8/14/2019 at 1:19 AM, KONG said:

I am surprised not a single person opened issue listing due to wanting to get ahead and to profit. Instead, coming to me with their
list of bugs. Why not come together for once and start announcing bugs so everyone can contribute, and make community grow faster than ever?

Example of bug report


Bug Title:
Bug Description:
How to replicate:
Status (pending / close / open):
Author (whoever that fixes it):


or improving architecture designs (example):


Title: Refactor to MVC design pattern
Reason: scalability and maintainability
Approach: blahblahblah


game improvement perhaps?


Title: GuildBank
Reason: Improve existing guild functions
Approach: SQL table, Open-closed, etc
Concerns: concurrency, race, etc


very simple...
Now, if you are not up for this (most of you), then try to get a copy of source code from @deguix repository and use those instead.
It will give you less headache. And someone is willing to write quality code for you, since you are too busy trying to strategize new ways to make
your server generate more $.

I do not know if his top-recode is also discontinued but you can ask.
Again, do not pm/dm me your personal bug list to do for free. Respect those who have studied hard and learned their craft. 😊
Sorry for going off topic if not related to CO Source. 

I would be happy to help, but I can't see anything in that repository

Share this post


Link to post
Share on other sites
7 hours ago, 1g0rS1lv4 said:

how do i add icon to a new potion or amp? or there is no way? 

add icon to appear in effect next to others.

I believe it is through skilleff.txt and gameserver.cfg

Share this post


Link to post
Share on other sites
Quote

Now, if you are not up for this (most of you), then try to get a copy of source code from @deguix repository and use those instead.

@Snre3n has done a lot of coding on his own on the top-recode to get it to work on VS2019. For anyone that tries it now, it should work.

Edited by deguix

Share this post


Link to post
Share on other sites

hey guys, i cant add more items or edit some cause i compile iteminfo but when open .exe get this error :

 

34809d45fa0b695946d8762d56900b25.png

 

can some1 help plis :(

Share this post


Link to post
Share on other sites

Hello all,

 

To get the skill bonus from equipping rear fairies this is what I did.

 

1.    I added the functions to plugin/skill.lua

 

Spoiler

function Telf_effect(role,target)        -- Thunder Fairy Effect Bonus
	local hp = Hp(target)
	local pet_lv = 1
	local statelv = 3 * pet_lv
	local time = statelv*2
	local atk_rad = 7
	local hpdmg = Atk_Raise ( atk_rad , role , target )
	if ((hp - hpdmg) > 1) then
		Hp_Endure_Dmg ( target , hpdmg )
		PlayEffect(target,271)
		SystemNotice ( role , "Spirit Activated Thunder Skill to help you in battle!")
		SystemNotice ( target , "Opponents Fairy activated Thunder Skill")
		ALLExAttrSet(role)
	end
end

function Lelf_effect(role,target)        -- Light Fairy Effect Bonus
	local pet_lv = 1
	local statelv = 2 * pet_lv
	local time = statelv*2
	PlayEffect(role,168 )
	AddState( role , role , STATE_TSHD, statelv , time )
	SystemNotice ( role , "Spirit Activated Light Skill to help you in battle!")
	SystemNotice ( target , "Opponents Fairy activated Light Skill")
	ALLExAttrSet(role)
end

function Delf_effect(role,target)        -- Darkness Fairy Effect Bonus
	local pet_lv = 1
	local statelv = 3 * pet_lv
	local time = statelv*2
	PlayEffect(target,322 )
	AddState ( role , target , STATE_XN , 1 , time )
	AddState ( role , target , STATE_PJ , statelv , time )
	Check_Ys_Rem ( role , target )
	SystemNotice ( role , "Spirit Activated Darkness Skill to help you in battle!")
	SystemNotice ( target , "Opponents Fairy activated Darkness Skill")
	ALLExAttrSet(role)
end

 

 

 2.      I also added this to cha_timer in plugins/timer.lua, I changed the code to read from the equipment slot instead of the 4th bag slot

 

Spoiler

--Rear Fairy
	local target = GetChaFirstTarget(role)
	local pet_bg = GetEquipItemP ( role , 17 )
	local pet_id = GetItemID ( pet_bg )
	
	if pet_id == 8030 then -- Thunder
		local Percentage = Percentage_Random ( 1 )
		if target ~= nil then
			if Percentage == 1 then
				Telf_effect(role,target)
			end
		end
	end
	
	if pet_id == 8031 then --Light
		local Percentage = Percentage_Random(0.1)
		if target ~= nil then
			if Percentage == 1 then
				Lelf_effect(role,target)
			end
		end
	end
		
	if pet_id == 8032 then --Darkness
		local Percentage = Percentage_Random ( 0.1 )
		if target ~= nil then
			if Percentage == 1 then
				Delf_effect(role,target)
			end
		end
	end

 

 

--Update

It works!

 

 

Corsairs Online - An Ocean Fantasy 24_09_2019 11_37_19 am.png

Edited by bayne94
edited timer.lua

Share this post


Link to post
Share on other sites

@mkhzaleh

 

I have it equipped on the rear pet slot.

 

The issue I'm having is getting the skill bonus from equipping it.

 

Atm I'm trying to see if I can add the effect similar to the kylin effect and see if that works.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×