Hollow
 
Joined: 30th Sep 2010 
Posts: 3451 
 
 
		
  Law & Marriage release r300 +
So I've decided to release the law & marriage system I was working on :) This was originally released by Addison in this topic. I wanna thank Ryouken for helping me test it and for the packet combinations. Also thanks to wildsurvival.
  
Any questions can be posted below. All the neccessary packets related to the marriage system have been added by sausage already. In a few links I have used sausage's pastebin as I reached my limit on http://www.pastebin.com. Also the reason I haven't used the language system is because my server
isn't using / going to use it, If you really want it just let me know and I might consider to change it.
  New Files:
  
- Create Handlers > Law.cpp and add: Click Me
 
- Create Handlers > Priest.cpp and add: Click Me
 
 
 
- Create config > law.ini and add Click Me
 
- Create config > priest.ini and add Click Me
 
 
Source / FWD
  
Other codes
  
 
13 years, 10 weeks ago
	 |  
		
 
Pine
 
Joined: 20th Dec 2011 
Posts: 1179 
 
 
		
  Re: Law & Marriage release r300 +
Very great release sir. +1  
13 years, 10 weeks ago
	 |  
		
		
  Re: Law & Marriage release r300 +
 
Nice ;) I might release the player command handler as well so people stop using that ugly substringing method.
 ---
Andrewbob - I would be on the fucking copter of rofls
Programmer, Web Developer, and Graphics Designer  
13 years, 10 weeks ago
	 |  
		
 
Hollow
 
Joined: 30th Sep 2010 
Posts: 3451 
 
 
		
  Re: Law & Marriage release r300 +
Wildsurvival posted: (4th Sep 2012, 11:48 am)
 
  
Nice ;) I might release the player command handler as well so people stop using that ugly substringing method. 
 
You definitely should ^^
  
13 years, 10 weeks ago
	 |  
		
jimmy
 
Joined: 22nd Oct 2009 
Posts: 2788 
 
 
		
  Re: Law & Marriage release r300 +
Nice release! +1 ---
CN:BH 4 lyfe  
13 years, 10 weeks ago
	 |  
		
 
Ryouken
 
Joined: 10th Apr 2012 
Posts: 1040 
 
 
		
  Re: Law & Marriage release r300 +
Wildsurvival posted: (4th Sep 2012, 11:48 am)
 
  
Nice ;) I might release the player command handler as well so people stop using that ugly substringing method. 
 
I use the command handler for player commands too. ^^  
13 years, 10 weeks ago
	 |  
		
 
Hollow
 
Joined: 30th Sep 2010 
Posts: 3451 
 
 
		
  Re: Law & Marriage release r300 +
Ryouken posted: (4th Sep 2012, 07:04 pm)
 
 
Wildsurvival posted: (4th Sep 2012, 11:48 am)
 
  
Nice ;) I might release the player command handler as well so people stop using that ugly substringing method. 
 
 
I use the command handler for player commands too. ^^ 
I would use your command handler, however the thing I dislike about it at the moment is how you can use the player prefix for admin commands and as well for the opposite.
  
13 years, 10 weeks ago
	 |  
		
		
  Re: Law & Marriage release r300 +
 
Mine doesn't do that :D I'll release it tomorrow. Grounded today :/
 ---
Andrewbob - I would be on the fucking copter of rofls
Programmer, Web Developer, and Graphics Designer  
13 years, 10 weeks ago
	 |  
		
 
Hollow
 
Joined: 30th Sep 2010 
Posts: 3451 
 
 
		
  Re: Law & Marriage release r300 +
Wildsurvival posted: (4th Sep 2012, 10:10 pm)
 
  
Mine doesn't do that :D I'll release it tomorrow. Grounded today :/ 
 
Ah, alright I can't wait xD
  
13 years, 10 weeks ago
	 |  
		
		
  Re: Law & Marriage release r300 +
Very nice release! I fell like a nub while asking this, Law.cpp and Priest.cpp don't compile when I build my source :<
   
13 years, 10 weeks ago
	 |  
		
 
Ryouken
 
Joined: 10th Apr 2012 
Posts: 1040 
 
 
		
  Re: Law & Marriage release r300 +
What kind of errors do you get? Or do you mean they aren't added to the project? 
If its the second one, just open the both in codeblocks while the project is open and right click their tabs, then click add to project or w/e it says. :o 
 
13 years, 10 weeks ago
	 |  
		
		
  Re: Law & Marriage release r300 +
Thanks Ryouken! Yeah, it was the second one and it helped me :D :P
   
13 years, 10 weeks ago
	 |  
		
		
  Re: Law & Marriage release r300 +
There you go : https://eoserv.net/forum/topic/20688#post163684 
:D 
---
Andrewbob - I would be on the fucking copter of rofls
Programmer, Web Developer, and Graphics Designer  
13 years, 10 weeks ago
	 |  
		
 
Hollow
 
Joined: 30th Sep 2010 
Posts: 3451 
 
 
		
  Re: Law & Marriage release r300 +
Updated post! :) Now added optional language system.  
13 years, 10 weeks ago
	 |  
		
 
Shroud
 
Joined: 24th Dec 2011 
Posts: 16 
 
 
		
  Re: Law & Marriage release r300 +
Nice, but I'm getting the following errors when I try to compile. :/ 
...\src\handlers\Law.cpp||In function 'void Handlers::Law_Request(Character*, PacketReader&)':| 
...\src\handlers\Law.cpp|15|error: 'LawAction' was not declared in this scope| 
...\src\handlers\Law.cpp|15|error: expected ';' before 'action'| 
...\src\handlers\Law.cpp|22|error: 'action' was not declared in this scope| 
...\src\handlers\Law.cpp|24|error: 'LAW_ACTION_MARRIAGE' was not declared in this scope| 
...\src\handlers\Law.cpp|30|error: 'LAW_ALREADY_MARRIED' was not declared in this scope| 
...\src\handlers\Law.cpp|41|error: 'LAW_FIANCE' was not declared in this scope| 
...\src\handlers\Law.cpp|56|error: 'LAW_NO_GOLD' was not declared in this scope| 
...\src\handlers\Law.cpp|63|error: 'LAW_ACTION_DIVORCE' was not declared in this scope| 
...\src\handlers\Law.cpp|69|error: 'LAW_NOT_MARRIED' was not declared in this scope| 
...\src\handlers\Law.cpp|76|error: 'LAW_INVALID_FIANCE' was not declared in this scope| 
...\src\handlers\Law.cpp|83|error: 'LAW_NO_GOLD' was not declared in this scope| 
...\src\handlers\Law.cpp|98|error: 'LAW_DIVORCED' was not declared in this scope| 
..\src\handlers\Law.cpp|110|error: 'LAW_FIANCE' was not declared in this scope| 
||=== Build finished: 13 errors, 0 warnings ===| 
Any help would be appreciated guys, thanks.
   
12 years, 49 weeks ago
 |  |   |    |    |   |    |   |    |   |   |   |   |    |   |   |