Jump to content
  • 0

Woe reward help


alone20

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  05/05/14
  • Last Seen:  

turbo_room,93,117,5 script Woe Prize Reward 986,{
waitingroom "Woe Rewarder",0;
setcastledata "prtg_cas01", 1, getcharid(2); // just testing ..
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;
}
set .@menu, select(.menu$) -1;
if ( getcastledata("prtg_cas0"+( .@menu +1 ), 1) == getcharid(2) ) {
if ( $castle_claimed & pow(2, .@menu) ) {
mes "your guild already received the reward for "+ .castlename$[.@menu];
close;
}
else if ( getguildmasterid( getcharid(2) ) == getcharid(0) ) {
mes "receiving the reward for "+ .castlename$[.@menu];
getitem 7179, 50 * (2 - .@menu); // some mathematics ...
set $castle_claimed, $castle_claimed | pow(2, .@menu);
close;
}
else {
mes "ask your guild master to see me";
close;
}
}
mes "your guild failed to take "+ .castlename$[.@menu];
mes "if your guild owned a castle ask your guild master to claim reward from me";
close;
OnAgitEnd:
set $castle_claimed, 0; // everytime woe ends the variable resets
end;
OnInit:
setarray .castlename$, "Kriemhild", "Swanhild", "Fadhgridh", "Skoegul", "Gondul", "Bright Arbor", "Scarlet Palace";
for ( set .@i, 0; .@i < 7; set .@i, .@i +1 )
set .menu$, .menu$ + .castlename$[.@i] +":";
}









i want to ask for ur help about this script. the prob is. my players telling me that the rewarder giving them 50 pcs of my reward. but when i test it my self its giving me 100 pc, any idea? and i would like to add 2 more castles. Bright arbor and scarlet palace. do you think u can help me? advance thanks for you

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


turbo_room,93,117,5 script Woe Prize Reward 986,{

// setcastledata "prtg_cas01", 1, getcharid(2); // just testing ..

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;

}

set .@menu, select(.menu$) -1;

if ( getcastledata( .map_castle$[.@menu], 1) == getcharid(2) ) {

if ( $castle_claimed & pow(2, .@menu) ) {

mes "your guild already received the reward for "+ .castlename$[.@menu];

close;

}

else if ( getguildmasterid( getcharid(2) ) == getcharid(0) ) {

mes "receiving the reward for "+ .castlename$[.@menu];

getitem 7179, 50; // some mathematics ...

set $castle_claimed, $castle_claimed | pow(2, .@menu);

close;

}

else {

mes "ask your guild master to see me";

close;

}

}

mes "your guild failed to take "+ .castlename$[.@menu];

mes "if your guild owned a castle ask your guild master to claim reward from me";

close;

OnAgitEnd:

set $castle_claimed, 0; // everytime woe ends the variable resets

end;

OnInit:

waitingroom "Woe Rewarder",0;

setarray .castlename$, "Kriemhild", "Swanhild", "Fadhgridh", "Skoegul", "Gondul", "Bright Arbor", "Scarlet Palace";

setarray .map_castle$, "prtg_cas01", "prtg_cas02", "prtg_cas03", "prtg_cas04", "payg_cas01", "payg_cas02";

for ( set .@i, 0; .@i < 7; set .@i, .@i +1 )

set .menu$, .menu$ + .castlename$[.@i] +":";

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  05/05/14
  • Last Seen:  

turbo_room,93,117,5	script	Woe Prize Reward	986,{
	// setcastledata "prtg_cas01", 1, getcharid(2); // just testing ..
	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;
	}
	set .@menu, select(.menu$) -1;
	if ( getcastledata( .map_castle$[.@menu], 1) == getcharid(2) ) {
		if ( $castle_claimed & pow(2, .@menu) ) {
			mes "your guild already received the reward for "+ .castlename$[.@menu];
			close;
		}
		else if ( getguildmasterid( getcharid(2) ) == getcharid(0) ) {
			mes "receiving the reward for "+ .castlename$[.@menu];
			getitem 7179, 50; // some mathematics ...
			set $castle_claimed, $castle_claimed | pow(2, .@menu);
			close;
		}
		else {
			mes "ask your guild master to see me";
			close;
		}
	}
	mes "your guild failed to take "+ .castlename$[.@menu];
	mes "if your guild owned a castle ask your guild master to claim reward from me";
	close;
OnAgitEnd:
	set $castle_claimed, 0; // everytime woe ends the variable resets
	end;
OnInit:
	waitingroom "Woe Rewarder",0;
	setarray .castlename$, "Kriemhild", "Swanhild", "Fadhgridh", "Skoegul", "Gondul", "Bright Arbor", "Scarlet Palace";
	setarray .map_castle$, "prtg_cas01", "prtg_cas02", "prtg_cas03", "prtg_cas04", "payg_cas01", "payg_cas02";
	for ( set .@i, 0; .@i < 7; set .@i, .@i +1 )
		set .menu$, .menu$ + .castlename$[.@i] +":";
}

its not working, even if someone won the castle it wont give any rewards, any idea?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  05/05/14
  • Last Seen:  

up


HELP HELP!!

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

It seems working for me. Check your mapserv.. maybe..

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  05/05/14
  • Last Seen:  

mapserv working fine. but its still not giving the reward to the winner guild. any idea?


It seems working for me. Check your mapserv.. maybe..

and did u encounter that even if u didnt won in todays war u can still get the reward from another castle thats not for today war?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   0
  • Joined:  05/05/14
  • Last Seen:  

mapserv working fine. but its still not giving the reward to the winner guild. any idea?

It seems working for me. Check your mapserv.. maybe..

and did u encounter that even if u didnt won in todays war u can still get the reward from another castle thats not for today war?

its only giving reward when u choose kriemhild. even if u dont own this castle. HEL P HEP!

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