Jump to content
  • 0

How to reset guild's castle ?


Auryn

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  147
  • Reputation:   1
  • Joined:  01/26/12
  • Last Seen:  

There is two WoEs per week on my server, one on wednesday and another on sunday.

I would the castle that has been aquired by a guild in wednesday be reset when the sunday one comes.

How could I do it ?

I hope I explained myself correctly.

NB : I'm using WoE Setter 3 by [GM]Xeon.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try this

- script Sample -1,{
OnClock0001:
switch( gettime(4) ){
Case 0: // Sunday
 setarray .@Map$[0], "prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05","payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05";
 break;
Case 3: // Wednesday
 setarray .@Map$[0], "gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05","aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05";
 break;
default: end;
}
if( getarraysize(.@Map$) )
for( set .@i,0; .@i < getarraysize(.@Map$); set .@i,.@i + 1 )
 setcastledata .@Map$[.@i],1,0;
end;
}

edit the map array to set which castle map guild ownership to be remove

this script should be able to remove the guild castle ownership every designed day on 00:01 AM


And Please do not create more than 1 topic with same things that you are going to request.

http://rathena.org/board/topic/68685-woe-configuration-two-castles-but-only-one-at-a-time/

* Topic Closed *

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...