Jump to content
  • 0

Script that prevents players to enter an area until x mobs are killed


Question

Posted (edited)

Hello!

I'd like to request a script, or just a draft on how to make an area with barricades to prevent entering the next area until 3 monsters (let's say 1 Poring, 1 Drops and 1 Poporing) are killed in the same map. I'd like to know which function should be used and how nested are they.

The idea in my head would be

-1 Script Name {
If map have mobID present or mobID present or mobID present{
summon barricades to prevent players from accessing the warp portal
}
else {
remove barricades
}

I believe this won't have any bugs? or will this script only check once? I need to make my script running all the time in the map.

And I need to set it to run only for an hour (so I guess OnHourxx)?

If someone can make this idea into a real code that would be great

 

Thanks in advance

Edited by Mickosis
Added idea draft

1 answer to this question

Recommended Posts

  • 0
Posted

*setcell "<map name>",<x1>,<y1>,<x2>,<y2>,<type>,<flag>;

Example:

setcell "schg_cas05",114,51,125,51,cell_walkable,0;

use 1 or 0 to remove cell_walkable :D 0 is cannot walk, 1 is can

  • Upvote 1

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