L2-scripts Форум

L2-scripts Форум (http://l2-scripts.ru/forum/index.php)
-   Archive Lindvior, Ertheia, Odyssey, Undergeround, Helios, Grand Crusade (http://l2-scripts.ru/forum/forumdisplay.php?f=103)
-   -   Tradeable / Selleable items (http://l2-scripts.ru/forum/showthread.php?t=3407)

Balthis 02.06.2013 05:56

Tradeable / Selleable items
 
http://forum.l2-scripts.ru/showthread.php?t=3325

This is not working with items that has <set name="tradeable" value="false"/>.

iqman 02.06.2013 12:07

This items cannot be sold by default:

if(isEquipped())
return false;

if(player.isGM())
return true;

if((customFlags & FLAG_NO_TRADE) == FLAG_NO_TRADE)
return false;

if(isShadowItem())
return false;

if(isTemporalItem())
return false;

if(isAugmented() && !Config.ALT_ALLOW_DROP_AUGMENTED)
return false;

if(!ItemFunctions.checkIfCanDiscard(player, this))
return false;

return template.isTradeable();

is one of them fits you?

iqman 02.06.2013 21:00

reworked, no problems will accure now.


Часовой пояс GMT +4, время: 18:06.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd. Перевод: zCarot