Jump to content
  • 0

Euphys Woe controller rewards


rayleigh

Question


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  220
  • Reputation:   0
  • Joined:  09/05/13
  • Last Seen:  

Hi guys Im using Euphys woe controller.

//  Reward options.
// -----------------------------------------------------------
//  [1] Enable rewards.
//  [2] Mail all rewards.
//      - If not set, players receive items in their inventory.
//      - Only ONE item can be sent via mail, plus Zeny.
//      - Note that offline players do NOT receive rewards.
//  [4] Only reward Guild Masters.
//      - If not set, all guild members are rewarded.
//      - If mailing is enabled (option 2), offline Guild Masters WILL receive rewards.
//  [8] Duplicate IP check.
//      - Members in a guild with the same IP address are not rewarded.
//      - If Guild Masters is enabled (option 4), this feature is not used.
// -----------------------------------------------------------

	// Combine values as needed (e.g. 1|8 = 1+8 = 9).
	set .Options, 1|8;

	// Rewards per castle.
	// -- when given directly: <itemID>,<amount>{,<itemID>,<amount>,...}
	// -- via mail (option 2): <itemID>,<amount>,<Zeny>
	setarray .Reward[0],14001,1;

It says combine values as needed. So where did he combined it?

Why 1|8; ? instead of 9. Im just a little confuse.

 

 

And on this line 

setarray .Reward[0],14001,1; <<<<--- whats the meaning of 0 on the reward?

 

 

Link to comment
Share on other sites

20 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   1
  • Joined:  03/18/15
  • Last Seen:  

If I'm correct this is the syntax of Setarray 
 

 

 

Setarray Array Name [Value  ],ItemID,HowMany;  
If you would like to add another rewards it must be

Setarray .Reward[1],ItemiD,x;     


- I am newbie on scripting . Sorry if its not right..  But guessing That's the reason why it has [0] on Reward[0]  

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

It would mean that the first input in the array will be allotted to the position of 0. There's a term for it, but it's not coming out of me, so meh.

 

In this case, 14001 is .Reward[0], while 1 is .Reward[1].

EDIT: Remembered it just now, index. xDD

--

As for the value x | value y, it is more easily read and you can easily identify what option is enabled rather than directly putting it as 9

Edited by PandaLovesHamster
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  912
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

// Reward options.
// -----------------------------------------------------------
// [1] Enable rewards.
// [2] Mail all rewards.
// - If not set, players receive items in their inventory.
// - Only ONE item can be sent via mail, plus Zeny.
// - Note that offline players do NOT receive rewards.
// [4] Only reward Guild Masters.
// - If not set, all guild members are rewarded.
// - If mailing is enabled (option 2), offline Guild Masters WILL receive rewards.
// [8] Duplicate IP check.
// - Members in a guild with the same IP address are not rewarded.
// - If Guild Masters is enabled (option 4), this feature is not used.
// -----------------------------------------------------------

 

Check this one for combine value

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  220
  • Reputation:   0
  • Joined:  09/05/13
  • Last Seen:  

So if I want the Guild master alone that can get the prize and not the members.

What should I put here?

 

This?

	// Combine values as needed (e.g. 1|8 = 1+8 = 9).
	set .Options, 1|4;

Or this:

	// Combine values as needed (e.g. 1|8 = 1+8 = 9).
	set .Options, 1|8;
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  912
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

// [4] Only reward Guild Masters.
// - If not set, all guild members are rewarded.
// - If mailing is enabled (option 2), offline Guild Masters WILL receive rewards.

 

 

This?

    // Combine values as needed (e.g. 1|8 = 1+8 = 9).
    set .Options, 1|4;

This one

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  220
  • Reputation:   0
  • Joined:  09/05/13
  • Last Seen:  

// [4] Only reward Guild Masters.

// - If not set, all guild members are rewarded.

// - If mailing is enabled (option 2), offline Guild Masters WILL receive rewards.

 

 

This?

    // Combine values as needed (e.g. 1|8 = 1+8 = 9).

    set .Options, 1|4;

This one

are u sure sir? any other comment? coz this guy only has 20 post... nweis ty sir.

just confirming it.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

@Rayleigh

you could just tried it out the settings that suggested.even if a member has only 20 posts, doesn't mean he would randomly give you any invalid answer.

always try adjust the settings or the suggestion given instead of keep asking for "confirmation" of this setting that setting  etc.

there is no point to asking other member if you not willing to trust their reply even if it's only 1 post count.

post count doesn't entirely representation the capability to solve one's issues.

 

back to the topic 

yes,  setting it with 5 = reward only guild leader.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  61
  • Topics Per Day:  0.02
  • Content Count:  912
  • Reputation:   166
  • Joined:  11/27/14
  • Last Seen:  

Heart breaking reply came from you </3 bro  /omg

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  51
  • Topics Per Day:  0.01
  • Content Count:  452
  • Reputation:   33
  • Joined:  12/18/14
  • Last Seen:  

Yes, what you posted above is the correct setting. What Poring King posted is the correct one.
 

--

 

Emistry, try making a new account and try helping players out lol, see how they react xDD  /pat

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  220
  • Reputation:   0
  • Joined:  09/05/13
  • Last Seen:  

