Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 10/20/24 in all areas

  1. Hi. You can create a new restricted zone that blocks Warp Portal and use a loop to activate and deactivate it in every single map during your event. Add this in your \db\import\skill_nocast_db.txt //---------------------------------------------------------------------------- // Zone 10 - Temporary (event only) //---------------------------------------------------------------------------- 27,16384 //disables skill id 27 AL_WARP (warp portal) on zone 10 Save the file. Use @reloadskilldb or restart the server. Insert this in the NPC when the event starts: freeloop(1); for(.@i = 1; .@i < 1400; .@i++) { .@map$ = mapid2name(.@i); if (.@map$ != "") { setmapflag .@map$, mf_restricted, 10; } } freeloop(0); And insert this when the event ends: freeloop(1); for(.@i = 1; .@i < 1400; .@i++) { .@map$ = mapid2name(.@i); if (.@map$ != "") { removemapflag .@map$, mf_restricted, 10; } } freeloop(0); Save the file. Use @reloadscript/@reloadnpcfile or restart the server.
    1 point
×
×
  • Create New...