Jump to content
  • 0

Hunting Mission


Radian

Question


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Can i request a bindcommand for hunting mission that works like this

 

When a player use @huntinglist it will display the list of required monsters to hunt? of course it will only work when he/she got an available mission.

 

I am using this script : https://github.com/rathena/rathena/blob/master/npc/custom/quests/hunting_missions.txt  thanks!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

Add this somewhere appropriate

OnHuntCmd:
    for (.@i = 0; .@i < .Quests; .@i++) {
        .@j[.@i] = getd("Mission" + .@i);
        .@j[.Quests] = .@j[.Quests] + strmobinfo(3,.@j[.@i]);
        .@j[.Quests+1] = .@j[.Quests+1] + (strmobinfo(6,.@j[.@i]) / (getbattleflag("base_exp_rate") / 100) * .Modifier[0]);
        .@j[.Quests+2] = .@j[.Quests+2] + (strmobinfo(7,.@j[.@i]) / (getbattleflag("job_exp_rate") / 100) * .Modifier[1]);
        announce " > "+strmobinfo(1,.@j[.@i]) + " (" + getd("Mission"+.@i+"_") + "/" + #Mission_Count + ")",bc_self|bc_blue;
    }
end;


Add somewhere under

OnInit:

bindatcmd "huntinglist","Hunting Missions::OnHuntCmd",0,99;
Edited by Stolao
  • Upvote 1
Link to comment
Share on other sites

  • 1

  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

 

 

Add this somewhere appropriate

OnHuntCmd:
    for (.@i = 0; .@i < .Quests; .@i++) {
        .@j[.@i] = getd("Mission" + .@i);
        .@j[.Quests] = .@j[.Quests] + strmobinfo(3,.@j[.@i]);
        .@j[.Quests+1] = .@j[.Quests+1] + (strmobinfo(6,.@j[.@i]) / (getbattleflag("base_exp_rate") / 100) * .Modifier[0]);
        .@j[.Quests+2] = .@j[.Quests+2] + (strmobinfo(7,.@j[.@i]) / (getbattleflag("job_exp_rate") / 100) * .Modifier[1]);
        announce " > "+strmobinfo(1,.@j[.@i]) + " (" + getd("Mission"+.@i+"_") + "/" + #Mission_Count + ")",bc_self|bc_blue;
    }
end;

Add somewhere under

OnInit:

bindatcmd "huntinglist","Hunting Missions::OnHuntCmd",0,99;

 

How can i add if the user finished the quest instead of the monsters list it will show the delay time..

 

 

try this

OnHuntCmd:
	if (#Mission_Delay > gettimetick(2) && .Delay) {
		announce "I'm afraid you'll have to wait " + callfunc("Time2Str",#Mission_Delay) + " before taking another mission.",bc_self|bc_blue;
		end;
	}
	for (.@i = 0; .@i < .Quests; .@i++) {
		.@j[.@i] = getd("Mission" + .@i);
		.@j[.Quests] = .@j[.Quests] + strmobinfo(3,.@j[.@i]);
		.@j[.Quests+1] = .@j[.Quests+1] + (strmobinfo(6,.@j[.@i]) / (getbattleflag("base_exp_rate") / 100) * .Modifier[0]);
		.@j[.Quests+2] = .@j[.Quests+2] + (strmobinfo(7,.@j[.@i]) / (getbattleflag("job_exp_rate") / 100) * .Modifier[1]);
		announce " > "+strmobinfo(1,.@j[.@i]) + " (" + getd("Mission"+.@i+"_") + "/" + #Mission_Count + ")",bc_self|bc_blue;
	}
end;
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

 

Add this somewhere appropriate

OnHuntCmd:
    for (.@i = 0; .@i < .Quests; .@i++) {
        .@j[.@i] = getd("Mission" + .@i);
        .@j[.Quests] = .@j[.Quests] + strmobinfo(3,.@j[.@i]);
        .@j[.Quests+1] = .@j[.Quests+1] + (strmobinfo(6,.@j[.@i]) / (getbattleflag("base_exp_rate") / 100) * .Modifier[0]);
        .@j[.Quests+2] = .@j[.Quests+2] + (strmobinfo(7,.@j[.@i]) / (getbattleflag("job_exp_rate") / 100) * .Modifier[1]);
        announce " > "+strmobinfo(1,.@j[.@i]) + " (" + getd("Mission"+.@i+"_") + "/" + #Mission_Count + ")",bc_self|bc_blue;
    }
end;

Add somewhere under

OnInit:

bindatcmd "huntinglist","Hunting Missions::OnHuntCmd",0,99;

 

How can i add if the user finished the quest instead of the monsters list it will show the delay time..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Thanks it works.

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