Thanks everyone for the reply.

 

I tried this one.

    // Combine values as needed (e.g. 1|8 = 1+8 = 9).
    set .Options, 1|4;

and try keeping the guildmaster offline after the woe ends.

but when I log in the guild master it does not have the reward?

Do i have to include option 2 to enable mailing?

So it will be like this one?

    // Combine values as needed (e.g. 1|8 = 1+8 = 9).
    set .Options, 1|4|2;

or this is also right?

    // Combine values as needed (e.g. 1|8 = 1+8 = 9).
    set .Options, 6;

because 1+4+2 = 6...

 

and the guildmaster can get his rewards from mail?

 

Thanks guys.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   24
  • Joined:  02/11/16
  • Last Seen:  

    // Combine values as needed (e.g. 1|8 = 1+8 = 9).
    set .Options, 1|4|2;

or this is also right?

    // Combine values as needed (e.g. 1|8 = 1+8 = 9).
    set .Options, 6;

because 1+4+2 = 6...

 

and the guildmaster can get his rewards from mail?

 

Thanks guys.

Yes, that's correct.

 

Also, just a piece of advice, instead of asking too many questions, why not try it instead? It'll only take few script reloads. (in short, trial and error. We all been there)

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  220
  • Reputation:   0
  • Joined:  09/05/13
  • Last Seen:  

 

    // Combine values as needed (e.g. 1|8 = 1+8 = 9).
    set .Options, 1|4|2;

or this is also right?

    // Combine values as needed (e.g. 1|8 = 1+8 = 9).
    set .Options, 6;

because 1+4+2 = 6...

 

and the guildmaster can get his rewards from mail?

 

Thanks guys.

Yes, that's correct.

 

Also, just a piece of advice, instead of asking too many questions, why not try it instead? It'll only take few script reloads. (in short, trial and error. We all been there)

 

The problem is sir When im setting up woe. And checking the scripts that ive edited. I have to wait for it to end to check if its working or not. To hassle to wait for one hour because it do not have the setting in minutes..

Nweis thank you tialin. ill check it later.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  220
  • Reputation:   0
  • Joined:  09/05/13
  • Last Seen:  

You can just stop it via the controller as well?

No i cant.. You have to end the whole session but the woe is still there..

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  149
  • Reputation:   24
  • Joined:  02/11/16
  • Last Seen:  

 

 

    // Combine values as needed (e.g. 1|8 = 1+8 = 9).
    set .Options, 1|4|2;

or this is also right?

    // Combine values as needed (e.g. 1|8 = 1+8 = 9).
    set .Options, 6;

because 1+4+2 = 6...

 

and the guildmaster can get his rewards from mail?

 

Thanks guys.

Yes, that's correct.

 

Also, just a piece of advice, instead of asking too many questions, why not try it instead? It'll only take few script reloads. (in short, trial and error. We all been there)

 

The problem is sir When im setting up woe. And checking the scripts that ive edited. I have to wait for it to end to check if its working or not. To hassle to wait for one hour because it do not have the setting in minutes..

Nweis thank you tialin. ill check it later.

 

You can simply change your computer's date and time :) The emulator get its server time from its host. 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  220
  • Reputation:   0
  • Joined:  09/05/13
  • Last Seen:  

ow btw sir and mam.

How can i change the maximum session? 

Because the maximum session is only 32. 

 

Is it possible?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  220
  • Reputation:   0
  • Joined:  09/05/13
  • Last Seen:  

ow btw sir and mam.

How can i change the maximum session? 

Because the maximum session is only 32. 

 

Is it possible?

 

 

Help

Link to comment
Share on other sites

  • 0

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

If you're using a version older younger than 6295c77 you can remove the limit of the session.

Find and comment

			if (.Size > 127) {
				mes "You have already reached the maximum of 32 sessions.";
				next;
				break;
			}
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  220
  • Reputation:   0
  • Joined:  09/05/13
  • Last Seen:  

If you're using a version older than 6295c77 you can remove the limit of the session.

Find and comment

			if (.Size > 127) {
				mes "You have already reached the maximum of 32 sessions.";
				next;
				break;
			}

 

Hi dev thank you for the reply ..

Is 6295c77 is the version of rathena folder? 

Am i right?

 

and 127 means? whats the connection between 32 and 127?

 

Thank you sir.

Link to comment
Share on other sites

  • 0

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

Is 6295c77 is the version of rathena folder? 

Check if your emu is younger than 31 Aug 2015 (so you got this update).

 

and 127 means?

Before the commit 6295c77 the maximum array size for npc script was 128 that's why Euphy used the condition to check if you can add more session.

if (.Size > 127) {

(.Size is the size of $WOE_CONTROL used to store the session data)

 

 whats the connection between 32 and 127?

For one session he saved 4 values within the same array.

setarray $WOE_CONTROL[.@i], .@Day, .@Start, .@End, .@Castle;

So for 32 sessions -> 128 values in the array (maximum size).

 

After the commit 6295c77 the max array size become 2147483647 ; you can now save ( 2,147,483,647 / 4 ) = 536,870,911 sessions.

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