Jump to content
  • 0

request King Of Emperium Script


Question

Posted

there's a lot of type KoE script, but i want is it will be held everyday monday , friday, and sunday . and it's only gives reward to Guild master only (prize -> 50m Zeny and 1 angeling hat)

bump

i need it badly + urgent T_T

bu,p

Recommended Posts

Posted

i think there is still a bug in the script.. even though i use the patch.. i can still break the emperium even im the owner.. try it like this.. break the emp when koe is running then stop the koe.. start it again then you can break the emp again..

Posted

I cannot reproduce your error

post-8685-0-64630500-1350200466_thumb.jpg

the name in red, I can't kill it

try do some debugging instead

    if ( s_bl->type == BL_PC && t_bl->type == BL_MOB ) {
       char debug[255];
       struct map_session_data *sd = BL_CAST(BL_PC, s_bl);
       sprintf ( debug, "[Debug] mob ID: %d | map name: %s | guild ID: %d | $KOEGUILD: %d", ((TBL_MOB*)target)->class_, mapindex_id2name(sd->mapindex), sd->status.guild_id, mapreg_readreg( add_str("$KOEGUILD") ) );
       clif_displaymessage( sd->fd, debug );
       if ( ( ((TBL_MOB*)target)->class_ == 1288 && !strcmp( mapindex_id2name(sd->mapindex), "guild_vs1" ) ) &&
           ( sd->status.guild_id == mapreg_readreg( add_str("$KOEGUILD") ) || battle_getcurrentskill(src) > 0 ) ) {
               clif_displaymessage( sd->fd, "cannot hit emperium" );
               return 0;
       }
   }

Posted (edited)

After much testing I got the same results as before. Without the patch it still won't let you attack it if you not in a guild, but it does let you hit it even if you own it. With the patch I have no issues. Thanks for the support Annie.

Peopleperson49

Edited by peopleperson49
Posted

@AnnieRuru @peopleperson49

thanks already fix.. i got one last question.. how can i get the rewards after the koe ends? i cant manage to get it bcoz when the koe ends its warping my player out the guild_vs1 map..

Posted (edited)

Sure sdesign what did you need help with?

Donkeyg I would hope that I have the best KoE script in e/rAthena! It works fine, but without the patch you can hit the emperium even if you own the guild (which every script is like that without the patch).

RazorX I can modify it to not warp out the controlling guild if that will help, as for now you just have to go back in to it. I made it remove everybody because it won't stop telling your client the map is in GvG mode unless you actually leave the map. For now I suggest you make the simple change yourself. To collect rewards you just go to "Return to Non-GM Menu" if your a GM or just talk to the NPC if you are the guildmaster of the controlling guild.

Peopleperson49

Use the script_commands.txt to your advantage:

*maprespawnguildid "<map name>",<guild id>,<flag>;
This command goes through the specified map and for each player and monster
found there does stuff.
Flag is a bit-mask (add up numbers to get effects you want)
1 - warp all guild members to their save points.
2 - warp all non-guild members to their save points.
4 - remove all monsters which are not guardian or Emperium.
Flag 7 will, therefore, mean 'wipe all mobs but guardians and the Emperium and
kick all characters out', which is what the official scripts do upon castle
surrender. Upon start of WoE, the scripts do 2 (warp all intruders out).
Characters not belonging to any guild will warp out regardless of the flag setting.
For examples, check the WoE scripts in the distribution.

Find this below and change it using what I posted above:

if(getmapusers("guild_vs1")>0) { MapRespawnGuildID "guild_vs1",$KOEGUILD,7; }

Edited by peopleperson49
Posted

Hi, why does the guild emblem of the current guild who captured the koe emp. doesnt show up in the flag?

Pls help. thanks.

PS: Sorry for bad english.

Oh, fixed it hehe.

i replaced the flag script to this

- script KoEFlag 723,-1,-1,{
set .@gid, $KOEGUILD;
if ( .@gid == 0 ) end;
mes "[Emperium Hill]";
mes " ";
if($KOEGUILD!=0) { mes "The King Of Emperium Hill is the ["+GetGuildName
($KOEGUILD)+"] guild."; } else { mes "Only the strongest warriors should may
over take Emperium Hill!"; }
close;
OnRevKoE:
flagemblem $KOEGUILD;
end;
OnInit:
flagemblem $KOEGUILD;
end;
}

Posted

Hi, why does the guild emblem of the current guild who captured the koe emp. doesnt show up in the flag?

Pls help. thanks.

PS: Sorry for bad english.

Oh, fixed it hehe.

i replaced the flag script to this

- script KoEFlag 723,-1,-1,{
set .@gid, $KOEGUILD;
if ( .@gid == 0 ) end;
mes "[Emperium Hill]";
mes " ";
if($KOEGUILD!=0) { mes "The King Of Emperium Hill is the ["+GetGuildName
($KOEGUILD)+"] guild."; } else { mes "Only the strongest warriors should may
over take Emperium Hill!"; }
close;
OnRevKoE:
flagemblem $KOEGUILD;
end;
OnInit:
flagemblem $KOEGUILD;
end;
}

hi, may i know the KoE script works fine?

Posted

If you go to my script collection you will see version 4.7. It has the working emblems one the flags. Thanks for the push donkeyg. Also thanks to xilence01 for writing a version of the flag script. I didn't use your version, but I really like to see when people do work on there own!!!

Peopleperson49

Posted (edited)

Your KoE script suitable for castle mod?

I did change the map to gefg_cas01 and i think its working but the problem is, I dont know how to make the mapflag show guild emblem.

As I change the KoE map to gefg_cas01 is that mean the original castle name of gefg_cas01 also changed?

Bump

Edited by scenenarykeem
Posted

If you go to my script collection you will see version 4.7. It has the working emblems one the flags. Thanks for the push donkeyg. Also thanks to xilence01 for writing a version of the flag script. I didn't use your version, but I really like to see when people do work on there own!!!

Peopleperson49

hello peopleperson49, after i reloaded or restart the server, then i go talk to the Guild Rewarder , even the KoE didnt start also can get the Prize.. what happened?

Posted

Help on overweight. The guild master was overweight and when he talked to the Emperium Assistant, nothing happend. He emptied his inventory, went back, then the npc said to him that he can't reap rewards again

Posted

True221 I can see how that might happen. If a character is overweight they items drop directly on the ground and then disappear like normal. I will make a check to determine if the character is overweight soon. However please use my Script Colleciton to post for support of this and other scripts of mine. Thanks.

Donkeyg you have to break the emperium again after updating and it should work just fine. Please use my Script Colleciton to post for support of this and other scripts of mine. Thanks.

Peopleperson49

Posted · Hidden by Emistry, January 12, 2013 - any one online ? hmm ? not related to topic.....
Hidden by Emistry, January 12, 2013 - any one online ? hmm ? not related to topic.....

any one online here?

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