Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-21-2002, 03:44 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
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?
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #2  
Old 02-21-2002, 04:02 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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 ...
Reply With Quote
  #3  
Old 02-21-2002, 04:14 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
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
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #4  
Old 02-21-2002, 04:18 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
thank you guys
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #5  
Old 02-21-2002, 04:23 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
is my sig not working ?
Reply With Quote
  #6  
Old 02-21-2002, 04:45 AM
TDK_RC6 TDK_RC6 is offline
Registered User
TDK_RC6's Avatar
Join Date: Jan 2002
Location: Earth
Posts: 0
TDK_RC6 is on a distinguished road
Quote:
Originally posted by nyghtGT
is my sig not working ?
not for me
__________________
Staff on Renegade


email: [email protected]
aim: papivicente
Reply With Quote
  #7  
Old 02-21-2002, 05:01 AM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
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
Reply With Quote
  #8  
Old 02-21-2002, 07:03 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
Quote:
Originally posted by btedji
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
Showimg is ok but its kinda ugly without a nice background
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #9  
Old 02-21-2002, 07:47 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by lordhelmut


Showimg is ok but its kinda ugly without a nice background
Yes but it is a lot better than the SAY2 command,

Plus it will look as if the person is actually moveing the arrow rather than a text box
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #10  
Old 02-21-2002, 08:05 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
// 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;
}
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #11  
Old 02-21-2002, 08:07 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
that no work right so far =(
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #12  
Old 02-21-2002, 08:51 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
Quote:
Originally posted by lordhelmut


Showimg is ok but its kinda ugly without a nice background
Use showimg, but for the background use the letters.png and use changeimgpart to show the background of the letters (parchment junk), and then use showimg for a cursor as well. Or if you don't wanna do that, you might be able to use say2, disabledefmovement, then use showimg for a cursor that scrolls, tests position and checks the keydown and junk.

I'd use the first method, personally.
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote
  #13  
Old 02-21-2002, 09:02 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by lordhelmut
// NPC made by Golem
ext
= means an assignment
== means equals
Reply With Quote
  #14  
Old 02-21-2002, 09:34 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
that isn't true in graalscript, only in c (and variations of C)
Reply With Quote
  #15  
Old 02-21-2002, 09:42 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Faheria_GP2
that isn't true in graalscript, only in c (and variations of C)
Quote:
From the commands.rcf

== equals
= assigment
Reply With Quote
  #16  
Old 02-21-2002, 01:48 PM
Slaktmaster Slaktmaster is offline
man with the mastahplan
Slaktmaster's Avatar
Join Date: Apr 2001
Location: Half-way over the river styx
Posts: 4,422
Slaktmaster is an unknown quantity at this point
Send a message via ICQ to Slaktmaster Send a message via AIM to Slaktmaster
Helmut, PM me and I'll make a showimg based menu for you.
Reply With Quote
  #17  
Old 02-21-2002, 11:24 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
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...
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #18  
Old 02-22-2002, 12:48 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Kaimetsu


It doesn't make a difference in GScript, but it's still good practise to script 'correctly'. After all, it's possible that the change will be made when the new script engine is released.
Is there a date to go with the name, or an estimated date? (New scripting engine.)
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #19  
Old 02-22-2002, 01:02 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Quote:
Originally posted by Kaimetsu


Probably, though not one that I know. I'd love to get one, though, cos I'm putting off working on the 3D thing until I can use function arguments and return values etc.
ouch, lets riot for a date.
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #20  
Old 02-22-2002, 01:58 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Expect the worst and hope for the best.

I expect sometime next year but im hopeing sometime before school lets out in june.
__________________

subliminal message: 1+1=3
Reply With Quote
  #21  
Old 02-22-2002, 06:08 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
blegh, let stefan work at his own pace...whenever he rushes things they become crap :o
Reply With Quote
  #22  
Old 02-22-2002, 07:47 AM
Dustey Dustey is offline
Registered User
Join Date: Nov 2001
Location: Do You Think I Know?
Posts: 193
Dustey is on a distinguished road
Send a message via AIM to Dustey
Quote:
Originally posted by Faheria_GP2
blegh, let stefan work at his own pace...whenever he rushes things they become crap :o
U r so right
__________________
And Yes I work For.... Renegade
Reply With Quote
  #23  
Old 02-24-2002, 12:45 AM
lordhelmut lordhelmut is offline
Registered User
lordhelmut's Avatar
Join Date: Aug 2001
Posts: 710
lordhelmut is on a distinguished road
Send a message via ICQ to lordhelmut Send a message via AIM to lordhelmut Send a message via Yahoo to lordhelmut
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
__________________

Check out the development at:
http://razza.org/lordhelmut/FantasyTales/index
Reply With Quote
  #24  
Old 02-24-2002, 07:42 AM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by lordhelmut
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
Well if you send me the lvl i can easily script you one, but where do you want the image to be displayed?
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:34 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.