Re: Please help! 1.0.1 gshop
First thing's first - here's an example of how to set up your (a) new "custom" NPC in the NPCGEN editor:
Click here for bigger image
Step 1 - right click open area for context menu, select "ADD ROW"
Step 2 - set NPC ID in lower window to the new NPC you're making IE 29930 (in my SS example) {It will ofc show up as "NOT FOUND" since this is a fresh NPC you just made - Don't worry about this!}
Step 3 - Settings in lower box should reflect as shown in my SS, "amount" = "1", the rest "0", first box NOT checked, last 3 checked
Step 4 - Set coordinates to spawn (GREEN box)
Step 5 - Set facing direction - the direction the NPC will face (BLUE box)
Step 6 - The rest should match my SS example too (upper box) - "FREE 3D", "NPC", "0", TICKED, TICKED, TICKED, "0", "0", "0", "0"
Do not worry about the RED box (spread X Y Z) - that's so, for example, if you were setting up an area with multiple mobs and didn't want to have an individual entry for each one you could set the AMOUNT variable to how many you want (say 50 instead of 1), and the spread will denote how far away from each other they spawn...
That's all there is to adding your new and custom NPC to the 'world' (make sure if you are putting it in the main world you edit the NPCGEN.DATA in ../gamed/config/world/ -or- for example if you wanted to put it in "WRAITHGATE" you'd want to edit the NPCGEN.DATA in ../gamed/config/a14/)
Item Price:
Click here for bigger image
Simplest of all:
Step 1 - Locate item in ELEMENTS.DATA
Step 2 - Change price(s) (buy and sell, sell and buy)
Any items that do not have a price, sadly that means there's no entry for it in elements, such as packs. Packs are "task items" and ALL task items do NOT even have the price fields...
Other than that, the price the player buys it for MUST ALWAYS be MORE than the price the NPC will pay the player for it. Physically, not just logically. Logically it's a no brain-er because otherwise say you had an item a player could buy for 1 coin, and the NPC payed 1,000,000 to buy it from a player. But, not only does it defy logic (for that reason) it will physically cause the game to crash (gs wont run)... So make sure you always set the player buy price higher than the NPC buy price for every item in ELEMENTS.DATA. As you can see, charms in the above example, the NPC sells them for 10000000 coins, and a player could sell a charm to an NPC for 1000 coins (therefore if a player bought one at 10000000 coins then turned around and sold it back to the NPC right away, they'd be taking a MASSIVE loss). For the above example the two lines that control price happen to be 7 and 8, but I doubt that will be the same for every possible item list (there's multiple lists for "items")... For example the actual list for "items" (list 73/75/76 depending on which sELedit you use and which game version)... the fields that control price are lines 4 & 5. For pet eggs (which include ground mounts) lines 75 & 76. For flying mounts lines 5 & 6, and so on and so on... [if you look at task items list 72/74/75, you'll see that there are NO fields for price {such as "'anni' packs"}]
If you really really really wanted to sell packs (or other task items or any other items list that doesn't have price fields) - you could get creative and do it still, but you'll have to think outside the box!:
Click here for bigger image
Step 1 - Simply make a quest for it! [note: you have to clone a quest {right click} and start editing it to make it it's own]
Click here for bigger image
Step 2 - Have the things needed for the quests be coin ("errands") how ever much you want to charge
Step 3 - Have the Rewards be the pack(s) / item(s) you want to sell ("rewards")
Click here for bigger image
Step 4 - Set up some dialogue (make sure to establish the selling price here so that the player knows how much it costs!) to finish off the quest...
Make "QUESTION LINK" = "-2147483630" for NO
Make "QUESTION LINK" = "-2147483642" for YES
[alternatively "QUESTION LINK" = "{QUESTION[#]}" for making more dialogue - making dialogue link to other/more dialogue]
"TASK LINK" = "0" for NO
"TASK LINK" = "{QUEST#}" for YES / FINISH
There's more information available about TASKS.DATA editing (and all the fields in TASK editor) here:
http://forum.ragezone.com/f695/staskedit-08-06-2011-a-787715/#post6599555
Plus, all of this and much much more is all in my ADMINNOTES.TXT in my release.
Happy editing
: