Jump to content
  • 0

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


TemplarOfTheMist

Question


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  31
  • Reputation:   1
  • Joined:  06/05/12
  • Last Seen:  

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
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  615
  • Reputation:   201
  • Joined:  11/09/11
  • Last Seen:  


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