Jump to content

Question

Posted

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;
}
}

4 answers to this question

Recommended Posts

Posted

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
Posted

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.

Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...