item price help & Enchanted Potions HP/MP

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
puredemonsss
Posts: 56
Joined: Sat Dec 29, 2012 3:28 am

item price help & Enchanted Potions HP/MP

Post by puredemonsss »

I have an Freya server all rates are 1x and i have been inspired by an old nightmare server and implemented or i better say modified (sepecialy the client XD) some items, for example:

Enchanted Mana Potion, that gives you 50 mp every 2 sec for 16 sec.
I tryed to set the price like 25000 adena in item id and database.
When i go to shop in game it shows 25000 adena now ok so far.
In Inventory i have 100000 adena and i buy 1 potion, after that i have left like 85000 adena not 75000 adena.
So something is not good, where do i change the price coz i tried everything
Same problem with selling something else is set there !
I want for example to buy with 25000 adena 1 potion !

Can some1 pls tell me how to change the price pls or give me a clue abowt this ? :(

Here are some scripts and linecodes that i made for server and client side if you want it ! XD
L][neage Freya server CT 2.5 & L][neage Freya client CT 2.5


server side

id items

Code: Select all

    <item id="14049" type="EtcItem" name="Enchanted Mana Potion">        <set name="icon" val="icon.etc_int_hena_i01" />        <set name="default_action" val="skill_reduce" />        <set name="etcitem_type" val="potion" />        <set name="immediate_effect" val="1" />        <set name="material" val="liquid" />        <set name="weight" val="5" />        <set name="price" val="25000" />        <set name="is_stackable" val="true" />        <set name="is_oly_restricted" val="true" />        <set name="handler" val="ItemSkills" />        <set name="for_npc" val="true" />        <set name="item_skill" val="2800-1" />    </item>    <item id="14050" type="EtcItem" name="Enchanted Life Potion">        <set name="icon" val="icon.etc_con_hena_i01" />        <set name="default_action" val="skill_reduce" />        <set name="etcitem_type" val="potion" />        <set name="immediate_effect" val="1" />        <set name="material" val="liquid" />        <set name="weight" val="5" />        <set name="price" val="25000" />        <set name="is_stackable" val="true" />        <set name="is_oly_restricted" val="true" />        <set name="handler" val="ItemSkills" />        <set name="for_npc" val="true" />        <set name="item_skill" val="2801-1" />    </item>
id skills for above id items to work

Code: Select all

    <skill id="2800" levels="1" name="Enchanted Mana Potion">        <set name="itemConsumeCount" val="1" />        <set name="target" val="TARGET_SELF" />        <set name="skillType" val="MPHOT" />        <set name="operateType" val="OP_ACTIVE" />        <set name="isPotion" val="true" />        <set name="buffDuration" val="16000" />        <for>            <!-- retail value: 50MP/sec; stat update every 2 sec -->            <effect count="8" name="ManaHealOverTime" abnormalTime="2" val="50" abnormalLvl="1" abnormalType="mp_recover" />        </for>    </skill>    <skill id="2801" levels="1" name="Enchanted Life Potion">        <set name="itemConsumeCount" val="1" />        <set name="target" val="TARGET_SELF" />        <set name="skillType" val="HOT" />        <set name="operateType" val="OP_ACTIVE" />        <set name="isPotion" val="true" />        <set name="buffDuration" val="16000" />        <for>            <!-- retail value: 50MP/sec; stat update every 2 sec -->            <effect count="8" name="HealOverTime" abnormalTime="2" val="50" abnormalLvl="1" abnormalType="hp_recover" />        </for>    </skill>
ok now client side of L][neage Freya CT 2.5 is requiered to be modified carefully
Open files like for example:
ItemName-e.dat that is found in example:
F:\L][neage Freya\system
retail - is the original line code that can differ a little from yours
modified - my modified linecode that you have to paste it over yours original linecode, remember to look carefuly coz sometime there are 2 linecodes identicaly so you have to delete 1 or modify them all, ujualy i dellete 1 coz lool are identicaly aniway :)


client side

EtcItemgrp.dat

Code: Select all

