![]() |
Bank Menu
I am making a small menu for the playerhouse system on my server to store money in. The way it works is each tenant has a room and there account is kept in a server string. I am making it so that if they enter there room they can use a little menu to deposit, withdrawl or view balance.
I am just gonna use a regular say or say2 to do it. Show I make something where i have 3 different menus like... -->Deposit Withdrawl Balance Deposit -->Withdrawl Balance Deposit Withdrawl -->Balance and it replaces as they move down? |
well, maybe you can just use say2 and then have it disabledefmovement, then use keydown to move an arrow up and down the say2 box then if a position is pressed it says2 again to open and new window and so forth ...
|
if (keydown(2)&&playerendsreading) {
say2 blah blah; } if (keydown(0)&&playerendsreading) { say2 blah blah; } thats the basics of it, you need to add syntax to it, so it will show the right choose or whatever |
thank you guys :)
|
is my sig not working ?
|
Quote:
|
While you COULD use say2, its not the best way to go about making menus, a better way for example would be to use showimg
|
Quote:
|
Quote:
Plus it will look as if the person is actually moveing the arrow rather than a text box |
// NPC made by Golem
if (playertouchsme) { this.pos=0; disabledefmovement; setani idle,; timeout=.05; } if(timeout&&this.pos=0){ showimg 200,@Arial@cb@->Deposit,(screenwidth/2),(screenheight/2-120); showimg 201,@Arial@cb@Withdrawl,(screenwidth/2),(screenheight/2-100); showimg 202,@Arial@cb@Balance,(screenwidth/2),(screenheight/2-80); changeimgvis 200,4; changeimgvis 201,4; changeimgvis 202,4; timeout=.05; } if(timeout){ if(keydown(2)&&this.pos=0){ this.pos=1; showimg 200,@Arial@cb@Deposit,(screenwidth/2),(screenheight/2-120); showimg 201,@Arial@cb@->Withdrawl,(screenwidth/2),(screenheight/2-100); showimg 202,@Arial@cb@Balance,(screenwidth/2),(screenheight/2-80); changeimgvis 200,4; changeimgvis 201,4; changeimgvis 202,4; timeout=.05; } if(keydown(2)&&this.pos=1){ this.pos=2; showimg 200,@Arial@cb@Deposit,(screenwidth/2),(screenheight/2-120); showimg 201,@Arial@cb@Withdrawl,(screenwidth/2),(screenheight/2-100); showimg 202,@Arial@cb@->Balance,(screenwidth/2),(screenheight/2-80); changeimgvis 200,4; changeimgvis 201,4; changeimgvis 202,4; } if(keydown(2)&&this.pos=2){ this.pos=0; } timeout=.05; } |
that no work right so far =(
|
Quote:
I'd use the first method, personally. |
Quote:
== means equals |
that isn't true in graalscript, only in c (and variations of C)
|
Quote:
Quote:
|
Helmut, PM me and I'll make a showimg based menu for you.
|
Helmut, you confuse me. You can very easily make the hunting menu I made into a bank script... If you pm me or im me I can just give you a bank script...
|
Quote:
|
Quote:
|
Expect the worst and hope for the best.
I expect sometime next year but im hopeing sometime before school lets out in june. |
blegh, let stefan work at his own pace...whenever he rushes things they become crap :o
|
Quote:
|
thanks guys but im making this so I can learn. Its not a real bank, its like for the playerhouses. Each person has a small chest in there room that will allow them to store money and im making a little menu for it. I just cant get the selector right :(
|
Quote:
|
| All times are GMT +2. The time now is 02:32 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.