Jump to content
  • 0

Party Quest Delay


grampa

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  11/06/14
  • Last Seen:  

Hi,

 

Is there a way to check the delay of each party member who joins a quest?

 

I used below check in script to check the questdelay but if a player quits a party and join another, it still allow them to execute the quest..

if(questdelay < gettimetick(2)){ // Check timer, if over it will allow you to continue.
mes "You are able to do the quest again. Congratulations.";
close;
}
set questdelay,gettimetick(2)+10800; // Sets timer.
if(questdelay > gettimetick(2)){ // Checks timer, if active it will block you from doing the quest.
set .@delayremaining,(((questdelay-gettimetick(2))+1)/60);
mes "Please wait "+.@delayremaining+" minutes longer.";
close;
}
}
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

Ahh ok I get it.

set .@rid , getcharid(3,strcharinfo(0));
addrid (2,0,getcharid(1)); //attach the rid of all players in the group
set questdelay,gettimetick(2)+10800; //set the delay for all players in group
detachrid;
attachrid(.@rid); //so that the rest of the script will only run on the party leader
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

I don't understand ><

Can you explain it better for me? :D Tell me what you want to do with your script.

 

Also aren't you blocked if you waited enough time? Because it just tells you that you can do another quest but it doesn't reset it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  11/06/14
  • Last Seen:  

Below script puts a delay on a character  who executes a quest..

 

I'm using MVP ladder and it requires to form a party but the delay(for below script) would only attach to the party leader and so I'm looking for a way to attach it to every member of the party and to check them if they still have delay before taking the quest again,,

 

EDIT: I'm looking for something like -> this

if(questdelay < gettimetick(2)){ // Check timer, if over it will allow you to continue.
mes "You are able to do the quest again. Congratulations.";
close;
}
set questdelay,gettimetick(2)+10800; // Sets timer.
if(questdelay > gettimetick(2)){ // Checks timer, if active it will block you from doing the quest.
set .@delayremaining,(((questdelay-gettimetick(2))+1)/60);
mes "Please wait "+.@delayremaining+" minutes longer.";
close;
}
}
Edited by grampa
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  11/06/14
  • Last Seen:  

got it.. Thanks!

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