Jump to content
  • 0

Party count (timer) script problem


Mistique

Question


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  53
  • Reputation:   0
  • Joined:  09/15/12
  • Last Seen:  

Hello rAthena.

 

Would anyone be so kind to help me with this timer script? :)

Emistry gave this and it seemed to work at first. If I had a party of 3 on the mentioned map everything went fine and no one got warped out. However, if I partied up and warped with NPC (to another map) before 30 seconds have passed, the timer continued and (even the party of => 3) are being warped back to their savepoint, while they're at the map they're suppose to be at.

 

I've tested this script with a party of 3. Does anyone know what the cause can be of my problem?

 

Perhaps I should add a enablenpc trigger on the warper after 30 seconds so they can't warp before then? I'm not really sure what other options there are for this.

 

This is the script;

 

//-    script    Sample    -1,{
OnInit:
set .map$,"job3_arch01";
set .min_party,3;
set .delay_second,30;
setmapflag .map$,mf_loadevent;
end;
 
OnPCLoadMapEvent:
if( strcharinfo(3) == "job3_arch01" ){
dispbottom "Please create and prepare a party in the coming 30 seconds."; 
    if( getcharid( 1 ) ){
        getpartymember getcharid(1);
        if( $@partymembercount >= 3 ){ 
        end;
    }
    sleep2 50000;
    warp "SavePoint",0,0;
    dispbottom "You have been warped out."; 
    end;
}
end;
}
}
 
job3_arch01    mapflag    loadevent
Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  182
  • Reputation:   22
  • Joined:  12/30/12
  • Last Seen:  

Add another check before the warping command. It should check whether the character is still on the job3_arch01 map. If true, continue the warp, otherwise.. end the script. /no1

Edited by Elekid
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...