Jump to content
  • 0

WoE Reward


Helena

Question


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  08/10/13
  • Last Seen:  

Hi rAthena I have a request,

 

I tried several woe reward scripts but none of them works like I want. :(

 

Goddammets script gave the players like 20+ items while I set the getitem id to 3. Me and my players presume it rewards on the kills they made.

 

Euphy's reward setter/script for some reason rewarded the losing guild instead of the winning guild.... idk if it's a bug on my servers end but other than setting the reward ID and prize, I haven't touched the script at all... x_x

 

 

Can someone please, please give me a script that the guilds that end up with a castle after woe get 3 of a certain item?

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


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

Goddammets script gave the players like 20+ items while I set the getitem id to 3. Me and my players presume it rewards on the kills they made.

perhap they owned several guild castle... ??

then they get reward for every castle...

 

Euphy's reward setter/script for some reason rewarded the losing guild instead of the winning guild.... idk if it's a bug on my servers end but other than setting the reward ID and prize, I haven't touched the script at all... x_x

perhap your script is outdated ?? make sure you use tha latest version ...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   1
  • Joined:  08/10/13
  • Last Seen:  

Euphy's script was the default one that came along in my SVN. everything else works, just the reward is odd.

 

for goddamet script, i thought so at first too but that can't be. Guilds can only own max. 1 castle on my server.

 

this is the script i used:

 
//Author    :    Goddameit
//Version    :    2012/06/24 - 04:19
//Web        :    http://goo.gl/8Nedn
/*
I added some checks to make sure that will not happen some errors what I didn't expect for.
Test in eA15*** SQL
*/
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);
    set .@amount,getarraysize(.@gmcid);
    for(set .@i,0;.@i<.@amount;set .@i,.@i+1)
    {
        if(!.@gmaid[.@i])
            continue;
        query_sql("select last_ip from `login` where account_id = '"+.@gmaid[.@i]+"'",.@ip$);
        query_sql("select account_id from `login` where last_ip= '"+.@ip$+"'",.@aa);
        set .@bb,getarraysize(.@aa);        
        for(set .@i2,1;.@i2<.@bb;set .@i2,.@i2+1)
        {
            for(set .@i3,0;.@i3<.@amount;set .@i3,.@i3+1)
            {
                if(.@aa[.@i2]==.@gmaid[.@i3])
                {
                    set .@gmaid[.@i3],0;
                    set .@gmcid[.@i3],0;
                }
            }
        }
        if(attachrid(.@gmaid[.@i]))
        {
            message strcharinfo(0),"Your guild has won this War of Emperium!";
            getitem 6419,3;
            detachrid;
        }
    }
    return;
}
-    script    AGME    -1,{
OnAgitEnd:
    setarray .@maps$[0],"aldeg_cas01","aldeg_cas02","aldeg_cas03","aldeg_cas04","aldeg_cas05",
        "gefg_cas01","gefg_cas02","gefg_cas03","gefg_cas04","gefg_cas05",
        "payg_cas01","payg_cas02","payg_cas03","payg_cas04","payg_cas05",
        "prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05";
    for( set .@i,0; .@i <= 19; set .@i, .@i+1)
    {
        callfunc "AllGuildMemberEvent",.@maps$[.@i];
    }
    end;
}
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...