Jump to content
  • 0
bWolfie

Can npcshopattach() be used for NST_CUSTOM shop?

Question

I'm trying to use npcshopattach() on a shop in another script. Can this be done? Always returns false.

if (npcshopattach("My_Shop") == false)
        mes("FALSE");
else
        mes("TRUE");
close;

And in another script:

-    trader    My_Shop    FAKE_NPC,{
OnInit:
    tradertype(NST_CUSTOM);
    sellitem(Red_Potion, 1);
    end;

OnCountFunds:
    setcurrency(countitem(Orange_Potion));
    end;
	OnPayFunds:
    if (countitem(Orange_Potion) < @price)
        end;
	    delitem(Orange_Potion, @price);
    purchaseok();
    end;
}

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Because it's trader script and not shop.

You cannot use npcshopattach with trader scripts.

Share this post


Link to post
Share on other sites
  • 0
17 minutes ago, Dastgir said:

Because it's trader script and not shop.

You cannot use npcshopattach with trader scripts.

o i c
thanks for quick response. shame

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
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.