Help - Search - Members - Calendar
Full Version: Shop Selling Interest/Shop Discount
RPG RPG Revolution Forums > Scripting > Script Submissions > RGSS2-Submissions
SojaBird
Shop Selling Interest/Shop Discount

Version v2.0
Author SojaBird
Release Date
v1.0 > 11-07-'09
v2.0 (+Shop Discount) > 01-05-'09


Introduction
With this script, you can set the interest of shopkeepers for sertain items wich are marked with their interest-text in the notefield.
With this script you can also set a discount for a shop.


Features
- Set wich shop can buy what items using simple tags. (v1.0)
- Set a sell rate (discount) for each shop if you like with a simple line (v2.0)


To come features
- Only on request.


Script
Click to view attachment


Customization
All the customazation is explained in the script self.
It's easy to use.
Read the comments to know how to customise the script.


Compatibility
VX only.


Screenshot

This weapon-interested shop only buys weapons.


DEMO v2.0



Installation
Put the script above main.
Read how to set the shop sell interest in the script.
Credit me pls.


FAQ
[Show/Hide] Q: How to set the sell interest for a shop?
A:
The use is pretty simple. When you make a shop-event, and you want to set the interest of that sales(wo)man, you'll only have to add a comment with it's interest-tag. Now he/she will only buy goods that wich have this tag in their notefield. (Any tag will do, as long as they stay the same.)
~!Notice that you can set multiple interest-tags in the comment!~

[Show/Hide] Q: How to set a discount for a shop?
A:
The use is pretty simple. When you make a shop-event, and you want to set the discount of that sales(wo)man, you'll only have to add a comment with "discount" and the sell-rate. Now he/she will sell and buy goods with the new sell-rate. ~!Notice that the sell-rate is 100%-based!~


Terms and Conditions
Credit me with site, and the script is free for use in NONCOMERCIAL projects.
If anyone want some changes, please pm me or post it here, I'll track the topic.
charbelramy
very nice! thanks thumbsup.gif
Max
Thanks!!!
So much i really needed this script very useful.
thanks
Znikomek
Nice Job!
but how can I set tag in note when I use other scripts with use note too?
SojaBird
Uhm...well I think that's something I've to add in I guess.
I could make it so that you need to put it inside <> or something...perhaps that's better...

I see what I can do.


