Changing mana, selling things to a shopkeeper

Posted by Jokerjfu on Sun 01 Jul 2001 08:06 PM — 11 posts, 34,512 views.

#0
1. Is there a way to permanently change my mana so that I don't have to make an object that does it. My mana didn't go up cause i'm a warrior, but since I did the mset all learn 100 command I have all these spells, but some like animated dead need 350 mana

2. How do I make it so that I can sell things back to a Mob. I have a bar owner, and I checked DRINKCON in the pulldown bar under buy types and tried to sell him a 'golden bottle of beer' and I made the cost 10,000 and made sure to give the tender atleast 10,000 gold

3.I notice there are herbs in the game, and there is also a pipe, do any of the two go together cause I noticed I could only eat it, and I don't know what the boxes are for herbs under stats it says:

?:
Charge:
Herb#:

I know the number just means different types, which I have yet to find out, sorry for it being so long, any help is appreciated
#1
looks like this just gets longer, I forgot to ask.

I can make it so my pub owner goes to sleep when the shop closes, I can make him wake up when it opens, but I can't make him say something and go back to sleep if someone wakes him up
if i type
mset jones flags prototype
mpedit jones add act p wakes you.
>say get out we're closed
>sleep
>/s
that will work, but when I reboot the server, the sequence no longer applies, it's like I have to do that everytime if I want to, I tried making an ACT prog in the area editor and made it
p wakes you.
say get out, we're closed
sleep but nothings working thanks
Australia Forum Administrator #2
Quote:

1. Is there a way to permanently change my mana so that I don't have to make an object that does it.


mset self mana 5000
restore self

Quote:

2. How do I make it so that I can sell things back to a Mob.


1. He has to buy the type of thing you are selling, eg.

shopset 10343 buy0 food

2. He has to be able to afford it

mset 10343 gold 10000

3. The thing he is buying should not be in his inventory (he already has one of them)



Quote:

I tried making an ACT prog in the area editor and made it ... but nothings working thanks


You should be able to get the ACT program to work, there are plenty of them in New Darkhaven. Make sure you are editing the area file that the server is using, and you will need to restart the server afterwards to read in the new area file.

#3
ok yeah that thing didn't work I went into the area editor and selected for him to buy type treasure then went into the mud and typed

shopset 21000 buy0 treasure
a made a note and dubbed it treasure
I made sure he had more than enough money
and it still said uninterested, so then I tried
shopset 21000 buy0 food
and made a golden mushroom, however there are little boxes that say

FOOD VALUE:
CONDITION:
?:

I have no idea what these are, especially that damn question mark.

no matter what he still 'look uninterested'

thaaaanks
Australia Forum Administrator #4
I don't know what you mean by "dubbed it treasure" but this is what just worked for me (logged in as Lordrom) - I had a bag in my inventory, initially type "container", cost 20:


goto zurg
shopset 10343 buy1 treasure
oset bag type treasure
value bag

Zurg tells you 'I'll give you 18 gold coins for a bag.'

sell bag

Zurg tells you, 'a bag is depreciating in value too quickly...'

oset bag timer 0
sell bag

You sell a bag for 18 gold pieces.

Amended on Mon 02 Jul 2001 09:55 PM by Nick Gammon
#5
ok then what exactly does that number next to buy mean

shopset 10341 buy1<--- that number

and by dubbed I just meant selected the catagory treasure from the pulldown, I got him to say 'that mushroom is depreciating too quickly' but never actually got him to buy it
#6
no matter what I can't get this guy to buy it I followed your instructions EXACTLY to the 'T' and he always 'looks uninterested'
Australia Forum Administrator #7
If I type "shopstat" I see this:


shopstat 10343

Keeper: 10343 Zurg
buy0 [food] buy1 [treasure] buy2 [none] buy3 [none] buy4 [none]
Profit: buy 120% sell 90%
Hours: open 0 close 23


The 5 buy types (buy0 to buy4) are the same as the drop-down combo boxes in the area editor - the types of things he will buy.

I had to set the timer to zero to stop the message about "depreciating too quickly".

Did you restart the server after changing the area? Area changes are only read in when it starts up.
#8
<5000hp 5000m 740mv> shopstat 21000
Keeper: 21000 Jones
buy0 [treasure] buy1 [food] buy2 [food] buy3 [treasure] buy4 [treasure]
Profit: buy 120% sell 90%
Hours: open 6 close 22

<5000hp 5000m 740mv> oset mushroom type treasure
Build: Nubius: oset mushroom type treasure

<5000hp 5000m 740mv> oset mushroom timer 0
Build: Nubius: oset mushroom timer 0

<5000hp 5000m 740mv> sell mushroom
Jones looks uninterested in a golden mushroom.


that's what it looks like as you see his vnum is 21000it says he can buy treasure and food, and I made the thing treasure and he won't take it
Australia Forum Administrator #9
Do an ostat on the mushroom, and an mstat on the shopkeeper, so we can see their details.
#10
Name: a golden mushroom
Vnum: 22002 Type: treasure Count: 2 Gcount: 1
Serial#: 2 TopIdxSerial#: 178 TopSerial#: 195
Short description: a golden mushroom
Long description : A golden mushroom sits here
Action description: You weren't supposed to eat that. It was to be delivered to Jones at the
Thayoick pub for a reward!

Wear flags : take
Extra flags:
Magic flags: none
Number: 1/1 Weight: 1/1 Layers: 0 Wear_loc: -1
Cost: 0 Rent: 0 Timer: 0 Level: 1
In room: 0 In object: (none) Carried by: Nubius
Index Values : 0 0 0 0 0 0.
Object Values: 0 0 0 0 0 0.
Primary description keywords: 'mushroom'.

I figured it out, for whatever the reason the cost was set to 0 even though it wasn't set like that in the editor. So after I typed:
oset mushroom cost 1000
he bought it for 900