Jump to content

Question

7 answers to this question

Recommended Posts

  • 0
Posted
2 hours ago, carvage said:

Under my npc's xml i have skills folder. 
I can't find droplist anywhere.. and i want to remove the spellbooks from the drops. 
https://prnt.sc/j7igk2

 

Regards,
Carvage.

Rofl, seriously...

 

Ok.. then... inside/within/over npc xml.

 

Configurable with a config

 

  • 0
Posted (edited)

for that the easy is use a code like

if(item.getItemId() == list of config)

return;

with that he remove all item you need

for acis is this

go to net/sf/l2j/gameserver/data/npcTable.java

after this

                                        {
                                            _log.warn("Droplist data for undefined itemId: " + data.getItemId());
                                            continue;
                                        } 

use this

                                        if(data.getItemId() == L2jConfig.LIST_ALLOW_DROP_ITEM_ID.size())
                                            continue;

save and after go to net/sf/l2j/config.java

after this

public static int MAX_BUFFS_AMOUNT;

and use this

    public static String ALLOW_DROP_ITEM_ID;
    public static FastList<Integer> LIST_ALLOW_DROP_ITEM_ID = new FastList<>();

and go to

STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);

and after this use this

        ALLOW_DROP_ITEM_ID = JLunaConfig.getProperty("AllowDropItemId", "57");
        LIST_ALLOW_DROP_ITEM_ID = new FastList<>();
        for (String id : ALLOW_DROP_ITEM_ID.split(","))
        {
            LIST_ALLOW_DROP_ITEM_ID.add(Integer.parseInt(id));
        }

go to players.properties and use this after last line

# disable do not drop this itemId,itemId ....

# default use a big id

AllowDropItemId = 99999

 

for frozen or other project have in database droplist you can remove item with query

and you can find guide in here if you search

Edited by tazerman2
  • 0
Posted
3 hours ago, SweeTs said:

Rofl, seriously...

 

Ok.. then... inside/within/over npc xml.

 

Configurable with a config

 

the pack i use it has something familiar with that, but even when in game server it says that "334 items skiped from droplist" ingame still drops them.. 
So prolly it doesnt work right or i dont know... 
If is there any other way to delete the gadamn books i would appreciate it :P 

Regards, 
Carvage. 

  • 0
Posted

that is all spellbook item Id

1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1095
1096
1097
1098
1099
1150
1151
1152
1294
1370
1371
1372
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1667
1668
1669
1670
1671
1856
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3429
3430
3431
3432
3940
3941
3942
3943
3944
4200
4201
4203
4204
4205
4206
4207
4208
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
5013
5014
5015
5809
5810
5811
5812
5813
5814
5815
5816
6350
6351
6352
6395
6396
6397
6398
7638
7639
7640
7641
7642
7643
7644
7645
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7835
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8616
8617
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8945
8946

 

  • 0
Posted
On 4/20/2018 at 12:43 AM, tazerman2 said:

for that the easy is use a code like

if(item.getItemId() == list of config)

return;

with that he remove all item you need

for acis is this

go to net/sf/l2j/gameserver/data/npcTable.java

after this

                                        {
                                            _log.warn("Droplist data for undefined itemId: " + data.getItemId());
                                            continue;
                                        } 

use this

                                        if(data.getItemId() == L2jConfig.LIST_ALLOW_DROP_ITEM_ID.size())
                                            continue;

save and after go to net/sf/l2j/config.java

after this

public static int MAX_BUFFS_AMOUNT;

and use this

    public static String ALLOW_DROP_ITEM_ID;
    public static FastList<Integer> LIST_ALLOW_DROP_ITEM_ID = new FastList<>();

and go to

STORE_SKILL_COOLTIME = players.getProperty("StoreSkillCooltime", true);

and after this use this

        ALLOW_DROP_ITEM_ID = JLunaConfig.getProperty("AllowDropItemId", "57");
        LIST_ALLOW_DROP_ITEM_ID = new FastList<>();
        for (String id : ALLOW_DROP_ITEM_ID.split(","))
        {
            LIST_ALLOW_DROP_ITEM_ID.add(Integer.parseInt(id));
        }

go to players.properties and use this after last line

# disable do not drop this itemId,itemId ....

# default use a big id

AllowDropItemId = 99999

 

for frozen or other project have in database droplist you can remove item with query

and you can find guide in here if you search

This code gives me error :D

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

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



×
×
  • Create New...