Jump to content
  • 0

dispbottom not working on this item script


Question

Posted

hey guys im restricting the branches out of the db room, I been looking all around google but I cant make this message to appear when using the branches outside of the db room, anything wrong with the script?

{ 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,"";} else dispbottom "You cannot use branches on this map. Please use the DB Room!"; },{},{}

5 answers to this question

Recommended Posts

  • 0
Posted

Change item type to 11. Then add below monster line

monster "this",-1,-1,"--ja--",-1,1,"";

to

monster "this",-1,-1,"--ja--",-1,1,"";
delitem 604,1;
  • Upvote 1
  • 0
Posted

Any error show up?

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,"";
}
else{
	dispbottom "You cannot use branches on this map. Please use the DB Room!";
}
  • 0
Posted

 

Any error show up?

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,"";
}
else{
	dispbottom "You cannot use branches on this map. Please use the DB Room!";
}

I have the message working now adding the {} between the message, but branches keep getting consumed outside of the db room, any way they get consumed only inside the db room?

  • 0
Posted

 

Change item type to 11. Then add below monster line

monster "this",-1,-1,"--ja--",-1,1,"";

to

monster "this",-1,-1,"--ja--",-1,1,"";
delitem 604,1;

Thank you, finally problem solved.

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