sheldonshotty

Does anyone have the Merchant script?

Recommended Posts

Hey guys, i am working on something/Trying out modding but i dont have the merchant script because Lucas Fourms is down for me, The code is featured in this video at 27:30, If anyone has this code that i could copy, i would love you, thanks!

Video Link:

Share this post


Link to post
Share on other sites
void main() 
{
object oStore = GetObjectByTag("Tag Of Your Store");

if (!GetIsObjectValid(oStore))
 oStore = CreateObject(OBJECT_TYPE_STORE, "ResRef Of Your Store", GetLocation(OBJECT_SELF));

if (GetIsObjectValid(oStore))
 DelayCommand(0.5, OpenStore(oStore, GetPCSpeaker()));
}

Here ya go.

  • Like 1

Share this post


Link to post
Share on other sites
void main() 
{
object oStore = GetObjectByTag("Tag Of Your Store");

if (!GetIsObjectValid(oStore))
 oStore = CreateObject(OBJECT_TYPE_STORE, "ResRef Of Your Store", GetLocation(OBJECT_SELF));

if (GetIsObjectValid(oStore))
 DelayCommand(0.5, OpenStore(oStore, GetPCSpeaker()));
}

Here ya go.

 

Thank you so much!

Share this post


Link to post
Share on other sites

These lines solved a problem of my script! But, i got an another glitch or something with this script lines, when i close my store i can't click on objects, can't use anything even can't press escape to acess menu. why? is here anything for me to resolve this ?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.