angelofdark3 Posted February 15, 2009 Author Share Posted February 15, 2009 hi i have wrote down this:Call CustomMenuShow(index, "mailsystem", "\GUI\CUSTOM\talk.jpg", 1)Call CustomMenutextbox(index, 1, 60, 20, 150, "None")so i want that when i type "Trade" in the textbox that comes the sub goshopping !how can i do this ? Link to comment Share on other sites More sharing options...
Fruitpunch Posted February 15, 2009 Share Posted February 15, 2009 Well you put this under Menuscripts, under Case 2```If FieldMessage = "Trade" and MenuTitle = "mailsystem" ThenCall goshopping(index, whatever shop you want)End If```Not sure if Trade and mailsystem have to be in quotes though. Link to comment Share on other sites More sharing options...
angelofdark3 Posted February 15, 2009 Author Share Posted February 15, 2009 dont workli also try out this: If menu_title = "Schreinderweisheit1" thenIf FieldMessage = "trade" thenCall goshopping(index, whatever shop you want)end ifend if Link to comment Share on other sites More sharing options...
Fruitpunch Posted February 15, 2009 Share Posted February 15, 2009 does your custom menu appear at all?also the double if would not work, thats what and is for Link to comment Share on other sites More sharing options...
angelofdark3 Posted February 15, 2009 Author Share Posted February 15, 2009 yes menu is appearmy case 2 is:Case 2If FieldMessage = "trade" and MenuTitle = "Schreinderweisheit1" ThenCall goshopping(index, 1)end if Link to comment Share on other sites More sharing options...
Fruitpunch Posted February 15, 2009 Share Posted February 15, 2009 why is your menu title screinderweisheit1 it should be "mailsystem" Link to comment Share on other sites More sharing options...
angelofdark3 Posted February 15, 2009 Author Share Posted February 15, 2009 yes i changed thatSchreinderweisheit1 is the right name of th menuur sure its FieldMessage ? Link to comment Share on other sites More sharing options...
Fruitpunch Posted February 15, 2009 Share Posted February 15, 2009 thats what it says in my Main.txt h.o let me test something. Link to comment Share on other sites More sharing options...
Fruitpunch Posted February 15, 2009 Share Posted February 15, 2009 okay just realized fieldmessage is bugged so do this instead```If getplayerclickmsg = Trade and MenuTitle = "Schreinderweisheit1" ThenCall goshopping(index, whatever shop you want)End If```If that does not work I have one other alternative Link to comment Share on other sites More sharing options...
angelofdark3 Posted February 15, 2009 Author Share Posted February 15, 2009 does not work … =(( Link to comment Share on other sites More sharing options...
Akselj Posted February 15, 2009 Share Posted February 15, 2009 ```Call CustomMenuShow(Index, "Test", "\GUI\CUSTOM\talk.jpg", 1)Call CustomMenuLabel(Index, 1, "Trade", 20, 100, 10, 0, 0, 400, 20)```and in MenuScripts, the label case,```If MenuTitle = "Test" If Clicked_Index = 1 Then Call GoShopping(Index, Shop) End IfEnd If```AkselJ Link to comment Share on other sites More sharing options...
angelofdark3 Posted February 15, 2009 Author Share Posted February 15, 2009 Big thx !one little question: is there a sub to close the menu ?like you press bye-button Link to comment Share on other sites More sharing options...
Akselj Posted February 15, 2009 Share Posted February 15, 2009 Just add another label, and when it is clicked Call CustomMenuClose(Index)AkselJ Link to comment Share on other sites More sharing options...
Fruitpunch Posted February 15, 2009 Share Posted February 15, 2009 Nevermind Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now