Hello people of rathena. Can anyone who has good heart + knowledge can help me with my WOE Reward npc? the problem is, i can't click it. Thanks in advance.
turbo_room,110,139,4 script WOE Rewards 618,{
mes "^000088[Emperium]^000000";
mes "Greetings, adventurer..";
mes "Do you want to redeem your guild reward for last session War of Emperium?";
next;
mes "^000088[Emperium]^000000";
mes "Please select your castle.";
next;
if ( agitcheck() ) goto L_woeon;
menu
"Kriemhild",L_prt_cas01,
"Sacred Altar",L_pay_cas04,
"Horn",L_arug_cas03,
"Vidblainn",L_schg_cas03,
"Mardol",L_arug_cas01,
L_prt_cas01:
if ( getcastledata( "prt_cas01", 1) != getcharid(2) ) goto L_not_owner;
if ( $castle_claimed[1] ) goto L_claimed;
if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
mes "receiving the reward for this castle";
getitem 2702,1;
getitem 2423,1;
getitem 7711,10;
getitem 7720,5;
getitem 673,10;
set $castle_claimed[1], 1;
close;
L_pay_cas04:
if ( getcastledata( "pay_cas04", 1) != getcharid(2) ) goto L_not_owner;
if ( $castle_claimed[2] ) goto L_claimed;
if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
mes "receiving the reward for this castle";
getitem 5353,1;
getitem 2433,1;
getitem 2701,2;
getitem 7711,10;
getitem 7720,5;
getitem 673,10;
set $castle_claimed[2], 1;
close;
L_arug_cas03:
if ( getcastledata( "aru_cas03", 1) != getcharid(2) ) goto L_not_owner;
if ( $castle_claimed[3] ) goto L_claimed;
if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
mes "receiving the reward for this castle";
getitem 2554,1;
getitem 7711,10;
getitem 7720,5;
getitem 673,10;
set $castle_claimed[3], 1;
close;
L_schg_cas03:
if ( getcastledata( "schg_cas03", 1) != getcharid(2) ) goto L_not_owner;
if ( $castle_claimed[4] ) goto L_claimed;
if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
mes "receiving the reward for this castle";
getitem 2542,1;
getitem 7711,10;
getitem 7720,5;
getitem 673,10;
set $castle_claimed[4], 1;
close;
L_arug_cas01:
if ( getcastledata( "arug_cas01", 1) != getcharid(2) ) goto L_not_owner;
if ( $castle_claimed[5] ) goto L_claimed;
if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm;
mes "receiving the reward for this castle";
getitem 13412,1;
getitem 13413,1;
getitem 4354,5;
getitem 7711,10;
getitem 7720,5;
getitem 673,10;
set $castle_claimed[5], 1;
close;
L_woeon:
mes "^000088[Emperium]^000000";
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;
L_not_owner:
mes "^000088[Emperium]^000000";
mes "Your guild failed to take this castle.";
mes "If your guild owned a castle ask your guild master to claim reward from me.";
close;
L_claimed:
mes "^000088[Emperium]^000000";
mes "Your guild already received the reward for this castle.";
close;
L_not_gm:
mes "^000088[Emperium]^000000";
mes "Ask your guild master to see me.";
close;
OnAgitEnd:
set $castle_claimed[1], 0; // everytime woe ends the variable resets
set $castle_claimed[2], 0;
set $castle_claimed[3], 0;
set $castle_claimed[4], 0;
set $castle_claimed[5], 0;
end;
}
Question
awesomazingxed
Hello people of rathena. Can anyone who has good heart + knowledge can help me with my WOE Reward npc?
the problem is, i can't click it. Thanks in advance.
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.