Jump to content

Drinna

Members
  • Posts

    33
  • Joined

  • Last visited

Posts posted by Drinna

  1. On 7/19/2018 at 1:39 PM, Drinna said:

    Got same problem about this anyone got the solution yet? Maybe there should be something in the config or main that will let you edit what name it should take when placed in the folder? anyone? Bumping this post. 

    Okay I am a noob here still but I think it's best for some other people who might be needing an answer to actually share what I did. 

    It seems that this is an event that will normally happen at the very first time that you had the patcher details source edited from main.ini. 

    if you did not do not the first time and you suddenly realised you had to edit it, then you are bound to get this error. 

    What I found out is that you gotta let it do its thing. Let it closed the first time and repatch the tmp.exe that will appear from the folder. 

    once that happens close the tmp.exe patcher and launch your orig patcher. You will notice that the orig patcher now has the new design or whatever changes you did for the new patcher.

     

    I explain things as how my mind thinks it so I'm sorry if I explained it a bit confusing. hope  I helped. 

  2. On 2/25/2018 at 6:47 AM, trickzjen23 said:

    I changed this and recompile my server. Still could not pass the 99,999,000 zeny limit in game. Any solution?

    I had to do ./athena-start restart from the console to have it enabled hehe - for those who are looking for answers 

     

  3. Hi, 

    I'm having problems with this. not sure what to do now. I tried all GRF's and it doesn't seem to be working.

    image.png.c03fa3d5d7f15574f3be3e878e8b2550.png

    Here I type @dye 2 and it doesn't give me the blue clothe dye while it says "Appearance changed". In other jobs it works and changes colors, but not with the High Priest. It even works on the Priest job. 

    Anyone can help? 




     

  4. 5 hours ago, Emistry said:

    that's because you duplicated the main script that generate the shop.

    
    prontera,143,99,5	duplicate(Rewards)	Rewards#prt	114
    alberta,139,71,5	duplicate(Rewards)	Rewards#alb	114
    morocc,127,77,5	duplicate(Rewards)	Rewards#mrc	114
    geffen,97,71,5	duplicate(Rewards)	Rewards#gef	114

    you can fix it by adding this line under the OnInit label..

    
    OnInit:
    	if (strnpcinfo(1) != "") end;

     

    Now I know that it is because of the duplicates. I did not know that ?  but when I put the 

    if (strnpcinfo(1) != "") end;

    what happens now is that it only shows this below
    image.png.36ce0480ec1b6cbfd5f6da4422df0e89.png
     

    I can see it's because of this : 
    -    shop    MSHOP1    -1,19544:-1
    -    shop    MSHOP2    -1,19522:-1

    But it wasn't doing that before ?

     

     

     

  5. 4 hours ago, Emistry said:

    that's because you duplicated the main script that generate the shop.

    
    prontera,143,99,5	duplicate(Rewards)	Rewards#prt	114
    alberta,139,71,5	duplicate(Rewards)	Rewards#alb	114
    morocc,127,77,5	duplicate(Rewards)	Rewards#mrc	114
    geffen,97,71,5	duplicate(Rewards)	Rewards#gef	114

    you can fix it by adding this line under the OnInit label..

    
    OnInit:
    	if (strnpcinfo(1) != "") end;

     

    Okay ? thanks ! I will try this for now ? let's see if it will work ❤️ 

     

  6. On 7/1/2018 at 10:29 PM, Drinna said:

    Hi ! 

    I am using Euphy's script for a pod shop but the items that it sells repeats. here's an example from below and also the script I edited for my server. 

    hourly.txt

    Here's how it looks like. 

    image.png.5e9102aae9e1586ce15a1653b16ffe3d.png

    I just don't understand why anymore ?

    //===== eAthena Script =======================================
    //= Custom-Currency Multi-Shop
    //===== By: ==================================================
    //= Euphy
    //===== Current Version: =====================================
    //= 1.2
    //===== Description: =========================================
    //= Allows for better organization in a single shop call.
    //= Note that there are two configuration areas.
    //============================================================
    
    // -------------------- Config 1 --------------------
    // For each shop added, copy this MSHOPX dummy data.
    // Write your shop names in the select() function.
    
    -    shop    MSHOP1    -1,19544:-1
    -    shop    MSHOP2    -1,19522:-1
    
    
    payon,166,111,5    script    Rewards    114 ,{
    
        set @s, select("Upper Headgears:Mid & Lower Headgears");
    
    // --------------------------------------------------
    
        message strcharinfo(0),"This shop only accepts "+getitemname(.Currency[@s])+".";
        dispbottom "You have "+countitem(.Currency[@s])+" "+getitemname(.Currency[@s])+".";
        callshop "MSHOP"+@s,1;
        npcshopattach "MSHOP"+@s;
        end;
    
    OnBuyItem:
        set .@i,0;
        while (.@i < getarraysize(@bought_nameid)) {
            set .@j, 0;
            while (.@j < getarraysize(getd(".Shop"+@s))) {
                if(getd(".Shop"+@s+"["+.@j+"]") == @bought_nameid[.@i]) {
                    set @itemcost, (getd(".Shop"+@s+"["+(.@j+1)+"]") * @bought_quantity[.@i]);
                    set @totalcost, @totalcost + @itemcost;
                    break; }
                set .@j, .@j+2; }
            set .@i, .@i+1; }
        if (@totalcost > countitem(.Currency[@s])) dispbottom "You don't have enough "+getitemname(.Currency[@s])+".";
        else {
            set .@i,0;
            while (.@i < getarraysize(@bought_nameid)) {
                getitem @bought_nameid[.@i], @bought_quantity[.@i];
                dispbottom "Purchased "+@bought_quantity[.@i]+"x "+getitemname(@bought_nameid[.@i])+".";
                set .@i, .@i+1; }
            delitem .Currency[@s], @totalcost; }
        set @totalcost, 0;
        deletearray @bought_nameid[0], 128;
        deletearray @bought_quantity[0], 128;
        end;
    
    OnInit:
    
    // -------------------- Config 2 --------------------
    // Currency:  The ID of each shop currency,
    //    in the same order as the shops.
    // Shop order follows that of the select() call,
    //   and is formatted "ID1,Count1,ID2,Count2,..."
    
        setarray .Currency[1],32020,32020;
        setarray .Shop1[0],19544,30,20273,80,19513,5,19507,5,19517,10;
        setarray .Shop2[0],19522,10,19537,20,19539,200,19613,300;
    //    setarray .Shop3[0],2302,2,2348,30;
    //    setarray .Shop4[0],2502,2,2513,15,2523,15;
    //    setarray .Shop5[0],2441,15;
    //    setarray .Shop6[0],2199,32768;
    //    setarray .Shop7[0],4051,3,4285,6;
    //    setarray .Shop8[0],513,1,532,2,634,4;
    
    // --------------------------------------------------
    
        set .@i,1;
        while (.@i <= getarraysize(.Currency)) {
            set .@j,0;
            while (.@j < getarraysize(getd(".Shop"+.@i))) {
                npcshopdelitem "MSHOP"+.@i,32020;
                npcshopadditem "MSHOP"+.@i, getd(".Shop"+.@i+"["+.@j+"]"), getd(".Shop"+.@i+"["+(.@j+1)+"]");
                set .@j, .@j+2; }
            set .@i, .@i+1; }
        end;
    }
    
    // ----------------Duplicate--------------------
    
    prontera,143,99,5    duplicate(Rewards)    Rewards#prt    114
    alberta,139,71,5    duplicate(Rewards)    Rewards#alb    114
    morocc,127,77,5    duplicate(Rewards)    Rewards#mrc    114
    geffen,97,71,5    duplicate(Rewards)    Rewards#gef    114

     

  7. 2 hours ago, maken06 said:

    If you shared the script, it would be easier to help.

    Hi ! Yeah I was thinking about that I will have it posted below

    alberta,148,60,3    script    V-Code Manager    833,{
    set .v$,"";
    
    if(getgroupid() == 99) {
    mes .v$,"Greetings, Please enter your passcode.";
    next;
    input .@security;
    if(.@security == 6969){
    mes .v$,"Hi, Admin! Welcome!";
    mes "Be ready to have the Vcode";
    mes "for new top ups.";
    next;
    mes .v$,"Ready to enter code?";
    next;
    switch(select("Enter Promo Code:Cancel")) {
    
    case 1:
    
    mes .v$,"Input Code";
    input .@topupcode$;
    next;
    mes .v$,"Input Reward";
    input .@topupitem;
    next;
    mes .v$,"Input Amount";
    input .@amt;
    mes "Please make a quick review..";
    mes "Promo Code: ^880000"+.@topupcode$+"^000000";
    mes "Promo Reward: ^000088"+getitemname(.@topupitem)+" "+.@amt+"x^000000";
    while(select("Confirmed:Ugh, I change my mind.")== 2){
    mes .v$,"Okay then,See ya!";
    close;
    }
    $Promo$ = .@topupcode$;
    $PromoItem = .@topupitem;
    $PromoAmt = .@amt;
    $PromoAct = 1;
    $PromoNum++;
    next;
    mes .v$,"VCode is now ready for claiming!";
    close;
    break;
    
    case 2:
    
    mes .v$,"Alright then you might";
    mes "need some time. Goodbye!";
    close;
    break;
    }
    
    }
    
    mes .v$,"I'm sorry wrong passcode.";
    mes "Try again.";
    close;
    
    }
    
    
    mes .v$,"Welcome! I manage V-codes";
    mes "for players who purchased";
    mes "in game Cash Points.";
    next;
    mes .v$,"Cash Points can be used";
    mes "in Kafra Shops to buy";
    mes "equipments and usable items.";
    next;
    mes .v$,"Do you have a V-code";
    mes "you purchased?";
    menu "Enter 16 Digit V-code",L_Claim,"What to do with Vcodes?",V_Explain,"Nope, Just passing by..",Good_B;
    close;
    
    L_Claim:
    next;
    mes .v$,"Enter your Top Up V-Code here";
    mes "Please do not leave the DASHES";
    mes "example below :";
    mes "XXXX-XXXX-XXXX-XXXX";
    input .@pcode$;
    if(.@pcode$ == $Promo$ && $PromoAct != 0 && ##Claimed != $PromoNum){
    next;
    mes .v$,"Thanks for your purchase";
    next;
    mes .v$,"Please accept it.";
    getitem $PromoItem,$PromoAmt;
    set ##Claimed,$PromoNum;
    close;
    
    }
    else{
    next;
    mes .v$,"Sorry, The code you have";
    mes "entered is either invalid";
    mes "or have already been used";
    mes "please try again, or";
    mes "contact our FB page";
    mes "for assistance";
    close;
    
    }
    
    V_Explain:
    next;
    mes .v$,"Vcodes can get you";
    mes "specific number of vouchers,";
    mes "and you can get them";
    mes "be exchanged for Cash Points";
    mes "you can talk to the lady";
    mes "on my left to know more.";
    close;
    
    Good_B:
    next;
    mes .v$,"Okay then, Thanks for your time!";
    close;
    }

     

    The problem with that one above ^ is that it only stores 1 code at a time, I was wanting it to store as much codes possible, and the code could be used only one time, and will be unclaimable by any other players or any other characters in the players account, kinda like a one time use ticket in a cinema, once a staff tore it, then it's used.

     

    1 hour ago, Emistry said:

    store some helpful info that allow your script to check it, so that the script could tell if there already exists someone claimed it before.

    ex. store a value into a variable/database, and have the script check for it when another player try to claim it.

     


    Thanks for that emistry , the only prob I get with the freebies scriptings is another character from another account can use the code again. 

    I'm sorry for being such a newbie. I tried reading stuff but I guess I can only do so much and I just needed to ask for help. 

     

  8. Hi, 

    I would like to see if anyone can help me with a script I'm working on. 

    I am pretty much a beginner and I have been able to find out that there are ways for you to create an NPC that will allow you to set codes for players to claim. I studied them but not much made sense as I don't understand SQL scripting just yet. 

    However with my primitive knowledge, I was able to devise a much simpler version, something that I can understand and is within my scripting level. 

    but I can't seem to know what commands I ought to type so that when a code I set is claimed by 1 player, then it wouldn't be available to be claimed by other players. 

    Hope anyone can help! ? 

  9. On 1/4/2018 at 11:41 PM, Archetype Saber said:

    @Mystogan if you're using Notepad++ read this:
    Dont open the iteminfo.lua using the notepad++ it will cause to an unknown error if you save the file via NP++
    Try Editing and Saving using Microsoft Wordpad ( not notepad).

    Thanks this one saved me too. ?

     

    You may not see tht you can edit it with the wordpad but you gotta click "Open with"
    image.png.45769d39fbfe5875f690c46a03e8afc1.png

    And then a window will appear and you might think it's another dead end, but hey, click the More Apps option and scroll down to see Wordpad and you can start editing it with the Wordpad 

    image.png.99484db41bd80e40678a74dbb1849e9e.png

     

  10. 1 minute ago, iAmGnome said:

    try defining it in the packetver maybe

    Yep I actually did that and then of course recompile etc. but nope, I was trying it for maybe like 3 hours this morning. I tried several 2013 clients, someone told me there could be renewal remnants making the error and they are most likely 7 of them that is why it was telling me 7 exceeded etc. but not entirely sure. hey thanks for your responses. 

×
×
  • Create New...