[Tutorial]Source. Fishing.cpp

01/02/2014 19:08 LastSpartan300#16
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;
You should use return instead of break :)
01/02/2014 19:28 Evor™#17
Jeah, but after compiling due to build.sh i got lot of errors [Only registered and activated users can see links. Click Here To Register...]
I have gcc version 4.x.x, how to solve that?
Help appreciated.
Greet.
01/02/2014 21:36 JachuPL#18
Quote:
Originally Posted by -TÜRK- View Post
Client uses VS2008 ;)
and so do entire project :) I use VS2008 Prof to compile this. Maybe I will write a tutorial how to compile on FreeBSD but I have to get my PC parts to assemble another PC (poor kid here) ;)
01/02/2014 22:17 arczaniol1#19
Quote:
Originally Posted by LastSpartan300 View Post
You should use return instead of break :)
I don't think so, I use break instead return, look at the example from another fishdrop they all use break.
More explain:
break is used when you want to exit from loop, while return is used to go back to the step where it was called or to stop further execution.
So if you will use return then you get simple loop.
01/02/2014 22:29 PauloFerreira19#20
I think this dont work...
Code:
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT(""Hello world, You find New Item!));
Have "2" errors, the first is: LC_TEXT(""Hello world, You find New Item!) maybe is LC_TEXT("Hello world, You find New Item!") and if you see, the LC_TEXT is for "convert" the locale_string... So, if you put that:
Code:
ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¸í·É¾î¸¦ ¸ðµÎ ÀÔ·ÂÇϼ¼¿ä."));
In the chat you will see this: "Bitte gib den Befehl in voller Länge ein. ";

Regards.
01/02/2014 22:34 {iSeven}#21
Quote:
Originally Posted by Prince43™ View Post
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™
[Only registered and activated users can see links. Click Here To Register...]
01/02/2014 23:31 atag#22
Quote:
Originally Posted by Evor™ View Post
Jeah, but after compiling due to build.sh i got lot of errors [Only registered and activated users can see links. Click Here To Register...]
I have gcc version 4.x.x, how to solve that?
Help appreciated.
Greet.
Try to compile on i386 BSD :)
01/03/2014 15:21 dudziak2277#23
I have error:
[Warning] "S_ISDIR" redefined [enabled by default]
#include <boost/typeof/typeof.hpp>