Greatzz,
SojaBird.
Trek
What exactly do I add into the note field for the items/weapons/armors?
SojaBird
Perhaps you want to check the demo.
Anyway, what you do is the following...
- Add a tag in the item note (no matter what it is, just put something that's uniqe or something, I don't (and the script don't either) mind what or how it's done (so you can use 0125hjfjj1h59 as tag if you like (though it's hard 2 remember tongue.gif )).
- Then, you're going to create a event, wich has a comment with the tag in it (so for example 0125hjfjj1h59 as shown above) and the shop wich will have that tag's interest. What happens is that the shop will only buy items wich will have the same tag in the comment on that event's pages as in it's notefields.

Hope that makes sence.
Though I realy can advise you to take a look at the demo, it'll make everything what I said above clear and perhaps more.


Greatzz,
SojaBird.
SojaBird
Anyone interested in addable discount?


Greatzz,
SojaBird.
Xeyla
QUOTE (pim321 @ Apr 28 2009, 05:59 PM) *
Anyone interested in addable discount?


I am! that would be a nice addon. Thank you for such a nice script smile.gif
SojaBird
Well then I'll be making that for you smile.gif
Shouldn't take that long biggrin.gif


Greatzz,
SojaBird.
charbelramy
I am biggrin.gif
thank you very much
error_on_page
This sounds very awesome. Will you translate it XP? I would definitely use it in my game if you did.
SojaBird
Nope I won't be transfering it to xp, I just can't get along with that tongue.gif
Sorry for that.


Greatzz,
SojaBird.
SojaBird
Sorry for dubble posting but I've updated the script and the demo.
Hope you'll enjoy.


Greatzz,
SojaBird.
Pharoah
would it be possible to set a shop to desire a specific item at higher than normal price or want to sell a specific item at a discount?

These shops also need to be able to self restock on specific items as well as have a stock as well, is this at all possible with this script?
SojaBird
Heya,

I did though about the first thing yes, it's a good idear smile.gif
Perhaps I'll add that you can set that in the item note (that it's not affected by the discount).

The second thing, that's not what this script does.
There is a script however that does do that I believe, not sure what it's called.


Greatzz,
SojaBird.
Xeyla
Thanks for this great script biggrin.gif (and the update).
SojaBird
You're welcome.
I hope to please everyone around here smile.gif


Greatzz,
SojaBird.
fruroar
hey sojabird
the download demo is broken(winzip says its unknown)
unsure.gif
SojaBird
That's odd.
It's working fine here.

Try again perhaps...?
If that doesn't work, what does the error say?


Greatzz,
SojaBird.
fruroar
QUOTE (pim321 @ Jul 12 2009, 06:53 PM) *
That's odd.
It's working fine here.

Try again perhaps...?
If that doesn't work, what does the error say?


Greatzz,
SojaBird.

here is the error report copied from winrar when i run it without saving
CODE
!   C:\Documents and Settings\Terry\Local Settings\Temporary Internet Files\Content.IE5\823ZGHUS\Shop_Sell%20Interest_and_Discount_Demo[1].rar: CRC failed in Shop Sell Interest-Shop Discount.exe. The file is corrupt
!   C:\Documents and Settings\Terry\Local Settings\Temporary Internet Files\Content.IE5\823ZGHUS\Shop_Sell%20Interest_and_Discount_Demo[1].rar: Unexpected end of archive
!   Cannot execute "C:\DOCUME~1\Terry\LOCALS~1\Temp\Rar$EX01.468\Shop Sell Interest-Shop Discount.exe"

and here is when i did save and run
CODE
!   C:\Documents and Settings\Terry\My Documents\Shop_Sell Interest_and_Discount_Demo.rar: CRC failed in Shop Sell Interest-Shop Discount.exe. The file is corrupt
!   C:\Documents and Settings\Terry\My Documents\Shop_Sell Interest_and_Discount_Demo.rar: Unexpected end of archive
!   Cannot execute "C:\DOCUME~1\Terry\LOCALS~1\Temp\Rar$EX00.281\Shop Sell Interest-Shop Discount.exe"
eh?
SojaBird
Strages...

Well what you have to do, is run the file, than extraxt all the files inside it to your harddrive somewhere.
Then you should be able to do it.
If not, PM me, than I'll sent you the file my self.


Greatzz,
SojaBird.
Jacklo
The only problem I see is that items sell for full price, instead of half.
Edit 1:What part of the script would I change that at?
Edit 2:NVM I used my noob skills and found it.
SojaBird
So the problem is solved?
Or do you still have problems?

Greatzz,
SojaBird.
doogle423
This isn't working I've looked at the demo and I've done everything demo say and it still isnt working...

<Weapons>

Problem if i have other thing on it like <LearnSkill 2> It wont work..

Ur script is bad..



please do not flame others, and do not triple post, use the edit button. warn level raised.
~night5h4d3
SojaBird
Doogle,

Pls read the rules of posting in topics first.
I see you only have 3 post wich are all located above, posted after eachother with a timespan less then a hour!!
This is real bad necro posting.

Also, I don't mind if you get problems with my script.
Don't complain about it, just post your errors and I see if I can fix it but in your case I have to say:
YOU DON'T HAVE TO USE MY SCRIPTS if you think is "bad".
Don't complain or I'll flame.
Just don't use scripts if you think it's bad.
Why do you actualy take effort posting if you think it stinks? Realy, awnser me that please!


Greatzz and don't enjoy my scripts(!),
SojaBird.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.