[email protected] Posted January 23, 2017 Report Share Posted January 23, 2017 #1. the Anzio_20 does not have a picture in the traders #2. when selling items at the trader the Anzio_20 does sell but is not removed from player inventory upon receiving the payment Link to comment Share on other sites More sharing options...
lwbuk Posted January 23, 2017 Report Share Posted January 23, 2017 Works fine for me on my server and it takes the correct amount. Must be an issue somewhere in your code. Link to comment Share on other sites More sharing options...
LunatikCH Posted January 23, 2017 Report Share Posted January 23, 2017 What classname are you using? Make sure you use this one: "Anzio_20_DZ" and NOT: "Anzio_20" Link to comment Share on other sites More sharing options...
[email protected] Posted January 23, 2017 Author Report Share Posted January 23, 2017 that must be it.... i will change the classname on a side note..... i have created a new trader and set it as a safezone but for some reason players are still able to log out from inside this one trader/safezone this only happens on the newly created trader i would like it to prevent players from logging out the same as it does on the stock traders/safezones along with displaying the following message: Cannot abort in trader area! Link to comment Share on other sites More sharing options...
lwbuk Posted January 23, 2017 Report Share Posted January 23, 2017 Need to add it to the sensors in your mission.sqm Change the number of items at the top by one class Sensors { items=6; #define TRGDEF a=100;b=100;activationBy="WEST";repeating=1;interruptable=1;age="UNKNOWN";class Effects{}; just add this part for the new trader with the item number changed and the coords, name etc changed class Item0 { position[]={6325,304,7807}; TRGDEF name="zonestary"; expCond="(player distance zonestary) < 100;"; expActiv="[""trader city Stary"",true,""enter""] call player_traderCity;"; expDesactiv="[""trader city Stary"",true,""leave""] call player_traderCity;"; }; Link to comment Share on other sites More sharing options...
[email protected] Posted January 23, 2017 Author Report Share Posted January 23, 2017 can you post your trader code for the anzio.... i still have no image for the anzio, as well as attemping to purchase it gives the following message: You can only buy -1 regular magazines and 4 sidearm magazines into your gear. even when have nothing in my inventory other than the gold required to purchase the anzio Link to comment Share on other sites More sharing options...
[email protected] Posted January 23, 2017 Author Report Share Posted January 23, 2017 FYI, when i spawn the anzio using the admin menu then look in my database in my player inventory the classname for it is: Anzio_20 Link to comment Share on other sites More sharing options...
[email protected] Posted January 23, 2017 Author Report Share Posted January 23, 2017 here is my code for the anzio in the trader file: class Anzio_20_DZ { type = "trade_items"; buy[] = {10,"ItemBriefcase100oz"}; sell[] = {3,"ItemBriefcase100oz"}; }; Link to comment Share on other sites More sharing options...
[email protected] Posted January 23, 2017 Author Report Share Posted January 23, 2017 maybe it is the "trade_items" part...? should this be "trade_weapons" ? Link to comment Share on other sites More sharing options...
[email protected] Posted January 23, 2017 Author Report Share Posted January 23, 2017 that was it..... all fixed now. THANKS for the input.... Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now