Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 08/27/21 in Posts

  1. when your character are muted, it cant use command or chat. try replace the atcommand with these sc_start SC_MUTE, 10800000, 0; sc_end SC_MUTE; if you want a better approach, then use the setpcblock instead. *setpcblock <type>,<state>{,<account ID>}; *getpcblock {<account ID>}; 'setpcblock' command prevents/allows the player from doing the given <type> of action according to the <state> during the player session (note: @reloadscript removes all <type> except PCBLOCK_IMMUNE). The <type> values are bit-masks, multiples of <type> can be added to change the player action. The action is blocked when the <state> is true, while false allows the action again. 'getpcblock' command return the bit-mask value of the currently enabled block flags. Available <type>: PCBLOCK_MOVE Prevent the player from moving. PCBLOCK_ATTACK Prevent the player from attacking. PCBLOCK_SKILL Prevent the player from using skills/itemskills. PCBLOCK_USEITEM Prevent the player from using usable items. PCBLOCK_CHAT Prevent the player from sending global/guild/party/whisper messages. PCBLOCK_IMMUNE Prevent the player from being hit by monsters. PCBLOCK_SITSTAND Prevent the player from sitting/standing. PCBLOCK_COMMANDS Prevent the player from using atcommands/charcommands. PCBLOCK_NPCCLICK Prevent the player from clicking/touching any NPC/shop/warp. PCBLOCK_EMOTION Prevent the player from using emotions. PCBLOCK_NPC Simulate NPC interaction. Useful for NPC with no mes window. Sum of PCBLOCK_MOVE|PCBLOCK_SKILL|PCBLOCK_USEITEM|PCBLOCK_COMMANDS|PCBLOCK_NPCCLICK. PCBLOCK_ALL Sum of all the flags. Examples: // Make the attached player invulnerable to monster (same as @monsterignore) setpcblock PCBLOCK_IMMUNE, true; // Prevents the attached player from attacking and using skills setpcblock PCBLOCK_ATTACK|PCBLOCK_SKILL, true; // Re-enables attack, skills and item use setpcblock PCBLOCK_ATTACK|PCBLOCK_SKILL|PCBLOCK_USEITEM, false; // getpcblock related checks if (getpcblock() & PCBLOCK_IMMUNE) mes "You are invulnerable!"; if (getpcblock() & (PCBLOCK_MOVE|PCBLOCK_SITSTAND)) mes "You can't walk or sit."; if ((getpcblock() & (PCBLOCK_ATTACK|PCBLOCK_SKILL)) == 0) mes "You can attack and use skills."; if (getpcblock() & PCBLOCK_CHAT) mes "You can't chat.";
    1 point
  2. View File Cash Shop Manager NPC that allows you to manage your store Cash shop can Add, Edit and Remove items. Languages: English (US), Português (BR) Warning: To use the NPC it is recommended that you use the "item_cash_db.sql" in your folder "sql-files". DROP TABLE IF EXISTS `item_cash_db`; CREATE TABLE `item_cash_db` ( `tab` smallint(6) NOT NULL, `item_id` smallint(5) unsigned NOT NULL, `price` mediumint(10) unsigned NOT NULL DEFAULT '0', PRIMARY KEY (`tab`,`item_id`) ) ENGINE=MyISAM; Preview: Q: I added an item and it didn't show up in the store. Q: I'm trying to add an item and it's giving error. Q: I added the item in the "Sale" and still did not appear. By buying this script, you agree to these terms: You are not allowed to redistribute this script in any way, shape, or form. Chargeback scams are not tolerated and will get you punished on rAthena. I still retain all rights to this script. Terms above may be changed or adjusted without prior notification. Copyright © - Haikenz 2011-2018 - All Rights Reserved Submitter Haikenz Submitted 03/22/2018 Category Utilities Video https://www.youtube.com/watch?v=ocigrUMImZg Content Author Haikenz  
    1 point
  3. Boa tarde westkian, Vamos a solução da sua dúvida. Antes de mais nada, recomendo que você faça a leitura completa do tópico oficial que explica o funcionamento do Sistema VIP neste link: Testado com o cliente 20130515 e funcionando perfeitamente. Agora vou explicar os possíveis locais onde você terá que alterar a quantidade de slots para então recompilar seu emulador e ver as mudanças surtindo efeito ok? Em player.conf você poderá configurar algumas coisas, como: Aumento do tamanho do armazém (vip_storage_increase) Aumento da experiência recebida (vip_base_exp_increase / vip_job_exp_increase) Penalidade de experiência ao morrer (vip_exp_penalty_base / vip_exp_penalty_job) Aumento da taxa de drop (vip_drop_increase) Uso de gemas (vip_gemstone) Mensagem de aumento de experiência ao efetuar o login (vip_disp_rate) Em groups.conf você poderá configurar comandos e permissões especiais: { id: 5 /* Id do grupo VIP que pode ser alterado em login_athena.conf */ name: "VIP" inherit: ( "Player" ) /* can do everything Players can */ level: 0 commands: { rates: true who: true /* coloque seus comandos aqui */ } permissions: { /* coloque suas permissões aqui */ } }, Em login_athena.conf você poderá configurar algumas coisas, como: Qual será o ID do grupo (informado em groups.conf) responsável pelos VIPs (vip_group) Quantidade de slots a mais que uma conta VIP poderá ter (vip_char_increase) OBS: Se vip_char_increase estiver com o valor -1 ele irá utilizar o valor que está informado diretamente em #MAX_CHAR_VIP no arquivo src/config/core.h. Agora vamos ao nosso cenário, suponha que eu queira 9 slots pra personagens comuns e 3 para personagens VIPS. Sua configuração em src/config/core.h deverá ser a seguinte: /// Uncomment to enable VIP system. #define VIP_ENABLE /// Enable VIP script changes? (requires VIP_ENABLE) /// The primary effects of this are restrictions on non-VIP players, such as requiring /// a Reset Stone to change into third classes, paying more for equipment upgrades, and /// so forth. Note that the changes are based on euRO, not iRO. #define VIP_SCRIPT 0 #ifdef VIP_ENABLE #define MIN_STORAGE 300 // Default number of storage slots. #define MIN_CHARS 9 // Default number of characters per account. #define MAX_CHAR_VIP 3 // This must be less than MAX_CHARS #define MAX_CHAR_BILLING 0 // This must be less than MAX_CHARS #endif Em src/common/mmo.h você também deverá editar a seguinte linha: /** Max number of characters per account. Note that changing this setting alone is not enough if the client is not hexed to support more characters as well. * Max value tested was 265 */ #define MAX_CHARS 12 Feito isso, basta recompilar o emulador.
    1 point
×
×
  • Create New...