Jump to content
jidkadama

NEED WOE REWARD NPC

Recommended Posts

Matuto ka naman sanang gumamit ng "Search" o kaya tanungin si google sa kelangan mo.

Euphy's WoE Controller - http://rathena.org/board/topic/85256-euphys-woe-controller-woe-prize-reward-setting/

- May automated woe rewards na ang WoE Controller ni Euphy.

 

WoE Reward NPC

prontera,129,214,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 [email protected], select(.menu$) -1;
	if ( getcastledata("prtg_cas0"+( [email protected] +1 ), 1) == getcharid(2) ) {
		if ( $castle_claimed & pow(2, [email protected]) ) {
			mes "your guild already received the reward for "+ .castlename$[[email protected]];
			close;
		}
		else if ( getguildmasterid( getcharid(2) ) == getcharid(0) ) {
			mes "receiving the reward for "+ .castlename$[[email protected]];
			getitem 29836, 2 * (2 - [email protected]); // some mathematics ...
			set $castle_claimed, $castle_claimed | pow(2, [email protected]);
			close;
		}
		else {
			mes "ask your guild master to see me";
			close;
		}
	}
	mes "your guild failed to take "+ .castlename$[[email protected]];
	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";
	for ( set [email protected], 0; [email protected] < 5; set [email protected], [email protected] +1 )
		set .menu$, .menu$ + .castlename$[[email protected]] +":";
}

Default castles = Prontera. Kaw na lng edit, gamitin mo si Google.

 

And tip lng, sa Script Request Section ka mag request para mas marami sasagot at tutulong sayo yun nga lang kelangan mo mag English.

Edited by Spades
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
Reply to this topic...

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.