[Tutorial]Source. Fishing.cpp

01/02/2014 12:08 arczaniol1#1
Hello.

I'm happy to show you smal tutorial about fishing.

So let's start it!
In this tutorial I'll show you how to add new extra drop from fish.
At first find file fishing.cpp and open it.

At the line 30 begin function enum

I'll give for example FISH_BONE_VNUM = 27799,
FISH_BONE_VNUM - Is line Local name of the ID (Like in Lua.(Local Example = pc.get_name()))
27799 - ID Fish Bone..

So we wan't add new fish drop that will drop with shelf.

We are going to
And we simple add
Code:
ch->AutoGiveItem(New_Fish_Drop_Arczi);
So now when we find shelf we get shelf with ID = 27987 and Item ID = 71085

Compile it ! Have fun!

Quote:
Originally Posted by arczaniol1 View Post
I did it in 5 min it's possible to add new drop, if you open fishing.cpp you can do:

Code:
			case New_Test_Item_Arczi:	// 5 if 5 then this
				ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT(""Hello world, You find New Item!));
				ch->AutoGiveItem(New_Test_Item_Arczi);
				break;
01/02/2014 12:15 Evor™#2
Which of the source do u use?
Mainline/sg/novaline?
Thanks a lot for tutorial;) Nice to see some new work, you should add thia code into a source-change list.
01/02/2014 12:20 Prince43™#3
Kaum ist die Source public kommen noch unnötigere Releases als sonst. Ich mein reicht es nicht schon aus, dass so viele dähmliche Releases sind mir den Games und so weiter ?


Kind Regards

Prince43™
01/02/2014 12:22 .Bloddy#4
If the diff files can stay the "code extra from users" can stay.
01/02/2014 12:49 JachuPL#5
Quote:
Originally Posted by .Bloddy View Post
If the diff files can stay the "code extra from users" can stay.
dif is your work, there's no license needed (only for IDA), but algorithms are work of big part of people and it is protected by law, so sharing code, even edited, is prohibited, like creating and developing metin2 server :)


@TOP: good job Arczi, but it will drop with shell, isn't it better to add it as a new item?
01/02/2014 13:14 arczaniol1#6
Quote:
Originally Posted by JachuPL View Post

@TOP: good job Arczi, but it will drop with shell, isn't it better to add it as a new item?

I did it in 5 min it's possible to add new drop, if you open fishing.cpp you can do:

Code:
			case New_Test_Item_Arczi:	// 5 if 5 then this
				ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT(""Hello world, You find New Item!));
				ch->AutoGiveItem(New_Test_Item_Arczi);
				break;
01/02/2014 16:52 [uLow]Beni#7
wow das ist ja ne mega große release :O

[Only registered and activated users can see links. Click Here To Register...]


außerdem ist das doch illegal, da sieht man zeilen von ymirs code.
01/02/2014 17:07 -TÜRK-#8
As first you must give name of source, nova, wolf etc.
Second one I think people do not need those tutorials (FOR NOW).
Make Compile tutorials ;)
01/02/2014 17:48 5203307a#9
Quote:
Originally Posted by -TÜRK- View Post
As first you must give name of source, nova, wolf etc.
Second one I think people do not need those tutorials (FOR NOW).
Make Compile tutorials ;)
Source of game launcher looks like edited on some places. Install visual studio 2010 ultimate and sp1 for vc++.
example:
"PythonGraphic.cpp(294): error C2664: 'CPythonGraphic::SaveJPEG' : cannot convert parameter 2 from 'char *' to 'LPBYTE'"
01/02/2014 17:59 -TÜRK-#10
Quote:
Originally Posted by 5203307a View Post
Source of game launcher looks like edited on some places. Install visual studio 2010 ultimate and sp1 for vc++.
example:
"PythonGraphic.cpp(294): error C2664: 'CPythonGraphic::SaveJPEG' : cannot convert parameter 2 from 'char *' to 'LPBYTE'"
Client uses VS2008 ;)
01/02/2014 18:07 5203307a#11
Quote:
Originally Posted by -TÜRK- View Post
Client uses VS2008 ;)
I have vs2008-vs 2012 same errors on this versions.
01/02/2014 18:12 arczaniol1#12
I'm using vb8 for both ;)
01/02/2014 18:16 5203307a#13
Quote:
Originally Posted by arczaniol1 View Post
I'm using vb8 for both ;)
I will try on windows xp and windows 7
01/02/2014 18:20 Evor™#14
If you compile the src in the winndows env, will it works fine one the bsd?
I thought it should be compile in the freebsb env to work there.
After using build.sh i got some errors.
Has sb compiled new game on the freebsd and test it, yet?
I`d appreciate all clues ;)
Greet.
01/02/2014 18:39 5203307a#15
Quote:
Originally Posted by Evor™ View Post
If you compile the src in the winndows env, will it works fine one the bsd?
I thought it should be compile in the freebsb env to work there.
After using build.sh i got some errors.
Has sb compiled new game on the freebsd and test it, yet?
I`d appreciate all clues ;)
Greet.
No on FreeBSD you have elf binary format. game compiled on windows will don't works on FreeBSD launcher too.