Jump to content

Chasewalk

Members
  • Posts

    94
  • Joined

  • Last visited

Posts posted by Chasewalk

  1. Hi thanks bro but got error

     

    [Error]:  Loading NPC file: npc/custom/goldroom.txt
    script error on npc/custom/goldroom.txt line 93
        parse_line: expect command, missing function name or calling undeclared function
        88 :                        close2;
        89 :                        cutin "",255;
        90 :                        end;
        91 :                }
        92 :                else {
    *   93 :                        '#'GOLDROOM_CD,( .@time + ( 3600 * 12 ) ); // 12 hours cooldown.
        94 :                        deltimer strnpcinfo(3)+"::OnKick";
        95 :                        addtimer (300 * 60 * 1000), strnpcinfo(3)+"::OnKick";
        96 :                }
        97 :                Zeny -= .zeny;
        98 :                warp "ordeal_1-2",151,154;

  2. Hi there i'm using offline server but how to fix gold room with timer, 12 hours cool down is 43200 seconds  but appears in ingame is 2681696506 seconds then I waited for 12 hours, when I logged in the game I could not enter the gold room because I had to wait after the time. sorry for my bad english,

     

            if (gettimetick(0) < #GOLDROOM_CD) {
                mes "[ ^C6A518Gold Room Assistant^000000 ]";
                mes "You can only re-enter after ^FF0000"+(#GOLDROOM_CD - gettimetick(0))+"^000000 seconds.";
                close2;
                cutin "",255;
                end;
            }
            else if (Zeny < .zeny) {
                mes "[ ^C6A518Gold Room Assistant^000000 ]";
                mes "Sorry, but you can't enter the room.";
                close2;
                cutin "",255;
                end;
            }
            else {
                #GOLDROOM_CD = gettimetick(0) + (12 * 60 * 60); // 12 hours cooldown.
                deltimer strnpcinfo(3)+"::OnKick";
                addtimer (300 * 60 * 1000), strnpcinfo(3)+"::OnKick";
            }
            Zeny -= .zeny;
            warp "ordeal_1-2",151,154;
            end;

    gr.png

  3. 1 hour ago, Poring King said:

    Use mapflag to Teleport .. im lazy today to make a simple script most of my script now is not tested im using rAthena by phone

    The item that similar to your request is Bloody Branch remember there is a lot of bloody branch trend that want a restriction of use when the player on a specific map

    i have script of item disable on map it's that correct?

    ....{ if (compare(strcharinfo(3), "pvproom") || compare(strcharinfo(3), "new_1-1")) { delitem 610,1; ....{ itemskill "ALL_RESURRECTION",1;""; } else { dispbottom "This item cannot be used within this area.

     

     

  4. Anyone how to fix error [Error]: npc_parsesrcfile: Unknown syntax in file thanks!

        switch(select("I want to check shop:I'm good thank you..")) {
        case 1:
            callshop "woe_shop",4;
            end;

        // Shop items: <ID>,<point cost>
        setarray .Shop,        
            4001,1,
            4004,1,
            4033,1,
            4196,1,
            4197,25,
            4054,50,
            4174,75,
            4047,100;

        npcshopdelitem "woe_shop",909;
        for(.@i=0; .@i<getarraysize(.Shop); .@i+=2)
            npcshopadditem "woe_shop",.Shop[.@i],.Shop[.@i+1];
            end;
            }

        }
        case 2: 
            mes "Thats good to hear!";
            close;

    -    pointshop   woe_shop    -1,#WOEPOINTS,909:-1

  5. Hello i'm here again! the script is working fine but items not displayed in the shop thanks again

     

        switch(select("I want to check shop:I'm good thank you..")) {
        case 1:
            callshop "woe_shop",4;
            end;

        // Shop items: <ID>,<point cost>
        setarray .Shop,        
            4001,1,
            4004,1,
            4033,1,
            4196,1,
            4197,25,
            4054,50,
            4174,75,
            4047,100;

        npcshopdelitem "woe_shop",909;
        for(.@i=0; .@i<getarraysize(.Shop); .@i+=2)
            npcshopadditem "woe_shop",.Shop[.@i],.Shop[.@i+1];

        case 2: 
            mes "Thats good to hear!";
            close;
            }
    }
    -    pointshop    woe_shop    -1,#WOEPOINTS,909:-1

    shop.png

    shop.png.40567ebad376acc8127f125587c948f4_1.jpg

  6. Good Day anyone know i'm using callshop npc but i can't recieved woe points in woe npc

        set getd(.points$[0]), getd(.points$[0]) + .point;

     

        setarray .points$[0],"#POINTS","WoE Points";


    -    pointshop    woe_shop    -1,woe_points,909:-1

    woe.png

×
×
  • Create New...