Jump to content

Mihael

Members
  • Content Count

    26
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Mihael


  1. @AnnieRuru I tried to work with more unsuccessful consumables

    where am i going wrong?

     

    Item:

    {
    	Id: 32247
    	AegisName: "Dark_Elf_Potion"
    	Name: "Dark Elf Potion"
    	Type: "IT_USABLE"
    	Weight: 100
    	BuyingStore: true
    	Trade: {
    		nodrop: true
    		noselltonpc: true
    		nomail: true
    		noauction: true
    	}
    	Script: <" callfunc "Dark_Elf"; ">
    },

    Function:

    function	script	Dark_Elf	{
    
    @a ^= 1;
    recalculatestat(); // if player under a dialog, MUST use close2; then only recalculate
    
    OnPCStatCalcEvent:
    	if ( @a )
    		bonus bDex, 10;
    		bonus bInt, 20;
    		bonus bAgi, 5;
    		bonus bMatk, 100;
    	end;
    
    }

     


  2. On 4/11/2019 at 7:02 AM, AnnieRuru said:

    not working

    I equip a 'Secular_Mission' ItemID 2127, and expecting it to list all as 25,

    prontera,155,185,5 script kjhdsfks 1_F_MARIA,{ for ( .@i = RC_Formless; .@i <= RC_Player; ++.@i ) dispbottom race_resist(.@i) +""; end; }

    
    prontera,155,185,5	script	kjhdsfks	1_F_MARIA,{
    	for ( .@i = RC_Formless; .@i <= RC_Player; ++.@i )
    		dispbottom race_resist(.@i) +"";
    	end;
    }

    but it display all in 0 instead

    a few places are wrong in your plugin, but are actually correct in wolfie's version

     

    1. the constant case-sensitivity
    wolfie's constants are correct, but yours are wrong
    should follow the constants.md file, not the source file
    https://github.com/HerculesWS/Hercules/blob/stable/doc/constants.md#elements

    ### Elements - `Ele_Neutral`: 0 - `Ele_Water`: 1 - `Ele_Earth`: 2 - `Ele_Fire`: 3 - `Ele_Wind`: 4 - `Ele_Poison`: 5 - `Ele_Holy`: 6 - `Ele_Dark`: 7 - `Ele_Ghost`: 8 - `Ele_Undead`: 9 - `Ele_All`: 255 ### Races - `RC_Formless`: 0 - `RC_Undead`: 1 - `RC_Brute`: 2 - `RC_Plant`: 3 - `RC_Insect`: 4 - `RC_Fish`: 5 - `RC_Demon`: 6 - `RC_DemiHuman`: 7 - `RC_Angel`: 8 - `RC_Dragon`: 9 - `RC_Player`: 10 - `RC_Boss`: 11 - `RC_NonBoss`: 12 - `RC_NonDemiHuman`: 14 - `RC_NonPlayer`: 15 - `RC_DemiPlayer`: 16 - `RC_NonDemiPlayer`: 17 - `RC_All`: 255

    
    ### Elements
    
    - `Ele_Neutral`: 0
    - `Ele_Water`: 1
    - `Ele_Earth`: 2
    - `Ele_Fire`: 3
    - `Ele_Wind`: 4
    - `Ele_Poison`: 5
    - `Ele_Holy`: 6
    - `Ele_Dark`: 7
    - `Ele_Ghost`: 8
    - `Ele_Undead`: 9
    - `Ele_All`: 255
    
    ### Races
    
    - `RC_Formless`: 0
    - `RC_Undead`: 1
    - `RC_Brute`: 2
    - `RC_Plant`: 3
    - `RC_Insect`: 4
    - `RC_Fish`: 5
    - `RC_Demon`: 6
    - `RC_DemiHuman`: 7
    - `RC_Angel`: 8
    - `RC_Dragon`: 9
    - `RC_Player`: 10
    - `RC_Boss`: 11
    - `RC_NonBoss`: 12
    - `RC_NonDemiHuman`: 14
    - `RC_NonPlayer`: 15
    - `RC_DemiPlayer`: 16
    - `RC_NonDemiPlayer`: 17
    - `RC_All`: 255

     

    2. your plugin stop at RC_Player, which is 10, but I tested with 'Secular_Mission' which has
    Script: <" bonus2 bSubRace, RC_All, 25; ">
    RC_ALL is 255 ... lol

    Yes, bug..

    239fLRT.png


  3. On 6/14/2019 at 10:40 PM, Bringer said:

    @AnnieRuru

    latest version

    1>------ Build started: Project: clone, Configuration: Debug Win32 ------ 1>clone.c 1>c:\hercules\src\plugins\clone.c(441): error C2079: 'packet' uses undefined struct 'packet_reqnameall_ack' 1>c:\hercules\src\plugins\clone.c(442): error C2224: left of '.packet_id' must have struct/union type 1>c:\hercules\src\plugins\clone.c(443): error C2224: left of '.gid' must have struct/union type 1>c:\hercules\src\plugins\clone.c(444): error C2224: left of '.name' must have struct/union type 1>c:\hercules\src\plugins\clone.c(444): warning C4022: 'memcpy': pointer mismatch for actual parameter 2 1>c:\hercules\src\plugins\clone.c(444): error C2198: 'memcpy': too few arguments for call 1>Done building project "clone.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 7 up-to-date, 0 skipped ==========

    
    1>------ Build started: Project: clone, Configuration: Debug Win32 ------
    1>clone.c
    1>c:\hercules\src\plugins\clone.c(441): error C2079: 'packet' uses undefined struct 'packet_reqnameall_ack'
    1>c:\hercules\src\plugins\clone.c(442): error C2224: left of '.packet_id' must have struct/union type
    1>c:\hercules\src\plugins\clone.c(443): error C2224: left of '.gid' must have struct/union type
    1>c:\hercules\src\plugins\clone.c(444): error C2224: left of '.name' must have struct/union type
    1>c:\hercules\src\plugins\clone.c(444): warning C4022: 'memcpy': pointer mismatch for actual parameter 2
    1>c:\hercules\src\plugins\clone.c(444): error C2198: 'memcpy': too few arguments for call
    1>Done building project "clone.vcxproj" -- FAILED.
    ========== Build: 0 succeeded, 1 failed, 7 up-to-date, 0 skipped ==========


     

    Remove this.

    			else {
    				struct packet_reqnameall_ack packet = { 0 };
    				packet.packet_id = reqName;
    				packet.gid = md->bl.id;
    				memcpy( packet.name, md->name, NAME_LENGTH );
    				clif->send( &packet, sizeof(struct packet_reqname_ack), *bl, AREA );
    				hookStop();
    				return;
    			}

    and recompile you emulator.


  4. 5 minutes ago, arthurcunha1991 said:
    
    it working only that every time I change map or @go 1 or @go 2 the status he buga there I have to unequip and equip again

    I think you would have to do a script out, which checks if the player was using your equipment to apply the buff.

    if you apply the buff only inside the script of the equipment, it will only work when the player equips the item.

     


  5. 18 hours ago, arthurcunha1991 said:
    
    I want to put a HAT, that it buff and Status Until level 80 dps it does not give anything else, but every time I put a status it buga

       

     
    
    Is there no way to let permanent skill equal vigor? That's when X level disappears.

    EX: Ahura Madzar
    OnEquipScript: <" sc_start4 SC_ENDURE,60000,10,0,0,1; ">
        OnUnequipScript: <" sc_end SC_ENDURE; ">

     

    my script item_db2
        Script: <"
        OnEquipScript: if(BaseLevel<80) {
            sc_start SC_INC_AGI,-1,10; }">
        OnUnequipScript: <" sc_end SC_INC_AGI; ">
    },

    bug.png

    Do you want to give the buff whenever the player level? or permanently after level 80?


  6. 19 hours ago, Yoh Asakura said:

    Hello,

    For some reason the stats option don't show up when i make a char. Does anybody know how to fix this? (Using old hercules version). 

    Antes de condenarmos o emulador por ser antigo, tente algumas coisas por padrão:

    • Verificar se a sua data.grf está atualizada.
    • Verificar a versão da packetver do seu emulador antigo, as vezes ele não suporta o client que está utilizando, ou possui alguma atualização que foi desenvolvida para sanar o seu problema nas versões atuais do emulador e você nem sabe.
    • Verificar se o seu cliente de jogo possui todos os arquivos da character_create dentro da pasta.

    Chuto que possa ser o seu cliente do jogo,

    Se tudo isso acima não der em nada tente baixar um novo, com outra packetver para testar. Por que se você testar e ver que acontece o mesmo problema já irá saber que é seu emulador, ai no caso eu recomendaria você baixar a última versão do Herc no git.


  7. 20 hours ago, Dastgir said:

    I try use but... full bugs :/

    Compile (Ok)

    UEgmNK0.png

    Npc's (FULL ERROR)

    TPVfPfv.png

    I download last version of herc emulator.


  8. 20 minutes ago, Dastgir said:

    For protecting clientinfo, it's useless.

    Why you would want to protect clientinfo.xml?

    My fear is actually stealing IP from my host in clientinfo to do DDoS.

    27 minutes ago, Vy Low said:

    its useless if you only want to protect your clientinfo.xml by encrypting your grf, ip will still be visible using some software like wireshark.

    And how can I protect my IP in Clientinfo?


  9. Hi guys, I encrypted my data.grf with the Grf Editor only that my hexed stopped reading the clientinfo.xml file.

    can anybody help me?

    I would like to protect my clientinfo.xml file :sob:

×
×
  • Create New...

Important Information

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