Jump to content

cder

Members
  • Posts

    96
  • Joined

  • Last visited

Posts posted by cder

  1. On 30/04/2020 at 08:30, Naruto said:

    Hmm, é um pouco diferente de Hércules (eu nunca usei essas tags em Rathena, mas ...)

    
    

    Então você tem sua lista no map.h

      Revelar conteúdo oculto

    /**
     * Check if map is GVG maps exclusion for item, skill, and status restriction check (regardless of agit_flag status)
     * @param mapdata: Map Data
     * @return True on success or false otherwise
     * @author Cydh
     */
    inline bool mapdata_flag_gvg2_no_te(struct map_data *mapdata) {
        if (mapdata == nullptr)
            return false;

        if (mapdata->flag[MF_GVG] || mapdata->flag[MF_GVG_CASTLE])
            return true;

        return false;
    }

    /// Backwards compatibility
    inline bool map_flag_vs(int16 m) {
        if (m < 0)
            return false;

        struct map_data *mapdata = &map[m];

        return mapdata_flag_vs(mapdata);
    }

    inline bool map_flag_vs2(int16 m) {
        if (m < 0)
            return false;

        struct map_data *mapdata = &map[m];

        return mapdata_flag_vs2(mapdata);
    }

    inline bool map_flag_gvg(int16 m) {
        if (m < 0)
            return false;

        struct map_data *mapdata = &map[m];

        return mapdata_flag_gvg(mapdata);
    }

    inline bool map_flag_gvg2(int16 m) {
        if (m < 0)
            return false;

        struct map_data *mapdata = &map[m];

        return mapdata_flag_gvg2(mapdata);
    }

    inline bool map_flag_ks(int16 m) {
        if (m < 0)
            return false;

        struct map_data *mapdata = &map[m];

        return mapdata_flag_ks(mapdata);
    }

    inline bool map_flag_gvg2_te(int16 m) {
        if (m < 0)
            return false;

        struct map_data *mapdata = &map[m];

        return mapdata_flag_gvg2_te(mapdata);
    }

    inline bool map_flag_gvg2_no_te(int16 m) {
        if (m < 0)
            return false;

        struct map_data *mapdata = &map[m];

        return mapdata_flag_gvg2_no_te(mapdata);
    }

    e seus mapflags 

      Revelar conteúdo oculto

        MF_INVALID = -1,
        MF_MIN = 0,
        MF_NOMEMO = 0,
        MF_NOTELEPORT,
        MF_NOSAVE,
        MF_NOBRANCH,
        MF_NOPENALTY,
        MF_NOZENYPENALTY,
        MF_PVP,
        MF_PVP_NOPARTY,
        MF_PVP_NOGUILD,
        MF_GVG,
        MF_GVG_NOPARTY, // 10
        MF_NOTRADE,
        MF_NOSKILL,
        MF_NOWARP,
        MF_PARTYLOCK,
        MF_NOICEWALL,
        MF_SNOW,
        MF_FOG,
        MF_SAKURA,
        MF_LEAVES,
        // MF_RAIN, // 20 - Não está mais disponível, mantendo aqui apenas no caso de voltar algum dia. [Ind]
        // 21 livres
        MF_NOGO = 22,
        MF_CLOUDS,
        MF_CLOUDS2,
        MF_FIREWORKS,
        MF_GVG_CASTLE,
        MF_GVG_DUNGEON,
        MF_NIGHTENABLED,
        MF_NOBASEEXP,
        MF_NOJOBEXP, // 30
        MF_NOMOBLOOT,
        MF_NOMVPLOOT,
        MF_NORETURN,
        MF_NOWARPTO,
        MF_PVP_NIGHTMAREDROP,
        MF_RESTRICTED,
        MF_NOCOMMAND,
        MF_NODROP,
        MF_JEXP,
        MF_BEXP, // 40
        MF_NOVENDING,
        MF_LOADEVENT,
        MF_NOCHAT,
        MF_NOEXPPENALTY,
        MF_GUILDLOCK,
        MF_TOWN,
        MF_AUTOTRADE,
        MF_ALLOWKS,
        MF_MONSTER_NOTELEPORT,
        MF_PVP_NOCALCRANK, // 50
        MF_BATTLEGROUND,
        MF_RESET,
        MF_NOMAPCHANNELAUTOJOIN,
        MF_NOUSECART,
        MF_NOITEMCONSUMPTION,
        MF_NOSUNMOONSTARMIRACLE,
        MF_NOMINEEFFECT,
        MF_NOLOCKON,
        MF_NOTOMB,
        MF_SKILL_DAMAGE, // 60
        MF_NOCOSTUME,
        MF_GVG_TE_CASTLE,
        MF_GVG_TE,
        MF_HIDEMOBHPBAR,
        MF_NOLOOT,
        MF_NOEXP,
        MF_PRIVATEAIRSHIP_SOURCE,
        MF_PRIVATEAIRSHIP_DESTINATION,
        MF_SKILL_DURATION,
        MF_MAX

    usando o formato mencionado no punho extremo, você pode encaixar qualquer um deles para limitar o que deseja 

    Nice, Thx.... close topic

  2. I don't understand you well this time @Naruto, however I know how to deal with "skill_damage_db.txt", but what I want to do is put an "if (bg)" in the "src" skills,

    Example 1: I want to change the time that the skill lasts "Install Trap" to last less time in the bg, and more time on normal maps, understand?

    Example 2: Or the percentage that the ability to throw potion will heal outside the bg and on maps ......

  3. 1 hour ago, kodkodkub said:

    If you're talking about "Skill Damage"
    skill_damage_db.txt is your if else or whatever condition
    it made for you to adjust the damage easily, you dont need to edit src which need recompile
    just @reloadskilldb

    
    Ex. Sonic Blow 100% Damage
    
    skill_damage_db.txt : set -50% in GVG
    *Result* : Sonic Blow 50% damage in GVG
    
    so it's working like
    
    if(map == GVG)
    Sonic Blow Damage Ratio = Sonic Blow Damage Ratio / 2
    *Result* : Sonic Blow 50% damage in GVG

    same result but more simple

    I already understood this, however it is limited to what I want so it may be that I need to change it in the "src"

     

    1 hour ago, Naruto said:

    Maybe but i dont work here

     

    Could make an invisible item bonus , pretty sure theres one for gvg damage specifically 

    Can I use "if (bg)" instead of "if (gvg)", because in skill_damage_db, you have this option ...

  4. 3 hours ago, kodkodkub said:

    you can adjust damage at import\skill_damage_db.txt

     

    2 hours ago, Naruto said:

    just gotta add a 

    if (gvg) map condition to the top of the src  , whereever your trying to modify

     

    theres a bunch already 

    Congratulations to the two answers, at first I was looking for something similar to the "Naruto" answer, I think it can be edited more specifically, but the "skill_damage_db.txt" mode is very simple, but I want to have the way that the "Naruto" posted, I didn't find any "if (gvg)" in my "src" documents, but is it possible to put in one of the skills of "battle.cpp" without conflict in the compilation and is this mode really functional ?? @Naruto

  5. 21 minutes ago, Emistry said:

    experimentar

    
    
    
    

     

     

    MY DB:

    Spoiler

    // Conquest Battleground
    20400,BG_S_EMPEL_1,Guardian Stone,Guardian Stone,90,120000,0,0,0,0,1,2,40,50,1,1,1,1,1,1,0,0,0,0,20,0x170000,300,1288,288,384,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
    20401,BG_S_EMPEL_2,Guardian Stone,Guardian Stone,90,120000,0,0,0,0,1,2,40,50,1,1,1,1,1,1,0,0,0,0,20,0x170000,300,1288,288,384,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
    20402,BG_EMPELIUM,Emperium,Emperium,90,68430,0,0,0,1,60,71,40,50,1,17,80,50,26,20,10,12,0,8,26,0x6200000,300,1288,288,384,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

    MY MOB_AVAIL:

    Spoiler

    #  - Mob: BG_S_EMPEL_1
    #    Sprite: S_EMPEL_1
    #  - Mob: BG_S_EMPEL_2
    #    Sprite: S_EMPEL_2
    #  - Mob: BG_EMPELIUM
    #    Sprite: EMPELIUM

    I use @monster 20401 and the poring appears that cannot attack ... T.T

  6. 3 minutes ago, Emistry said:

    conforme mencionado, qualquer coisa que acima do limite de ID seja mostrada como poring.

    desde que você atualizou o rathena para usar o mob_avail.yml, você não tem escolha a não ser adaptá-lo ao mob_avail.yml.

     

    but how do I use this to show the emperium image ?? Do you know ?, I tried but I didn't succeed

  7. @Emistry

    i think i can't understand him properly and neither can you understand me, i'll be more specific, i don't know if you've tried using @EasyCore's Extended BG 2.0, inside the "DB" folder he put on github, contains mob_avail. txt, and uses monster IDs instead of "NAMES", as mob_avail.yml does, so what happens is the following, inside his "NPC" folder, contains bg_conquest.txt, and within that invokes the monster "Emperium ", but this Emperium is not the Standard Emperium of ragnarok, it was created by EasyCore at DB, with ID" 20402 ", but when I enter bg, his sprite is a" Poring "instead of" Emperium ", and you don’t even want to attack it because mine is not mob_avail.txt that serves as ID, but mob_avail.yml

     

     

     

  8. at first I thought it would be a mistake, but I researched and read so many things and accumulated so many extresses for nothing I think ...

    when you log into an account and click on vote for points, this warning appears: No voting sites found

    I downloaded another addon and another warning appears now ...


     

    Vote Heading
    Vote Notice
    NoVotingSiteYet2

     

    I checked mytheme / voteforpoints / index.php
    and see that "NoVotingSiteYet2" appears when no voting site is attached, can someone help me with that?

  9. On 3/25/2020 at 3:40 AM, Foob said:

    This is an old post.

    If you're having problem with captacha, make sure you have the keys installed on your application.php under config folder. You should have 2 keys, public and private.

    For more info, search google recaptcha -> admin console.

    can be more specific ?

    right, there are two things I see related to this in application.php

    Spoiler

    'UseLoginCaptcha'            => false,                    // Use CAPTCHA image for account logins. (Requires GD2/FreeType2)
    'EnableReCaptcha'            => false,                    // Enables the use of reCAPTCHA instead of Flux's native GD2 library (http://www.google.com/recaptcha)

    already set to true, but when I put the security code image it disappears '-'

  10. 7 minutes ago, Patskie said:
    
    OnClock0000:
    	addrid(0);
    	set newday, newday + 1; 
    	end;

    You can use addrid. 

    
    *addrid(<type>{,<flag>{,<parameters>}});
    
    This command will attach other RIDs to the current script without detaching the
    invoking RID. It returns 1 if successful and 0 upon failure.
    
    <type> determines what RIDs are attached:
     0: All players in the server.
     1: All players in the map of the invoking player, or the invoking NPC if no player is attached.
     2: Party members of a specified party ID.
        [ Parameters: <party id> ]
     3: Guild members of a specified guild ID.
        [ Parameters: <guild id> ]
     4: All players in a specified area of the map of the invoking player (or NPC).
        [ Parameters: <x0>,<y0>,<x1>,<y1> ]
     5: All players in the map.
        [ Parameters: "<map name>" ]
     Account ID: If type is Account ID, attach the specified account ID.
    
    <flag> can prevent certain players from being attached:
     0: Players are always attached. (default)
     1: Players currently running another script will not be attached.
    
       
    

     

    Oops, how beautiful, I can't test it now but I am very grateful for that, thanks ...

     

  11. On 3/24/2020 at 5:19 AM, Amir Azman said:

    remove all cp_ tables... then rename your server name in config/servers.php OR just remove all the FluxCP files and reinstall again.

     

    Spoiler

    Critical Error

    An error was encountered during the lifetime of the application.

    This could be due to a variety of problems, such as a bug in the application.

    However, normally it is caused by misconfiguration.

    Exception Details

    Error: Flux_Error

    Message: Critical MySQL error in Installer/Updater: Table 'cloudro.cp_itemshop' doesn't exist

    File: C:\wamp64\www\cp\lib\Flux\Installer\Schema.php:131

    File Line Function/Method
    C:\wamp64\www\cp\lib\Flux\Installer\Schema.php 155 Flux_Installer_Schema::install()
    C:\wamp64\www\cp\lib\Flux\Installer\MainServer.php 52 Flux_Installer_Schema::update()
    C:\wamp64\www\cp\modules\install\index.php 83 Flux_Installer_MainServer::updateAll()
    C:\wamp64\www\cp\lib\Flux\Template.php 375 include()
    C:\wamp64\www\cp\lib\Flux\Dispatcher.php 170 Flux_Template::render()
    C:\wamp64\www\cp\index.php 169 Flux_Dispatcher::dispatch()

    Exception Trace As String

    
    #0 C:\wamp64\www\cp\lib\Flux\Installer\Schema.php(155): Flux_Installer_Schema->install(20081109093448)
    #1 C:\wamp64\www\cp\lib\Flux\Installer\MainServer.php(52): Flux_Installer_Schema->update()
    #2 C:\wamp64\www\cp\modules\install\index.php(83): Flux_Installer_MainServer->updateAll()
    #3 C:\wamp64\www\cp\lib\Flux\Template.php(375): include('C:\\wamp64\\www\\c...')
    #4 C:\wamp64\www\cp\lib\Flux\Dispatcher.php(170): Flux_Template->render()
    #5 C:\wamp64\www\cp\index.php(169): Flux_Dispatcher->dispatch(Array)
    #6 {main}
    Oops, I had already done this, I simply extract a new folder with the updated fluxcp that I downloaded,
    I deleted my database / databaselog and users in phpmyadmin,
    I even put it under another name, and I noticed that now it is giving another error, and ta giving the same error even to put the outdated flowcp that I already used ... inside the spoiler is the error ...

     

    Thanks for everyone's attention, I just gave up or installed the wamp and installed it again to run it again ...

  12. So, I got to pay attention to this because I had already installed an outdated flow, I got to eliminate all "cp" tables inside localhost, but now I don't know what to do anymore ...

    20 hours ago, BeWan said:

    this is the error message:

    Duplicate column name 'use_existing'

    check your cp tables

    So, I got to pay attention to this because I had already installed an outdated flow, I got to eliminate all "cp" tables inside localhost, but now I don't know what to do anymore ...

  13. I'm having a problem installing eathena's fluxcp, does anyone know the solution?

    Critical Error

    An error was encountered during the lifetime of the application.

    This could be due to a variety of problems, such as a bug in the application.

    However, normally it is caused by misconfiguration.

    Exception Details

    Error: Flux_Error

    Message: Critical MySQL error in Installer/Updater: Duplicate column name 'use_existing'

    File: C:\wamp64\www\cp2\lib\Flux\Installer\Schema.php:131

    File Line Function/Method
    C:\wamp64\www\cp2\lib\Flux\Installer\Schema.php 155 Flux_Installer_Schema::install()
    C:\wamp64\www\cp2\lib\Flux\Installer\MainServer.php 52 Flux_Installer_Schema::update()
    C:\wamp64\www\cp2\modules\install\index.php 83 Flux_Installer_MainServer::updateAll()
    C:\wamp64\www\cp2\lib\Flux\Template.php 375 include()
    C:\wamp64\www\cp2\lib\Flux\Dispatcher.php 170 Flux_Template::render()
    C:\wamp64\www\cp2\index.php 169 Flux_Dispatcher::dispatch()

    Exception Trace As String

    #0 C:\wamp64\www\cp2\lib\Flux\Installer\Schema.php(155): Flux_Installer_Schema->install(20081109093448)
    #1 C:\wamp64\www\cp2\lib\Flux\Installer\MainServer.php(52): Flux_Installer_Schema->update()
    #2 C:\wamp64\www\cp2\modules\install\index.php(83): Flux_Installer_MainServer->updateAll()
    #3 C:\wamp64\www\cp2\lib\Flux\Template.php(375): include('C:\\wamp64\\www\\c...')
    #4 C:\wamp64\www\cp2\lib\Flux\Dispatcher.php(170): Flux_Template->render()
    #5 C:\wamp64\www\cp2\index.php(169): Flux_Dispatcher->dispatch(Array)
    #6 {main}
  14. 5 minutes ago, Mabuhay said:

    You cannot do player bound variables if you dont attach players. It is better to check for the current day using gettime then update every time player uses that npc. 

    More examples are best found in annieruru's blogspot. 

    Thx, please can you send the link?

  15. 17 minutes ago, Mabuhay said:

    Use global variable. Example: $var or read script command in doc folder 

    I know about it, I did just one example up there, but what I want to assign is not global, but for each player ..., you know ?

×
×
  • Create New...