Jump to content

JoseRicart

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by JoseRicart

  1. Hello everyone,

    I'm encountering persistent issues with quest display and functionality on my rAthena. Despite trying various troubleshooting steps, I haven't been able to resolve the problem. Any insights or guidance would be greatly appreciated!

    Problem Description:

    When players attempt to accept or view the progress of certain quests, the client displays the following error pop-ups:

    • GetOngoingRewardInfo: [string "buf"]:24: attempt to index field '?' (a nil value)

    • GetOngoingDescription: [string "buf"]:14: attempt to index field '?' (a nil value)

    • GetOngoingQuestInfoByID: [string "buf"]:2: attempt to index field '?' (a nil value)

    (Ive tried with Pupa Quest and when users enter Endless Tower)

    Additionally, when I try to open the quest window in-game, I see the message "Unknown Quest ID = 60110". This specifically occurs with Quest ID 60110 (Hunting Pupa), and potentially others if they share similar data structure issues.

    My Setup:

    • Emulator: rAthena (Source commit around May 10, 2025).

    • Client: kRO (Fully updated to 2025, matching the EXE date).

    • EXE: May 10, 2025 version.

    • GRF: Using a custom GRF that includes the luafiles5 directory, where client-side Lua files are stored.

    Troubleshooting Steps Taken (Unsuccessful):

    1. questinfo.lub Synchronization: I downloaded a fresh kRO client (updated to 2025) and copied OngoingQuestInfoList.lub, OngoingQuestInfoList_True.lub, RecommendedQuestInfoList.lub, and RecommendedQuestInfoList_True.lub from its data\luafiles5\datainfo directory into my custom GRF. This did not resolve the errors.

    2. File Renaming: I also attempted renaming OngoingQuestInfoList_Sakray.lub and OngoingQuestInfoList_True.lub (I'm not entirely sure if these were the exact files, but it was part of a troubleshooting attempt based on old guides) without any change in behavior.

    3. Manual questinfo.lub Editing: For QuestID = 60110 (Hunting Pupa), I manually added all missing fields (RewardEXP, RewardJEXP, Description, RewardItemList, etc.) into its definition within my data\luafiles5\datainfo\questinfo.lub file (inside my GRF). I made sure to set non-nil default values (e.g., {} for empty tables, 0 for numbers), but the errors persist.

    4. Server-Side Verification: The QuestID = 60110 is correctly identified and configured on the server-side (db/re/quest.txt and the associated NPC script). The issue appears to be client-side data interpretation.

    Relevant Client-Side Lua Files:

    Here is the content of my QuestInfo_f.lub (located in the client GRF):

    Lua
    -- Function #0
    GetOngoingQuestInfoByID = function(questID)
        return GetOngoingSimpleView(questID), QuestInfoList[questID].Title, QuestInfoList[questID].IconName, QuestInfoList[questID].Summary, QuestInfoList[questID].NpcSpr, QuestInfoList[questID].NpcNavi, QuestInfoList[questID].RewardEXP, QuestInfoList[questID].RewardJEXP, QuestInfoList[questID].NpcPosX, QuestInfoList[questID].NpcPosY, GetCoolTimeQuest(questID)
    end
    
    -- Function #1
    GetCoolTimeQuest = function(questID)
        local desc = QuestInfoList[questID].CoolTimeQuest
        if nil == desc then
            return 0
        end
        return desc
    end
    
    -- Function #2
    GetOngoingDescription = function(questID)
        local desc = QuestInfoList[questID].Description
        if nil == desc then
            return
        end
        for k, v in pairs(desc) do
            AddOngoingDescription(questID, v)
        end
        return
    end
    
    -- Function #3
    GetOngoingRewardInfo = function(questID)
        local reward = QuestInfoList[questID].RewardItemList
        if nil == reward then
            return
        end
        for k, v in pairs(QuestInfoList[questID].RewardItemList) do
            AddOngoingRewardInfo(questID, v.ItemID, v.ItemNum)
        end
        return
    end
    -- ... (rest of the functions like RecommendedQuestInfoLoad, etc.)
    

    My Current (Corrected) QuestID = 60110 Definition in questinfo.lub (after manual additions):

    Lua
    [60110] = {
        Title = "Hunting Pupa",
        Description = {
            "Halgus asked you to clear the field of 50 Pupa and he will give you a small reward. ^FF0000Chrysalis cannot be turned in while this quest is active.^000000"
        },
        Summary = "",
        IconName = "", -- Added
        NpcSpr = "",   -- Added
        NpcNavi = "",  -- Added
        RewardEXP = 0, -- Added
        RewardJEXP = 0, -- Added
        NpcPosX = 0,   -- Added
        NpcPosY = 0,   -- Added
        CoolTimeQuest = 0, -- Added
        RewardItemList = {} -- Added (or with actual item data if applicable)
    },
    

    Any guidance on what might be causing these "nil value" errors or why the client reports "Unknown Quest ID" despite the server having the quest identified would be greatly appreciated. Could it be a GRF priority issue, a client-side Lua script version mismatch, or something else entirely?

    Thank you in advance for your time and help!

  2. 5 hours ago, mrfizi said:

    npc/mapflag/novending.txt (if you have this on your server)

    remove novending mapflag from your map. Example; Prontera:

    //prontera	mapflag	novending

     

    Then open player.conf
    https://github.com/rathena/rathena/blob/master/conf/battle/player.conf#L184

    change 3 to 2.

    min_npc_vendchat_distance: 2


    The distance is depend on your vending distance. Set it 2 or below depend on your setting.

    Hey,

     

    About the mapflag, i dont have one on the server and if i remove the script from the .conf file, i can use Vending.

     

    Anyway, I made the changes you recommended (i change and recompile everything) and even reconfigured the cells, leaving two in between each Vending Spot and it still doesn't work for me.

     

    image.png.52c519c5c72abc715e912d2226956add.png

  3. Hi, 

    First of all, it doesn't work quite right, when I fixed all the errors that I could see, I did a test and entered payon dungeon floor 1, I got the message that floor 1 was unlocked, then I kept going and It didn't unlock the other floors , I tried to see in cli mode but it does not give me any error, I add the script in case someone have time to help me.

    warpereovlution.txt

    • Upvote 1
  4. Hi,

    First of all I am very sorry if the place where I should post this type of support is not correct but I feel that it is a client problem or at least my inexperience tells me that, the issue is that I am having a problem with hairstyle, I have added correctly and following the instructions of some packages here, but when I go from hairstyle 37 in female characters, and men I get a completely black head. Some images so that you understand me much better.

     

     

    hairstyle.png

  5. 2 hours ago, Royr said:

    I made this on a phone...Please give a try (based on your script and optimized it).

    I added some multiple items  reward with chances added some flavor to your server. ?

    //Created Date: 04/07/2022
    -	script	AEOUS_MVP_DROP	FAKE_NPC,{
    	end;
    OnNPCKillEvent:
    	.@rnd = rand(1,100);
    	if( getmonsterinfo( killedrid,MOB_MVPEXP ) ) {
    	for( .@i = 0; .@i < getarraysize(.item_arrays); .@i += 3 ) {
    		if( .@rnd < .item_arrays[.@i+2] ) {
    			getitem .item_arrays[.@i], .item_arrays[.@i+1];
    			announce "Congratulations! Player "+ strcharinfo(0) +" has obtained "+ getitemname( .item_arrays[.@i] ) +" ["+ .item_arrays[.@i+1] +"] from "+ getmonsterinfo(killedrid, 0) +" (chance: "+.item_arrays[.@i+2]+"%) MVP Drop(s).",bc_all,0x00FF00;
    		}
    	}
    	end;
    }
    
    OnInit:
    //	(<structure,<item_id>,<chances>)
    	setarray .item_arrays[0],
    		675,	1,	10,
    		677,	1,	30,
    		7539,	1,	100;
    	end;
    }

     

    wow man you give me a fucking idea and sorry for the word ffs, your a fking legend.

    Basically i can add custom items wiht % of drop whenever you kill an MvP omfg asjhkdhjksfjhdsfjhkdashfnbjkh im so excited

  6. 36 minutes ago, Mahiro said:

     this?

      Hide contents

    OnNPCKillEvent:
        .@it = 607;
        if(getmonsterinfo(killedrid,MOB_MVPEXP)){
            announce strcharinfo(0)+" killed "+getmonsterinfo(killedrid,MOB_NAME)+" get "+getitemname(.@it),bc_all,0x00FF00;
            getitem .@it,1;
        }
        end;

     

     

    oh wow your amazin, was missing a curly but now all work, tysm

     

     

    in case someone wants the script working, here the script

    NOTE: IGNORE THE COMMENT ON THE CODE

     

    curly.png

    mvpdropcoin.txt

  7. good morning, my name is Jose and it is a pleasure to return to these whereabouts of the world of rathena after a long break for personal reasons, as usual I come to disturb a bit here.

    About 4-5 years ago I had a script which when you killed an MvP gave you a coin automatically, it turns out that when I added it to the server's custom scripts it is, let's say, "half-working" since it is true that the script when you kill an MvP, it drops the coin, but also when you kill a poring, a skeleton, a zombie, a plant, a spore, in short, when you kill everything.

    Could someone help me or give me some support?

    I upload the script with an imagen for example

     

    drop.png

    mvpdropcoin.txt

  8. On 11/17/2017 at 11:13 AM, Deleted User said:

    If you want that every MvP get killed and obtain 5 x Poring Coin.

    Here's the simple script:
     

    -	script	F_TriggerMVVP	-1,{
    
    OnNPCKillEvent:
    	if( getmonsterinfo(killedrid,22) )
    		announce "Congratulations! Player, "+ strcharinfo(0) +" has killed MVP "+ getmonsterinfo( killedrid, MOB_NAME ) +" and obtained 'Poring Coin' at "+ strcharinfo(3),0,0x00FF00;
    		getitem 7539,5;
    	end;
    }

     

    I tried this script but let's say it barely works for me, I would like it to drop the poring coin only when I kill an MvP, but it turns out that when I kill an MvP, when I kill a skeleton, a poring, whatever it is, it drops the coin

     

    here an imagen

    drop.png

×
×
  • Create New...