Jump to content
  • 0

Auto Woe Reward


GM Incarnation

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   0
  • Joined:  03/19/12
  • Last Seen:  

Hi

can anyone help me to fix this script i already try and nothing error in server. After woe finish nothing happen.

http://pastebin.com/pavZfN8T

Here the original post

http://rathena.org/b...l__+woe +reward

Here the orgininal code post:

//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]))
 getitem 12628,1,.@gmaid[.@i];
 }
}
- 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],0,
  "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;
}

And this mine :

//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]))
	  getitem 14232,1,.@gmaid[.@i];
	  }
}
-	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],0,
	   "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;
}

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   0
  • Joined:  03/19/12
  • Last Seen:  

Hi anyone can fix this problem.

Any senior can fix this problem.

Pls help me to fix this script thx

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  75
  • Reputation:   0
  • Joined:  03/19/12
  • Last Seen:  

Noted i will revert if script can running

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