Jump to content
  • 0

How to include offline members on rewards for Euphy's WoE Controller


GodKnows Jhomz

Question


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  333
  • Reputation:   67
  • Joined:  09/05/12
  • Last Seen:  

Is there any way to include offline members of the winning guild when I set the rewards send thru mail?
I tried to comment out the " && isloggedin(.@aid[.@j],.@cid[.@j]) " in the line but it didn't work.
Hopefully someone can provide me a solution or an idea how to make it work.
Thanks in advance.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

@GodKnows Jhomz Hello, Im not 100% sure about this so please test this first on your local server.

First,
from your script, kindly look for this line:

set .@sql$, ((.Options&4)?"position = 0":"online = 1");

and replace it with this:

set .@sql$,"position = 0";

 

Second,
from your script, kindly look again for this line:

set .@size, query_sql("SELECT account_id,char_id FROM `guild_member` WHERE guild_id = '"+.@gid+"' AND "+.@sql$,.@aid,.@cid);

and replace it with this:

if (.Options&4){ set .@size, query_sql("SELECT account_id,char_id FROM `guild_member` WHERE guild_id = '"+.@gid+"' AND "+.@sql$,.@aid,.@cid); }
else { set .@size, query_sql("SELECT account_id,char_id FROM `guild_member` WHERE guild_id = "+.@gid,.@aid,.@cid); }

 

  • Upvote 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  333
  • Reputation:   67
  • Joined:  09/05/12
  • Last Seen:  

18 minutes ago, Aureon said:

@GodKnows Jhomz Hello, Im not 100% sure about this so please test this first on your local server.

First,
from your script, kindly look for this line:


set .@sql$, ((.Options&4)?"position = 0":"online = 1");

and replace it with this:


set .@sql$,"position = 0";

 

Second,
from your script, kindly look again for this line:


set .@size, query_sql("SELECT account_id,char_id FROM `guild_member` WHERE guild_id = '"+.@gid+"' AND "+.@sql$,.@aid,.@cid);

and replace it with this:


if (.Options&4){ set .@size, query_sql("SELECT account_id,char_id FROM `guild_member` WHERE guild_id = '"+.@gid+"' AND "+.@sql$,.@aid,.@cid); }
else { set .@size, query_sql("SELECT account_id,char_id FROM `guild_member` WHERE guild_id = "+.@gid,.@aid,.@cid); }

 

Thanks. It works. But I need to adjust my modification on the reward area to make it work.

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