Jump to content

Question

Posted

Γεια σας :) Πως μπορώ να κάνω ένα item να μην μπορεί να πωλείται στο private store ωστόσο να μπορεί να γίνεται trade μεταξύ των players ? 

δηλαδή σαν τα adena ... 

? χρησιμοποιώ acis στα xml το έχω έτσι 

<list>
<item id="8235" type="EtcItem" name="Coin">
<set name="material" val="GOLD" />
<set name="price" val="1" /> <-- αυτό το πήρα από το adena αλλά δεν κάνει τίποτα... 
<set name="is_stackable" val="true" />
<set name="is_tradable" val="true" />
<set name="is_dropable" val="false" />
<set name="is_sellable" val="false" /> <--- το έχω false αλλά δεν δουλεύει στο  private store
<set name="is_depositable" val="false" />
</item>

15 answers to this question

Recommended Posts

  • 0
Posted (edited)

ta items pou epilegeis an ginoun sell einai items pou aforoun tradeList . Dld an to kaneis trade false den tha ginete sto private store..

Mporeis na valeis ena check sto trade list gia to sigkekrimeno item na mhn to vazei sthn lista . h na kaneis rework ta StatsSet (an eisai ligo kamenos :P)

 

OnTopic:

 

server packets PrivateStoreManageListSell

 

apo kato apo 

for (TradeItem item : _itemList)
{

(pou to exei 2 fores)

 

prosthesai 

if (item.getItem().getItemId() == to ID tou item)
	continue;
Edited by melron
  • 0
Posted (edited)

 

ta items pou epilegeis an ginoun sell einai items pou aforoun tradeList . Dld an to kaneis trade false den tha ginete sto private store..

Mporeis na valeis ena check sto trade list gia to sigkekrimeno item na mhn to vazei sthn lista . h na kaneis rework ta StatsSet (an eisai ligo kamenos :P)

 

OnTopic:

 

clientpackets PrivateStoreManageListSell

 

apo kato apo 

for (TradeItem item : _itemList)
{

(pou to exei 2 fores)

 

prosthesai 

if (item.getItem().getItemId() == to ID tou item)
	continue;

 

ευχαριστώ melron μα στο acis δεν έχει το συγκεκριμένο java που λες :/

ή το έχει με άλλο όνομα ; (setprivatestorelistsell.java) δεν ξέρω αν είναι το ίδιο ...

 

edit το βρήκα μέσα στο serverpackets θα δοκιμάσω αν δουλεύει ! πως μπορώ να το κάνω με config ? να μπορώ  δηλαδή να αλλάζω το item id ?

 

1 φορά έχει αυτό "for (TradeItem item : _itemList" 

στο από κάτω έχει (TradeItem item : _sellList)

έτσι δηλαδή 

writeD(_itemList.length);
for (TradeItem item : _itemList)
{
writeD(item.getItem().getType2());
writeD(item.getObjectId());
writeD(item.getItem().getItemId());
writeD(item.getCount());
writeH(0x00);
writeH(item.getEnchant());
writeH(0x00);
writeD(item.getItem().getBodyPart());
writeD(item.getPrice());
}


writeD(_sellList.size());
for (TradeItem item : _sellList)
{
writeD(item.getItem().getType2());
writeD(item.getObjectId());
writeD(item.getItem().getItemId());
writeD(item.getCount());
writeH(0x00);
writeH(item.getEnchant());
writeH(0x00);
writeD(item.getItem().getBodyPart());
writeD(item.getPrice());
writeD(item.getItem().getReferencePrice());
}
}
}

το βάζω μόνο κάτω από το πρώτο σωστά ; και μετά βάζω istradable=true σωστά ! ? 

απλά πως μπορώ να βάλω αντί για

 if (item.getItem().getItemId() == to ID tou item)    continue; 

τύπου config ώστε να μπορώ να το αλλάζω αν λάχει ; 

 

επίσης δεν πρέπει να αλλάξω τίποτα στο PrivatueStoreManageListBuy?

 

Edited by TEOGR_hItMaKeR
  • 0
Posted

Nai ekana lathos egw einai sto serverpackets. 

 

