Jump to content
  • 0

disable doommap certain map


Question

Posted

how to disable doom map in a certain town only? cause i dont want my gm's using doommap on my maintown,

i know the mapflag<tab>nocommand<tab>99

yet i still want them to use other commands in my maintown excepting doommap,

and i dont want to disable doommap on my gms because they handle some events that uses doommap command.

bump

4 answers to this question

Recommended Posts

Posted

Well using bindatcmd, i propose something like this !

-    script    atcmd_doommap    -1,{
OnInit:
   bindatcmd("doommap","atcmd_doommap::Ondoommap");
   end;

Ondoommap:
   if( getgmlevel() > 99 )
       atcommand "@doommap";
   else if( getgmlevel() > 60 && strcharinfo(3) != "prontera" )
       atcommand "@doommap";
   end;
}

Doommap works for GM 99 but doesn't work for GM > 60 in prontera !

Posted

-	script	atcmd_doommap	-1,{
OnInit:
bindatcmd("doommap","atcmd_doommap::Ondoommap");
end;

Ondoommap:
//	dispbottom getgmlevel() +""; // debugging
if ( getgmlevel() >= 99 )
	atcommand "@doommap";
else if ( getgmlevel() >= 60 && strcharinfo(3) != "prontera" )
	atcommand "@doommap";
end;
}

I believe the > should be >=

otherwise GM99 will not be able to @doommap in main town

Posted

Doommap works for GM 99 but doesn't work for GM > 60 in prontera !

I believe the > should be >=

otherwise GM99 will not be able to @doommap in main town

Wops you're right >.<

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