Aller au contenu

Photo

I could use some help solving a shop problem.


  • Veuillez vous connecter pour répondre
7 réponses à ce sujet

#1
omen_shepperd

omen_shepperd
  • Members
  • 194 messages
SO while playtesting my mod I noticed anytime I sold items
to merchants the items are removed from the shop in about 15-30 seconds after I
sold them to the shop. So I tried to build a pawn shop in the same area. Saved it
all and went in and tested it. Items were still being removed from the pawn
shop. Now I made sure to not connect it to anything related to the area, so I went
to step two and built a separate area for the pawn shop and moved the shop and
merchant into the new area. Items were still being removed from the shop.

Now my question is, I went into the mod properties and
started going through all the mod setting scripts. I can’t seem to figure out
where this scripting may be located. I tried looking in on acquire item, on mod
load, on client enter, on un acquire item, on heartbeat. From what I could tell
it was not located in these places.

As it stands I am working on the Legends of chance mod found
on the vault. I would gladly send a copy of the mod to a scripter to see if
they can find it, or I could repost scripts, whichever is easiest. I just need
my shops to no longer remove items from their inventories.

Or if you think you can walk me through a fix let me know.

Thank you

Omen Shepperd/ DM Adam Warlock

Admin Beyond the Mists.

Modifié par omen_shepperd, 25 juin 2013 - 08:37 .


#2
henesua

henesua
  • Members
  • 3 883 messages
Have you looked at the scripts associated with the store itself? There are scripts for store open and store close.

FYI-
I don't recommend cutting and pasting from microsoft word to the forum. There is a lot of noise in your post above.

#3
omen_shepperd

omen_shepperd
  • Members
  • 194 messages
Yes, the only thing in the shop scripts is the opening of the shops. It happened in two completely separate areas of the mod so I am thinking it is mod wide.

And sorry for all the extra noise, I normally edit it out right after posting, my six year old has been on extra hyper today and distracted me for a few minutes.

#4
Fester Pot

Fester Pot
  • Members
  • 1 395 messages
Could be module wide, a sort of shop clean-up script if it's on the backend of a PW starter kit of some kind. Are the TAG of your shops similar? If so, you could do a script search for the TAG.

Sounds like a clean-up script that could also be on the HB of a placeable as well, rather than a script in the module properties portion of the module.

FP!

#5
henesua

henesua
  • Members
  • 3 883 messages
Something doesn't smell right here. Look closely at the store settings.

Also you can look at the onacquire scripts. I think those can influence the store.

FYI - some advice on placing stores, it is most efficient to place the store waypoint in an area that players never enter. When you mentioned the stores were in different areas, I squinted. Its better practice to place them in the same area and outside of active play.

#6
omen_shepperd

omen_shepperd
  • Members
  • 194 messages
Thank you Fester Pot I will start looking around the mod for those suggestions.

#7
Lightfoot8

Lightfoot8
  • Members
  • 2 535 messages
I think I would do a search of the scripts for the constant OBJECT_TYPE_STORE

#8
kalbaern

kalbaern
  • Members
  • 824 messages
Odds are its found in your module's OnUnAcquired Event .. look there and remove or comment out the line that looks like this most likely; "if (GetObjectType(GetItemPossessor(oItem)) == OBJECT_TYPE_STORE) DestroyObject(oItem, 0.1f);".