Jump to content
  • 0

WoE Rewarder Need Help Urgent !


WhatFT

Question


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

Any Idea on how to make this script work in 2 castles? I copy this script and make another castle available.. But my players said that the other npc doesnt' give the prize..

This is my script and this is my question, can anyone help me add payg_cas02 castle and the woe prize of payg_cas02 is "ID # 13504"?

disco,110,80,5 script WoE Prize 835,{
if ( agitcheck() ) goto L_woeon;
menu
"Kriemhild [Primary Castle]",L_prtg_cas01;
L_prtg_cas01:
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 13503,1;
set $castle_claimed[1], 1;
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;
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;
OnAgitEnd:
set $castle_claimed[1], 0; // everytime woe ends the variable resets
end;
OnInit:
waitingroom "Kriemhild Reward",0;
end;
}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

This should work for you now :

disco,110,80,5 script WoE Prize 835,{
if ( agitcheck() ) goto L_woeon;
switch(select("Kriemhild [Primary Castle]:Scarlet Palace [secondary Castle]")) {
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 13503,1;
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_cas02", 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 13504,1;
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;
}
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:
waitingroom "Kriemhild Reward",0;
end;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  

Sir thank you but Can you post it in pastebin? I don't know how to tab scripts XD Sorry. Cause I know in pastebin, the tabbings are fixed..

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