You can now offer your support and also make money by selling 3 Skulls RPG. You receive 30% commision per sale. If you do not want to let this opportunity pass then act now and register for free.
You will get your own affiliate Control Panel from where you can generate the links to put on your webpages and monitor your generated sales.
Here you will learn how to add Shops and Shop Services to NPC?s and Locations.
Go to the Shops folder and create a new shop. Name this shop whatever you want (name it by double clicking on the name in the folder's view), but take note of the shop's ID. Ex: 700100. At the bottom in the type of items and weapons to buy, check all of the boxes. This will allow all items to be bought and sold in this shop. Now click on the Add button and add one of each item into the shop contents box. You can add as many items as you want into a shop.
Now go to the NPC's folder and add an NPC and name it whatever you like. This will be your Shopkeeper. Click on the script tab and using the drop down menu at the bottom select JScript, this will let the engine know that the script is being run in the JScript format. Now, cut and paste the following script into the script of the NPC:
function op1(){
BeginShop("Test Shop",10,12,700100);
OpenShop();
}
function OnDialog(){
Echo("Shop Keeper: Hello, can I interest you in some armor, weapons or healing potions today?");
ClearOptions();
AddOption(0,"Yes","op1();","");
AddOption(0,"No Thanks","","");
ProcessOptions();
}
Throndiron June 22 2007 23:04:24
AN overall good article about shops and it should help anyone with starting up their game. Shops are another must have for any LT game.