Jump to content

hendra814

Members
  • Posts

    1191
  • Joined

  • Last visited

  • Days Won

    17

Posts posted by hendra814

  1. 20 hours ago, koisein said:

    hello all i need help, i try to set the server for 1st time but following the tutorial but i got error when build with visual code 2017

     

    error:

      Hide contents

    Image

    i have installed what needed from guide in forum but still i got error on sdk 10:

      Hide contents

    Image

     

    tutorial i follow from:

     

     

     i already solved same issue as you using visual studio 2022.

    so uninstall your 2017 visual studio and install visual studio 2022.

  2. 7 minutes ago, joyy95 said:

    Not the problem, that is myself edit for easy for me setting.. but right now even the game finish 1 round it never continue for second round game... 

    to enable second event remove try remove script for normal player

    and change

    if    (getgmlevel() >= 1)    { 

    into

    if    (getgmlevel() == 0)    { 
  3. 4 hours ago, joyy95 said:

    I mean it never turn next round not the game start...... 

    alredy check the script, the first and second event must be start by GM  ID

    first event must start by GM above level 90

    if    (getgmlevel() > 90)    {
    
    mes .name$;
    mes "Welcome to the ^ff0000Stop the Clock^000000.";
    next;
    switch(select("Information:Price:Leave:Start Event:Enter Price"))    {
        
        case 1:
        mes .name$;
        mes "^ff0000Stop the Clock^000000";
        mes "is a game where you need to";
        mes "click on me exactly when the counter reached 0.";
        next;
        mes .name$;
        mes "It counts down from ^0080001000^000000 to ^ff00000^000000.";
        next;
        mes .name$;
        mes "To win, you need to have the ^ff0000closest value to 0^000000 but at least ^ff0000below 50^000000.";
        next;
        mes .name$;
        mes "The winner will recieve a prize.";
        mes "^ff0000Don't forget to talk to me after the Event is over,";
        mes "to reset your counter to take part on the next event.^000000";
        close;
    
        case 2:
        mes .name$;
        mes "The Price is:";
        mes "^ff0000"+$prize_amount+" "+getitemname($prize_id)+"^000000";
        close;
    
        case 3:
        close;
    
        case 4:
        sleep2 100;
        close2;
        goto l_start;
        end;
    
        case 5:
        mes .name$;
        mes "Enter the item id of the prize:";
        input $prize_id;
        next;
        mes .name$;
        mes "Enter the amount if items the winner will recieve:";
        input $prize_amount;
        next;
        mes .name$;
        mes "The price id is: ^ff0000"+$prize_id+"^000000";
        mes "^008000("+getitemname($prize_id)+")^000000.";
        mes "The amount is: ^ff0000"+$prize_amount+"^000000.";
        close;
        }
    }

    second event must start by GM above or equal level 1
     

    if    (getgmlevel() >= 1)    { 
    
    mes .name$;
    mes "Welcome to the ^ff0000Stop the Clock^000000.";
    next;
    switch(select("Information:Price:Leave:Start Event"))    {
        
        case 1:
        mes .name$;
        mes "^ff0000Stop the Clock^000000";
        mes "is a game where you need to";
        mes "click on me exactly when the counter reached 0.";
        next;
        mes .name$;
        mes "It counts down from ^0080001000^000000 to ^ff00000^000000.";
        next;
        mes .name$;
        mes "To win, you need to have the ^ff0000closest value to 0^000000 but at least ^ff0000below 50^000000.";
        next;
        mes .name$;
        mes "The winner will recieve a prize.";
        mes "^ff0000Don't forget to talk to me after the Event is over,";
        mes "to reset your counter to take part on the next event.^000000";
        close;
    
        case 2:
        mes .name$;
        mes "The Default Price is:";
        mes "^ff0000 5 Bloody Branch ^000000";
        close;
    
        case 3:
        close;
    
        case 4:
        sleep2 100;
        close2;
        goto l_start2;
        end;
    }
        }

    normal player only can get event information, show detail price, or leave

    if    (getgmlevel() == 0)    { 
    
    mes .name$;
    mes "Welcome to the ^ff0000Stop the Clock^000000.";
    next;
    switch(select("Information:Price:Leave"))    {
        
        case 1:
        mes .name$;
        mes "^ff0000Stop the Clock^000000";
        mes "is a game where you need to";
        mes "click on me exactly when the counter reached 0.";
        next;
        mes .name$;
        mes "It counts down from ^0080001000^000000 to ^ff00000^000000.";
        next;
        mes .name$;
        mes "To win, you need to have the ^ff0000closest value to 0^000000 but at least ^ff0000below 50^000000.";
        next;
        mes .name$;
        mes "The winner will recieve a prize.";
        mes "^ff0000Don't forget to talk to me after the Event is over,";
        mes "to reset your counter to take part on the next event.^000000";
        close;
    
        case 2:
        mes .name$;
        mes "The Default Price is:";
        mes "^ff0000 5 Bloody Branch ^000000";
        close;
    
        case 3:
        close;
    
    }
        }

     

    to enable second event remove try remove script for normal player

    and change

    if    (getgmlevel() >= 1)    { 

    into

    if    (getgmlevel() == 0)    { 

     

  4. 6 hours ago, Echoes said:

    Hello again, long time no see rAthena 🙂

    I'm here to ask a question about a problem I'm facing now that I would want to go back to scripting, and it's the next:

    I'm trying to use the Notepad++ rAthena custom Syntax Highlight found here: 

     

    But I see a black background on unfocused lines

    image.png.8fde462c0249ba17db3261a29043ae0c.pngimage.png.f5415095876190d8132b2dfb144a3537.png
    Solarized and Default (contrary to default shown in link) styles

    I'm using the very file found in the link above but that's what I see and it's hard to look at.

     

    How can I, uhm, avoid this black background everywhere? The colors and highlight in general are to my liking but the square background on every character is pain itself.

    I think it has to do with the code for styles but I'm afraid I haven't found a solution yet

            <Styles>
                <WordsStyle name="DEFAULT" styleID="11" fgColor="FFFFFF" bgColor="000000" fontName="" fontStyle="0" />
                <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FFFFFF" bgColor="000000" fontName="@Dotum" fontStyle="0" />
                <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FFFFFF" bgColor="000000" fontName="@Dotum" fontStyle="0" />
                <WordsStyle name="KEYWORD1" styleID="5" fgColor="0000FF" bgColor="000000" fontName="" fontStyle="1" />
                <WordsStyle name="KEYWORD2" styleID="6" fgColor="FF0000" bgColor="000000" fontName="" fontStyle="1" />
                <WordsStyle name="KEYWORD3" styleID="7" fgColor="800080" bgColor="000000" fontName="" fontStyle="1" />
                <WordsStyle name="KEYWORD4" styleID="8" fgColor="FF8000" bgColor="000000" fontName="" fontStyle="1" />
                <WordsStyle name="COMMENT" styleID="1" fgColor="008000" bgColor="000000" fontName="" fontStyle="0" />
                <WordsStyle name="COMMENT LINE" styleID="2" fgColor="00AE00" bgColor="000000" fontName="" fontStyle="0" />
                <WordsStyle name="NUMBER" styleID="4" fgColor="800000" bgColor="000000" fontName="" fontStyle="1" />
                <WordsStyle name="OPERATOR" styleID="10" fgColor="FF0000" bgColor="000000" fontName="" fontStyle="1" />
                <WordsStyle name="DELIMINER1" styleID="14" fgColor="FF0080" bgColor="000000" fontName="" fontStyle="1" />
                <WordsStyle name="DELIMINER2" styleID="15" fgColor="000080" bgColor="000000" fontName="" fontStyle="0" />
                <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            </Styles>

     

    Help please 🙂

    I don't think pinging the author would mean anything, since last seen was in 2020

     

    try with this version

     

    https://github.com/cydh/rAthena-syntax-highlight

  5. 1 minute ago, Dev j said:

    i just change the itemscript

     

      - Id: 2301
        AegisName: Cotton_Shirt
        Name: Cotton Shirt
        Type: Armor
        Buy: 10
        Weight: 100
        Defense: 1
        Locations:
          Armor: true
        ArmorLevel: 1
        Refineable: true
        Script: |
          hateffect 177,true;
          hateffect 178,true;
        UnEquipScript: |
          hateffect 177,false;
          hateffect 178,false;

    so use number not effect name, ok thanks i will try it.

  6. 2 hours ago, Dev j said:

      - Id: 54000
        AegisName: C_G_CAP
        Name: Costume G Cap
        Type: Armor
        Locations:
          Costume_Head_Top: true
        ArmorLevel: 1
        EquipLevelMin: 1
        View: 4000
        Script: |
          hateffect HAT_EF_arcane_aura_A,true;
          hateffect HAT_EF_arcane_aura_B,true;
        UnEquipScript: |
          hateffect HAT_EF_arcane_aura_A,false;
          hateffect HAT_EF_arcane_aura_B,false;
     

    for this i'm not sure, i thnk because the item have view ID it's self (4000)

    maybe you can try with sample item like in example.

    - Id: 2301
        AegisName: Cotton_Shirt
        Name: Cotton Shirt
        Type: Armor
        Buy: 10
        Weight: 100
        Defense: 1
        Locations:
          Armor: true
        ArmorLevel: 1
        Refineable: true
        Script: |
          hateffect HAT_EF_arcane_aura_A,true;
          hateffect HAT_EF_arcane_aura_B,true;
        UnEquipScript: |
          hateffect HAT_EF_arcane_aura_A,false;
          hateffect HAT_EF_arcane_aura_B,false;

     

  7. 11 hours ago, Dev j said:

    Hello i follow your guide but its not working on me. im using 2021 client

    where's do you put the STR files?

    please check your client read GRF first or data folder first.

    If your client read GRF first, put the files in your GRF

    But if your client read data folder first, put the files in data folder

    Mine working with client 2021-11-03

  8. 13 hours ago, alexander03 said:

    Contact who? I mean the aura that can put on character like aura of santa poring have or bosses have like that ,hatefffect i think they call

    use aura hat effect, to create into STR file please check at STR Editor topic.

    for script already share in the aura hat effect topic.

  9. 11 minutes ago, DevilingKing said:

    [SQL]: DB error - Table 'ragnarok.pet' doesn't exist
    [Debug]: at char.cpp:2322 - SELECT 1 FROM `pet` LIMIT 1;
    [Fatal Error]: char : A tables is missing in sql-server, please fix it, see (sql-files main.sql for structure)



    can help?

    go to Rathena\sql-files folder, import mail.sql file

  10. On 8/29/2023 at 10:06 AM, someoneloveyou said:

    Hi all i need you suggestion what is the stable ragexe for lastest version of rathena, i try to use version 20200601 isnt stable. and always crash.
    i use translation by IIcrishII so many file missing... did you have suggestion ?

    use rathena recomended client. check at src\config\packet.hpp

    client between 2020-09-02 and 2021-11-18

    #ifndef PACKETVER_RE
    	/// From November 2015 only RagexeRE are supported.
    	/// After July 2018 only Ragexe are supported.
    	#if ( PACKETVER > 20151104 && PACKETVER < 20180704 ) || ( PACKETVER >= 20200902 && PACKETVER <= 20211118 )
    		#define PACKETVER_RE
    	#endif
    #endif
  11. 15 minutes ago, Cyborg said:
    ma_in01,49,99,3	script	Fallen Hero#main	651,{
    	cutin "3rd_rune_knight",2;
    	.Fneed_minute = 480;
    	.@remain = (.Fneed_minute - #daily_minute_count);
    	mes "[ ^0000FFFallen Hero^000000 ]";
    	if (.@remain > 60) {
    	mes "You Have ^FF0000"+#daily_minute_count+"^000000 "+ ( ( #daily_minute_count < .Fneed_minute )?" hours left to get your reward.":"Completed" );
    	if ( #daily_minute_count < .Fneed_minute ) {
    	close2;
    	cutin "",255;
    	end;
    	} else
    	next;
    	if(gettimetick(2) - #lastpickfallen > (60 * 60 * 24)) {
    	cutin "3rd_rune_knight",2;
    	mes "[ ^0000FFFallen Hero^000000 ]";
    	mes "Hello "+strcharinfo(0)+" ";
    	mes "Get free items every day.";
    	mes "Let's hope that this day will get something";
    	next;
    	mes "[ ^0000FFFallen Hero^000000 ]";
    	mes "Random Item";
    	mes "For Today...";
    	if (rand(100) < 10) setarray .@i[0],6232,6228,13710,12916,5184,5199,5209,5762,5467; // 10% chance
    	else if (rand(100) < 20) setarray .@i[0],12884,12885,12886,12887,35078; // 20% chance
    	else setarray .@i[0],13698,13697,14175,14587,12920,12921,14192,16504,12922,7776,12412,35111; // 70% chance
    	set FHitem,.@i[rand(getarraysize(.@i))];
    	getitem FHitem,1;
    	.@remain = 0;
    	announce strcharinfo(0)+" has obtained "+getitemname(FHitem)+" from our Fallen Hero!",bc_all,0x00FFFF,FW_NORMAL,15;
    	mes "You get "+getitemname(FHitem)+"";
    	
    	
    	
    		set #lastpickfallen,gettimetick(2);
    		next;
    		mes "[ ^0000FFFallen Hero^000000 ]";
    		mes "To come back to win new";
    		close2;
    		cutin "",255;
    	}
    		else if (.@remain > 0) {
    	mes "[ ^0000FFFallen Hero^000000 ]";
    	cutin "3rd_rune_knight",2;
    	mes "You have ^FF0000"+.@remain+"^000000 minute left to get your reward.";
    	close2;
    	cutin "",255;
    	}
    }
    }

    like this?

    Yes, try like that, because .@remain should be reset to recieve the reward again.

  12. 2 hours ago, Cyborg said:

    how to fix this timer because it doesn't work the time in the game is always at zero can you help me for this so that it works

    ma_in01,49,99,3	script	Fallen Hero#main	651,{
    	cutin "3rd_rune_knight",2;
    	.Fneed_minute = 480;
    	.@remain = (.Fneed_minute - #daily_minute_count);
    	mes "[ ^0000FFFallen Hero^000000 ]";
    	if (.@remain > 60) {
    	mes "You Have ^FF0000"+#daily_minute_count+"^000000 "+ ( ( #daily_minute_count < .Fneed_minute )?" hours left to get your reward.":"Completed" );
    	if ( #daily_minute_count < .Fneed_minute ) {
    	close2;
    	cutin "",255;
    	end;
    	} else
    	next;
    	if(gettimetick(2) - #lastpickfallen > (60 * 60 * 24)) {
    	cutin "3rd_rune_knight",2;
    	mes "[ ^0000FFFallen Hero^000000 ]";
    	mes "Hello "+strcharinfo(0)+" ";
    	mes "Get free items every day.";
    	mes "Let's hope that this day will get something";
    	next;
    	mes "[ ^0000FFFallen Hero^000000 ]";
    	mes "Random Item";
    	mes "For Today...";
    	if (rand(100) < 10) setarray .@i[0],6232,6228,13710,12916,5184,5199,5209,5762,5467; // 10% chance
    	else if (rand(100) < 20) setarray .@i[0],12884,12885,12886,12887,35078; // 20% chance
    	else setarray .@i[0],13698,13697,14175,14587,12920,12921,14192,16504,12922,7776,12412,35111; // 70% chance
    	set FHitem,.@i[rand(getarraysize(.@i))];
    	getitem FHitem,1;
    	announce strcharinfo(0)+" has obtained "+getitemname(FHitem)+" from our Fallen Hero!",bc_all,0x00FFFF,FW_NORMAL,15;
    	mes "You get "+getitemname(FHitem)+"";
    	
    	
    	
    		set #lastpickfallen,gettimetick(2);
    		next;
    		mes "[ ^0000FFFallen Hero^000000 ]";
    		mes "To come back to win new";
    		close2;
    		cutin "",255;
    	}
    		else if (.@remain > 0) {
    	mes "[ ^0000FFFallen Hero^000000 ]";
    	cutin "3rd_rune_knight",2;
    	mes "You have ^FF0000"+.@remain+"^000000 minute left to get your reward.";
    	close2;
    	cutin "",255;
    	}
    }
    }

    4mbMmTS.jpg

    after this script

    getitem FHitem,1;

    put

    .@remain = 0;

     

  13. 3 hours ago, Winterfox said:

    I am not sure what result Emistry wants to achieve since dropping the table and only creating it if it doesn't exist afterward is a bit contradictory, but you could change DELETE to DROP like this:

    DROP TABLE IF EXISTS `ero_buildmanager`;

     

    thanks working after change it.

×
×
  • Create New...