Jump to content
  • 0

Hey guys how can i restrict this?


Question

Posted

hello guys i want to disable the use of branches in all maps, i only want it does work in db room maps, if possible i want to know how to modify the message when somebody try to use a branch in another place

i want server message, you cant use branch in this map please use DB Room!! thank you in advance guys, hope somebody know how to do this!!!

18 answers to this question

Recommended Posts

  • 0
Posted
On 7/10/2013 at 7:42 AM, Emistry said:
{ if( strcharinfo(3) == "06@guild_02" || strcharinfo(3) == "pvp_n_1-1" || strcharinfo(3) == "pvp_n_2-1" || strcharinfo(3) == "pvp_n_3-1"  || strcharinfo(3) == "pvp_n_4-1"  || strcharinfo(3) == "pvp_n_5-1"  || strcharinfo(3) == "pvp_n_6-1"  || strcharinfo(3) == "pvp_n_7-1"  || strcharinfo(3) == "pvp_n_8-1"  ) monster "this",-1,-1,"--ja--",-1,1,""; },{},{}

why bb get unlimited

Posted

Set mapflag at trunk/npc/re/mapflag/nobranch.txt

 

 

YOUMAP    mapflag    nobranch
 

 

//===== Description: ========================================= 
//= Disables the following items:
//=   Dead Branch (604), Bloody Branch (12103),
//=   Red Pouch (12024), Poring Box (12109)
 

 

Posted

Set mapflag at trunk/npc/re/mapflag/nobranch.txt

 

 

YOUMAP    mapflag    nobranch
 

 

//===== Description: ========================================= 
//= Disables the following items:
//=   Dead Branch (604), Bloody Branch (12103),
//=   Red Pouch (12024), Poring Box (12109)
 

 

thers no way to disable all maps at time? i can do it only 1 by 1? maybe any script or something? if i have to edit all maps i wont finish in 1 month or more xD

Posted

you can do like this

604,Branch_Of_Dead_Tree,....................,{ if( strcharinfo(3) == "mapname" ) monster "this",-1,-1,"--ja--",-1,1,""; },{},{}
Posted

you can do like this

604,Branch_Of_Dead_Tree,....................,{ if( strcharinfo(3) == "mapname" ) monster "this",-1,-1,"--ja--",-1,1,""; },{},{}

sir emistry where i have to add this? and how to do if i have various maps? this are my maps : "06guild_02", "pvp_n_1-1", "pvp_n_2-1", "pvp_n_3-1", "pvp_n_4-1", "pvp_n_5-1", "pvp_n_6-1", "pvp_n_7-1", "pvp_n_8-1"

waah xD this is the wrong post we are talking about my other post, this post is about prevent people can warp 20 seconds after hit or get hitted xD

Posted
if( strcharinfo(3) == "mapname" || strcharinfo(3) == "mapname" || strcharinfo(3) == "mapname" )

i put it like this but now its not working anywhere xD now the branch get consumed but no monster spawn:

 

604,Branch_Of_Dead_Tree,Dead Branch,2,50,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ if( strcharinfo(3) == "06@guild_02" || strcharinfo(3) == "pvp_n_1-1" || strcharinfo(3) == "pvp_n_2-1" || strcharinfo(3) == "pvp_n_3-1"  || strcharinfo(3) == "pvp_n_4-1"  || strcharinfo(3) == "pvp_n_5-1"  || strcharinfo(3) == "pvp_n_6-1"  || strcharinfo(3) == "pvp_n_7-1"  || strcharinfo(3) == "pvp_n_8-1"  ) monster "this",-1,-1,"--ja--",-1,1,""; },{},{}

bump

Posted

where i have to add this?

message strcharinfo(0),"You cannot use branch in this map. Please use the DB Room!";

My dead branch is not working now, it got consumed but no monster is spawn. i just want people only can use branches in this maps "06guild_02", "pvp_n_1-1", "pvp_n_2-1", "pvp_n_3-1", "pvp_n_4-1", "pvp_n_5-1", "pvp_n_6-1", "pvp_n_7-1", "pvp_n_8-1".



have u reload your @reloaditemdb ?

yep already reloaded and still the same ^_^

