Aller au contenu

Photo

Problems with GetStoreMarkUp/Down


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

#1
Phaenan

Phaenan
  • Members
  • 315 messages
Hey in there


I've been asked to lend my voice to report here the issue someone has with GetStoreMarkUp() and GetStoreMarkDown() functions. Both seems to always return -1, even when SetStoreMarkThingy() is called with a different value on the line right before. I tried on my end, and it is apparently so. I had a look at the locals in var_merchant but nothing in there seems to be related.

So, basically, are we missing something obvious here ? :blush:

#2
Craig Graff

Craig Graff
  • Members
  • 608 messages
Could you share the script this is being called in?

Edit: Never mind. After testing, it's clear that GetStoreMarkUp and GetStoreMarkDown are returning the value that should only be returned by GetStoreMaxBuyPrice.
SetStoreMarkDown, SetStoreMarkUp, and SetStoreMaxBuyPrice all seem to work correctly (I haven't tested SetStoreMaxBuyPrice thoroughly). SetStoreMoney stops code execution and doesn't seem to do anything useful.

Modifié par Craig Graff, 08 février 2010 - 04:28 .


#3
Phaenan

Phaenan
  • Members
  • 315 messages
Sure thing.
Pasted his script here :
- http://pastie.org/814745

Mine was just a snippet grabbing Bhodan in a array with GetNearestObject() and throwing the Set/Get-StoreMarkThingy() at him. Didn't kept it exactly but it was something like that :
- http://pastie.org/814765

Modifié par Phaenan, 08 février 2010 - 04:32 .


#4
Phaenan

Phaenan
  • Members
  • 315 messages
Ah, you beat me to it.
So those two GetStoreMark* just don't return the right value. Well, as long as the Set* functions works it ain't so bad, I guess. 
Cheers for looking into it. ^_^