ID:176546
 
Ok, I've seen games like Hedgerow Hall, and other games where you can type in the quantity of something you wish to buy or sell, and it sells or purchases that many. Anyone care to shed some light upon this topic for me? Any help would be appreciated.
Goku72 wrote:
Ok, I've seen games like Hedgerow Hall, and other games where you can type in the quantity of something you wish to buy or sell, and it sells or purchases that many. Anyone care to shed some light upon this topic for me? Any help would be appreciated.

I'm confused. Not literally, but literally, I coded something 2 minutes ago I think or something that would probably suit your needs, its done with casino tokens though, pretty much what your sayin though.. I think..

mob
npc
banker
verb/Talk()
set src in oview(1)
switch(input("Welcome To the local Casino, what may i help you with?","1 Coin = 10 Gold") in list("Buy Coins","Exchange Coins","Nothing"))
if("Buy Coins")
var/tokencost = 10
var/Ammount = input("How much money would you like to give? {1 Token = 10 gold}")as num
if(usr.gold<tokencost*Ammount)
usr<<"<font size=1>You dont have that much money!"
return
if(Ammount<0)
usr<<"<font size=1>You cant give negative gold."
else
usr.gold-=tokencost*Ammount
usr.coins+=Ammount
usr<<"<font size=1>You Get <B>[Ammount]</b> Coins."
if("Exchange Coins")
var/exchangeing=10
var/Ammount = input("Exchange your tokens?")as num
if(usr.coins<Ammount)
usr<<"<font size=1>You dont have that many tokens!"
return
if(Ammount<0)
usr<<"<font size=1>You cant give negative tokens."
else
usr.gold += exchangeing*Ammount
usr.coins -= Ammount
usr<<"<font size=1>You Exchange <B>[Ammount]</b> Coins."


RaeKwon
In response to RaeKwon
I can semm to do that problem IM having is that how do you put !ITEMS! equal to the number you put in.
sincerly
Newbie123456789
In response to Newbie123456789
Please check the date of the thread before you post. This topic is SIX YEARS OLD!
In response to GhostAnime
Lol i was going to say is raekwon even alive anymore?
In response to GhostAnime
This... Newbie123456789... His thread necromancy powers are beyond our comprehension!