kai stis 2 for 

for (TradeItem item : _itemList)
for (TradeItem item : _sellList)

apo kato apla prosthesai 

if (item.getItem().getItemId() == to ID tou item)
	continue;

oso gia to config apla ftiakse 1 new config des paradigmata. 

 

(ti rev exeis?)

  • 0
Posted (edited)

Nai ekana lathos egw einai sto serverpackets. 

 

kai stis 2 for 

for (TradeItem item : _itemList)
for (TradeItem item : _sellList)

apo kato apla prosthesai 

if (item.getItem().getItemId() == to ID tou item)
	continue;

oso gia to config apla ftiakse 1 new config des paradigmata. 

 

(ti rev exeis?)

και μόνο στο πάνω που το έβαλα δούλεψε πρέπει και στο κάτω ; 

έχω δικό μου config απλά πως να το κάνω το συγκεκριμένο να το βγάζει στα config (σορρυ αν φαίνονται αστείες οι ερωτήσεις που κάνω ώρες ώρες) ... 

368

Edited by TEOGR_hItMaKeR
  • 0
Posted

valto kai sto kato gia secure... kai sto allo to file pou afora to buy tha to kaneis to idio exei kai ekei 2 tradelists.

 

sta configs (epidei den exw sources twra) des pws leitourgei ena config kai kane c/p kai allakse onomata den einai kati duskolo

  • 0
Posted

valto kai sto kato gia secure... kai sto allo to file pou afora to buy tha to kaneis to idio exei kai ekei 2 tradelists.

 

sta configs (epidei den exw sources twra) des pws leitourgei ena config kai kane c/p kai allakse onomata den einai kati duskolo

μαντάρα το χω κάνει 

 

εδώ βγάζει ερρορ

