Jump to content

Senos

Global Moderators
  • Content Count

    183
  • Joined

  • Last visited

  • Days Won

    8

Reputation Activity

  1. Upvote
    Senos reacted to keough in [Showcase] Royale Town   
    Hello Hercules, i think i was the first one who will post a map showcase here in this thread! so yeah!   I would like to show you my latest map creation Royale Town! it is a wonderful and a beautiful map i've done with so much effort to it!   Just rate em up and comment! thank you!   Video of the Map   Screenshots in-game             Hope you like it!
  2. Upvote
    Senos reacted to keough in [Showcase] Prontera 2 from RO2 - Fully Reworked   
    Well then, hmm.. its been so long long time since i post my latest map here.. and now i have to show you something that i have been working these past few days..
     
    and its already done! xD the prontera map that i have made last year was enhance more, since i have played RO2 and check the every corner of Prontera 2 map and apply it in RO1, Well similarity at its best! xD
     
    I have nothing more to say So here is some map Screenshots and Video. Hope you like it guys!! C&C are accepted
     
    Video of the map - its a bit laggy coz i'm running some applications while taking the video xD sorry for that 

     
    This vid is only 9 mins xD! false 10 mins the rest of 1 minute is black
     
    Screenshots in Brow

     

     

     

     

     

     

     

     

     
     
    In-game Screenshots
     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     
    Thats all! Thank you! 
  3. Upvote
    Senos reacted to Tidus in Chão de izlude bugado.   
    Defina isso? devido ao tempo que ficamos off, não tivemos escolha a não ser dar fork no emulador mais estável que em todo caso é o Hércules, agora você dizer que estamos plagiando? brAthena tem muito código fonte original, sistemas próprios, toda sua estruturação de dados é diferente.
     
    Agora você simplesmente chega no fórum todo arrogante querendo suporte exclusivo, sem nem ao menos ter se dado ao luxo de utilizar o campo de busca do fórum, é respondido e ainda acha ruim? a resposta do Ragno é praticamente a mesma do Aly, era só você ter sido paciente e pesquisado a respeito.
     
     
     
    Não sabia que o MySQL contava, pensei que ele parava na hora, é para ver como você é exagerado em tudo que fala, não pedimos nada para a comunidade, tudo o que fazemos é por ela.
     
    PS: I apologize to Staff Hercules by having to put up with this kind of behavior, but ... some people just do not think.
  4. Upvote
    Senos reacted to Aly in Chão de izlude bugado.   
    O que você fez pelo projeto até hoje pra poder reclamar?
     
    Os únicos membros que ainda falam alguma besteira são aqueles que mal conhecem o projeto, estão começando e querem tudo na mão (leechers). Vê se tem algum membro que já fez algo pela comunidade criticando. Eles entendem o conceito de comunidade, de open source.
     
    Aliás, falando em open source você sabe o que é um fork? Eu aconselho estudar sobre, antes de usar a palavra plágio novamente. Plágio indica desrespeito, não é essa a relação que temos com nenhum projeto.
     
    Repara que a todo momento você cospe no prato que come:
    Pede ajuda no brAthena, critica, eu mesmo te respondo, e ainda vem fazer conversinha aqui.
    Pede ajuda no Hercules, te respondem, e você diz que largamos um projeto "totalmente funcional pra começar a seguir um projeto "gringo" por que a "performance" está bem melhor", desmerecendo-o por ser um projeto gringo e pondo sua performance entre aspas.
     
    E ainda "tenta" amenizar dizendo que é grato, você sequer entende o significado de gratidão?
     
    Você está se sujando totalmente nas comunidades. Para que tá feio.
     
     
     
    Obrigado por explicar a eles, Felipe.
     
    Mantivemos ele justamente pensando nos membros.
  5. Upvote
    Senos reacted to Ragno in Chão de izlude bugado.   
    Você precisa editar o mapa com ferramentas como BrowEdit. No entanto, também é possível alterar o nome do arquivo usado para izlude.gnd solo editando o arquivo usando um editor de texto, como o Notepad ++.   izlude.7z   No exemplo, eu rebatizado de arquivos:   "prt_µµ½Ã" -> "izl_µµ½Ã" "prt_ÃÊ¿ø" -> "izl_ÃÊ¿ø"   Espero que seja útil.   Aproveitando sobre o assunto, você poderia comentar um pouco mais traduções de brAthena?
     
    Traduzido usando Google Translator.  
  6. Upvote
    Senos reacted to CarlosHenrq in Help With some changes in skills   
    That's my patch for brAthena. You can add to your source, may need some changes if you have other sources changes. It's better you add manually at your source.   @edit   The final code... config.fullprotect.diff
  7. Upvote
    Senos reacted to sbk_ in Away System   
    Well this system allows the player to be missing from the server with an automatic response. Actually there are two commands, one disconnects the player and the other keeps him connected.    Not diferenção is not only there, the command @away2 will disconnect the player and his status ignore monster, the other does not allow this status since the player can be killing a monster and use the command when it has low HP and go recovering.    This question is to be examined in the new version, now a brief explanation of the commands:     @away <message>
    Makes the player stay with a headgear of afk and sends a response suggesting the second string if a player send a private message.
     
    @away2 <message>
    Makes the player stay with a headgear of afk and sends a response suggesting the second string if a player send a private message and disconnects the player from the server.
     
    Important explanations:
    Players can not use the command on maps PvP, GvG or BattleGround. By using the command @away the player is unable to move, carrying the command again using the player can move free. The view id of head equipment is kept safe when the player quit the commandaway using the viewId that was before replacement is on-post, but not the player keeps changing the equipment and change the viewId, perhaps in next version.

    Important explanations Version 1.1:
     
    The 1.1 version does not allow the player to withdraw, talk to npc, drop items, use an item and equip item, it solves most of the problems, unless the player use the teleport commands, it will continue to place more inactive.
     
    Considerations for a future release:
    Remove blocking movement of the player and adding the source as is well implemented and easy for function in places that activate the idle players. As stated above, block handling equipment change when you are away, or just add replacement viewId or something related. Block more functions in core.

    Demonstration images? This being done a job on top of that, the images instead movie detailing more.
     
    I will not provide plugin because I'm not familiar with this feature Hercules.   Download v1.1: Click Here Download v1.0: Click Here
  8. Upvote
    Senos reacted to K4m4r40 in [solved]Mistérios do setcell - Suporte Help!   
    pode deixar,vou estudar as outras funções do setcell e vou fazer o tutorial explicando ela por completo.

    sobre barreiras, basilicas e como fazer só um local específico no mapa ter pvp.

    +uma vez, vlw pelo suporte.
    @@evilpuncker @@JulioCF
  9. Upvote
    Senos reacted to Mystery in February & March Digest 2015   
    February & March Digest 2015
    The following digest covers the month of February 1st - February 28th 2015 and March 1st - March 31st 2015.
     
     
     

    March Digest
     
    Team Changes [*]None

     
    Development Highlights
    [*]Add channels.conf option irc_channel_autojoin (Commit) [*]Corrected homunculus stats for pre-renewal (Commit) [*]Multiple SC Fixes (Commit) [*]Renewal Updates: (Commit) (Part 2: Commit) [*]-Fixed card bonuses related to to ATK.(Added 'bRaceTolerance'). Thanks Michi for the support. [*]-Fixed Renewal EDP. Special thanks to Awesome Yommy <3 [*]-Enabled 'display_skill_fail' since '/skillfail' is already available in the client [*]-AM_DEMONSTRATION and AM_ACIDTERROR is now using RE formula. [*]-Fixed damage modifiers of some skills.
    [*]Memory Slasher: Script Parser Boost (Commit) [*]Fixed vending on 2014-10-22 and above (Commit)


     
    Scripting Highlights
    [*]Fixed Endless Tower Weekly timer (Commit) [*]Eden Quest Updates (Commit) [*]Updated socket_enchant2 NPC (Commit) [*]Added Ninja Weapon and Amor Craftman NPC (Commit) [*]Updated Ninja shop (Commit)

     
    Database Highlights
    [*]Glast Heim items (Commit) [*]Added Nightmare clocktower items (Commit) [*]Added Temporal boots pack (Commit) [*]Added new gears and updated scripts (Commit) [*]New Costume garments (Commit) [*]New Costumes (Commit) [*]New Footgears (Commit) [*]New Accessories (Commit) [*]New headgears script (Commit) [*]New Shields (Commit) [*]New Weapons (Commit) [*]Thanatos weapon pack (Commit) [*]Added 'Crimson' weapons pack (Commit) [*]Added 'Vicious Mind' weapon pack (Commit) [*]Added shadow equipments db (Commit) [*]Updated item_db with new costumes (Commit)

     
    March Statistics
    [*]During the period there were 82 Commits. [*]Of these 82 commits, 18 included bug-fixes. [*]3 Commits from Pull Requests [*]In this month, there were 30,751 Additions and 13,087 Deletions.

     


    February Digest
     
    Team Changes [*]@@Wolf has been moved from Script Developers to Int'l Portuguese Moderators.

     
    Development Highlights
    [*]Skipped translations in minimal (script checker) mode (Commit) [*]Battle config option: check_occupied_cells (Commit) [*]Hercules Ultimate Localization Design (Commit, Topic) [*]Fixed parser issue on direct assignments (Commit) [*]Updated 'delequip' script command (Commit) [*]Fixed prestige formular (Commit) [*]Fixed Sate tracking of dialog window (Commit)

     
    February Statistics
    [*]During the period there were 28 Commits. [*]Of these 28 commits, 8 included bug-fixes. [*]1 Commits from Pull Requests [*]In this month, there were 2,539 Additions and 1,096 Deletions.

  10. Upvote
    Senos reacted to Dastgir in Dastgir's Services   
    Hello Hercules Community,

    I am offering my Services to you @ some expense of money.

    Works for Emulator: Hercules/rAthena/Others(if any)
    Services:
    Scripting. (Min Price:5$ ) Source Modification(/Addition).(Min Price: 5$) Converting to/Creating a Plugin[Hercules Specific].(Min Price: 5$) Migrating Your Server. (Min Price: 10$) Adding Custom Items/Maps/Mobs. (Min Price: 5$) Creating/Adding New Skills. (Min Price: 10$) Changing of Emulator (Min Price: 10$) ClientSide Things. (Min Price: 5$) Fixing Errors. (Min Price: 5$) Script Review. Consulting And Anything else, that you want, just drop me a PM
    Maximum Price: Depends on Complexity of the Work
    What Else:
    Free Support for Service bought from me.

    Contact Info:
    Post Here Via PM Payment Methods:
    PayPal Only PM me if you want any other payment method, and I might check If I can have it.

    Status: AVAILABLE
  11. Upvote
    Senos reacted to Mystery in January Digest 2015   
    January Digest 2015
    The following digest covers the month of January 1st - January 31st 2015.
     
    Team Changes
    [*]None

     
    Development Highlights
    [*]Minor channel system refactoring (Commit) [*]Moved the Hercules Channel System to its own file/interface (Commit) [*]Channel refactoring: join, search, map_join, quit/leave/delete, guild_* [*]Added: 'channelmes'
    [*]Conversion Tool: quest_db.txt -> quest_db.conf (Commit) [*]Connection history redesign (Commit)
    [*]Drops ~250kb in memory usage from each server, speeds up lookup/insertion and the cleanup timer will iterate thru the list rather than that ~65k array loop
    [*]Extending of files to support plugins: skill.c, battle.c [*]Add npcdb_checkid (Commit) [*]Removal of certain commands: alias save, alias enablearena/disablearena, cmdothernpc, isday()


     
    Scripting Highlights
    [*]Added new Eclage quests/NPCs/instances (Commit) [*]Update lvl4_weapon_quest (Commit)

     
    Database Highlights
    [*]Added new Eclage skills used in items (Commit) [*]Official drops info (Commit) [*]2010 Headgears (Commit)

     
    January Statistics
    [*]During the period there were 99 Commits. [*]Of these 99 commits, 9 included bug-fixes. [*]20 Commits from Pull Requests [*]In this month, there were 69,047 Additions and 56,100 Deletions.


  12. Upvote
    Senos reacted to evilpuncker in Depurar pico de processamento Map server   
    tenho 99% de certeza de que seu problema é por causa de scripts mal feitos rodando continuamente e causando o alto consumo de recursos do VPS
  13. Upvote
    Senos reacted to Jguy in HAT - The Hercules Admin Tool!   
    Updates:
     
    The entire account module should function correctly now. The account interface is divided into 6 tabs. All the data is loaded on page load so if you need to switch back and forth between tabs, the data doesn't need to reload. Obviously you could F5 the page to reload the data. I'll go over what tabs are available and what you can do in each.
     
    Tab 1 - Basic Info
    Here you can view the basic details about an account. Stuff like the account name, birthdate, creation date, last login information, and a quick look at ban information
     

     
    Tab 2 - Account Blocks
    Here, a history of the blocks an account has had appear. It will be recommended that you do not give your GM's access to the @ban/@unban command in game, because that ban would not show up here as history. In this screen you can add a new block or delete any block that is still valid. You can either place a permanent ban, which changes the account state field to "5", or a temporary ban ending at a certain date/time. Some preset reasons are in there and a comments field to add your own comments. I will be adding a way for you to add your own reasons but for now, they're hard coded. Here's a screenshot:
     

     
    Tab 3 - Notes
    Here, you can leave notes about an account. Pretty simple. Notes will appear as newest -> oldest. No screenshot, the screen is pretty simple.
     
    Tab 4 - Register DB
    Here, you can (right now) view the entries for the account in the acc_reg_num_db and acc_reg_string_db (coming soon) tables. In the near future, there will be a way for you to edit, add or delete the entries in this screen.
     
    Tab 5 - History
    All of the changes to an account will be logged. If you change the email, gender, group or other, it will be logged to a separate table. On this screen, you can view what was changed, and it's old and new value, who did it and when. For obvious reasons, nothing will be editable here. Here's a screenshot:
     

     
    Tab 6 - Characters
    Here is pretty simple. List of the characters on the account. The CharID is a link to the character page where you can do the same page. That page just isn't laid out correctly nor does it work. There is a spot for "Options" on the table, here you will be able to reset the character position with one click or possibly kick the character from the server.
     
    Some future thoughts about this details page:
    I'll need to include a tab for the account storage. I also need to include a place where the admin can reset the pincode or password, which will send a new random password/pincode to the user. This will be coming in a near future update.
     
     
     
    I'd love to hear your thoughts or suggestions if I've missed something. Right now the branch is merged back into master but master is not usable because the sql updates have not been completed. This will be coming very very soon.
  14. Upvote
    Senos got a reaction from luis.seifert in [Resolvido] Compilador   
    Não marque sua resposta como a melhor, marque quem tentou te ajudar, já que estás baixando um novo, fecharei o tópico e marcarei como Resolvido. 
  15. Upvote
    Senos reacted to luis.seifert in Download Grf   
    https://www.google.com.br/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=data.grf%20kro
  16. Upvote
    Senos reacted to Arkwright in [Vídeo Aula] Introdução a edição de mapas (BrowEdit)   
    Um vídeo mostrando um pouco como é a interface e algumas funções do BrowEdit.
     
    Este video foi feito com intuição de ajudar aos novatos no programa. No vídeo eu mostro um local de download que não é necessário usar ele. Abaixo está o link oficial do BrowEdit.
     
    Download BrowEdit: Download
     
    Estarei fazendo um passo à passo em texto também.
     
     
    Abraços.
  17. Upvote
    Senos reacted to ρixєℓ in Quest Tab (alt+u) null   
    db/quest_db.txt
    Verifique se tem essa linha:
     
    2208,0,0,0,0,0,0,0,"Bathroom Ghost"
    Se não estiver adicione.
     
    Agora na sua pasta data:
     
    data/questid2display.txt
    Verifique se tem:
     
     
     
     
    Se não estiver adicione.
     
    Informações sobre a quest:
     
     
     
     
    Isso deve resolver o problema
     
    Luis, os emuladores atuais mesmo que você remova a renovação muitas coisas da renovação não são desabilitadas, então te aconselho a buscar um emulador antigo que seja apenas pre-ré, vai ser bem melhor para você.
  18. Upvote
    Senos reacted to luis.seifert in [Resolvido] Problema com comando recovery   
    Obrigado pela ajuda pixel, 
    mas acabei resolvendo meu problema de uma outra forma, como era pra battleground eu usei o seguinte e funcionou:
     
     
    recovery BG, 3, $@red; recovery BG, 3, $@blue;  Agradeço a ajuda. 
  19. Upvote
    Senos reacted to Jguy in HAT - The Hercules Admin Tool!   
    Greetings all,
     
    Today, I am introducing a project I've been envisioning and working on for a couple of months that is finally in a usable and sharing state where multiple people could potentially contribute to the project.
     
    Introducing HAT!
     
    What is HAT?!
    HAT, or Hercules Admin Tool, is an administration tool for your RO server running the Hercules emulator. It is coded in PHP and Javascript and uses backends of CodeIgniter and Twitter Bootstrap to present information in a secure and meaningful way. Written by a server owner for a server owner. It is completely Open Source and hosted on Github, released under the Apache license.
     
    Another Control Panel? Too many! Stop making these damn things!
    Yes, another one. However, this one is different. A lot of Control Panels today are written as a CMS for your users as well as administration for your GM's. HAT is not designed to be accessed by your users, similar to the PHPMyAdmin tool. Your users will never know its there, therefore already enhancing security. However, contrary to PHPMyAdmin, you can more deeply control what your GM's have access to.
     
    Oooh, control? I'm a control freak, tell me more!
    HAT has a separate database of users for your GM's that have access to your panel. You're not relying on the login table of your server and their group level to provide access. Instead, a separate user database allows access, with a fully customisable set of permission settings on what those GM's can do and not do. 98 different permission sets are possible. So, you can have an in-game support GM with some limited powers in game, and they don't have to have access to your admin panel. Likewise, you can have a developer who only needs access to some server functions and your item/mob DB's without access to your server's accounts.
     
    What other features does it have?
    HAT gives you the ability to administrate just about everything on your Hercules server or its databases. It's a backend tool designed to be installed to the same server as your running Hercules server, giving you error tracking, server restarting and GM commands through a web interface without needing to login to SSH. With its fully responsive interface, its suitable for access via mobile, tablet or desktop without comprising access to information you need.
     
    So far, a somewhat complete list of the features already done:
    Account Management including: Changing account name, email, reset passwords/PINs, manage bans, account notes, account flags, manage account storage Character Management including: Change character name, stats, levels, jobs, items, flags Guild Management including: Change guild name, leader Server Management including: Viewing server console logs, start/stop/restart running Hercules server, reload item/mob db's, scripts and battleconf, viewing server performance data Admin Management including: Add/disable/delete GM's, assign/delete/change permission sets (groups)

    More features being added almost every week!
     
    How can I use it?
    Note that the panel is still in constant development and could be unstable. We would appreciate more testers and bug reports regarding the panel. While I try to write and test code that I know will work before pushing it to Github, sometimes I miss something or it doesn't work as expected in another environment. If you're willing to contribute by using and reporting bugs, you can find the panel to download here:
     
    https://github.com/jguy1987/HercAdminTool
     
    I found a bug! How do I report it to you?!
    You can use the Github issue tracker to report bugs: https://github.com/jguy1987/HercAdminTool/issues
     
    I want XYZ feature! Can you make it?
    Maybe. Use the Gitbhub issue tracker to give me the suggestion and I'll see if I can/want to add it: https://github.com/jguy1987/HercAdminTool/issues
     
    You lied! My panel completely destroyed my server!
    Take backups. As mentioned above, you're using something that is constantly in development. If you encounter a bug, please report it. If you encounter an issue that leads to the destruction of data, this is a beta product, and I'm sorry, but I cannot and will not be held responsible.
     
    What are the system and server requirements for running the HAT?!
     
    The following system I run my testing on, let me know if you have similar results with a system with different packages or such:
    * Linux, specifically Ubuntu 14.04. Windows or BSD at this moment is completely untested. I plan on hopefully testing this weekend.
    * apache2, version 3.4.7
    * php5, version 5.5.9
    * php5-mcrypt needs to be installed and enabled. You can do such by adding to your php.ini: `extension=mcrypt.so`.
    * php5-mysql extension. MySQL can be installed on a different machine if you so desire but you must have the php5 extension installed on the machine
    * apache needs to be configured to include the mod_rewrite extension. In addition, your per directory settings for apache configuration must allow "follow symlinks" and "AllowOverride all".
    * You can optimize Apache to use a bit less memory so that your Hercules server can expand if you do not anticipate many people using your panel by taking the following steps:
    - Install apache2-mpm-prefork.
    - Reduce the amount of clients your apache can serve and reduce the amount of servers it starts up in httpd.conf/apache2.conf.
     
    So....
    Github: https://github.com/jguy1987/HercAdminTool
    IRC: irc.rizon.net @ #hercadmintool - if you want to talk to me about it or submit features or poke me to do more work.
    Demo available at: http://hatdemo.jemstuff.com
    The demo can be access with username/password: admin/admin. You can do most things in the demo so feel free to play around. I know there's not much data there to experiment with, but feel free to play.
  20. Upvote
    Senos got a reaction from luis.seifert in [Ajuda]Duvida em relação a HackShields (ex: Harmony)   
    Harmony = piada hoje em dia, burlável e instável, fl
  21. Upvote
    Senos got a reaction from JulioCF in Algumas dúvidas   
    Você pode traduzir tudo dentro do jogo, tanto no código fonte que ficam as habilidades, quanto os scripts (npcs de falas) que ficam in-game. Tudo fica separado numa pasta, você pode pegar no Cronus as traduções e jogar sim pro Hercules, não copiando simplesmente e colando em cima do outro, mas sim colando dialogo por diálogo, pois podem ter partes desatualizadas no Cronus, e isso pode causar problemas futuros pra você (coisas desatualizadas/bugs, etc). 
  22. Upvote
    Senos got a reaction from Nidhogg in [Resolved] Is hercules support pre renewal?   
    Hi, yes, hercules support pre-renewal.
     
    -> https://github.com/HerculesWS/Hercules/blob/master/src/config/renewal.h, comment lines:
     
    #define RENEWAL#define RENEWAL_CAST#define RENEWAL_DROP#define RENEWAL_EXP#define RENEWAL_LVDMG#define RENEWAL_EDP#define RENEWAL_ASPD  
    And your emulator will become fully pre-renewal. 
    On https://github.com/HerculesWS/Hercules/tree/master/db/pre-re, you configure the database pre-re.
  23. Upvote
    Senos reacted to Rytech in Summer 2 Costume Job   
    This is a recent discovery so I don't know if its exclusive to jRO or not, but thats where I found this data at. Today I present to you yet another costume job I found and it shocked me to see this.
     
    Costume Class - Summer (Or Summer 2 if you wanna call it that)

     
    No your not seeing things. Its another summer outfit and a really good looking one too. Information
     
    Job ID - Tag and ID confirmed
    SUMMER2 = 30  
    OPTION Mask - Unknown, but its likely this since all costume outfits require one....
    *Edit* - This is confirmed to not exist. This outfit and future outfits use a status ID and a value to display. Check post below.
    OPTION_SUMMER2 = 0x20000000  
    Note: To the dev's, I don't have any data on the official mask but ill let you know once I get a confirm on it. Its gotta be this one since nothing else came out that would require one after the Oktoberfest one was added.
     
    Summer 2 Sprite Files
    Summer2 Sprites.rar
     
    The patch file the sprites were found in is dated July 22, 2014 which means we likely need a client of that date or higher to see it in game. Enjoy.
  24. Upvote
    Senos got a reaction from Niunzin in Script Intermediário (Aula 4)   
    Script Intermediário! - 4
    Lista de Aulas:
    Aula 1: http://herc.ws/board/topic/199-script-intermedi%C3%A1rio-aula-1/
    Aula 2: http://herc.ws/board/topic/200-script-intermedi%C3%A1rio-aula-2/ Aula 3: http://herc.ws/board/topic/201-script-intermedi%C3%A1rio-aula-3/ Aula 4: http://herc.ws/board/topic/203-script-intermedi%C3%A1rio-aula-4/ Aula 5: http://herc.ws/board/topic/213-script-intermedi%C3%A1rio-aula-5/ Aula 6: http://herc.ws/board/topic/228-queries-sql-aula-6/ Aula 7: http://herc.ws/board/topic/239-script-intermedi%C3%A1rio-aula-7/   Bom, como já estou no processo de criações de aulas de script, começarei a ensinar sobre setd's e getd's, na qual muitos acham comandos super difíceis de entender, deixarei bem claro, extremamente fáceis, o manuseio dos comandos são simples, passam a ser complexos quanto a códigos grandes, porém nada que uma boa estudada nos ajude a compreender cada um dos dois.
     
    Primeiro assunto da aula:
    - Setd e Getd
     
    Sintaxe do comando Setd: 
    setd "<nome da variável>",<valor>;  
    O comando setd funciona igualzinho ao comando set, a diferença é que o nome da variável é identificada com string.   Exemplo: set $var$, "Poring"; setd "$var$", "Poporing";mes $var$; // Aparecerá Poporing setd "$" + $var$ + "123$", "Poporing é legal";mes $Poporing123$; // Vai mostrar Poporing é legal  
    Sintaxe do comando Getd: 
    getd("<nome da variável>");   
    Retorna uma referência da variável (setd), vejamos: set getd("$variavel_referencia"), 1;set @i, getd($digimon);  
    Esse exemplo criará uma variável de acordo com o nome do jogador atachado: set "@var" + strcharinfo(0), 135;   Se o nome do jogador for "Mijo" então o nome da variável será @varmijo, certo?   Para checar se o jogador tem uma variável como essa, use o getd, veja: if (getd("@var"+strcharinfo(0)) > 0) { set Zeny, Zeny + getd("@var"+strcharinfo(0)); }end;   Dará o Zeny de acordo com o valor da variável acima, no caso, 135.   Um outro exemplo:  OnHour22:for (set @i,0; @i <= getarraysize($users_on); set @i,@i+1) { setd $users_on[@i]+"_var, 1;}   Onde $users_on é definido quando o jogador loga com o getcharid(0). A variável seria: 00000000_var   Ou seja, poderiamos saber o valor que um char específico tem nessa variável: if (00000000_var == 1) mes "O jogador de id 00000000 tem a var como 1";  
    Se fosse um jogador atachado com o strcharinfo como no exemplo mais acima, dariamos para fazer o if de outra maneira, mas estamos falando de ID da conta, e não de nome de char, algo totalmente diferente.   Mais continuando no if feito acima, poderiamos definir outro valor para ela: set 00000000_var,1;   Daria no mesmo que utilizar o Getd ou Setd.   Iremos pegar essa variável quando o jogador logar novamente: OnPcLoginEvent:if(getd(getcharid(0)+"_var") == 1)) //Quer dizer que o jogador estava on na hora =){ dispbottom "Parabéns!"; getitem 501,1; setd $users_on[@i]+"_var,0;}end;   É simples, setd define uma variável customizada e getd retorna o valor dessa variável customizada.   Simples, e novamente, um abraço!   Wolf.
  25. Upvote
    Senos got a reaction from Like it~* in Script Intermediário (Aula 5)   
    Script Intermediário! - 5
    Lista de Aulas:
    Aula 1: http://herc.ws/board/topic/199-script-intermedi%C3%A1rio-aula-1/
    Aula 2: http://herc.ws/board/topic/200-script-intermedi%C3%A1rio-aula-2/ Aula 3: http://herc.ws/board/topic/201-script-intermedi%C3%A1rio-aula-3/ Aula 4: http://herc.ws/board/topic/203-script-intermedi%C3%A1rio-aula-4/ Aula 5: http://herc.ws/board/topic/213-script-intermedi%C3%A1rio-aula-5/ Aula 6: http://herc.ws/board/topic/228-queries-sql-aula-6/ Aula 7: http://herc.ws/board/topic/239-script-intermedi%C3%A1rio-aula-7/   Bom, nesta aula estarei ensinando sobre o comando attachrid e detachrid, são comandos mais complexos, porém entendíveis para aqueles que tem atenção na aula e uma boa noção já de script, que já manipulam suas lógicas para fazer da maneira que acha melhor e correto. Irei iniciar então o assunto da aula, e nela criar exemplos, explicações, e explicar a sintaxe do comando.

    Primeiro assunto da aula:
    - Attachrid

    Sintaxe do comando:attachrid(<ID Da Conta>);  
    A função básica desta sintaxe é anexar o RID do jogador ao NPC (script), ou seja, você pode forçar o jogador a executar as funções do npc.

    Vejamos um exemplo:
    - script Olá -1,{ OnOla: attachrid(2000001); mes "Olá"; mes "Você foi forçado a ver o olá do script! ^~"; close;}
    Agora caso aplicarmos desta forma, teremos um problema. O jogador pode estar offline, então poderá gerar aquele erro no map-server "Player not attached (Jogador não atachado, não encontrado)". Para resolvermos esse problema, teremos que fazer uma verificação, veja:
    - script Olá -1,{ OnOla: if (!attachrid(getcharid(3,"Nick_do_Jogador")) { // O jogador está offline, logo já evitaremos o erro // do player not attached. end; } //Caso o jogador esteja online: mes "Olá"; mes "Você foi forçado a ver o olá do script! ^~"; close;}  
    O comando attachrid retorna 0 se o jogador estiver offline e 1 para online. Pegamos no snippet feito, o account_id do jogador pelo nome/nick dele.

    Esse comando é de grande utilidade pois podemos criar sistemas com tempos, no qual podemos anexar o jogador ao tempo com seu limite. Podemos criar loops em função do attachrid para anúncios, verificar se o jogador está online não, tudo isso ligado a apenas um jogador (o jogador anexado). Pegar o nome de quem matou ou morreu, aplicar um comando neste unico jogador, etc...

    Alguns exemplos com attachrid:
     
    1. Primeiro exemplo:
    OnPCDieEvent: set .BaseLevel, BaseLevel; attachrid(killedrid); // Verifica todos os jogadores que matou o outro [Killerdrid = variável pronta para jogadores que matam]. set .exp, (100*.BaseLevel/BaseLevel); // No caso isso dará um bônus baseado no BaseLevel do cara multiplicado 100x. getexp .exp, .exp;end;  
    Dará experiência a um jogador que matou o outro.
     
    2. Segundo exemplo:
    mes "Gostaria de participar do evento?"; if (select("Sim:Não")==2) close; next; set $@rids_salvos[.i], getcharid(3); set .i, .i +1; warp "",0,0; end;  
    Isso salvará o rid do jogador no script, para que possa utilizar posteriormente, caso queira limpar o rid salvo, só fazer:
    OnPcLogouEvent: set $@rids_salvos[.i], 0;end;  
    Bom, aí no caso quando o jogador deslogar a variável $@rids_salvos será zerada, e não terá mais valor. Mas aí vai de acordo como você quiser, eu coloquei para quando o jogador deslogar, você bota opcionalmente como você quiser, foi apenas um exemplo.
     
     
    Segundo assunto:
    - Detachrid
     
    Detachrid faz o contrário do attachrid, esse dexanexa o jogador do script. Então comandos para jogadores que necessitam de attachs, não passam mais a funcionar. Como forçar o jogador a falar com o script, ou por exemplo você atachar ele ao script, e no final desanexá-lo, você terá que anexá-lo denovo para usar funções que anexam ele ao script, caso queira criar funções dos exemplos que eu fiz.
      Não tenho muito oque dizer sobre este comando, é básicamente isso, e sintaxe dele é simplesmente: detachrid;  
    Bom, é simplesmente isso, um abraço!
    Wolf.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.