Jump to content

Question

22 answers to this question

Recommended Posts

Posted

you can disable using @command inside woe maps by mapflags.

disabling ygg? check item_noequip.txt inside your db folder.

in my case its inside P-RE folder.

https://rathena.svn....tem_noequip.txt

battleground
gvg
jail
night
nightmare
nobranch
noexp
noicewall
noloot
nomemo
nopenalty
noreturn
no save
noskill
noteleport
novending
nowarp
nowarpto
partylocl
pvp
pvp_noguild
pvp_noparty
reset
restricted
town

here is my mapflag folder where should i put the no commands mapflag for guild castle?

Posted (edited)

use this npc if you cant find nocommand mapflag inside mapflag folder.

// Please VOTE UP my post if I helped.
// Script By: Anubis
- script WoE_NoCommand -1,{
OnInit:
setarray .woe_cas$,"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05"; // Add more maps here.
for ( set .@x, 0; .@x < getarraysize(.woe_cas$); set .@x, .@x +1 )
setmapflag .woe_cas$, mf_nocommand;
}
Edited by Anubis
  • Upvote 1
Posted

just simply it everywhere you want....as long as it's loaded during the server loading the npcs or others....

adding a mapflag is just as simple as adding a npc..

  • Upvote 1
Posted

thank you all for helping. cant click the arrow because its saying i have reached my quota of positive votes for the day

use this npc if you cant find nocommand mapflag inside mapflag folder.

// Please VOTE UP my post if I helped.
// Script By: Anubis
- script WoE_NoCommand -1,{
OnInit:
setarray .woe_cas$,"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05"; // Add more maps here.
for ( set .@x, 0; .@x < getarraysize(.woe_cas$); set .@x, .@x +1 )
setmapflag .woe_cas$, mf_nocommand;
}

i tried this.

i put in script.custom.conf

npc: npc/custom/woestorage.txt

then add in npc/custom/woestorage.txt

i tried to reload but still they can use @storage inside the castle

Posted · Hidden by Emistry, January 2, 2013 - more like a spam post ~
Hidden by Emistry, January 2, 2013 - more like a spam post ~

it should be

setmapflag .woe_cas$[.@x], mf_nocommand;

/no1

Posted

Emistry means inside Anubis's script

// Please VOTE UP my post if I helped.
// Script By: Anubis
-    script    WoE_NoCommand    -1,{
OnInit:
   setarray .woe_cas$,"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05"; // Add more maps here.
   for ( set .@x, 0; .@x < getarraysize(.woe_cas$); set .@x, .@x +1 )
       setmapflag .woe_cas$[.@x], mf_nocommand;
   end;
}

still i can use @storage inside the castle.

GM high level can bypass mapflag nocommand. Be sure you tested with player's account.

Posted (edited)

mapname	mapflag	nocommand   90

above gm level 90 can bypass

i didnt use the mapflag i used the script. i used the script below

// Please VOTE UP my post if I helped.
// Script By: Anubis
- script WoE_NoCommand -1,{
OnInit:
setarray .woe_cas$,"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05"; // Add more maps here.
for ( set .@x, 0; .@x < getarraysize(.woe_cas$); set .@x, .@x +1 )
setmapflag .woe_cas$, mf_nocommand;
}

bump

Edited by AllHailToTheKing
Posted (edited)

i already put it on my pvp script but still i cant use command and whenever.. and when im inside the pvp, when i use recon it should warp me back to the save point. but in my pvp room when i use recon it stays inside the pvp room..

here is my pvp script. i already put the mapflag.