if (item.getItem().getItemId() == (Config.STORE_ITEM_SELL)
continue;

εδώ στο config java 

public static int STORE_ITEM_SELL;

STORE_ITEM_SELL = Integer.parseInt(custom.getProperty("PrivateStoreItemcantsell", "8753"));
 
  • 0
Posted

 

μαντάρα το χω κάνει 

 

εδώ βγάζει ερρορ

if (item.getItem().getItemId() == (Config.STORE_ITEM_SELL)
continue;

εδώ στο config java 

public static int STORE_ITEM_SELL;

STORE_ITEM_SELL = Integer.parseInt(custom.getProperty("PrivateStoreItemcantsell", "8753"));
 

 

if (item.getItem().getItemId() == (Config.STORE_ITEM_SELL)
continue;

to

if (item.getItem().getItemId() == Config.STORE_ITEM_SELL)
continue;
  • 0
Posted
if (item.getItem().getItemId() == (Config.STORE_ITEM_SELL)
continue;

to

if (item.getItem().getItemId() == Config.STORE_ITEM_SELL)
continue;

ευχαριστώ ! λές να δουλέψει ;

  • 0
Posted

2 πραγματα να πω...

1: Οτι τεστ και να κανεις με τα ιτεμς, παντα να τα κανεις με νορμαλ παικτη και οχι με GM Char. Δε ξερω πως ειναι στο πακ που δουλευεις αλλα σε high five που δουλευω εγω, οι GM Chars προσπερνουν τα restrictions.

2: Την επομενη φορα ρε φιλε αν μπορεις, βαλε ενα τιτλο στο τοπικ σου της προκοπης (εκανε και ριμα :P) Δεν ειναι δυσκολο να βαλεις ενα τιτλο της φασης "Sellable but not tradeable"....

  • 0
Posted (edited)

den nomizw na exeis provlhma... gt den to dokimazeis? :P fovasai kati?

yeapp όλα καλά ! ευχαριστώ !

 

 

 

 

2 πραγματα να πω...

1: Οτι τεστ και να κανεις με τα ιτεμς, παντα να τα κανεις με νορμαλ παικτη και οχι με GM Char. Δε ξερω πως ειναι στο πακ που δουλευεις αλλα σε high five που δουλευω εγω, οι GM Chars προσπερνουν τα restrictions.

2: Την επομενη φορα ρε φιλε αν μπορεις, βαλε ενα τιτλο στο τοπικ σου της προκοπης (εκανε και ριμα  :P) Δεν ειναι δυσκολο να βαλεις ενα τιτλο της φασης "Sellable but not tradeable"....

 

 

ευχαριστώ για την επισήμανση θα το δοκιμάσω και με απλό τώρα που το είπες ... 

Είμαστε στο ελληνικό τμήμα για αυτό και δεν το έκανα έτσι 

Edited by TEOGR_hItMaKeR
  • 0
Posted

yeapp όλα καλά ! ευχαριστώ !

 

 

 

 

 

 

ευχαριστώ για την επισήμανση θα το δοκιμάσω και με απλό τώρα που το είπες ... 

Είμαστε στο ελληνικό τμήμα για αυτό και δεν το έκανα έτσι 

Δε λεω κατι για τα ελληνικα. Απλα βαλε ενα περιεχομενο, κατι...Αν θελει καποιος να ψαξει μετα, να μπορει να το βρει χωρις να χρειαζεται να ανοιξει το τοπικ...

  • 0
Posted (edited)

Sto config dn to xreiazese to integer.

STORE_ITEM_SELL = Integer.parseInt(custom.getProperty("PrivateStoreItemcantsell", "8753"));

Se

STORE_ITEM_SELL = custom.getProperty("PrivateStoreItemcantsell", 8753);

Edited by Reborn12
  • 0
Posted

Sto config dn to xreiazese to integer.

STORE_ITEM_SELL = Integer.parseInt(custom.getProperty("PrivateStoreItemcantsell", "8753"));

Se

STORE_ITEM_SELL = custom.getProperty("PrivateStoreItemcantsell", 8753);

ok αν και δούλεψε κανονικά και έτσι 

  • 0
Posted

ok αν και δούλεψε κανονικά και έτσι 

Είναι πιο καθαρά έτσι στα config.

Locked αφού έλυσες το πρόβλημα σου..

Guest
This topic is now closed to further replies.


  • Posts

    • I was doing fixes long time ago before he rips me off , for him pixels matter more  
    • What is the reason for this new behavior where people criticize other users' posts? Do they think people are naive? Here everyone understands and everyone knows who's who. Focus on your work and be happy!    Lately, all they do is criticize anyone who posts anything; it's pure spam. Are they just looking for fame?  
    • Of course, bro So he writes to the admin: “Remove reactions because Skylord talks too much and says things that will make me lose clients.” And boom.. Maxor removes the reactions. Then he says: “Close my topics because too much nonsense is being written on my server.” And boom... the topics get closed. Bro, what century are we living in? People are not stupid. Just think for a second. Of course I won’t be able to fix anything like this. But at the same time, everyone here acts like they’re so great. They write their projects here, selling things for $5k–$10k  but in reality these fools just can’t find clients, so they spam nonsense and pretend they’re some huge professionals selling “super professional” files. From this point on, I can confirm that I will no longer be writing comments, replying to topics, or saying anything about anyone here. Honestly, I no longer care about the people on this forum who are trying to sell things, make a quick $100, and pretend to be something they are not. Many of these so-called “projects” and “official files” turn out to be fake, copied, or misleading. And let’s be honest this is not something new. There have been situations in the past where people asked me for help, copied things from my test servers, took my scripts or folders, and then tried to present them as their own official work. This kind of behavior should be visible to everyone. I am addressing the administration of this forum directly: these things should not be hidden. You should not be deleting posts, closing topics, removing replies, or covering up the truth just because someone is exposing what is actually happening. What kind of community are you building if the truth is constantly being hidden? For years, posts have been removed, topics have been closed, and replies have disappeared just because people said something uncomfortable. That is honestly sad. This is my final message. I no longer care what happens with this forum. Ban me if you want, remove my posts if you want, do whatever you want. I am done here.   I said what I had to say. @Maxtor    
    • TG Support: https://t.me/buyingproxysup | Channel: https://t.me/buyingproxycom Discord support: #buyingproxy | Server: Join the BuyingProxy Discord Server!  Create your free account here
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..