TEOGR_hItMaKeR Posted April 30, 2017 Posted April 30, 2017 (edited) Hello how i can change currency on player private store ? i mean those http://imgient.com/image/RgXh and also when you buying Edited April 30, 2017 by TEOGR_hItMaKeR Quote
TEOGR_hItMaKeR Posted May 1, 2017 Author Posted May 1, 2017 (edited) name = sys string actual transaction = server Sysstring-e.dat :p yes i figured it out the bad is that it changes all shop currency not only private stores ... Thank you ! Edited May 1, 2017 by TEOGR_hItMaKeR Quote
UgliBiBagli Posted May 1, 2017 Posted May 1, 2017 (edited) privateshopwnd takes that string from sysstring-e.dat so i would suggest you one of these options:1) edit sysstring file and change id 134 - Adena - to the text you want BUT this probably will also replace Adena string in inventory and some other places - so i rather wouldnt do that 2) edit sysstring file and add your currency name for one of the IDs that arent used, then edit interface.xdat and change id to the one you just created http://prntscr.com/crhaj3 Edited May 1, 2017 by UgliBiBagli Quote
TEOGR_hItMaKeR Posted May 1, 2017 Author Posted May 1, 2017 privateshopwnd takes that string from sysstring-e.dat so i would suggest you one of these options:1) edit sysstring file and change id 134 - Adena - to the text you want BUT this probably will also replace Adena string in inventory and some other places - so i rather wouldnt do that 2) edit sysstring file and add your currency name for one of the IDs that arent used, then edit interface.xdat and change id to the one you just created http://prntscr.com/crhaj3 How i can do this bro ? You are right for the first one it did and i puted adena/mycurrency but its not nice :( for the second how i can do this ? can you help me ? Quote
vampir Posted May 1, 2017 Posted May 1, 2017 1. Adena text at the bottom can be changed by XDAT Editor 2. Amount of adena in TextBox can be changed only in Interface.u in PrivateShopWnd.uc 3. Tooltip can be changed only in Interface.u in Tooltip.uc Quote
TEOGR_hItMaKeR Posted May 1, 2017 Author Posted May 1, 2017 1. Adena text at the bottom can be changed by XDAT Editor 2. Amount of adena in TextBox can be changed only in Interface.u in PrivateShopWnd.uc 3. Tooltip can be changed only in Interface.u in Tooltip.uc As i promised you, i searched for the solution. Here you go, i ve tested this in freya and it worked like a charm.... Index: java/com/l2jserver/gameserver/network/clientpackets/RequestExEnchantSkill.java =================================================================== --- java/com/l2jserver/gameserver/network/clientpackets/RequestExEnchantSkill.java (revision 13244) +++ java/com/l2jserver/gameserver/network/clientpackets/RequestExEnchantSkill.java (working copy) @@ -26,6 +26,7 @@ import com.l2jserver.gameserver.model.L2ItemInstance; import com.l2jserver.gameserver.model.L2ShortCut; import com.l2jserver.gameserver.model.L2Skill; +import com.l2jserver.gameserver.model.actor.L2Character; import com.l2jserver.gameserver.model.actor.instance.L2PcInstance; import com.l2jserver.gameserver.network.SystemMessageId; import com.l2jserver.gameserver.network.serverpackets.ExBrExtraUserInfo; @@ -85,7 +86,11 @@ player.sendPacket(SystemMessageId.YOU_CANNOT_USE_SKILL_ENCHANT_ON_THIS_LEVEL); return; } - + if (!player.isInsideZone(L2Character.ZONE_PEACE) && !player.isGM()) //Another prevent + { + player.sendMessage("You can enchant your skills only in peace zone."); + return; + } if (!player.isAllowedToEnchantSkills()) { player.sendPacket(SystemMessageId.YOU_CANNOT_USE_SKILL_ENCHANT_ATTACKING_TRANSFORMED_BOAT); @@ -93,11 +98,16 @@ } final L2Skill skill = SkillTable.getInstance().getInfo(_skillId, _skillLvl);+ final L2Skill prev_skill = SkillTable.getInstance().getInfo(_skillId, _skillLvl - 1); if (skill == null) { return; } - + if (!player.checkCanUse(prev_skill)) + { + player.sendMessage("You cant enchant this skill at this momment."); + return; + } final int costMultiplier = EnchantGroupsTable.NORMAL_ENCHANT_COST_MULTIPLIER; final int reqItemId = EnchantGroupsTable.NORMAL_ENCHANT_BOOK; I told you that you want the level -1 ;) Add this protection to other skill enchants too (GCM and green giant codex) @vampir what are you talking about xd? I change it from the sysstring the theme is that it changed at all shops not only in private store of player so I am searching a solution to this right now I have it adena/mycoin and it's not cool :/ @solomun wrong topic I guess? Quote
Solomun Posted May 1, 2017 Posted May 1, 2017 @vampir what are you talking about xd? I change it from the sysstring the theme is that it changed at all shops not only in private store of player so I am searching a solution to this right now I have it adena/mycoin and it's not cool :/ @solomun wrong topic I guess? Hell yeah :( Sorry for this. Quote
vampir Posted May 1, 2017 Posted May 1, 2017 @vampir what are you talking about xd? I change it from the sysstring the theme is that it changed at all shops not only in private store of player so I am searching a solution to this right now I have it adena/mycoin and it's not cool :/ @solomun wrong topic I guess? XDAT Editor can be found here: https://sites.google.com/site/l2clientmod/xdat_editor You need to find PrivateShopWnd in Windows tab, set sysstring to -1 and set text to Adena Quote
TEOGR_hItMaKeR Posted May 1, 2017 Author Posted May 1, 2017 (edited) Hell yeah :(Sorry for this. np: p XDAT Editor can be found here: https://sites.google.com/site/l2clientmod/xdat_editor You need to find PrivateShopWnd in Windows tab, set sysstring to -1 and set text to Adena I am completely newbie at this don't understand sh1t could you help me somehow? I don't even understood what it's going to change with this Edit also i tried to run it but it doesnt run or install ... :/ Edited May 2, 2017 by TEOGR_hItMaKeR Quote
Recommended Posts
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.