Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Mail script (https://forums.graalonline.com/forums/showthread.php?t=6002)

Inguz 06-28-2001 11:49 AM

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

Slaktmaster 06-28-2001 11:11 PM

That would be an execution of the NPC server.

Inguz 06-29-2001 03:47 PM

ok den
 
how about just something that records what the playersays then can be carried to a house or mailbox
(carrying is optional)

ArmadeusWarlock 06-29-2001 10:21 PM

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 =(

Solareon 06-29-2001 10:28 PM

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.

Slaktmaster 06-29-2001 11:43 PM

That could be good! :)

Er1c 06-30-2001 12:15 AM

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.

Slaktmaster 06-30-2001 02:37 AM

Whoa what a revolution! :)

Solareon 06-30-2001 06:48 AM

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 07-06-2001 11:57 PM

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

grim_squeaker_x 07-07-2001 03:42 PM

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

fuzie 07-07-2001 04:11 PM

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

ownerofbabylon 07-07-2001 08:17 PM

LOL


All times are GMT +2. The time now is 09:13 AM.

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