unwingedvivi Posted February 2, 2012 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
brianj070707 Posted February 17, 2012 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
Jasc Posted February 3, 2012 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
unwingedvivi Posted February 3, 2012 Author Posted February 3, 2012 @jasc can you give me the whole file of this script? thanks Quote
Emistry Posted February 3, 2012 Posted February 3, 2012 what whole file...he already provide you the full script of goddameit.. what you still need ? Quote
unwingedvivi Posted February 3, 2012 Author 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
unwingedvivi Posted February 5, 2012 Author 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
Mystery Posted February 17, 2012 Posted February 17, 2012 With the latest updates that I've seen from rAthena, there shouldn't be "Duplications" going on through mail. Quote
Question
unwingedvivi
please help me make this script: whoever guild wins in woe, online guild members gets a reward right after woe ends.. thanks.
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.