Jump to content
  • 0

Daily quest 1 per Account


Takuyakii

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

Good day just want to ask , if how to make this Script into

1 Character per Account.

On this script they can quest it unlimited depend of their account character.

 

So i want to be this like 

1 Character Only per Account

//        //=====//     /==/     /==/          /==/      
//       //     //     /==/     /==/  /=/     /==/         
//      //=====//              /==/  /=/             /==============/     /========/   /==//===/    /==/     /==/
//     //=//////    /==/      /==//=/       /==/    /==/==/==/==/==/     /     /  /   /==/         /==/     /==/
//    // ==        /==/      /==//=/       /==/    /==/  /==/  /==/     ======/  /   /==/         /==/     /==/
//   //   ==      /==/      /==/  /=/     /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/     /==/
//  //     ==    /==/      /==/   /=/    /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/=====/==/
// //       ==  /==/      /==/    /=/   /==/    /==/  /==/  /==/     /========/   /==/         /==///////==/
// ================ rAthena Script ==================================================
// ============== Information =======================================================
// = iRO Daily Quest : Alberta Cargo
// = Made by :
// = Rikimaru
//===== Current Version: =============================================== 
//= 1.1
//===== Compatible With: =============================================== 
//= any rAthena SVN
//===== Description: =================================================== 
//= The iRO Daily Quest : Alberta Cargo
//= Usefull for having fun in a Server with a Mini Quest
//= Has a counter of 24 Hours until the Players can do the Quest agian.
//===== Additional Comments: =========================================== 
//= 1.0 Finished Scripting the Quest [Rikimaru]
//= 1.1 Fixed a little Bug [Rikimaru]
//====================================================================== 
//============== DO NOT REMOVE MY CREDITS AND CLAIM MY WORK AS YOURS ===
prontera,119,173,6    script    [Quest] Prontera Manager    855,{
set .@npcname$,"^0000FF[ [Quest] Port Manager ]^000000";
if(gettimetick(2) - carfingor < (60 * 60 * 24)) {
mes .@npcname$;
mes "I'm sorry but you have to wait";
mes "24 Hours until you can do the Quest again!";
close;
}
if(qcargo1==1) {
mes .@npcname$;
mes "Congrats!";
getitem 501,20;
set carfingor,gettimetick(2);
set BaseExp,+142;
set cquest,0;
set qcargo1,0;
close;
}


mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
    case 1:
    mes .@npcname$;
    mes "Awesome,find the Deadly Cargo [6]";
    mes "and bring it to me,and you'll";
    mes "get a reward.";
    next;
    mes .@npcname$;
    mes "The Deadly Cargo [6] is somewhere";
    set cquest,1;
    mes "here in Izlude!";
    close;
    case 2:
    mes .@npcname$;
    mes "Okay goodbye!";
    close;
    case 3:
    close;
    }
mes .@npcname$;
mes "........";
close;

}
// ========================= End of the first NPC =================================================
izlude,74,186,3    script    Deadly Cargo [1]    1652,{
set .@npcname$,"^FF0000[ Jumping Swordsman ]^000000";
if(cquest==1) {
mes .@npcname$;
mes "Go back to the Port Manager!";
set qcargo1,1;
while( !checkcell( strnpcinfo(4),( .@x = rand( 1,300 ) ),( .@y = rand( 1,300 ) ),cell_chkpass ) );
movenpc strnpcinfo(0),.@x,.@y;
end;
}
mes .@npcname$;
mes "........";

end;
}
}
// =============================== End of all the NPC's =========================================
// ====================== Have fun with this Script. Yours ~ Rikimaru ===========================

 

Edited by Takuyakii
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

change to account variables.

carfingor   --> #carfingor
qcargo1     --> #qcargo1  
cquest      --> #cquest   

 

  • Upvote 1
  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

23 hours ago, Emistry said:

change to account variables.


carfingor   --> #carfingor
qcargo1     --> #qcargo1  
cquest      --> #cquest   

 

Thanks ! it Works. one more thing how about this one ? 

