Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-28-2001, 11:49 AM
Inguz Inguz is offline
Registered User
Join Date: Mar 2001
Posts: 26
Inguz is on a distinguished road
Mail script

would it be possible to make a script for players that would be like mail
ex. a player chats something like 'To (accountname)'
then 'Your Rent is due'
and could it be enhanced to take money
Reply With Quote
  #2  
Old 06-28-2001, 11:11 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
That would be an execution of the NPC server.
Reply With Quote
  #3  
Old 06-29-2001, 03:47 PM
Inguz Inguz is offline
Registered User
Join Date: Mar 2001
Posts: 26
Inguz is on a distinguished road
ok den

how about just something that records what the playersays then can be carried to a house or mailbox
(carrying is optional)
Reply With Quote
  #4  
Old 06-29-2001, 10:21 PM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
heh

Im trying something like this, im making a personal recording machine where you can store up to 8 messages on it. its just too bad its glitched up and i can only record a message on the first slot =(
Reply With Quote
  #5  
Old 06-29-2001, 10:28 PM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
Lightbulb rather easy

crate an array of strings that is twice the amount of messages you wish to hold. (1 for from line and one for message) have the array be saved to a mailbox npc whichs reads the strings from the array in a sign like form (say2 I think but it may be just say)

rather easy. Then to make sure that a message isn't erased set up the message saving code to check the array for the first null array string. I think that would work but not positive if Graal has a null checking thing.
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #6  
Old 06-29-2001, 11:43 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
Cool

That could be good!
Reply With Quote
  #7  
Old 06-30-2001, 12:15 AM
Er1c Er1c is offline
Registered User
Er1c's Avatar
Join Date: Mar 2001
Location: Chicago, IL
Posts: 791
Er1c is on a distinguished road
Re: rather easy

Quote:
Originally posted by Solareon
I think that would work but not positive if Graal has a null checking thing.
strequals(#s(name),) would check if a string doesn't contain anything.
__________________
Eric Kraft
Reply With Quote
  #8  
Old 06-30-2001, 02:37 AM
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
Whoa what a revolution!
Reply With Quote
  #9  
Old 06-30-2001, 06:48 AM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
I'm a VBer

I really don't like the format of GraalScript it is too simplified, needs to have more functionality. I find the way that VB is setup easier to handle. IN VB you just do,

NPC Code:

dim blehblah as string
dim nullstring as boolean
if blehblah="" then
nullstring=true
else
nullstring=false
end if



so much easier and a lot easier to understand than those darn
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #10  
Old 07-06-2001, 11:57 PM
Solareon Solareon is offline
Registered User
Solareon's Avatar
Join Date: Jun 2001
Location: In a corn field
Posts: 548
Solareon is on a distinguished road
Send a message via AIM to Solareon
vb

it has more functionality cause you can constrain a a variable to one type or another. I don't like how graalscript makes oyu use the icky symbols in the if statements
__________________
-Solareon Doll, thanks to BirdBird_0 for making it
-
First person to choke on a gummi bear and cough it up =)

AIM: SolareonX
flame me 24/7 roffel
-- l33t
JubieSaotomeX < Me
Reply With Quote
  #11  
Old 07-07-2001, 03:42 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x will become famous soon enough
Re: Re: rather easy

Quote:
Originally posted by Er1c


strequals(#s(name),) would check if a string doesn't contain anything.
Or you can use: strlen(string)==0
__________________

Reply With Quote
  #12  
Old 07-07-2001, 04:11 PM
fuzie fuzie is offline
Registered User
Join Date: Jul 2001
Location: +900
Posts: 303
fuzie is on a distinguished road
Send a message via AIM to fuzie Send a message via Yahoo to fuzie
warp ring

how dis sound?>>>say the city you want to go like west graal east babord and stuff like that thenuse the warp ring...kind of crappy idea but hell it might help
Reply With Quote
  #13  
Old 07-07-2001, 08:17 PM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
LOL
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
Reply


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 11:03 AM.


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