Jump to content
  • 0
AmaraTheSilent

How do you script for multipul items in a NST_CUSTOM shop

Question

It may be a rookie question but I have looked everywhere and the only examples i can find only show the script code for a single item so if anyone could give me a quick example of how I'm supposed to script for multipul items in the shop that would be appreciated. Like do I write it all in a single line or do i new line tab then write out the next item




 

/* custom npc trader */ prontera,153,152,1    trader    TestCustom2    4_F_EDEN_OFFICER,{     OnInit:     tradertype(NST_CUSTOM);     sellitem Red_Potion,2;     end;     OnCountFunds:     setcurrency(countitem(Red_Potion),countitem(Orange_Potion));     end;
 
OnPayFunds       if( countitem(Orange_Potion) < @points || countitem(Red_Potion) < @[email protected])         end;     delitem Orange_Potion,@points;     delitem Red_Potion,@[email protected];     purchaseok();     end;

}

 

 

Is the example post i'm working on, for referance

I am also curious would this make a shop window that shows a picture of the item that you can right click to open the item window to read?

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

um I think I may have explained wrong, I understand it would go

sellitem orange_potion,1;

to sell them in increments of 1 per X price, what i'm looking for is to on top of that make limited quantities

Edited by AmaraTheSilent

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.