Posted
604,Branch_Of_Dead_Tree,Dead Branch,2,50,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ if( strcharinfo(3) == "06@guild_02" || strcharinfo(3) == "pvp_n_1-1" || strcharinfo(3) == "pvp_n_2-1" || strcharinfo(3) == "pvp_n_3-1"  || strcharinfo(3) == "pvp_n_4-1"  || strcharinfo(3) == "pvp_n_5-1"  || strcharinfo(3) == "pvp_n_6-1"  || strcharinfo(3) == "pvp_n_7-1"  || strcharinfo(3) == "pvp_n_8-1"  ) monster "this",-1,-1,"--ja--",-1,1,""; },{},{}

work fine for me...dont have any problem ==''  ...

if you got problem please specify it...

Posted
604,Branch_Of_Dead_Tree,Dead Branch,2,50,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ if( strcharinfo(3) == "06@guild_02" || strcharinfo(3) == "pvp_n_1-1" || strcharinfo(3) == "pvp_n_2-1" || strcharinfo(3) == "pvp_n_3-1"  || strcharinfo(3) == "pvp_n_4-1"  || strcharinfo(3) == "pvp_n_5-1"  || strcharinfo(3) == "pvp_n_6-1"  || strcharinfo(3) == "pvp_n_7-1"  || strcharinfo(3) == "pvp_n_8-1"  ) monster "this",-1,-1,"--ja--",-1,1,""; },{},{}

work fine for me...dont have any problem ==''  ...

if you got problem please specify it...

Sir emistry i tried again, and still the same, now when i try to use a dead branch no mobs is spawned, the dead branch got consumed but no mobs spawn.

Posted

make sure your char located inside these maps..

 strcharinfo(3) == "06@guild_02" || strcharinfo(3) == "pvp_n_1-1" || strcharinfo(3) == "pvp_n_2-1" || strcharinfo(3) == "pvp_n_3-1"  || strcharinfo(3) == "pvp_n_4-1"  || strcharinfo(3) == "pvp_n_5-1"  || strcharinfo(3) == "pvp_n_6-1"  || strcharinfo(3) == "pvp_n_7-1"  || strcharinfo(3) == "pvp_n_8-1"
Posted

make sure your char located inside these maps..

 strcharinfo(3) == "06@guild_02" || strcharinfo(3) == "pvp_n_1-1" || strcharinfo(3) == "pvp_n_2-1" || strcharinfo(3) == "pvp_n_3-1"  || strcharinfo(3) == "pvp_n_4-1"  || strcharinfo(3) == "pvp_n_5-1"  || strcharinfo(3) == "pvp_n_6-1"  || strcharinfo(3) == "pvp_n_7-1"  || strcharinfo(3) == "pvp_n_8-1"

ok sir emistry is working now, 2 more questions, how i can add this message:("You cannot use branch in this map, Please use the DB Room!") when somebody try to use any branches outside db room? and there is any way to stop consuption of branches outside of db room?

Posted


604,Branch_Of_Dead_Tree,Dead Branch,18,50,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ if( strcharinfo(3) == "06@guild_02" ){ monster "this",-1,-1,"--ja--",-1,1,""; delitem 604,1; }else{ dispbottom "You cant use here"; } },{},{}

Posted
message strcharinfo(0),"You cannot use branch in this map. Please use the DB Room!";

sir this is my dead branch db, where to add the message to work only outside the db room maps? i tried adding it in monster "this",-1,-1,"--ja--",-1,1,""; "HERE" } but message was display everytime, even inside db room, i want message only display in not db room maps.

604,Branch_Of_Dead_Tree,Dead Branch,2,50,,50,,,,,0xFFFFFFFF,7,2,,,,,,{ if( strcharinfo(3) == "06guild_02" || strcharinfo(3) == "pvp_n_1-1" || strcharinfo(3) == "pvp_n_2-1" || strcharinfo(3) == "pvp_n_3-1"  || strcharinfo(3) == "pvp_n_4-1"  || strcharinfo(3) == "pvp_n_5-1"  || strcharinfo(3) == "pvp_n_6-1"  || strcharinfo(3) == "pvp_n_7-1"  || strcharinfo(3) == "pvp_n_8-1"  ) monster "this",-1,-1,"--ja--",-1,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...