Jump to content
  • 0

how to properly add custom skill as quest skill?


Jhedzkie

Question


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

help please.

Link to comment
Share on other sites

15 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  


skill CustomSkillID,1,0;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

custom skill gets reset(unlearned) when Reset Girl is used while other quest skills remain learned in the skill tree.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  182
  • Reputation:   22
  • Joined:  12/30/12
  • Last Seen:  

skill CustomSkillID,1,0;

 

What file does this entry should be placed?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

 

skill CustomSkillID,1,0;

 

What file does this entry should be placed?

 

on an npc script, obviously?

ex. Platinum Skill Npc.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

@Jhedzkie

Try adding your custom skill at trunk/db/re/skill_tree.txt

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

@Jhedzkie

Try adding your custom skill at trunk/db/re/skill_tree.txt

 

skill_db.txt

1501,0,6,4,0,0x1,0,10,1,no,0,0x1,0,weapon,0,		ALL_INFINITEAMMO,Infinite Ammo

 

notice that i already set the inf2 value into 0x1 (0x0001- quest skill) but still, i wasnt able to make it work properly.

 

skill_tree.txt

3,1501,1,0,0,0,0,0,0,0,0,0,0 //ALL_INFINITEAMMO#Infinite Ammo#

 

and yes, I already did set it too in the skill_tree.txt as well as the necessary lua modifications.

Edited by Jhedzkie
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Infinite Ammo Skill? Does it mean; no arrows/ammo wil consumed when using bow and gun?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

Infinite Ammo Skill? Does it mean; no arrows/ammo wil consumed when using bow and gun?

 

yes, why? O.o

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

I think there's another way to disable ammo/arrows consumed.

trunk/conf/battle/battle.conf

// Are arrows/ammo consumed when used on a bow/gun?
// 0 = No
// 1 = Yes
// 2 = Yes even for skills that do not specify arrow consumption when said 
//     skill is weapon-based and used with ranged weapons (auto-guesses which 
//     skills should consume ammo when it's acquired via a card or plagiarize)
arrow_decrement: 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

I think there's another way to disable ammo/arrows consumed.

trunk/conf/battle/battle.conf

// Are arrows/ammo consumed when used on a bow/gun?
// 0 = No
// 1 = Yes
// 2 = Yes even for skills that do not specify arrow consumption when said 
//     skill is weapon-based and used with ranged weapons (auto-guesses which 
//     skills should consume ammo when it's acquired via a card or plagiarize)
arrow_decrement: 1

 

i think you're getting off topic. i pretty much know about that, but i made it into a skill. skill's working well. period.

the problem is in setting the skill i made act as a quest skill so that my players could avail it by doing series of quests.

 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

I know, so what's the problem with that? The reset npc only right?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

The problem is, that my custom skill, is supposed to act like all other quest skills. that once learned, should not be reset even when the skill reset is used.
HOWEVER, in my current setup, after doing basic stuff, I am not able to make my custom skill INTO a QUEST SKILL. that is why i am asking how to properly add my custom skill as a quest skill. 

Edited by Jhedzkie
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

The problem is, that my custom skill, is supposed to act like all other quest skills. that once learned, should not be reset even when the skill reset is used.

HOWEVER, in my current setup, after doing basic stuff, I am not able to make my custom skill INTO a QUEST SKILL. that is why i am asking how to properly add my custom skill as a quest skill. 

 

Try to max all your 1st job skill after using reset npc(I tried it in my test server just now and it works fine).

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  42
  • Topics Per Day:  0.01
  • Content Count:  297
  • Reputation:   15
  • Joined:  11/17/11
  • Last Seen:  

The problem is, that my custom skill, is supposed to act like all other quest skills. that once learned, should not be reset even when the skill reset is used.

HOWEVER, in my current setup, after doing basic stuff, I am not able to make my custom skill INTO a QUEST SKILL. that is why i am asking how to properly add my custom skill as a quest skill. 

 

Try to max all your 1st job skill after using reset npc(I tried it in my test server just now and it works fine).

 

Do you have your own custom skill to test it with?

Create an archer. But don't go gaining job levels just yet. Go to the Platinum Skill NPC and learn the Platinum Skills.

Take a good hard look at the 'Making Arrow' skill or 'Charge Arrow' skill of the Archer class. Gain some job levels and put levels on some skills, then go to your Reset Girl and reset your skills.

Now take a good hard look again at the Making Arrow and Charge Arrow skills. Notice that all other skills have been unlearned except for those two platinum skills.

And incidentally, that is exactly how I want my custom skill to act. Just like any other platinum skills. And that is what I've only been asking all these time. 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Yes, I tested it in my custom skill.

 

Try this other way to keep the quest skill on the skill tree.

 

//===== rAthena Script =======================================
//= Reset NPC
//===== By: ==================================================
//= rAthena Dev Team
//===== Current Version: =====================================
//= 1.3
//===== Compatible With: =====================================
//= rAthena SVN
//===== Description: =========================================
//= Resets skills, stats, or both.
//===== Additional Comments: =================================
//= 1.0 First Version
//= 1.1 Optimized for the greater good. [Kisuka]
//= 1.2 Cleaning [Euphy]
//= 1.3 All statuses removed upon skill reset. [Euphy]
//============================================================

prontera,150,193,4	script	Reset Girl	124,{

	set .@ResetStat,5000;	// Zeny for stat reset
	set .@ResetSkill,5000;	// Zeny for skill reset
	set .@ResetBoth,9000;	// Zeny for resetting both together

	mes "[Reset Girl]";
	mes "I am the Reset Girl.";
	mes "Reset Stats: "+ .@ResetStat +"z";
	mes "Reset Skills: "+ .@ResetSkill +"z";
	mes "Reset Both: "+ .@ResetBoth +"z";
	mes "Please select the service you want:";
	next;
	switch(select("^FF3355Reset Skills:Reset Stats:Reset Both^000000:Cancel")) {
	case 1:
		mes "[Reset Girl]";
		if (Zeny < .@ResetSkill) {
			mes "Sorry, you don't have enough Zeny.";
			close;
		}
		set Zeny, Zeny-.@ResetSkill;
		sc_end SC_ALL;
		ResetSkill;
		if(Class == 3 || class == 24) skill 1501,1,0;
		mes "There you go!";
		close;
	case 2:
		mes "[Reset Girl]";
		if (Zeny < .@ResetStat) {
			mes "Sorry, you don't have enough Zeny.";
			close;
		}
		set Zeny, Zeny-.@ResetStat;
		ResetStatus;
		mes "There you go!";
		close;
	case 3:
		mes "[Reset Girl]";
		if (Zeny < .@ResetBoth) {
			mes "Sorry, you don't have enough Zeny.";
			close;
		}
		set Zeny, Zeny-.@ResetBoth;
		sc_end SC_ALL;
		ResetSkill;
		ResetStatus;
		if(Class == 3 || class == 24) skill 1501,1,0;
		mes "There you go!";
		close;
	case 4:
		close;
	}
}
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...