Jump to content
  • 0

Remove non-guild members on map


hydro_ran

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  05/31/18
  • Last Seen:  

hello. I'm trying to make a Koth type event but the problem is when a guild breaks an emperium, the other guilds stays in the map. How can I make the other guilds warp to other maps like in normal woe when someone breaks the emperium? Here's my current on break script.

 

OnEmpDead:

set $koegid, getcharid(2);
announce "The current King of The Hill is the [" + strcharinfo(2) + "] guild.", 0;
sleep2 5000;
monster "guild_vs1",50,50,"Emperium",1288,1,"The King::OnEmpDead";
donpcevent "::OnRevKoE";
end;

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   5
  • Joined:  06/09/17
  • Last Seen:  

This is what you are looking for if i am not mistaken:

*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 (including guildless players) 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).

For examples, check the WoE scripts in the distribution.

Edited by Wickedknight2
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  05/31/18
  • Last Seen:  

yeah. that solves my problem. thank you.

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