Jump to content
  • 0

Requesting for Modified attendance


Takuyakii

Question


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

Good day ! is it possible to request this kind of script ?

 

mechanics.

1. Talk to NPC Ingacio (229,310) in front of Prontera Church to attend the daily mass (registration i guess.

2. If you attend the daily mass for 7 nights straight 7pm-11pm only, Father Ingacio will give you a reward on the 7th Night (EX REWARD. Poring Coin)
3. If you attend the daily mass for only 5 days 7pm-11pm only, Father Ingacio will give you a reward on the 7th Night.

with (TCG)

4. If you attend the daily mass for Only3 nights 7pm-11pm only, Father Ingacio will give you a reward on the 7th Night.
with (APPLE JUICE)

5. no dual on the map. to avoid abuse ,

6. When 11:01PM reach the npc will automatic hide.

Thanks i know this is somany for a request. but yea i will appreciate it it! Thanks advance. more power rathena.

Edit: did search and mostly found 1 script and not working anymore, 

 

Edited by Takuyakii
Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0

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

12 minutes ago, Disabled LOOLP said:

Basic, inicially   ?

    prontera,x,y,w<tab>script<tab>Missa<tab>NameSprite,{
        if(already clicked today){
            mes "good night,have a good mass.";
            close;
        }
        mes "good night, have a good mass.";
        set contDailly, contDailly+1;
        
        OnInit:
                set contDailly, 0;
    end;
    }

Thanks, My god ! im so doomed. been thinking about the tips and this basic, inicially script, now my head hurts. i just keeping reading some script right now, and still doesn't make sense on me, can't understand every single of bit. 

i try writing like this. 

prontera,229,310,4	Ignacio	909,{

  if(already clicked today){
            mes "good night,have a good mass.";
            close;
        }
        mes "good night, have a good mass.";
        set contDailly, contDailly+1;
        
        OnInit:
                set contDailly, 0;
    end;


    }
//
prontera,229,315,4	Reward	909,{
	
	mes "You have Attended "+contDailly+" Nights.";
	mes " Here's your reward";

if (contDailly >=7) {
contDailly = contDailly - 7;
getitem 501,1;

end;
}
if (countDailly >=5) {
contDailly = contdailly - 5;
getitem 501,1;
end;
}
if (countDailly >=3) {
contDailly = contdailly - 3;
getitem 501,1;

end;
}

 
 

Link to comment
Share on other sites

  • 0

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

9 minutes ago, crazyarashi said:

prontera,229,310,3	script	Ingacio#daily_mass	123,{
	if(gettime(DT_DAYOFWEEK) == SATURDAY){
		if(daily_mass < 3){
			mes "The Daily Mass will start again tomorrow.";
			close;
		} else {
			if(daily_mass < 4){ .@reward = 1; } else
			if(daily_mass < 6){ .@reward = 2; } else
			if(daily_mass == 7){ .@reward = 3; }
			mes "Here is your reward for attending the daily mass.";
			.@index = (.@reward - 1) * 2;
			daily_mass = 0;
			getitem .reward[.@index],.reward[.@index + 1];
			end;
		}
	}
	if(#daily_mass_cd > gettimetick(2)){
		mes "Thank you for attending the mass today.";
		mes "Come back again tomorrow.";
		close;
	}
	if(gettime(HOUR) >= 19 && gettime(HOUR) <= 23){
		mes "Thank you for attending the daily mass.";
		mes "Please come back again tomorrow.";
		if(gettime(DT_DAYOFWEEK) == SUNDAY){
			daily_mass = 0;
		}
		daily_mass += 1;
		#daily_mass_cd = gettimetick(2) + 18000;
	} else {
		mes "We are having the daily mass between 17:00~23:00.";
	}
	end;
	
OnHour19:
	enablenpc strnpcinfo(0);
	end;
	
OnHour23:
	disablenpc strnpcinfo(0);
	end;
	
OnInit:
	setarray .reward, //= ITEM ID, AMOUNT
	501,5,  //= <4 DAY REWARD
	502,5, //= <6 DAY REWARD
	503,7; //= 7 DAY REWARD
end;
}

Haven't tested it yet, do try it. As for no dual  there are several scripts out there for that like this one. Just add your map.

 

Thanks ! i will try this once i get home, 

also just want to ask how about if the server is restarted ? 

this script will stop or continue for the daily mass count?

Link to comment
Share on other sites

  • 0

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

25 minutes ago, crazyarashi said:

No it won't since the its attached to the character and the CD is attached to the account
Variables

One more thing is it possible to add like these?

 

you have to stay here 1 hour example (prt_church) so you can claim your points or daily mass.

well i think this will rewrap the code, but if its only possible, 

but if not , its ok,

 

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  233
  • Reputation:   50
  • Joined:  12/20/18
  • Last Seen:  

Here's the tip.

The primary NPC, he will generate the character record in the church.

It can only be a simple .cont variable that will be increased 1 in 1 each day the NPC is used again to mark 'presence'.

So just make this first NPC a counter per day that is spoken .. set count, count + 1;

And when the final day arrives, if it's a Sunday seila ..
he gives the reward based on the amount accumulated in the week and then resets to start again the next day.

If you have to attend the whole mass to get the score, just talk to the NPC to enter, the entry variable and a check variable, when he enters the mass, the entry variable is fed to +1 ... when comes the end of the mass at 23 .. appears another npc, or the same, and the.
And at the end of the week, the input value is compared with the verification value and that's it.

It's quite simple actually;)

 
Link to comment
Share on other sites

  • -1

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

1 hour ago, Disabled LOOLP said:

Here's the tip.

The primary NPC, he will generate the character record in the church.

It can only be a simple .cont variable that will be increased 1 in 1 each day the NPC is used again to mark 'presence'.

So just make this first NPC a counter per day that is spoken .. set count, count + 1;

And when the final day arrives, if it's a Sunday seila ..
he gives the reward based on the amount accumulated in the week and then resets to start again the next day.

If you have to attend the whole mass to get the score, just talk to the NPC to enter, the entry variable and a check variable, when he enters the mass, the entry variable is fed to +1 ... when comes the end of the mass at 23 .. appears another npc, or the same, and the.
And at the end of the week, the input value is compared with the verification value and that's it.

It's quite simple actually;)


 

Urrrg, almost 1 hour and i don't know where to and how to start -.-

Link to comment
Share on other sites

  • -1

  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.01
  • Content Count:  233
  • Reputation:   50
  • Joined:  12/20/18
  • Last Seen:  

Basic, inicially   ?

    prontera,x,y,w<tab>script<tab>Missa<tab>NameSprite,{
        if(already clicked today){
            mes "good night,have a good mass.";
            close;
        }
        mes "good night, have a good mass.";
        set contDailly, contDailly+1;
        
        OnInit:
                set contDailly, 0;
    end;
    }

  • Upvote 1
Link to comment
Share on other sites

  • -1

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

prontera,229,310,3	script	Ingacio#daily_mass	123,{
	if(gettime(DT_DAYOFWEEK) == SATURDAY){
		if(daily_mass < 3){
			mes "The Daily Mass will start again tomorrow.";
			close;
		} else {
			if(daily_mass < 4){ .@reward = 1; } else
			if(daily_mass < 6){ .@reward = 2; } else
			if(daily_mass == 7){ .@reward = 3; }
			mes "Here is your reward for attending the daily mass.";
			.@index = (.@reward - 1) * 2;
			daily_mass = 0;
			getitem .reward[.@index],.reward[.@index + 1];
			end;
		}
	}
	if(#daily_mass_cd > gettimetick(2)){
		mes "Thank you for attending the mass today.";
		mes "Come back again tomorrow.";
		close;
	}
	if(gettime(HOUR) >= 19 && gettime(HOUR) <= 23){
		mes "Thank you for attending the daily mass.";
		mes "Please come back again tomorrow.";
		if(gettime(DT_DAYOFWEEK) == SUNDAY){
			daily_mass = 0;
		}
		daily_mass += 1;
		#daily_mass_cd = gettimetick(2) + 18000;
	} else {
		mes "We are having the daily mass between 17:00~23:00.";
	}
	end;
	
OnHour19:
	enablenpc strnpcinfo(0);
	end;
	
OnHour23:
	disablenpc strnpcinfo(0);
	end;
	
OnInit:
	setarray .reward, //= ITEM ID, AMOUNT
	501,5,  //= <4 DAY REWARD
	502,5, //= <6 DAY REWARD
	503,7; //= 7 DAY REWARD
end;
}

Haven't tested it yet, do try it. As for no dual  there are several scripts out there for that like this one. Just add your map.

 

Edited by crazyarashi
Link to comment
Share on other sites

  • -1

  • Group:  Developer
  • Topic Count:  50
  • Topics Per Day:  0.02
  • Content Count:  763
  • Reputation:   227
  • Joined:  02/11/17
  • Last Seen:  

25 minutes ago, Takuyakii said:

Thanks ! i will try this once i get home, 

also just want to ask how about if the server is restarted ? 

this script will stop or continue for the daily mass count?

No it won't since the its attached to the character and the CD is attached to the account
Variables

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