Jump to content
  • 0

DS Event please need help


Taylor

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  05/30/13
  • Last Seen:  

Hello everyone,

 

Can someone help me what script to add to prevent players from abusing the reward npc in devil square event, they make their alt characters stay in the safe place until the end of event just to get extra rewards. Is it possible to kick out the players in the map if they are afk/not moving for atleast 2 minutes? Cause we have to check every players who joins DS event if they are actively participating, if not we need to recall them back to prontera everytime the event starts. I want it to auto kick the player back to prontera without giving them a warning.

 

Please help what script to add. thank you.

 

This is the script:

 


Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

I suggest you to try the redo

http://rathena.org/board/topic/77632-devil-square/

 

and add the diff

@@ -99,6 +99,7 @@ OnClock1600:
 OnClock1800:
 OnClock2000:
 OnClock2200:
+    if( .start ) end;
     .start = 1;
     disablenpc "Exit#DS";
     mapannounce "ordeal_1-1","Devil Square is now closed", bc_map;
@@ -120,6 +121,7 @@ OnClock2200:
         goto L_End;
     .start = 2;
     donpcevent strnpcinfo(0)+"::OnSurvive";
+    donpcevent strnpcinfo(0)+"::OnIdle";
     .round = 1;
     .mob = 75;
     areamonster "ordeal_1-1",183,182,246,244,"[DS] SOLDIER SKELETON",1028,10,strnpcinfo(0)+"::Ondevildead";
@@ -231,6 +233,17 @@ OnSurvive:
         sleep .ann_survive;
     }
     end;
+
+OnIdle:
+    sleep 120000; // wait 120 secs
+    while( .start ) {
+        sleep 2000;
+        for( .@i = 0; .@i < .register_num; .@i++ ) {
+            if ( checkidle( rid2name( .register_aid[.@i] ) ) >= 120 )
+                unitkill .register_aid[.@i];
+        }
+    }
+    end;
 }
 
 ordeal_1-1,246,245,7    script    Exit#DS    51,{
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   0
  • Joined:  05/30/13
  • Last Seen:  

You always got the solution sir capuche. Thank you.  /thx

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