Hello there. Can someone help me with this. The NPC doesn't appear in the map. Thank you.
turbo_room,117,139,4 script WoE Prize 588,{
if ( agitcheck() ) goto L_woeon;
switch(select("Kriemhild:Sacred Altar:Horn:Viblainn:Mardol")) {
case 1:
if ( getcastledata( "prtg_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,2423,1,7711,10,7720,5,673,10;
set $castle_claimed[1], 1;
close;
L_not_owner:
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 "Your guild already received the reward for this castle";
close;
L_not_gm:
mes "Ask your Guild Master to see me";
close;
case 2:
if ( getcastledata( "payg_cas04", 1) != getcharid(2) ) goto L_not_owner2;
if ( $castle_claimed2[1] ) goto L_claimed2;
if ( getguildmasterid( getcharid(2) ) != getcharid(0) ) goto L_not_gm2;
mes "receiving the reward for this castle";
getitem 5353,1,2433,1,2701,2,7711,10,7720,5,673,10;
set $castle_claimed2[1], 1;
close;
L_not_owner2:
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_claimed2:
mes "Your guild already received the reward for this castle";
close;
L_not_gm2:
mes "Ask your Guild Master to see me";
close;
case 3:
if ( getcastledata( "arug_cas03, 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 2554,1,7711,10,7720,5,673,10;
set $castle_claimed[1], 1;
close;
L_not_owner:
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 "Your guild already received the reward for this castle";
close;
L_not_gm:
mes "Ask your Guild Master to see me";
close;
case 4:
if ( getcastledata( "schg_cas03", 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 2542,1,7711,10,7720,5,673,10;
set $castle_claimed[1], 1;
close;
L_not_owner:
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 "Your guild already received the reward for this castle";
close;
L_not_gm:
mes "Ask your Guild Master to see me";
close;
case 5:
if ( getcastledata( "arug_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 13412,1,13413,1,4354,1,7711,10,7720,5,673,10;;
set $castle_claimed[1], 1;
close;
L_not_owner:
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 "Your guild already received the reward for this castle";
close;
L_not_gm:
mes "Ask your Guild Master to see me";
close;
}
L_woeon:
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;
OnAgitEnd:
set $castle_claimed[1], 0; // everytime woe ends the variable resets
set $castle_claimed2[1], 0; // everytime woe ends the variable resets
end;
OnInit:
end;
}
Question
awesomazingxed
Hello there. Can someone help me with this. The NPC doesn't appear in the map. Thank you.
Edited by awesomazingxed
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.