Can npcshopattach() be used for NST_CUSTOM shop?

bWolfie

I'm the man
Messages
850
Points
0
Location
Alberta, Midgard
Github
bWolfie
Emulator
I'm trying to use npcshopattach() on a shop in another script. Can this be done? Always returns false.

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

And in another script:

Code:
-    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;
}
 
Because it's trader script and not shop.

You cannot use npcshopattach with trader scripts.

 
Back
Top