mirror of
https://github.com/SWG-Source/swg-main.wiki.git
synced 2026-01-16 20:04:18 -05:00
Updated How To: Creating a Vendor (markdown)
This commit is contained in:
@@ -31,10 +31,10 @@ and Client Data repositories.
|
||||
The easiest way to create the NPC is to begin with a related NPC, copy the
|
||||
necessary files, and modify to suit our needs. We are going to use the TCG
|
||||
vendor for a template; you will find the template in
|
||||
“dsrc\\sku.0\\sys.shared\\compiled\\game\\object\\mobile”. The filename is
|
||||
“shared_vendor_tcg_1.tpf”
|
||||
“`dsrc\\sku.0\\sys.shared\\compiled\\game\\object\\mobile`”. The filename is
|
||||
“`shared_vendor_tcg_1.tpf`”
|
||||
|
||||
Copy this file and rename it to “shared_vendor_tutorial.tpf”. This is a text
|
||||
Copy this file and rename it to “`shared_vendor_tutorial.tpf`”. This is a text
|
||||
file, so we can edit it with a text editor; do so now, and take note of the
|
||||
screenshot below:
|
||||
|
||||
@@ -57,7 +57,7 @@ vendor.
|
||||
We are not going to edit this file; it is best that if you put your extensions
|
||||
in their own file to avoid future merge errors. We use SIE to create a new
|
||||
string table. We create the following entry, and save the file as
|
||||
“vendor_tutorial.stf”
|
||||
“`vendor_tutorial.stf`”
|
||||
|
||||

