prontera,156,177,5 script WoE Prize 100,{// setcastledata "prtg_cas01", 1, getcharid(2); // debug if ( agitcheck() ) { mes "A war is currently in progress"; mes "If your guild owned a castle ask your guild master to see me to claim the reward"; close; } select "Kriemhild [Primary Castle]"; if ( getcastledata( "prtg_cas01", 1) != getcharid(2) ) { mes "Your guild failed to take this castle"; close; } if ( $castle_claimed[1] ) { mes "Your guild already received the reward for this castle"; close; } if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) { mes "Ask your Guild Master to see me"; close; } mes "receiving the reward for this castle"; if ( $castle_prtg1_gid != getcharid(2) ) { $castle_claimed_times[1] = 0; $castle_prtg1_gid = getcharid(2); } if ( !$castle_claimed_times[1] ) { // 1st time getitem 7960,200; getitem 12103,20; getitem 7959,20; } else if ( $castle_claimed_times[1] == 1 ) { // 2nd time getitem 7960,250; getitem 12103,30; getitem 7959,30; } else { // 3rd time onwards getitem 7960,300; getitem 12103,40; getitem 7959,40; } $castle_claimed[1] = 1; $castle_claimed_times[1]++; close;OnAgitEnd: $castle_claimed[1] = 0; // everytime woe ends the variable resets end;OnInit: waitingroom "Kriemhild Reward",0; end;
}