retail2   14049   0   3   4   8   0   dropitems.drop_crystal_m00          dropitemstex.drop_crystal_t00               0   0   0   0   0   1   0   0   icon.stone_4_i00                    -1  20  53  0   0   0                           1       1           1                   ItemSound.itemdrop_potion       2   3   02   14050   0   3   4   8   0   dropitems.drop_crystal_m00          dropitemstex.drop_crystal_t00               0   0   0   0   0   1   0   0   icon.stone_5_i00                    -1  20  53  0   0   0                           1       1           1                   ItemSound.itemdrop_potion       2   3   0modified2   14049   0   3   4   8   0   dropitems.drop_crystal_m00          dropitemstex.drop_crystal_t00               0   0   0   0   0   1   0   0   icon.etc_int_hena_i01                   -1  20  53  0   0   0                           1       1           1                   ItemSound.itemdrop_potion       2   3   02   14050   0   3   4   8   0   dropitems.drop_crystal_m00          dropitemstex.drop_crystal_t00               0   0   0   0   0   1   0   0   icon.etc_con_hena_i01                   -1  20  53  0   0   0                           1       1           1                   ItemSound.itemdrop_potion       2   3   0
ItemName-e.dat

Code: Select all

retail14049   Stone of Ease       a,Max HP increases for 20 minutes during use. Item exclusively for flying transformed objects.\0    -1  0   0                       a,  0   0       a,  0   0   0   0   0   0   0   0   0   0   a,  114050   Stone of Abundance      a,Max MP increases for 20 minutes during use. Item exclusively for flying transformed objects.\0    -1  0   0                       a,  0   0       a,  0   0   0   0   0   0   0   0   0   0   a,  1modified14049   Enchanted Mana Potion       a,A magical liquid medicine that restores MP for a certain amount of time.\0    -1  0   0                       a,  0   0       a,  0   0   0   0   0   0   0   0   0   0   a,  114050   Enchanted Life Potion       a,A magical liquid medicine that restores HP for a certain amount of time.\0    -1  0   0                       a,  0   0       a,  0   0   0   0   0   0   0   0   0   0   a,  1
Skillgrp.dat

Code: Select all

retail2800    1   5   1   0   4294967295  0   0.00000000  1           icon.stone_4_i00        0   0   0   a,none\0    0   8   10  0   a,none\02801    1   5   1   0   4294967295  0   0.00000000  1           icon.stone_5_i00        0   0   0   a,none\0    0   8   10  0   a,none\0modified2800    1   5   1   0   4294967295  0   0.00000000  1       2011    icon.etc_int_hena_i01       0   0   0   a,none\0    0   8   10  0   a,none\02801    1   5   1   0   4294967295  0   0.00000000  1       2031    icon.etc_con_hena_i01       0   0   0   a,none\0    0   8   10  0   a,none\0
SkillName-e.dat

Code: Select all

retail2800    1   a,Stone of Ease\0   a,Max HP is temporarily increased. Effect 3.\0  a,none\0    a,none\02801    1   a,Stone of Abundance\0  a,Max MP is temporarily increased. Effect 3.\0  a,none\0    a,none\0modified2800    1   a,Enchanted Mana Potion\0   a,For 16s recover's mp every 2s. Effect 1.\0    a,none\0    a,none\02801    1   a,Enchanted Life Potion\0   a,For 16s recover's hp every 2s. Effect 1.\0    a,none\0    a,none\0
SkillSoundgrp.dat

Code: Select all

retail2800    1               0.00000000  0.00000000  0.00000000  0.00000000  0.00000000  0.00000000              0.00000000  0.00000000  0.00000000  0.00000000  0.00000000  0.00000000              0.00000000  0.00000000  0.00000000  0.00000000  0.00000000  0.00000000                                                                                                                                          250.00000000    50.000000002801    1               0.00000000  0.00000000  0.00000000  0.00000000  0.00000000  0.00000000              0.00000000  0.00000000  0.00000000  0.00000000  0.00000000  0.00000000              0.00000000  0.00000000  0.00000000  0.00000000  0.00000000  0.00000000                                                                                                                                          250.00000000    50.00000000modified2800    1   SkillSound.potion           250.00000000    80.00000000 0.00000000  0.00000000  0.00000000  0.00000000              0.00000000  0.00000000  0.00000000  0.00000000  0.00000000  0.00000000              0.00000000  0.00000000  0.00000000  0.00000000  0.00000000  0.00000000                                                                                                                                          250.00000000    50.000000002801    1   SkillSound.potion           250.00000000    80.00000000 0.00000000  0.00000000  0.00000000  0.00000000              0.00000000  0.00000000  0.00000000  0.00000000  0.00000000  0.00000000              0.00000000  0.00000000  0.00000000  0.00000000  0.00000000  0.00000000                                                                                                                                          250.00000000    50.00000000
<thanx for help>
<bad english>
<learning>
Post Reply