Jump to content

Recommended Posts

Posted (edited)

Wow this system is very hard to implement because of the changed pointer from old version to now... i alreay compiled it and i will test, seems to be pretty good, some hints to make it work is use master instead of msd on some pointers about pet, most of them use the msd and the actual rathena uses master...

 

 

Edit: now is working fine, i got all the faction issues solved for me on my server but i have only 1 question, when you attack a normal mob, you must remain clicking on it or let pressed the mouse button to autoattack, because if you release it the char only attack one time, why? i am loocking for this 

Edited by zadoch
  • 8 months later...
Posted (edited)

Hi, It's been a while since I start adding the faction system, solving each problems one by one. But I'm having one problem that I'm stuck with:

make[1]: Entering directory `/home/rlcpba9c/emulador/src/char'
	MKDIR	obj
	CC	char.c
char.c: In function 'char_mmo_char_tosql':
char.c:331: error: called object 'p->faction_id != cp->faction_id' is not a function
I don't know where to declare this function. I tried a lot but nothing... I'm almost sure that it could be easy to fix... I think I'm overwhealmed... If anyone can help me with that I'll be eternally gratefull...

 

Obs: Sorry about the english, Im brazilian.

 

Thank you again for your time.

 

Edit:

I got it! It's because it's missing || (OR) in one of them. But other errors have arised...  I'll try to solve whithin a couple of days. If I can't solve it, I'll post here. Thank you guys!

Edited by Fratini
Posted (edited)

I did it! Finally!! Lilith, you are awesome in source! Thank you a lot!! The faction chat, the system of aura, leader, everything in order! Very nice!!

 

Thank you again, Lilith!

 

I made a little edit in normal monster. Since mob don't attack mob, faction monsters attack neutral monsters, but monster didn't attack back. So I edit in battle.c a little thing so monster attack faction monsters when attacked or when aggressives: 

			if( !md->special_state.ai )
			{ //Normal mobs
				if(
					( target->type == BL_MOB && t_bl->type == BL_PC && ( ((TBL_MOB*)target)->special_state.ai != AI_ZANZOU && ((TBL_MOB*)target)->special_state.ai != AI_ATTACK ) ) ||
					( t_bl->type == BL_MOB && !((TBL_MOB*)t_bl)->special_state.ai && !((TBL_MOB*)t_bl)->faction_id)
				  )
					state |= BCT_PARTY; //Normal mobs with no ai are friends.
				else
					state |= BCT_ENEMY; //However, all else are enemies.
			}

Adding  "&& !((TBL_MOB*)t_bl)->faction_id" at the second if, made faction monsters natural enemy for neutral monsters.

Edited by Fratini
  • 6 months later...
  • 5 months later...
Posted

Kinda reviving this but i would love to see this working on latest Ra i would pay someone to fix it and have it working and also share it with everyone!

  • 3 years later...
  • 3 months later...
  • 10 months later...
  • 2 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...