Jump to content
  • 0
Dev Yhams

DISABLE COMMANDS

Question

4 answers to this question

Recommended Posts

  • 0
-	script	NOWARPCOMMAND	-1,{

OnInit:

bindatcmd "quest", strnpcinfo(0)+"::OnQuestCommand";

function OnQuestCommand {
	[email protected]$ = strcharinfo(3);
	if ( getmapflag( [email protected]$,mf_pvp ) ) || getmapflag( [email protected]$,mf_gvg ) || getmapflag( [email protected]$,mf_nowarp ) || getmapflag( [email protected]$,mf_nowarpto ) || getmapflag( [email protected]$,mf_noteleport ) {
		dispbottom [email protected]_command$+" Not available in PvP / WoE Zones or zones that will not allow you to teleport.";
		end;
	}else{
		warp "your quest map",x,x;
		end;
		}
	}	
}

-	script	NOWARPCOMMAND1	-1,{

OnInit:

bindatcmd "mall", strnpcinfo(0)+"::OnMallCommand";

function OnMallCommand {
	[email protected]$ = strcharinfo(3);
	if ( getmapflag( [email protected]$,mf_pvp ) ) || getmapflag( [email protected]$,mf_gvg ) || getmapflag( [email protected]$,mf_nowarp ) || getmapflag( [email protected]$,mf_nowarpto ) || getmapflag( [email protected]$,mf_noteleport ) {
		dispbottom [email protected]_command$+" Not available in PvP / WoE Zones or zones that will not allow you to teleport.";
		end;
	}else{
		warp "your mall map",x,x;
		end;
		}
	}	
}

-	script	NOWARPCOMMAND2	-1,{

OnInit:

bindatcmd "donate", strnpcinfo(0)+"::OnDonateCommand";

function OnDonateCommand {
	[email protected]$ = strcharinfo(3);
	if ( getmapflag( [email protected]$,mf_pvp ) ) || getmapflag( [email protected]$,mf_gvg ) || getmapflag( [email protected]$,mf_nowarp ) || getmapflag( [email protected]$,mf_nowarpto ) || getmapflag( [email protected]$,mf_noteleport ) {
		dispbottom [email protected]_command$+" Not available in PvP / WoE Zones or zones that will not allow you to teleport.";
		end;
	}else{
		warp "your donate map",x,x;
		end;
		}
	}	
}

 

Link to comment
Share on other sites

  • 0

HOW DISABLE COMMAND ON PVP MAP  THIS COMMANDS @QUEST @MALL @DONATES @FREEBIES ! THANK YOU FOR HELPING ! RA 2015

ser ! this is working on pvp map but i use on prontera no command or not working

On 11/22/2021 at 1:53 AM, EIysium said:
-	script	NOWARPCOMMAND	-1,{

OnInit:

bindatcmd "quest", strnpcinfo(0)+"::OnQuestCommand";

function OnQuestCommand {
	[email protected]$ = strcharinfo(3);
	if ( getmapflag( [email protected]$,mf_pvp ) ) || getmapflag( [email protected]$,mf_gvg ) || getmapflag( [email protected]$,mf_nowarp ) || getmapflag( [email protected]$,mf_nowarpto ) || getmapflag( [email protected]$,mf_noteleport ) {
		dispbottom [email protected]_command$+" Not available in PvP / WoE Zones or zones that will not allow you to teleport.";
		end;
	}else{
		warp "your quest map",x,x;
		end;
		}
	}	
}

-	script	NOWARPCOMMAND1	-1,{

OnInit:

bindatcmd "mall", strnpcinfo(0)+"::OnMallCommand";

function OnMallCommand {
	[email protected]$ = strcharinfo(3);
	if ( getmapflag( [email protected]$,mf_pvp ) ) || getmapflag( [email protected]$,mf_gvg ) || getmapflag( [email protected]$,mf_nowarp ) || getmapflag( [email protected]$,mf_nowarpto ) || getmapflag( [email protected]$,mf_noteleport ) {
		dispbottom [email protected]_command$+" Not available in PvP / WoE Zones or zones that will not allow you to teleport.";
		end;
	}else{
		warp "your mall map",x,x;
		end;
		}
	}	
}

-	script	NOWARPCOMMAND2	-1,{

OnInit:

bindatcmd "donate", strnpcinfo(0)+"::OnDonateCommand";

function OnDonateCommand {
	[email protected]$ = strcharinfo(3);
	if ( getmapflag( [email protected]$,mf_pvp ) ) || getmapflag( [email protected]$,mf_gvg ) || getmapflag( [email protected]$,mf_nowarp ) || getmapflag( [email protected]$,mf_nowarpto ) || getmapflag( [email protected]$,mf_noteleport ) {
		dispbottom [email protected]_command$+" Not available in PvP / WoE Zones or zones that will not allow you to teleport.";
		end;
	}else{
		warp "your donate map",x,x;
		end;
		}
	}	
}

 

i need to avail only prontera map

ser ! this is working on pvp map but i use on prontera no command or not working

Link to comment
Share on other sites

  • 0
2 hours ago, Dev Yhams said:

HOW DISABLE COMMAND ON PVP MAP  THIS COMMANDS @QUEST @MALL @DONATES @FREEBIES ! THANK YOU FOR HELPING ! RA 2015

use nocommands mapflag if u want to disable all commands.

if certain commands, this idea might helps

 

Link to comment
Share on other sites

  • 0

if you want only available at prontera try this

-	script	OneCommand	-1,{

OnQuestCommand:
	if (strcharinfo(3) == "prontera") {
		warp "your quest map",x,x;
		end;
	}
	dispbottom .@atcmd_command$+" This Command only available at prontera town!";
	end;

OnMallCommand:
	if (strcharinfo(3) == "prontera") {
		warp "your quest map",x,x;
		end;
	}
	dispbottom .@atcmd_command$+" This Command only available at prontera town!";
	end;

OnDonateCommand:
	if (strcharinfo(3) == "prontera") {
		warp "your quest map",x,x;
		end;
	}
	dispbottom .@atcmd_command$+" This Command only available at prontera town!";
	end;

OnInit:
	bindatcmd "quest", strnpcinfo(0)+"::OnQuestCommand";
	bindatcmd "mall", strnpcinfo(0)+"::OnMallCommand";
	bindatcmd "donate", strnpcinfo(0)+"::OnDonateCommand";
	end;

}

 

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

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.