Author Topic: open store options  (Read 330 times)

Legacy_doomie22

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
open store options
« on: June 13, 2011, 04:06:24 pm »


               Hi all,

I am trying to find if there is a way of when a PC is opening a store to get it to open at a certain tab.

e.g. when opening a place that it opens to the Mics tab.

Can anyone help on this please?

Thanks,

Doomie
               
               

               
            

Legacy_DM_Vecna

  • Hero Member
  • *****
  • Posts: 501
  • Karma: +0/-0
open store options
« Reply #1 on: June 13, 2011, 04:44:37 pm »


               Only way I can think of is to only have no items on any of the tabs to the left of that one. that is to say if you want misc. then you can have no weapons/Armor/potions etc.

You can have five different shops as well and open them based on variables and scripts. If you can get specific someone might be able to help you more.
               
               

               
            

Legacy_Xardex

  • Sr. Member
  • ****
  • Posts: 414
  • Karma: +0/-0
open store options
« Reply #2 on: June 13, 2011, 08:56:49 pm »


               You could make so when you are about to open the shop, remove all but some "header" item that would be just a specifically tagged item like a longsword, shield, scroll etc. You would remove every item except the header from the tab you want to open, then actually open the store, and then add all the items in again.

Impractical and pointless though, what do you need this for anyway?
               
               

               


                     Modifié par Xardex, 13 juin 2011 - 07:57 .
                     
                  


            

Legacy_doomie22

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
open store options
« Reply #3 on: June 13, 2011, 08:59:15 pm »


               I am looking for a way that if I have a load of items just in misc on a shop, that when a player asks to see their wares it will open up and open to that tab without just showing the weapons area and they have to click the tab to see it
               
               

               
            

Legacy_Greyfort

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
open store options
« Reply #4 on: June 13, 2011, 10:26:41 pm »


               Then with out a lot of scripting... make a conversation that seporates the stores by there tab...

Would you like to see my wares?

yes...Buy...Armor
yes...Buy...Weapons
yes...Buy...etc
yes...Buy...misc
yes...Sell Items

then make stores with just items in tab you want.  You could also add a Sell items and a store that only buys, then on close it sends items to store DB of type. so now when a player talks then chooses on open of the Buy stores it loads DB and wala you have items to buy.

this would be two scripts for each store a open to load db and a close to save db.  and then on the sell store there would be a on close to transfer items to selected store db. this sell script would be the largest most intense one for you especialy if your storeing db objects
               
               

               
            

Legacy_doomie22

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
open store options
« Reply #5 on: June 13, 2011, 11:52:58 pm »


               

Greyfort wrote...

Then with out a lot of scripting... make a conversation that seporates the stores by there tab...

Would you like to see my wares?

yes...Buy...Armor
yes...Buy...Weapons
yes...Buy...etc
yes...Buy...misc
yes...Sell Items

then make stores with just items in tab you want.  You could also add a Sell items and a store that only buys, then on close it sends items to store DB of type. so now when a player talks then chooses on open of the Buy stores it loads DB and wala you have items to buy.

this would be two scripts for each store a open to load db and a close to save db.  and then on the sell store there would be a on close to transfer items to selected store db. this sell script would be the largest most intense one for you especialy if your storeing db objects


This is what I have, they only have 2 options atm but no matter what I do, when they open they open in the clothing and armour tab and not in the misc in which all the items are in.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
open store options
« Reply #6 on: June 14, 2011, 01:14:28 am »


               You will need to make sure that you first have no items in the clothing tab.  

Two make sure you have something in the misc tab before the store is opened.   Not created into the tab while the store is being opened.
               
               

               
            

Legacy_doomie22

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
open store options
« Reply #7 on: June 14, 2011, 03:05:37 am »


               Thank you for that, I will have to go work on it as I tried to just do a delay on opening and moved the open script off the store into the opening script (as an ExecuteScript command) but it does seem to want to trigger the script at all when I do that.

Thanks