Сообщений: 34
Тем: 9
Зарегистрирован: May 2013
Репутация:
-161
Проблема в следующем, хочу сделать сундук с которого при двойном клике по нем, выпадет рандомный предмет, но наткнулся на проблемку... Хочю вписать 400+ итемов, из них что бы выпадал 1, как мне ето осушествить...? т.к. надо вписывать % но в моем случае будет 0.25... что делать...? помогите...
за основу возьму ето:
клик, рандом предмет
<skill id="2202" levels="3" name="Item - Yellow Treasure Box">
<table name="#extractableItems">
6904,1,5.424;6908,28,19.3714;6909,8,18.0799;7609,30,18.08
6904,1,6.816;6908,28,24.3428;6909,8,22.7199;7609,30,22.72
6904,1,7.296;6908,56,13.0286;6909,14,10.8088;7609,30,24.32
</table>
<set name="capsuled_items_skill" val="#extractableItems" />
<set name="target" val="TARGET_SELF" />
<set name="skillType" val="EXTRACTABLE_FISH" />
<set name="operateType" val="OP_ACTIVE" />
<cond msgId="129">
<and>
<player invSize="10" />
<player weight="80" />
</and>
</cond>
</skill>
Я бы изменил мир, но Бог не дает исходники...
Сообщений: 1,065
Тем: 20
Зарегистрирован: Mar 2010
Репутация:
3,855
даю подсказку - ItemHandler
Сообщений: 34
Тем: 9
Зарегистрирован: May 2013
Репутация:
-161
как и ожыдал, помощи не дождусь... ну лан. проще зделать 3 дубликата по 100итем в одном... спасибо за помощ!:eek:
Я бы изменил мир, но Бог не дает исходники...
Сообщений: 669
Тем: 24
Зарегистрирован: Mar 2012
Репутация:
3,913
Вам подсказали что делать. Писать хендлер.
Пора уже понять что никто просто так ничего не делает. Бесплатный сыр бывает только в мышеловке.
Сообщений: 34
Тем: 9
Зарегистрирован: May 2013
Репутация:
-161
06-10-2013, 06:40 PM
(Сообщение последний раз редактировалось: 06-10-2013, 07:07 PM ZefirKO.)
да уж... не думал.. за просто так рубить денги! 1 мин роботы! и не каких исходов не надо!
просто 100% делиш на количество вещей и все норм!
вот и готово!
<skill id="2202" levels="3" name="Item - Yellow Treasure Box">
<table name="#extractableItems">
10100,1,0.281;10101,1,0.281;10102,1,0.281;10103,1,0.281;10104,1,0.281;10105,1,0.281;10106,1,0.281;10107,1,0.281;10108,1,0.281;10109,1,0.281;10110,1,0.281;10111,1,0.281;10112,1,0.281;10113,1,0.281;10114,1,0.281;10115,1,0.281;10116,1,0.281;10117,1,0.281;10118,1,0.281;10119,1,0.281;10120,1,0.281;10121,1,0.281;10122,1,0.281;10123,1,0.281;10124,1,0.281;10125,1,0.281;10126,1,0.281;10127,1,0.281;10128,1,0.281;10129,1,0.281;10130,1,0.281;10131,1,0.281;10132,1,0.281;10133,1,0.281;10134,1,0.281;10135,1,0.281;10136,1,0.281;10137,1,0.281;10138,1,0.281;10139,1,0.281;10140,1,0.281;10141,1,0.281;10142,1,0.281;10143,1,0.281;10144,1,0.281;10145,1,0.281;10146,1,0.281;10147,1,0.281;10148,1,0.281;10149,1,0.281;10150,1,0.281;10151,1,0.281;10152,1,0.281;10153,1,0.281;10154,1,0.281;10155,1,0.281;10156,1,0.281;10157,1,0.281;10158,1,0.281;10159,1,0.281;10160,1,0.281;10161,1,0.281;10162,1,0.281;10163,1,0.281;10164,1,0.281;10165,1,0.281;10166,1,0.281;10167,1,0.281;10168,1,0.281;10169,1,0.281;10170,1,0.281;10171,1,0.281;10200,1,0.281;10201,1,0.281;10202,1,0.281;10203,1,0.281;10204,1,0.281;10205,1,0.281;10206,1,0.281;10207,1,0.281;10208,1,0.281;10209,1,0.281;10210,1,0.281;10211,1,0.281;10212,1,0.281;10213,1,0.281;10214,1,0.281;10215,1,0.281;10216,1,0.281;10217,1,0.281;10218,1,0.281;10219,1,0.281;10220,1,0.281;10221,1,0.281;10222,1,0.281;10223,1,0.281;10224,1,0.281;10225,1,0.281;10226,1,0.281;10227,1,0.281;10228,1,0.281;10229,1,0.281;10230,1,0.281;10231,1,0.281;10232,1,0.281;10233,1,0.281;10234,1,0.281;10235,1,0.281;10236,1,0.281;10237,1,0.281;10238,1,0.281;10239,1,0.281;10240,1,0.281;10241,1,0.281;10242,1,0.281;10243,1,0.281;10244,1,0.281;10245,1,0.281;10246,1,0.281;10247,1,0.281;10248,1,0.281;10249,1,0.281;10250,1,0.281;10251,1,0.281;10252,1,0.281;10253,1,0.281;10254,1,0.281;10255,1,0.281;10256,1,0.281;10257,1,0.281;10258,1,0.281;10259,1,0.281;10260,1,0.281;10261,1,0.281;10262,1,0.281;10263,1,0.281;10264,1,0.281;10265,1,0.281;10266,1,0.281;10267,1,0.281;10268,1,0.281;10269,1,0.281;10270,1,0.281;10271,1,0.281;10300,1,0.281;10301,1,0.281;10302,1,0.281;10303,1,0.281;10304,1,0.281;10305,1,0.281;10306,1,0.281;10307,1,0.281;10308,1,0.281;10309,1,0.281;10310,1,0.281;10311,1,0.281;10312,1,0.281;10313,1,0.281;10314,1,0.281;10315,1,0.281;10316,1,0.281;10317,1,0.281;10318,1,0.281;10319,1,0.281;10320,1,0.281;10321,1,0.281;10322,1,0.281;10323,1,0.281;10324,1,0.281;10325,1,0.281;10326,1,0.281;10327,1,0.281;10328,1,0.281;10329,1,0.281;10330,1,0.281;10331,1,0.281;10332,1,0.281;10333,1,0.281;10334,1,0.281;10335,1,0.281;10336,1,0.281;10337,1,0.281;10338,1,0.281;10339,1,0.281;10340,1,0.281;10341,1,0.281;10342,1,0.281;10343,1,0.281;10344,1,0.281;10345,1,0.281;10346,1,0.281;10347,1,0.281;10348,1,0.281;10349,1,0.281;10350,1,0.281;10351,1,0.281;10352,1,0.281;10353,1,0.281;10354,1,0.281;10355,1,0.281;10356,1,0.281;10357,1,0.281;10358,1,0.281;10359,1,0.281;10360,1,0.281;10361,1,0.281;10362,1,0.281;10363,1,0.281;10364,1,0.281;10365,1,0.281;10366,1,0.281;10367,1,0.281;10368,1,0.281;10369,1,0.281;10370,1,0.281;10371,1,0.281;10400,1,0.281;10401,1,0.281;10402,1,0.281;10403,1,0.281;10404,1,0.281;10405,1,0.281;10406,1,0.281;10407,1,0.281;10408,1,0.281;10409,1,0.281;10410,1,0.281;10411,1,0.281;10412,1,0.281;10413,1,0.281;10414,1,0.281;10415,1,0.281;10416,1,0.281;10417,1,0.281;10418,1,0.281;10419,1,0.281;10420,1,0.281;10421,1,0.281;10422,1,0.281;10423,1,0.281;10424,1,0.281;10425,1,0.281;10426,1,0.281;10427,1,0.281;10428,1,0.281;10429,1,0.281;10430,1,0.281;10431,1,0.281;10432,1,0.281;10433,1,0.281;10434,1,0.281;10435,1,0.281;10436,1,0.281;10437,1,0.281;10438,1,0.281;10439,1,0.281;10440,1,0.281;10441,1,0.281;10442,1,0.281;10443,1,0.281;10444,1,0.281;10445,1,0.281;10446,1,0.281;10447,1,0.281;10448,1,0.281;10449,1,0.281;10450,1,0.281;10451,1,0.281;10452,1,0.281;10453,1,0.281;10454,1,0.281;10455,1,0.281;10456,1,0.281;10457,1,0.281;10458,1,0.281;10459,1,0.281;10460,1,0.281;10461,1,0.281;10462,1,0.281;10463,1,0.281;10464,1,0.281;10465,1,0.281;10466,1,0.281;10467,1,0.281;10468,1,0.281;10469,1,0.281;10470,1,0.281;10471,1,0.281;10500,1,0.281;10501,1,0.281;10502,1,0.281;10503,1,0.281;10504,1,0.281;10505,1,0.281;10506,1,0.281;10507,1,0.281;10508,1,0.281;10509,1,0.281;10510,1,0.281;10511,1,0.281;10512,1,0.281;10513,1,0.281;10514,1,0.281;10515,1,0.281;10516,1,0.281;10517,1,0.281;10518,1,0.281;10519,1,0.281;10520,1,0.281;10521,1,0.281;10522,1,0.281;10523,1,0.281;10524,1,0.281;10525,1,0.281;10526,1,0.281;10527,1,0.281;10528,1,0.281;10529,1,0.281;10530,1,0.281;10531,1,0.281;10532,1,0.281;10533,1,0.281;10534,1,0.281;10535,1,0.281;10536,1,0.281;10537,1,0.281;10538,1,0.281;10539,1,0.281;10540,1,0.281;10541,1,0.281;10542,1,0.281;10543,1,0.281;10544,1,0.281;10545,1,0.281;10546,1,0.281;10547,1,0.281;10548,1,0.281;10549,1,0.281;10550,1,0.281;10551,1,0.281;10552,1,0.281;10553,1,0.281;10554,1,0.281;10555,1,0.281;10556,1,0.281;10557,1,0.281;10558,1,0.281;10559,1,0.281;10560,1,0.281;10561,1,0.281;10562,1,0.281;10563,1,0.281;10564,1,0.281;10565,1,0.281;10566,1,0.281;10567,1,0.281;10568,1,0.281;10569,1,0.281;10570,1,0.281;10571,1,0.281
10100,1,24.500;10101,1,24.500;10102,1,24.500;10103,1,24.500
10100,1,7.296;10101,1,13.0286;10102,1,10.8088;10103,1,24.32
</table>
<set name="capsuled_items_skill" val="#extractableItems" />
<set name="target" val="TARGET_SELF" />
<set name="skillType" val="EXTRACTABLE" />
<set name="operateType" val="OP_ACTIVE" />
<cond msgId="129">
<and>
<player invSize="10" />
<player weight="80" />
</and>
</cond>
</skill>
все работает! можна было обиснить! а не умничать так жостко...
Я бы изменил мир, но Бог не дает исходники...
Сообщений: 1,432
Тем: 34
Зарегистрирован: Jul 2012
Репутация:
11,419
ZefirKO Написал:да уж... не думал.. за просто так рубить денги! 1 мин роботы! и не каких исходов не надо!
просто 100% делиш на количество вещей и все норм!
вот и готово!
<skill id="2202" levels="3" name="Item - Yellow Treasure Box">
<table name="#extractableItems">
10100,1,0.281;10101,1,0.281;10102,1,0.281;10103,1,0.281;10104,1,0.281;10105,1,0.281;10106,1,0.281;10107,1,0.281;10108,1,0.281;10109,1,0.281;10110,1,0.281;10111,1,0.281;10112,1,0.281;10113,1,0.281;10114,1,0.281;10115,1,0.281;10116,1,0.281;10117,1,0.281;10118,1,0.281;10119,1,0.281;10120,1,0.281;10121,1,0.281;10122,1,0.281;10123,1,0.281;10124,1,0.281;10125,1,0.281;10126,1,0.281;10127,1,0.281;10128,1,0.281;10129,1,0.281;10130,1,0.281;10131,1,0.281;10132,1,0.281;10133,1,0.281;10134,1,0.281;10135,1,0.281;10136,1,0.281;10137,1,0.281;10138,1,0.281;10139,1,0.281;10140,1,0.281;10141,1,0.281;10142,1,0.281;10143,1,0.281;10144,1,0.281;10145,1,0.281;10146,1,0.281;10147,1,0.281;10148,1,0.281;10149,1,0.281;10150,1,0.281;10151,1,0.281;10152,1,0.281;10153,1,0.281;10154,1,0.281;10155,1,0.281;10156,1,0.281;10157,1,0.281;10158,1,0.281;10159,1,0.281;10160,1,0.281;10161,1,0.281;10162,1,0.281;10163,1,0.281;10164,1,0.281;10165,1,0.281;10166,1,0.281;10167,1,0.281;10168,1,0.281;10169,1,0.281;10170,1,0.281;10171,1,0.281;10200,1,0.281;10201,1,0.281;10202,1,0.281;10203,1,0.281;10204,1,0.281;10205,1,0.281;10206,1,0.281;10207,1,0.281;10208,1,0.281;10209,1,0.281;10210,1,0.281;10211,1,0.281;10212,1,0.281;10213,1,0.281;10214,1,0.281;10215,1,0.281;10216,1,0.281;10217,1,0.281;10218,1,0.281;10219,1,0.281;10220,1,0.281;10221,1,0.281;10222,1,0.281;10223,1,0.281;10224,1,0.281;10225,1,0.281;10226,1,0.281;10227,1,0.281;10228,1,0.281;10229,1,0.281;10230,1,0.281;10231,1,0.281;10232,1,0.281;10233,1,0.281;10234,1,0.281;10235,1,0.281;10236,1,0.281;10237,1,0.281;10238,1,0.281;10239,1,0.281;10240,1,0.281;10241,1,0.281;10242,1,0.281;10243,1,0.281;10244,1,0.281;10245,1,0.281;10246,1,0.281;10247,1,0.281;10248,1,0.281;10249,1,0.281;10250,1,0.281;10251,1,0.281;10252,1,0.281;10253,1,0.281;10254,1,0.281;10255,1,0.281;10256,1,0.281;10257,1,0.281;10258,1,0.281;10259,1,0.281;10260,1,0.281;10261,1,0.281;10262,1,0.281;10263,1,0.281;10264,1,0.281;10265,1,0.281;10266,1,0.281;10267,1,0.281;10268,1,0.281;10269,1,0.281;10270,1,0.281;10271,1,0.281;10300,1,0.281;10301,1,0.281;10302,1,0.281;10303,1,0.281;10304,1,0.281;10305,1,0.281;10306,1,0.281;10307,1,0.281;10308,1,0.281;10309,1,0.281;10310,1,0.281;10311,1,0.281;10312,1,0.281;10313,1,0.281;10314,1,0.281;10315,1,0.281;10316,1,0.281;10317,1,0.281;10318,1,0.281;10319,1,0.281;10320,1,0.281;10321,1,0.281;10322,1,0.281;10323,1,0.281;10324,1,0.281;10325,1,0.281;10326,1,0.281;10327,1,0.281;10328,1,0.281;10329,1,0.281;10330,1,0.281;10331,1,0.281;10332,1,0.281;10333,1,0.281;10334,1,0.281;10335,1,0.281;10336,1,0.281;10337,1,0.281;10338,1,0.281;10339,1,0.281;10340,1,0.281;10341,1,0.281;10342,1,0.281;10343,1,0.281;10344,1,0.281;10345,1,0.281;10346,1,0.281;10347,1,0.281;10348,1,0.281;10349,1,0.281;10350,1,0.281;10351,1,0.281;10352,1,0.281;10353,1,0.281;10354,1,0.281;10355,1,0.281;10356,1,0.281;10357,1,0.281;10358,1,0.281;10359,1,0.281;10360,1,0.281;10361,1,0.281;10362,1,0.281;10363,1,0.281;10364,1,0.281;10365,1,0.281;10366,1,0.281;10367,1,0.281;10368,1,0.281;10369,1,0.281;10370,1,0.281;10371,1,0.281;10400,1,0.281;10401,1,0.281;10402,1,0.281;10403,1,0.281;10404,1,0.281;10405,1,0.281;10406,1,0.281;10407,1,0.281;10408,1,0.281;10409,1,0.281;10410,1,0.281;10411,1,0.281;10412,1,0.281;10413,1,0.281;10414,1,0.281;10415,1,0.281;10416,1,0.281;10417,1,0.281;10418,1,0.281;10419,1,0.281;10420,1,0.281;10421,1,0.281;10422,1,0.281;10423,1,0.281;10424,1,0.281;10425,1,0.281;10426,1,0.281;10427,1,0.281;10428,1,0.281;10429,1,0.281;10430,1,0.281;10431,1,0.281;10432,1,0.281;10433,1,0.281;10434,1,0.281;10435,1,0.281;10436,1,0.281;10437,1,0.281;10438,1,0.281;10439,1,0.281;10440,1,0.281;10441,1,0.281;10442,1,0.281;10443,1,0.281;10444,1,0.281;10445,1,0.281;10446,1,0.281;10447,1,0.281;10448,1,0.281;10449,1,0.281;10450,1,0.281;10451,1,0.281;10452,1,0.281;10453,1,0.281;10454,1,0.281;10455,1,0.281;10456,1,0.281;10457,1,0.281;10458,1,0.281;10459,1,0.281;10460,1,0.281;10461,1,0.281;10462,1,0.281;10463,1,0.281;10464,1,0.281;10465,1,0.281;10466,1,0.281;10467,1,0.281;10468,1,0.281;10469,1,0.281;10470,1,0.281;10471,1,0.281;10500,1,0.281;10501,1,0.281;10502,1,0.281;10503,1,0.281;10504,1,0.281;10505,1,0.281;10506,1,0.281;10507,1,0.281;10508,1,0.281;10509,1,0.281;10510,1,0.281;10511,1,0.281;10512,1,0.281;10513,1,0.281;10514,1,0.281;10515,1,0.281;10516,1,0.281;10517,1,0.281;10518,1,0.281;10519,1,0.281;10520,1,0.281;10521,1,0.281;10522,1,0.281;10523,1,0.281;10524,1,0.281;10525,1,0.281;10526,1,0.281;10527,1,0.281;10528,1,0.281;10529,1,0.281;10530,1,0.281;10531,1,0.281;10532,1,0.281;10533,1,0.281;10534,1,0.281;10535,1,0.281;10536,1,0.281;10537,1,0.281;10538,1,0.281;10539,1,0.281;10540,1,0.281;10541,1,0.281;10542,1,0.281;10543,1,0.281;10544,1,0.281;10545,1,0.281;10546,1,0.281;10547,1,0.281;10548,1,0.281;10549,1,0.281;10550,1,0.281;10551,1,0.281;10552,1,0.281;10553,1,0.281;10554,1,0.281;10555,1,0.281;10556,1,0.281;10557,1,0.281;10558,1,0.281;10559,1,0.281;10560,1,0.281;10561,1,0.281;10562,1,0.281;10563,1,0.281;10564,1,0.281;10565,1,0.281;10566,1,0.281;10567,1,0.281;10568,1,0.281;10569,1,0.281;10570,1,0.281;10571,1,0.281
10100,1,24.500;10101,1,24.500;10102,1,24.500;10103,1,24.500
10100,1,7.296;10101,1,13.0286;10102,1,10.8088;10103,1,24.32
</table>
<set name="capsuled_items_skill" val="#extractableItems" />
<set name="target" val="TARGET_SELF" />
<set name="skillType" val="EXTRACTABLE" />
<set name="operateType" val="OP_ACTIVE" />
<cond msgId="129">
<and>
<player invSize="10" />
<player weight="80" />
</and>
</cond>
</skill>
все работает! можна было обиснить! а не умничать так жостко...
офф
У Вас в подписи говорится о том, что Вы могли бы изменить мир, но Бог не дает исходники. Он наверное знает, что Вы с ними ничего не сможете сделать. :facepalm:
Сообщений: 807
Тем: 30
Зарегистрирован: Oct 2012
Репутация:
5,827
Asmodiel Написал:
офф
У Вас в подписи говорится о том, что Вы могли бы изменить мир, но Бог не дает исходники. Он наверное знает, что Вы с ними ничего не сможете сделать. :facepalm:
офф
Да умрет мир в багах, дюпах, лагах и от падений. Или мы на лесницах проваливаться в текстуры станем :redlol:
Сообщений: 1,432
Тем: 34
Зарегистрирован: Jul 2012
Репутация:
11,419
06-11-2013, 07:06 AM
(Сообщение последний раз редактировалось: 06-11-2013, 07:07 AM Asmodiel.)
SoniPro Написал:
офф
Да умрет мир в багах, дюпах, лагах и от падений. Или мы на лесницах проваливаться в текстуры станем :redlol:
Сообщений: 34
Тем: 9
Зарегистрирован: May 2013
Репутация:
-161
Тему можно закрыть, разобрался! ваши слова, не по теме мне не интересны!
Я бы изменил мир, но Бог не дает исходники...
Сообщений: 1,065
Тем: 20
Зарегистрирован: Mar 2010
Репутация:
3,855
Открыть спойлер
offtopсоболезную тому, кому потом такие описания распаковок предметов изменять (шансы и т.д.) - это ж трындец...
|