Jump to content
  • 0

disable doommap certain map


doommap

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   0
  • Joined:  11/21/12
  • Last Seen:  

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

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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 !

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   0
  • Joined:  11/21/12
  • Last Seen:  

thankyou for replyin but havent done it yet will try soon

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

-	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

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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

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