Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Elaborate Economy System (https://forums.graalonline.com/forums/showthread.php?t=7767)

Solareon 07-21-2001 11:40 AM

Elaborate Economy System
 
This is a long one so bear with me.

First a bank, with optional services such as checking and credit cards. Money in a savings account would earn interest over time (1 graal day is 1 interest cycle) Interest can be limited to only earn while a player is online (oh wait that is already implemented)

A stock market. Each time a player doing a particular job earns his money it reflects upon the stock market, if few people are doign a skill the value goes up (less people equals less money from the job company [the peoepl who manage the resources for a job]) the more people doign a trade skill it reflects on the market in a negative way, and the prices from the job go down to deter the market from dropping to nothing (crashed stage of the market) peopel investing their money into a company and withdrawign their money from a company makes the value go up and down respectively.

Checks from the bank must have the person buy a set fo checks, when a person uses a check it checks the bank fro the money and then takes it out a few days later (depending on how the owner of the particular store collects his money) checks will have to be cleared with the bank before the money is actually removed from the account (like a real checking system so people can make mistakes and try and cut it closer).

Charge cards withdraw the money immediately and the player is informed fo the new balance, If the card is declined (NSF) then the player is frowned upon from using anything but cash to pay the npc. After the player pays with cash for once, they are free to use charge services.

If check doesn't clear the player is informed of it and the amount of money stolen is added to a flag on the account so the police will attempt to jail the player for cheating the system by using the copnet npc. If the player does not get caught a bounty is set on their head and if another player kills them once (additional times do not count) they are then able to claim the reward placed on their head (not more than 5x the amount stolen)


07-21-2001 12:07 PM

Graal 2001 is not Wall Street.

dragoonvenganc 07-21-2001 12:12 PM

Hold it one setep at a time. There is no possible was that stefan could make an economic system like we have in the world that would be extremely time consuming and hard to get it working right. If he ever would just think about it.

Tyhm 07-21-2001 02:18 PM

I think it would be possible to buy stock in like the fish market. The price is calculated by how much profit Skop's making (Assuming he makes money by selling the fish somewhere else, and assuming I got the name right) and how many shares are available. If everyone sells, the prices go down, if everyone buys they go up, yadda.

The currency market's even easier. The count of all the gralats verses the count of all the coins or yen or whatever is your exchange rate. If you have 10,000 gralats and every 1000 coins, a gralat's worth 1/10 of a coin...if the coin businesses give out more coins, the value plummets...

And of course the easiest way is to just make a random function of time, every hour stockmarket=stockmarket+random(1,-1); and pretend it's a bunch of trading NPCs that keep it in flux.

SSmutz 07-21-2001 09:16 PM

I still say we need to get rid of gralats completely and let people trade fish and pearls and stuff like that for weapons, tools, instruments, etc.

SkooL 07-21-2001 09:27 PM

Quote:

Originally posted by SSmutz
I still say we need to get rid of gralats completely and let people trade fish and pearls and stuff like that for weapons, tools, instruments, etc.
Who's going to trade their fireball for 50 useless pearls?

SSmutz 07-21-2001 09:40 PM

Quote:

Originally posted by SkooL

Who's going to trade their fireball for 50 useless pearls?

Some one that need 50 pearls to buy a flute.

DarkPyro_2001 07-22-2001 12:46 AM

Quote:

Originally posted by Tyhm
I think it would be possible to buy stock in like the fish market. The price is calculated by how much profit Skop's making (Assuming he makes money by selling the fish somewhere else, and assuming I got the name right) and how many shares are available. If everyone sells, the prices go down, if everyone buys they go up, yadda.

The currency market's even easier. The count of all the gralats verses the count of all the coins or yen or whatever is your exchange rate. If you have 10,000 gralats and every 1000 coins, a gralat's worth 1/10 of a coin...if the coin businesses give out more coins, the value plummets...

And of course the easiest way is to just make a random function of time, every hour stockmarket=stockmarket+random(1,-1); and pretend it's a bunch of trading NPCs that keep it in flux.

Thank you Tyhm for your lovely speech (seriously), but could you say that more slowly for us idiots? (me)

Solareon 07-22-2001 02:25 AM

simple script
 
not sure of how to do this with the npcserver but maybe, any parts that require a global variable I will denote with //global
NPC Code:

//NPC made by Solareon
//Basic Stock Market Script
if (created) {
//initialize market values from npcserver
//local
//this should be programmed to happen once and only once
basefishprice=1
basefishrate=15
basepearlprice=1
basepearlrate=1
basefarmprice=1
basefarmrate=1
}
//global
//this counts how many of each item is currently in the market
//npcserver(blah) denotes that a variable needs to be fetched
//from the npcserver
if (fetchnew) {
fishtradein=npcserver(fishtoday)
fishactive=npcserver(fishcurrent)
pearltradein=npcserver(pearltoday)
pearlactive=npcserver(pearlactive)
farmtradein=npcserver(farmtoday)
farmactive=npcserver(farmcurrent)
}
//local
if (startmarket) {
//get a random number (I don't feel up to looking in commands.rtf
//for the exact thing)
//random number makes the market impossible to manipulate
random=random(1-10)
calculate=basefishprice*(fishactive/basefishrate)
fishprice=fishtradein*random+calculate
}
//the example of the market starting is only for fish but the others
//are pretty much the same
//also change calculate to reflect the different markets and their
//rates. if you intend on usign the same method
if (playerchats(buy fish)) {
playerfishstock+=10
players[0].rupees=players[0].rupees-(fishprice*10)
//global
fishstockbuy+=10
}
//the above allows the player to buy the fish stock in increments
//of ten, if a person wanted to make this so he can buy varing
//numbers of stock (I don't like that tokenize and removing string
//thing) that would be great
if (playerchats(sell fish)) {
playerfishstock-=10
players[0].rupees=players[0].rupees+(fishprice*10)
//global
fishstockbuy-=10
}
//the following still needs to be impelmented, I would do it but I
//don't have the time. a way for the stock bought(sp) to affect
//the market price, rather than havign to fetch new variables
//each time. also the stock price to affect the prices of the goods
//traded or sold. Also the market scripting for pearls and farming,
//mining and bird catching may be added but I don't know much
//about either or on how to do them. also a way to change the
//price of the particular stock by the amount of things in the
//market or the stock bought
//how the script works
//created, it starts all the variables up.
//fetchnew (set the flag and it fires or make it a function) gets the
//values to calculate the market prices
//startmarket (set as flag or make a function) starts up the
//market and sets the prices for stock
//everything else is self explanitory


if anyone can use the above example coding to make a workign stock market that would be awesome, the above was possible with my limited scripting abilities. rmemeber we still need images too and a levle for the stock trading.
ENJOY!

Butz 07-22-2001 10:31 AM

I say again...do we really want Graal to be like the real world?
At least if you don't have any money in Graal...you don't die and starve....

Solareon 07-22-2001 12:21 PM

well I was bored
 
I went and I wrote the whole script.
I still have to fix the minor bug of the computers not showing a particular thing above their head but I'll just reaplace that with a sign thing and end all that. I'll need to fine tune the script to not allow peopel to make huge loads of money and to function with the npcserver. Possibly even making a npcw that let's you call your consultant and buy stocks remotely. Well I swear I'll prolly do it, but first I need someway to test it with an npcserver, perhaps a talk with stefan could help me out :)

Falcor 07-23-2001 07:33 AM

I made a working stock market... Just it doenst have the option to buy and sell stocks yet. ITs a bucnh of random numbers for the3 compeating industries. But I dont feel like posting my work on a Msbboard. lol

Falcor 07-23-2001 07:38 AM

1 Attachment(s)
Like here Ill tease you. lol (BTW I did this stuff befor the l33t new commands.. Back in.. 2.01, lol

BTW N-pulse goons who stole my paper gif... TAKE IF OFF OR I WILL INJECT YOU WITH HERPIES!

Merlin 07-23-2001 08:09 AM

Future Val had a stock market

Falcor 07-23-2001 08:27 AM

Valikorlia was my favorite server :(

SSmutz2 07-23-2001 11:24 PM

(Garus)

Ok, this idea is about as stupid as your flash movie character, come back in a few weeks :p


All times are GMT +2. The time now is 01:11 PM.

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