Jump to content
  • 0

WOE online guildmembers get reward after WOE


unwingedvivi

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  01/28/12
  • Last Seen:  

please help me make this script: whoever guild wins in woe, online guild members gets a reward right after woe ends.. thanks.

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  48
  • Reputation:   0
  • Joined:  01/21/12
  • Last Seen:  

So I just wanna ask if this is correct.

- I disabled my mail system on my server since It's number 1 source of item duplication. Can you check if I got this correct?

FROM:

for(set .@i,0;.@i<getarraysize(.@gmcid);set .@i,.@i+1)
{
 if(isloggedin(.@gmaid[.@i]))
  message rid2name(.@gmaid[.@i]),getarg(9);
 if(!isloggedin(.@gmaid[.@i])&&!getarg(1))
  continue;
 query_sql "insert into mail ( send_name, dest_id, title, message, nameid, amount, identify, zeny, time ) values ( '"+escape_sql(getarg(2))+"',"+.@gmcid[.@i]+", '"+escape_sql(getarg(3))+"', '"+escape_sql(getarg(4))+"', "+getarg(5)+", "+getarg(6)+", "+getarg(7)+", "+getarg(8)+", unix_timestamp( now() ) )";
}

TO:

for(set .@i,0;.@i<getarraysize(.@gmcid);set .@i,.@i+1)
{
 if(isloggedin(.@gmaid[.@i]))
  message rid2name(.@gmaid[.@i]),getarg(9);
 if(!isloggedin(.@gmaid[.@i])&&!getarg(1))
  continue;
 getitem 501,1,1,0;
}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  270
  • Reputation:   20
  • Joined:  12/10/11
  • Last Seen:  

//Author : Goddameit
//Version : 2011/12/16 - 01:04
function script AllGuildMemberEvent {
if(!set(.@gid,getcastledata(getarg(0),1)))
 return;
query_sql("select account_id, char_id from `guild_member` where guild_id = '"+.@gid+"'", .@gmaid, .@gmcid);
for(set .@i,0;.@i<getarraysize(.@gmcid);set .@i,.@i+1)
{
 if(isloggedin(.@gmaid[.@i]))
  message rid2name(.@gmaid[.@i]),getarg(9);
 if(!isloggedin(.@gmaid[.@i])&&!getarg(1))
  continue;
 query_sql "insert into mail ( send_name, dest_id, title, message, nameid, amount, identify, zeny, time ) values ( '"+escape_sql(getarg(2))+"',"+.@gmcid[.@i]+", '"+escape_sql(getarg(3))+"', '"+escape_sql(getarg(4))+"', "+getarg(5)+", "+getarg(6)+", "+getarg(7)+", "+getarg(8)+", unix_timestamp( now() ) )";
}
return;
}
- script AGME -1,{
OnAGME:
setarray .@maps$[0],"aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05";
setarray .@maps$[5],"gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05";
setarray .@maps$[10],"payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05";
setarray .@maps$[15],"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05";
for( set .@i,0; .@i <= 19; set .@i, .@i+1)
{
 callfunc "AllGuildMemberEvent",.@maps$[.@i],1,
  "System","WoE Victory Reward","Congratulations! Your guild succeeded in   occupying "+ getcastlename(.@maps$[.@i]) +". This is your rewards.",
  501,1,1,0,
  "[You got a mail!! Please relogin to reupdate your mail list.]";
}
end;
}

Script from goddameit i found on eathena. Might help you.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  01/28/12
  • Last Seen:  

@jasc can you give me the whole file of this script? thanks

Link to comment
Share on other sites


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

what whole file...he already provide you the full script of goddameit..

what you still need ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  01/28/12
  • Last Seen:  

@Emistry so sorry, still learning on making scripts.. my bad..

@Jasc thanks for the help... problem solved! XD

Edited by unwingedvivi
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  71
  • Topics Per Day:  0.02
  • Content Count:  328
  • Reputation:   13
  • Joined:  11/27/11
  • Last Seen:  

getting unknown syntax in line 14.. :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  01/28/12
  • Last Seen:  

getting unknown syntax in line 14.. :D

check for the error: if it says the tab error or something like that be sure to use a tab not a space.. for ex.

function<tab>script<tab>AllGuildMemberEvent<tab>{

Edited by unwingedvivi
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  94
  • Topics Per Day:  0.02
  • Content Count:  2192
  • Reputation:   252
  • Joined:  11/11/11
  • Last Seen:  

With the latest updates that I've seen from rAthena, there shouldn't be "Duplications" going on through mail.

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