Jump to content
  • 0

WOE online guildmembers get reward after WOE


Question

8 answers to this question

Recommended Posts

Posted

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;
}

Posted

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

Posted (edited)

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

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...