unwingedvivi Posted February 2, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 01/28/12 Last Seen: April 27, 2013 Share Posted February 2, 2012 please help me make this script: whoever guild wins in woe, online guild members gets a reward right after woe ends.. thanks. Quote Link to comment Share on other sites More sharing options...
brianj070707 Posted February 17, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 48 Reputation: 0 Joined: 01/21/12 Last Seen: July 27, 2012 Share Posted February 17, 2012 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; } Quote Link to comment Share on other sites More sharing options...
Jasc Posted February 3, 2012 Group: Members Topic Count: 29 Topics Per Day: 0.01 Content Count: 270 Reputation: 20 Joined: 12/10/11 Last Seen: June 28, 2022 Share Posted February 3, 2012 //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. Quote Link to comment Share on other sites More sharing options...
unwingedvivi Posted February 3, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 01/28/12 Last Seen: April 27, 2013 Author Share Posted February 3, 2012 @jasc can you give me the whole file of this script? thanks Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 3, 2012 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted February 3, 2012 what whole file...he already provide you the full script of goddameit.. what you still need ? Quote Link to comment Share on other sites More sharing options...
unwingedvivi Posted February 3, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 01/28/12 Last Seen: April 27, 2013 Author Share Posted February 3, 2012 (edited) @Emistry so sorry, still learning on making scripts.. my bad.. @Jasc thanks for the help... problem solved! XD Edited February 3, 2012 by unwingedvivi Quote Link to comment Share on other sites More sharing options...
Lordamax Posted February 3, 2012 Group: Members Topic Count: 71 Topics Per Day: 0.01 Content Count: 328 Reputation: 13 Joined: 11/27/11 Last Seen: July 2, 2016 Share Posted February 3, 2012 getting unknown syntax in line 14.. Quote Link to comment Share on other sites More sharing options...
unwingedvivi Posted February 5, 2012 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 15 Reputation: 0 Joined: 01/28/12 Last Seen: April 27, 2013 Author Share Posted February 5, 2012 (edited) getting unknown syntax in line 14.. 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 February 5, 2012 by unwingedvivi Quote Link to comment Share on other sites More sharing options...
Mystery Posted February 17, 2012 Group: Members Topic Count: 94 Topics Per Day: 0.02 Content Count: 2192 Reputation: 253 Joined: 11/11/11 Last Seen: June 24, 2020 Share Posted February 17, 2012 With the latest updates that I've seen from rAthena, there shouldn't be "Duplications" going on through mail. Quote Link to comment Share on other sites More sharing options...
Question
unwingedvivi
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.