malaya,285,362,4 script PvP Arena 1198,{

menu
"PvP [" + getmapusers("prt_are01.gat") + " / 69]",L2,
//"^999999Royal Rumble [" + getmapusers("pvp_y_2-5.gat") + " / 69 ]^000000",L4,
//"PvP Baby ["+getmapusers("pvp_y_3-2")+ " / 100]",L3,
"^999999Novice Grounds [" + getmapusers("pvp_y_2-2") + " / 69]^000000",L6;



//"War of the Emperium",L5;

L2:
if ((getmapusers("prt_are01.gat") > 68)&&(getgmlevel() < 1)) goto Lsorry;
if ((class==Job_Novice_High)&&(getgmlevel() < 1)) goto Lnoob;
if (class==Super_Novice) goto Lnoob;
warp "prt_are01.gat",0,0;
close;

L3:
if (getmapusers("pvp_y_3-2") > 60) callsub S_full;
if ((class < 4023) || (class > 4045) ) goto L_NotBaby;
warp "pvp_y_3-2",0,0;
close;

L4:
if ((getmapusers("pvp_y_8-2.gat") > 69)&&(getgmlevel() < 1)) goto Lsorry;
if ((class==Job_Novice_High)&&(getgmlevel() < 1)) goto Lnoob;
if (class==Super_Novice) goto Lnoob;
warp "pvp_y_2-5.gat",0,0;
close;

//L5:
//if (getmapusers("gefg_cast04.gat") > 69) goto Lsorry;
//warp "gefg_cas04",178,63;
//close;

L6:
if (getmapusers("pvp_y_2-2") > 99) callsub S_full;
if ((class!=Job_Novice_High)&&(getgmlevel() < 1)) goto Lnoob;
if (class==Super_Novice) goto Lsuno;
if (class < 4023 || class > 4045) goto L_NotBaby;
warp "pvp_y_2-2",0,0;
end;

L_NotBaby:
mes "Only baby can enter this room";
close;


Lsuno:
warp "new_1-1",160,101;
close;

L_Not:
mes "^FF000051~60 PvP Room^000000";
close;

Lsorry:
mes "[PvP Warper]";
mes "Sorry, The PvP Arena is Full.";
close;

Lnoob:
mes "[PvP Warper]";
mes "This place is ^FF0000RESTRICTED^000000 for your class.";
close;

L_No:
close;



set .@GID, GetCastleData("gefg_cas04",1);


OnRecvCastleG04:
FlagEmblem GetCastleData("gefg_cas04",1);
end;


S_full:
mes " ";
mes "I'm sorry, this arena is full.  Please try again later...";
close;

// items not allowed in PVP NoPotion
setarray .NoPotion_ids[0], 607, 608;

// items not allowed in Non Donator PVP
setarray .NoDonator_ids[0], 2410, 1530, 607, 608;
end;
}

// -- Mapflags
pvp_y_1-2 mapflag nobranch
[b]prt_are01 mapflag nocommand 90[/b]

Edited by AllHailToTheKing
  • 0
Posted
On 1/3/2013 at 2:49 AM, Capuche said:

// Please VOTE UP my post if I helped. // Script By: Anubis - script WoE_NoCommand -1,{ OnInit: setarray .woe_cas$,"prtg_cas01","prtg_cas02","prtg_cas03","prtg_cas04","prtg_cas05"; // Add more maps here. for ( set .@x, 0; .@x < getarraysize(.woe_cas$); set .@x, .@x +1 ) setmapflag .woe_cas$[.@x], mf_nocommand; end; }

how to make only @storage command will disable?

because @time is also disable they dont check the time when will the woe will end

  • 0
Posted

 

1 hour ago, skymia said:

how to make only @storage command will disable?

because @time is also disable they dont check the time when will the woe will end

Try mapflag notrade

  • 1
Posted (edited)

Hello,

I solved this issue by creating my custom mapflag and here is manual, how to do it ?

open: src/map/map.hpp
find: 

enum e_mapflag : int16 {

insert BEFORE "MF_MAX"

	MF_NOSTORAGE,
	MF_MAX
};

open: src/map/script_constants.hpp
find:

	/* mapflags */
	export_constant(MF_NOMEMO);
	export_constant(MF_NOTELEPORT);

add to end of this block:

export_constant(MF_NOSTORAGE);

open src/map/atcommand.cpp
find:

if (map_getmapflag(m_id, MF_NOCOSTUME))
	strcat(atcmd_output, " NoCostume |");

add:

if (map_getmapflag(m_id, MF_NOSTORAGE))
	strcat(atcmd_output, " NoStorage |");

find:

ACMD_FUNC(storage)
{
	nullpo_retr(-1, sd);

add: 

	if (map_getmapflag(sd->bl.m, MF_NOSTORAGE)) {
		clif_displaymessage(fd, msg_txt(sd, 1516));	// Command is disabled on this map.
		return -1;
	}

find:

ACMD_FUNC(guildstorage)
{
	nullpo_retr(-1, sd);

add:

	if (map_getmapflag(sd->bl.m, MF_NOSTORAGE)) {
		clif_displaymessage(fd, msg_txt(sd, 1516));	// Command is disabled on this map.
		return -1;
	}

open: conf/msg_conf/map_msg.conf
to end of this document, add new line:

1516: Command is disabled on this map.

Be careful, if this ID is already used, you must to change id, to latest available and change this id in "msg_txt(sd, yourid)"

Recompile your project.

Create file in npc/mapflag/nostorage.txt
Insert into file:

prontera	mapflag	nostorage

Add line to npc/script_mapflags.conf

npc: npc/mapflag/nostorage.txt

Reload NPC scripts.

At this time, @storage and @guildstorage commands are not allowed in prontera.

ENJOY ?

Edited by Seva
  • Upvote 1
  • Love 1

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