Jump to content
imnotamexican1

Problem adding items and vehicles to traders, 1.0.3.1 vilayer

Recommended Posts

Hey all,

I have been having a constant problem with trying to add items to traders on my server.

I have tried adding weapons to hero and bandit traders, like m107, aswell as ammo, and then vehicles like jets and tanks. I have added items to traders before on old servers I hosted, so I am not a noob to doing this, but for some reason, When I add the data into the database, it all comes up in the SQL file, so I can't understand why it doesn't work in the server.

What I have done:

Enter in all the data into the MySQL database (I am using Navicat Lite) into the Trader_Data table, Trader_Items, and also created the Trader_TIDS for the vehicles and other items that don't fall into an existing category.

Made sure that all Trader TIDS match my Servers trader instances.

In game:

In game when I go to the traders the normal tabs/categories load in the left hand menu.

When I click on one of the default tabs with added in items (eg. Cinder blocks at stary), normal items load but none of the new ones.

When I click on a new tab (eg. Jet planes at hero trader) it says loading items for a minuscule of a second then disappears with no items loaded. Very similar to the issues I experience a few days ago with traders not working at all.

Share this post


Link to post
Share on other sites

Make sure your TID is correct, or it won't show in the vendor listing. It's a lot more accurate to open server_traders.sqf for the server to get the correct TID then to try and use the Trader_TID table.  It's very easy to grab the TID from another server instance in error.

If you're trying to use a new TID for a new menu, remember you have to add that TID menu call to the vendor in the server_traders.sqf file, or it will never show.

Share this post


Link to post
Share on other sites

use private hive tools that are found on these very forums, add items to traders through that, simples.

I use that software daily to add items to traders I also use Heidi sql for maintenance & other tasks, no issues.

Share this post


Link to post
Share on other sites

You probably aren't looking at the specifics. Thins like tid's are specific to the trader then the section of the trader then the type of weapon or something like that. For example TID: 485 is the stary trader -> weapons trader -> then the section which i think is assault rifles. Where as-

TID: 487 would be for Stary -> Weapons Trader -> Snipers .. btw not totally sure if that is stary or not

 

-First thing, find the class name of the thing you want to add into traders (we can use the "M107_DZ" for this example)

-Insert a new row into your "Trader_items" section.

-make the id the next number from the last item in your "Trader_items"

-Class name would be "M107_DZ"

-type would be 3 because it is a weapon

-group would be Rifle Sniper

-and afile would be trade_weapons

-click insert and you are done with the first part

 

-NEXT find your server_traders.sqf, open it and you will find a list of all the traders and their ID's

-click insert in your traders_data section in ur SQL

-for id again it would be the next to last number in ur ID's

-item is a little complicated but it works like this - ["YOURITEMCLASSNAME",YOUR ITEMS TYPE #]

               so for the M107 it would be - ["M107_DZ",3]

-buy and sell price works like this - [QUANTITY,"CURRENCY CLASS NAME",1]

               so lets say you wanted it to be worth 2 brief cases - [2,"ItemBriefcase100oz",1]

               and sell for 1 brief case - [1,"ItemBriefcase100oz",1]

-now the order number for everything I've seen so far is just "0"

-NOW go back to the server_traders.sqf and find the TID of which where you are adding you item

-and then afile again is trade_weapons

 

Well this is my best way i can explain it, sorry it might be alittle confusing because I am rushing for breakfast but if you have any more questions let me know. 

Share this post


Link to post
Share on other sites

how you add items to this...i added everything. Trader in balota (cdcmod added trader) is holding nothing but looks like rifle in his hand is invisible, and none of the items appear (i cant enter my database through the host server, so forget that option). There has to be another way

 

this is the mod

 

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
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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...

  • Similar Content

    • By Brian Soanes
      To unlock vehicles left in your traders over a server restart, open your epoch_server.pbo

      In epoch_server\compile\epoch_vehicle\EPOCH_load_vehicles.sqf
      Find
      if (_allowDamage) then { Just above that, add this
      A3E_SafeZonePosArray = [ [[18451.9,14278.1,0]], //Altis East trader [[13333.5,14494.3,0]], //Altis Central trader [[6192.46,16834,0]] //Altis West trader ]; { if (_vehicle distance (_x select 0) < 200) then { _vehicle lock false; diag_log format["Vehicle %1 left in trader unlocked @ %2", _class, mapGridPosition _vehicle]; }; } forEach A3E_SafeZonePosArray; Pack pbo and you're good to go
    • By Thug
      In the file server_spawnTraders.sqf
      private "_trader"; { _trader = createAgent [_x select 0,_x select 1,[],0,"CAN_COLLIDE"]; {_trader removeMagazine _x;} count magazines _trader; removeAllItems _trader; // removeAllWeapons _trader;//this is commented out so traders have weapons removeBackpack _trader; _trader switchMove ""; _trader setDir (_x select 2); _trader setVehicleInit "this disableAI 'ANIM'; this disableAI 'AUTOTARGET'; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0; this allowDamage false;"; _trader setUnitAbility 0.6; _trader disableAI "ANIM"; _trader disableAI "AUTOTARGET"; _trader disableAI "FSM"; _trader disableAI "MOVE"; _trader disableAI "TARGET"; _trader setBehaviour "CARELESS"; _trader forceSpeed 0; _trader allowDamage false; _trader enableSimulation false; } count _this; processInitCommands; What would I have to do to get the Traders to move like they did in v1.0.5.1
      I have tried but can not get it to work.
    • By Thug
      I have an overpoch Sauerland server. The vehicle traders are not spawning when you buy. The SOB takes your money and gives you a key, but no vehicle.  The arrow comes up for about 12 seconds.  After the restart, they are there, all on top of each other.
      NO, I do not have infistar installed.  It brakes the server. No admin tools at all.
      Here are my server and client RPTs. Can someone please take a look for me?
      Client
      Server
      All other traders work.
       
    • By blueman
      I made some changes to the traders inventory.
      So they they have 15 drinks, and 15 food.
      However, when I restart server, and check, the inventory was just like it was before restart.
      I have a feeling I don't understand the loot system yet, and the traders.
      Looks like it's a running tally of what ever gets sold to them, and it carries over through restarts.
      Probably only resets after it reaches a certain point (amount of items).

      What I'd like to do, is have the traders have a minimum of 15 food and 15 drink at all times is that possible?
      Thanks,
    • By harcosgoogle
      You will be allowed(permission) to enter vehicle in trader?
       
      Group (F5 ) Only Allowed just?
       
      So only your friend can sit beside him
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...