|
||||
|
||||
@@ -77,59 +77,58 @@ events.java, buildout, event controller, template
|
||||
|
||||
# Assets
|
||||
|
||||
Shared_vendor_tok_x.tpf
|
||||
`shared_vendor_tok_x.tpf`
|
||||
|
||||
Shared_vendor_tok_m.tpf
|
||||
`shared_vendor_tok_m.tpf`
|
||||
|
||||
Shared_vendor_tok_c.tpf
|
||||
`shared_vendor_tok_c.tpf`
|
||||
|
||||
Game/object/mobile
|
||||
`game/object/mobile`
|
||||
|
||||
Template (server mobile):
|
||||
|
||||
Vendor_tcg_1.tpf to vendor_tok_x.tpf
|
||||
`vendor_tcg_1.tpf to vendor_tok_x.tpf`
|
||||
|
||||
Vendor_tcg_1.tpf to vendor_tok_m.tpf
|
||||
`vendor_tcg_1.tpf to vendor_tok_m.tpf`
|
||||
|
||||
Vendor_tcg_1.tpf to vendor_tok_c.tpf
|
||||
`vendor_tcg_1.tpf to vendor_tok_c.tpf`
|
||||
|
||||
Server datatables/mob/creatures.tab
|
||||
Server:
|
||||
`datatables/mob/creatures.tab`
|
||||
|
||||
Creatures.tab; set the token type
|
||||
`creatures.tab` set the token type
|
||||
|
||||
Datatables/item/vendor
|
||||
`datatables/item/vendor`
|
||||
|
||||
token_x_vendor.tab
|
||||
`token_x_vendor.tab`
|
||||
|
||||
token_m_vendor.tab
|
||||
`token_m_vendor.tab`
|
||||
|
||||
token_c_vendor.tab
|
||||
`token_c_vendor.tab`
|
||||
|
||||
Conversations:
|
||||
|
||||
Script/conversation
|
||||
`script/conversation`
|
||||
|
||||
token_x_vendor.java
|
||||
`token_x_vendor.java`
|
||||
|
||||
token_m_vendor.java
|
||||
`token_m_vendor.java`
|
||||
|
||||
token_c_vendor.java
|
||||
`token_c_vendor.java`
|
||||
|
||||
string file
|
||||
String file
|
||||
|
||||
conversation/token_x_vendor
|
||||
`conversation/token_x_vendor`
|
||||
|
||||
conversation/token_m_vendor
|
||||
`conversation/token_m_vendor`
|
||||
|
||||
conversation/token_c_vendor
|
||||
`conversation/token_c_vendor`
|
||||
|
||||
Build out file
|
||||
|
||||
Do not forget the shared file
|
||||
|
||||
buildout F:\\SWG\\SWG Source
|
||||
3.1\\dsrc-3.1\\dsrc-3.1\\sku.0\\sys.server\\compiled\\game\\datatables\\buildout\\tatooine\\tatooine_6_2.tab
|
||||
(2 hits)
|
||||
`dsrc\\sku.0\\sys.server\\compiled\\game\\datatables\\buildout\\tatooine\\tatooine_6_2.tab`
|
||||
|
||||
Copy the string file to the server
|
||||
|
||||
@@ -139,24 +138,22 @@ Copy the crc file to the client
|
||||
|
||||
Object vars:
|
||||
|
||||
string:item.vendor.vendor_table=token_x_vendor,int:ai.noClap=1
|
||||
`string:item.vendor.vendor_table=token_x_vendor,int:ai.noClap=1`
|
||||
|
||||
in
|
||||
|
||||
F:\\SWG\\SWG Source
|
||||
3.1\\dsrc-3.1\\dsrc-3.1\\sku.0\\sys.server\\compiled\\game\\datatables\\item\\vendor
|
||||
`dsrc\\sku.0\\sys.server\\compiled\\game\\datatables\\item\\vendor`
|
||||
|
||||
scripts:
|
||||
|
||||
npc.vendor.vendor,conversation.token_x_vendor
|
||||
`npc.vendor.vendor,conversation.token_x_vendor`
|
||||
|
||||
npc.vendor.vendor,conversation.tcg_vendor
|
||||
`npc.vendor.vendor,conversation.tcg_vendor`
|
||||
|
||||
the script is tcg_vendor.java located in F:\\SWG\\SWG Source
|
||||
3.1\\dsrc-3.1\\dsrc-3.1\\sku.0\\sys.server\\compiled\\game\\script\\conversation\\tcg_vendor.java
|
||||
(4 hits)
|
||||
the script is tcg_vendor.java located in
|
||||
`dsrc\\sku.0\\sys.server\\compiled\\game\\script\\conversation\\tcg_vendor.java`
|
||||
|
||||
Set VENDOR_TOKEN_TYPE ("item.token.type") otherwise it uses heroic tokens
|
||||
Set VENDOR_TOKEN_TYPE ("`item.token.type`") otherwise it uses heroic tokens
|
||||
|
||||
# The Box
|
||||
|
||||
@@ -164,13 +161,9 @@ Open, Examine, Destroy
|
||||
|
||||
# Hiding Vendors
|
||||
|
||||
F:\\SWG\\SWG Source
|
||||
3.0\\dsrc-master\\dsrc-master\\sku.0\\sys.server\\compiled\\game\\script\\event\\holiday_controller.java
|
||||
(11 hits)
|
||||
`dsrc\\sku.0\\sys.server\\compiled\\game\\script\\event\\holiday_controller.java`
|
||||
|
||||
F:\\SWG\\SWG Source
|
||||
3.0\\dsrc-master\\dsrc-master\\sku.0\\sys.server\\compiled\\game\\script\\event\\planet_event_handler.java
|
||||
(2 hits)
|
||||
`dsrc\\sku.0\\sys.server\\compiled\\game\\script\\event\\planet_event_handler.java`
|
||||
|
||||
Shared Area file
|
||||
|
||||
@@ -182,7 +175,7 @@ Bestine Election
|
||||
|
||||
# Check This
|
||||
|
||||
item_reimbursement_list
|
||||
`item_reimbursement_list`
|
||||
|
||||

|
||||
|
||||
@@ -190,13 +183,13 @@ item_reimbursement_list
|
||||
|
||||
@Contributors Upon request I've pushed a prototype of my buildout utility
|
||||
script. It is a work in progress, but serves its simple purpose at this time. To
|
||||
use, attach developer.buildout_utility to your player, spawn an object where you
|
||||
use, attach `developer.buildout_utility` to your player, spawn an object where you
|
||||
want it all pretty with whatever rotation and whatever, and then target it and
|
||||
say in spatial getBuildoutInfo and you'll get an SUI window with everything that
|
||||
you need to put in a buildout data table for an object to spawn correctly. Feel
|
||||
free to report any bugs to me. This is currently for exteriors only, but as
|
||||
Elour will tell you, use a dungeon_spawner for an interior anyways.
|
||||
|
||||
object/tangible/npe/npe_generic_uniform_box.iff
|
||||
`object/tangible/npe/npe_generic_uniform_box.iff`
|
||||
|
||||
item_heron_gift_axkva_01_05
|
||||
`item_heron_gift_axkva_01_05`
|
||||
|
||||
Reference in New Issue
Block a user