//        //=====//     /==/     /==/          /==/      
//       //     //     /==/     /==/  /=/     /==/         
//      //=====//              /==/  /=/             /==============/     /========/   /==//===/    /==/     /==/
//     //=//////    /==/      /==//=/       /==/    /==/==/==/==/==/     /     /  /   /==/         /==/     /==/
//    // ==        /==/      /==//=/       /==/    /==/  /==/  /==/     ======/  /   /==/         /==/     /==/
//   //   ==      /==/      /==/  /=/     /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/     /==/
//  //     ==    /==/      /==/   /=/    /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/=====/==/
// //       ==  /==/      /==/    /=/   /==/    /==/  /==/  /==/     /========/   /==/         /==///////==/
// ================ rAthena Script ==================================================
// ============== Information =======================================================
// = iRO Daily Quest : Army Supply
// = Made by :
// = Rikimaru
//===== Current Version: =============================================== 
//= 2.4
//===== Compatible With: =============================================== 
//= any rAthena SVN
//===== Description: =================================================== 
//= The iRO Daily Quest : Army Supply
//= Usefull for having fun in a Server with a Mini Quest
//= Has a counter of 20 Hours until the Players can do the Quest agian.
//===== Additional Comments: =========================================== 
//= 1.9 Fixed the Injured Recruit NPC [Rikimaru]
//= 2.0 Added the NPC Display from Injured to Revived [Rikimaru]
//= 2.1 Added the 2nd and 3rd Army Soldiers [Rikimaru]
//= 2.2 Fixed a few Bugs in the NPC's [Rikimaru]
//= 2.3 Added the 20 Hours Timer and fixed the Script Description [Rikimaru]
//= 2.4 Fixed the 20 Hours Timer [Rikimaru]
//====================================================================== 
//============== DO NOT REMOVE MY CREDITS AND CLAIM MY WORK AS YOURS ===
prontera,115,173,5	script	[Quest] Army Officer	105,{
set .@npcname$,"^0000FF[ [Quest] Army Officer]^000000";
if(armyquest==1) {
mes .@npcname$;
mes "There are a few";
mes "Soldiers,waiting for";
mes "help in Morocc!";
next;
mes .@npcname$;
mes "From Baselevel 61-80 you";
mes "have to help the";
mes "Injured Recruit.";
next;
mes .@npcname$;
mes "Bring them White Potions";
mes "or bring them Yggdrasil";
mes "Berries. Thank you for";
mes "your Help!";
close;
}
if(BaseLevel >= 150) {
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",I'm";
mes "the Army Officer!";
next;
mes .@npcname$;
mes "There are a few";
mes "Soldiers,waiting for";
mes "help in Morocc!";
next;
mes .@npcname$;
mes "From Baselevel 150-255 you";
mes "have to help the";
mes "Injured Recruit.";
next;
mes .@npcname$;
mes "Bring them White Potions";
mes "or bring them Yggdrasil";
mes "Berries. Thank you for";
mes "your Help!";
set armyquest,1;
close;
}
mes .@npcname$;
mes "Hello "+strcharinfo(0)+",get";
mes "a Higher Baselevel please.";
mes "You have to be Baselevel";
mes "150 or Higher!";
close;
}
// ======================= End of 1st NPC ======================================
// ===================== other NPC's coming now ================================
morocc,172,68,5	script	Injured Recruit	849,{
set .@npcname$,"^0000FF[ Injured Recruit ]^000000";
if(gettimetick(2) - helped1 < (60 * 60 * 20)) {
mes .@npcname$;
mes "Sorry but you have to wait";
mes "Until 20 Hours are over!";
close;
}
if(armyquest==1 && BaseLevel <= 255 && BaseLevel >= 150) {
mes .@npcname$;
mes "... Uggh ...";
mes "Help me ....";
mes "with some....";
mes "healing stuff. Please...";
next;
switch(select("-Yggdrasil Berries:-White Potion:-Cancel")) {
	case 1:
	if(countitem(607) <1) goto l_noitem;
	delitem 607,1;
	next;
	mes .@npcname$;
	mes "Wooooow...";
	setnpcdisplay("Injured Recruit","Revived Recruit",813);
	sleep2 5000;
	next;
	mes .@npcname$;
	mes "Thank you for the Help.";
	set BaseExp,+160000;
	set JobExp,+100000;
	getitem 501,20;
	set helped1,gettimetick(2);
	setnpcdisplay("Revived Recruit","Injured Recruit",849);
	close;
	case 2:
	if(countitem(504) <1) goto l_noitem;
	delitem 504,1;
	next;
	mes .@npcname$;
	mes "Wooooow...";
	setnpcdisplay("Injured Recruit","Revived Recruit",813);
	sleep2 5000;
	next;
	mes .@npcname$;
	mes "Thank you for the Help.";
	set BaseExp,+80000;
	set JobExp,+50000;
	getitem 501,20;
	set helped1,gettimetick(2);
	setnpcdisplay("Revived Recruit","Injured Recruit",849);
	close;
	case 3:
	close;
	}
	l_noitem:
	mes .@npcname$;
	mes "You don't have the item...Get it fast please.";
	close;
}


mes .@npcname$;
mes "... Uggh...";
close;
}

// =========================== End of 4th NPC Script ================================
// ====================== End of the whole Daily Quest ==============================
// ================= Have fun with this Script. Yours Rikimaru ======================


AND THIS one ?

 

//        //=====//     /==/     /==/          /==/      
//       //     //     /==/     /==/  /=/     /==/         
//      //=====//              /==/  /=/             /==============/     /========/   /==//===/    /==/     /==/
//     //=//////    /==/      /==//=/       /==/    /==/==/==/==/==/     /     /  /   /==/         /==/     /==/
//    // ==        /==/      /==//=/       /==/    /==/  /==/  /==/     ======/  /   /==/         /==/     /==/
//   //   ==      /==/      /==/  /=/     /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/     /==/
//  //     ==    /==/      /==/   /=/    /==/    /==/  /==/  /==/     / /===/  /   /==/         /==/=====/==/
// //       ==  /==/      /==/    /=/   /==/    /==/  /==/  /==/     /========/   /==/         /==///////==/
// ================ rAthena Script ==================================================
// ============== Information =======================================================
// = iRO Daily Quest : Alberta Cargo
// = Made by :
// = Rikimaru
//===== Current Version: =============================================== 
//= 1.1
//===== Compatible With: =============================================== 
//= any rAthena SVN
//===== Description: =================================================== 
//= The iRO Daily Quest : Alberta Cargo
//= Usefull for having fun in a Server with a Mini Quest
//= Has a counter of 24 Hours until the Players can do the Quest agian.
//===== Additional Comments: =========================================== 
//= 1.0 Finished Scripting the Quest [Rikimaru]
//= 1.1 Fixed a little Bug [Rikimaru]
//====================================================================== 
//============== DO NOT REMOVE MY CREDITS AND CLAIM MY WORK AS YOURS ===
prontera,119,173,6	script	[Quest] Prontera Manager	855,{
set .@npcname$,"^0000FF[ [Quest] Port Manager ]^000000";
if(gettimetick(2) - #carfingor < (60 * 60 * 24)) {
mes .@npcname$;
mes "I'm sorry but you have to wait";
mes "24 Hours until you can do the Quest again!";
close;
}
if(qcargo1==1) {
mes .@npcname$;
mes "Congrats!";
getitem 501,20;
set #carfingor,gettimetick(2);
set BaseExp,+142;
set #cquest,0;
set #qcargo1,0;
close;
}


mes .@npcname$;
mes "Hello "+strcharinfo(0)+",";
mes "do you want to accept the Job?";
next;
switch(select("Yes,sure:No,sorry:Cancel")) {
	case 1:
	mes .@npcname$;
	mes "Awesome,find the Deadly Cargo [6]";
	mes "and bring it to me,and you'll";
	mes "get a reward.";
	next;
	mes .@npcname$;
	mes "The Deadly Cargo [6] is somewhere";
	set #cquest,1;
	mes "here in Izlude!";
	close;
	case 2:
	mes .@npcname$;
	mes "Okay goodbye!";
	close;
	case 3:
	close;
	}
mes .@npcname$;
mes "........";
close;

}
// ========================= End of the first NPC =================================================
izlude,74,186,3	script	Deadly Cargo [1]	1652,{
set .@npcname$,"^FF0000[ Jumping Swordsman ]^000000";
if(cquest==1) {
mes .@npcname$;
mes "Go back to the Port Manager!";
set #qcargo1,1;
while( !checkcell( strnpcinfo(4),( .@x = rand( 1,300 ) ),( .@y = rand( 1,300 ) ),cell_chkpass ) );
movenpc strnpcinfo(0),.@x,.@y;
end;
}
mes .@npcname$;
mes "........";



end;
}

// =============================== End of all the NPC's =========================================
// ====================== Have fun with this Script. Yours ~ Rikimaru ===========================

 

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

find all the variables and change it to account variables., with the prefix '#' infront of it.

Edited by Emistry
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.02
  • Content Count:  206
  • Reputation:   10
  • Joined:  08/30/19
  • Last Seen:  

On 10/14/2019 at 10:47 AM, Emistry said:

find all the variables and change it to account variables., with the prefix '#' infront of it.

Sorry for the late update, it seems work but, once trying to do quest again. it always give the prize with no quest. i mean after adding # on the variables, once i talk to npc, it will just give the prize without doing the quest. 

how can i make, 1 character Only, and repeat the quest everyday?

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