Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: config/players.properties
- ===================================================================
- --- config/players.properties (revision 3)
- +++ config/players.properties (working copy)
- @@ -308,4 +308,52 @@
- DressMeLegs = Imperial,6374
- DressMeBoots = Draconic,6381;Imperial,6376;Arcana,6385
- DressMeGloves = Draconic,6380;Imperial,6375;Arcana,6384
- -DressMeWeapons = Draconic_Bow,7577;Shining_Bow,6594;Arcana_Mace,6608
- \ No newline at end of file
- +DressMeWeapons = Draconic_Bow,7577;Shining_Bow,6594;Arcana_Mace,6608
- +
- +# Configuração de ShortCuts Actions
- +# id 0 = sit
- +# id 1 = walk/run
- +# id 2 = attack
- +# id 3 = exchange
- +# id 4 = next target
- +# id 5 = pickup
- +# id 6 = Assist
- +# id 7 = party
- +# id 8 = leave party
- +# id 9 = dismiss party member
- +# id 10 = private store sell
- +# id 11 = party matching
- +# id 12 = social greeting
- +# id 13 = social victory
- +# id 14 = social advance
- +# id 24 = social yes
- +# id 25 = social no
- +# id 26 = social bow
- +# id 28 = private store buy
- +# id 29 = social unaware
- +# id 30 = social waiting
- +# id 31 = social laugh
- +# id 33 = social applaud
- +# id 34 = social dance
- +# id 35 = social sorrow
- +# id 37 = dwarven manufacture
- +# id 40 = recommend
- +# id 50 = change of party leader
- +# id 51 = general manufacture
- +# id 55 = start/end recording replay
- +# id 56 = guild invitation
- +# id 57 = find store
- +# id 58 = Duel
- +# id 59 = Duel Withdraw
- +# id 60 = Party Duel
- +#
- +# Slotid,PageId,actionId;Slotid,PageId,actionId...;
- +# retail : 1,0,2;4,0,5;11,0,0;
- +#
- +ActionShortCuts = 1,1,2;4,1,5;11,1,0;
- +
- +# Configuração de ShortCuts Skills
- +# Slotid,PageId,SkillId
- +# nota : isso só serve para skills que serão adicionados em todos os personagens
- +# nota : a skill deve está ja na lista de skills a partir do momento que cria o personagem
- +SkillShortCuts = 1,1,0;
- Index: java/net/sf/l2j/Config.java
- ===================================================================
- --- java/net/sf/l2j/Config.java (revision 3)
- +++ java/net/sf/l2j/Config.java (working copy)
- @@ -675,6 +686,9 @@
- public static int CLIENT_PACKET_QUEUE_MAX_UNDERFLOWS_PER_MIN = 1; // default 1
- public static int CLIENT_PACKET_QUEUE_MAX_UNKNOWN_PER_MIN = 5; // default 5
- + public static Map<Integer, List<Integer>> SKILLS_SHORTCUTS = new HashMap<>();
- + public static Map<Integer, List<Integer>> ACTIONS_SHORTCUTS = new HashMap<>();
- +
- // --------------------------------------------------
- /**
- @@ -1088,6 +1132,26 @@
- private static final void loadPlayers()
- {
- final ExProperties players = initProperties(PLAYERS_FILE);
- + String shortCut = players.getProperty("SkillShortCuts", "0");
- + String[] shortCut2 = shortCut.split(";");
- + for (String s : shortCut2)
- + {
- + List<Integer> list = new ArrayList<>();
- + String[] t = s.split(",");
- + list.add(Integer.parseInt(t[1]));
- + list.add(Integer.parseInt(t[2]));
- + SKILLS_SHORTCUTS.put(Integer.parseInt(t[0]), list);
- + }
- + shortCut = players.getProperty("ActionShortCuts", "0");
- + shortCut2 = shortCut.split(";");
- + for (String s : shortCut2)
- + {
- + List<Integer> list = new ArrayList<>();
- + String[] t = s.split(",");
- + list.add(Integer.parseInt(t[1]));
- + list.add(Integer.parseInt(t[2]));
- + ACTIONS_SHORTCUTS.put(Integer.parseInt(t[0]), list);
- + }
- STARTING_ADENA = players.getProperty("StartingAdena", 100);
- EFFECT_CANCELING = players.getProperty("CancelLesserEffect", true);
- HP_REGEN_MULTIPLIER = players.getProperty("HpRegenMultiplier", 1.);
- Index: java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java
- ===================================================================
- --- java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 3)
- +++ java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (working copy)
- @@ -14,6 +14,9 @@
- */
- package net.sf.l2j.gameserver.network.clientpackets;
- +import java.util.List;
- +import java.util.Map.Entry;
- +
- import net.sf.l2j.commons.lang.StringUtil;
- import net.sf.l2j.Config;
- @@ -138,9 +141,19 @@
- newChar.getPosition().set(template.getSpawn());
- newChar.setTitle("");
- - newChar.registerShortCut(new L2ShortCut(0, 0, 3, 2, -1, 1)); // attack shortcut
- - newChar.registerShortCut(new L2ShortCut(3, 0, 3, 5, -1, 1)); // take shortcut
- - newChar.registerShortCut(new L2ShortCut(10, 0, 3, 0, -1, 1)); // sit shortcut
- + for (Entry<Integer, List<Integer>> skillShortcut : Config.ACTIONS_SHORTCUTS.entrySet())
- + {
- + Integer slotIdPosition = skillShortcut.getKey();
- + List<Integer> values = skillShortcut.getValue();
- + Integer pageId = values.get(0);
- + Integer actionId = values.get(1);
- + slotIdPosition -= 1;
- + pageId -= 1;
- + newChar.registerShortCut(new L2ShortCut(slotIdPosition, pageId, 3, actionId, -1, 1));
- + }
- +// newChar.registerShortCut(new L2ShortCut(0, 0, 3, 2, -1, 1)); // attack shortcut
- +// newChar.registerShortCut(new L2ShortCut(3, 0, 3, 5, -1, 1)); // take shortcut
- +// newChar.registerShortCut(new L2ShortCut(10, 0, 3, 0, -1, 1)); // sit shortcut
- for (Item ia : template.getItems())
- {
- @@ -164,6 +177,17 @@
- if (skill.getId() == 1216)
- newChar.registerShortCut(new L2ShortCut(9, 0, 2, skill.getId(), 1, 1));
- }
- + for (Entry<Integer, List<Integer>> skillShortcut : Config.SKILLS_SHORTCUTS.entrySet())
- + {
- + Integer slotIdPosition = skillShortcut.getKey();
- + List<Integer> values = skillShortcut.getValue();
- + Integer pageId = values.get(0);
- + Integer skillId = values.get(1);
- + slotIdPosition -= 1;
- + pageId -= 1;
- + if(skillId != 0)
- + newChar.registerShortCut(new L2ShortCut(slotIdPosition, pageId, 2, skillId, 1, 1));
- + }
- if (!Config.DISABLE_TUTORIAL)
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement