Jump to content
  • 0

Need Some Help about Fame Rank


Mechomorph XD

Question


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   1
  • Joined:  03/06/12
  • Last Seen:  

Now, I Made Custom Potion and I'll This Potion Creation by Alchemist Class.

But Problem is After Created Already. Alchemist Rank NOT Increase

EDIT: (By I Added Case CustomItemID Already In Skill.c, Line 10893)

switch(nameid){ some information }

Base ON eAthena 15075 NOT rAthena, Help Me Please.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

This is the part in /src/map/skill.c that affects which brewed potions give Alchemist Rank points:

(search for //Apply quantity modifiers and that should find it)

		} else {
		int fame = 0;
		tmp_item.amount = 0;
		for (i=0; i< qty; i++)
		{	//Apply quantity modifiers.
			if (rand()%10000 < make_per || qty == 1)
			{ //Success
				tmp_item.amount++;
				if(nameid < 545 || nameid > 547)
					continue;
				if(skill_id != AM_PHARMACY &&
					skill_id != AM_TWILIGHT1 &&
					skill_id != AM_TWILIGHT2 &&
					skill_id != AM_TWILIGHT3)
					continue;
				//Add fame as needed.
				switch(++sd->potion_success_counter) {
					case 3:
						fame+=1; // Success to prepare 3 Condensed Potions in a row
						break;
					case 5:
						fame+=3; // Success to prepare 5 Condensed Potions in a row
						break;
					case 7:
						fame+=10; // Success to prepare 7 Condensed Potions in a row
						break;
					case 10:
						fame+=50; // Success to prepare 10 Condensed Potions in a row
						sd->potion_success_counter = 0;
						break;
				}
			} else //Failure
				sd->potion_success_counter = 0;
		}

This line:

					if(nameid < 545 || nameid > 547)
					continue;

means "if item_id is less than 545 or greater than 547, do NOT apply fame"

i.e. "only apply fame points to item_id 545, 546, 547"

Add your new potion's item_id there, save, and recompile.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  71
  • Reputation:   1
  • Joined:  03/06/12
  • Last Seen:  

I Can Do That, Thank You Brian

Edited by Mechomorph XD
Link to comment
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   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.

×
×
  • Create New...