Jump to content

NEED WOE REWARD NPC


Recommended Posts


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  05/03/14
  • Last Seen:  

PA HELP NAMAN NEED KO WOE REWARD NPC SCRIPT

 

PAGTAPOS NG WOE CLAIM NALANG NILA REWARDS SA NPC.

 

THANKS GUYS!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  108
  • Reputation:   12
  • Joined:  06/19/12
  • Last Seen:  

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 .@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 29836, 2 * (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";
	for ( set .@i, 0; .@i < 5; set .@i, .@i +1 )
		set .menu$, .menu$ + .castlename$[.@i] +":";
}

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


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  05/03/14
  • Last Seen:  

Oh okay sorry. thanks for the help bro.

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