-
Posts
177 -
Joined
-
Last visited
-
Days Won
9
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by Louis T Steinhil
-
Project Mayhem (A Whole New Story)
Louis T Steinhil replied to Terran Bear's topic in Project Concepts & In Progress
I think the easiest way to turnoff other jobs is to disable all job changers/quest job changers. And don't give the command @job. -
Autoattack with skills is paid script. I don't think anyone would share it
-
-
-
[SQL]: SSL connection error: unknown error number
Louis T Steinhil replied to funtwocrasher's question in Installation Support
https://board.herc.ws/topic/16607-ragnarok-offline-newbie-pack-2022-make-your-ro-server-in-less-then-5-minutes/ -
[SQL]: SSL connection error: unknown error number
Louis T Steinhil replied to funtwocrasher's question in Installation Support
You can just download laragon from anacondaq offline setup. It's plug and play and compatible with rAthena and Herc -
Sonic Blow / Arrow Vulcan animations on newer clients
Louis T Steinhil replied to ckx_'s question in General Support
Hello someone actually made it possible in Herc Plugin. Maybe someone can convert it back to src. https://github.com/csnv/hercules-plugins/blob/main/mimic_animations/mimic_animations.c SSucRak.mp4 Mxy0oNn.mp4 -
How to convert from addtimer to OnClock/OnHour?
Louis T Steinhil replied to Louis T Steinhil's question in Scripting Support
Thank you for the input. I was totally lost and forgot that I can do sql. -
How to convert from addtimer to OnClock/OnHour?
Louis T Steinhil posted a question in Scripting Support
I'm trying to make a script like in RO Mobile Deposit Cards. This is working if I use addtimer, but if I use OnClock/OnHour I'm getting error. Pls help Submit_Cards: // Initialize the menu string set .@menu$, ""; // Loop through the list of card IDs to populate the menu for (set .@i, 0; .@i < .num_cards_to_select; set .@i, .@i + 1) { // Get the card name using its ID set .@card_name$, getitemname(getd("Card" + .@i)); // Get the submission count using dedicated variable set .@submission_count, getd("Card" + .@i + "_"); // Retrieve the required number of cards to collect for the chosen slot set .@required_cards, getd("Collect" + .@i + "_"); // Determine the submission status of the card set .@submission_status$, " (" + .@submission_count + " / " + .@required_cards + ")"; // Append the card name and submission status to the menu string .@menu$ += .@submission_status$ + " - " + .@card_name$ + ":"; } mes "[Card Collection NPC]"; mes "Which card would you like to submit?"; next; // Display the menu and handle player selection set .@selection, select(.@menu$) - 1; set .@selectedCardId, getd("Card" + .@selection); // Retrieve the submission count set .@submission_count, getd("Card" + .@selection + "_"); // Retrieve the required number of cards to collect for the chosen slot set .@required_cards, getd("Collect" + .@selection + "_"); // Calculate the number of cards to submit set .@cards_needed, .@required_cards - .@submission_count; // Get the player's inventory getinventorylist; // Check if the player has the selected card in their inventory set .@player_card_count, 0; for (set .@j, 0; .@j < @inventorylist_count; set .@j, .@j + 1) { if (@inventorylist_id[.@j] == .@selectedCardId) { set .@player_card_count, @inventorylist_amount[.@j]; break; } } // If player has no cards, inform and exit if (.@player_card_count == 0) { mes "[Card Collection NPC]"; mes "You do not have any of this card."; close; } // Calculate the actual number of cards to submit (up to the needed amount) set .@cards_to_submit, min(.@cards_needed, .@player_card_count); // Update submission count setd("Card" + .@selection + "_", .@submission_count + .@cards_to_submit); // Remove the cards from the player's inventory delitem .@selectedCardId, .@cards_to_submit; // Store the card and player information for later processing set .@slot, 0; while (getd("TempCardID" + .@slot) > 0) { set .@slot, .@slot + 1; } setd("TempCardID" + .@slot, .@selectedCardId); setd("TempPlayerID" + .@slot, getcharid(0)); setd("TempPlayerName$" + .@slot, strcharinfo(0)); setd("TempCardsToSubmit" + .@slot, .@cards_to_submit); // Set a timer for 10 seconds to process returning cards addtimer 10000, strnpcinfo(3) + "::OnTimerReturnCards"; mes "[Card Collection NPC]"; mes "Card submitted successfully!"; // If the card collection is complete for this card, apply the bonus if (getd("Card" + .@selection + "_") >= .@required_cards) { // Retrieve the stored bonus and its value set .@bonus_string$, getd("Bonus" + .@selection + "_String$"); set .@bonus_alias$, getd("Bonus" + .@selection + "_Alias$"); set .@bonus_value, getd("Bonus" + .@selection + "_Value"); // Apply bonus bonus_script(.@bonus_string$ + .@bonus_value + ";", 10); // Display the bonus received mes "[ Bonus ]: " + .@bonus_alias$ + " " + .@bonus_value; } close; OnTimerReturnCards: // Loop through each submission slot to handle returning cards for (set .@i, 0; .@i < .num_cards_to_select; set .@i, .@i + 1) { // Check if there are cards to return for this slot if (getd("TempCardID" + .@i) > 0) { // Get stored information for this submission slot set .@selectedCardId, getd("TempCardID" + .@i); set .@player_id, getd("TempPlayerID" + .@i); set .@player_name$, getd("TempPlayerName$" + .@i); set .@cards_to_submit, getd("TempCardsToSubmit" + .@i); // Define sender's name and mail title set .@sender$, "Card Collection NPC"; // Sender's name set .@title$, "Card Return"; // Mail title // Define mail body set .@body$, "Your submitted cards have been returned:"; // Mail the cards back to the player setarray .@mailitem[0], .@selectedCardId; // Set the card ID to be returned setarray .@mailamount[0], .@cards_to_submit; // Set the number of cards to return mail .@player_id, .@sender$, .@title$, .@body$, 0, .@mailitem, .@mailamount; // Clear submission count for this card slot setd("Card" + .@i + "_", 0); // Update NPC's internal record to reflect returned cards set .@npc_card_count, getd("NPC_Card_" + .@i); // Get current count from NPC's internal storage setd("NPC_Card_" + .@i, .@npc_card_count + .@cards_to_submit); // Update count (simulate NPC's inventory) // Clear stored information for this submission slot setd("TempCardID" + .@i, 0); setd("TempPlayerID" + .@i, 0); setd("TempPlayerName$" + .@i, ""); setd("TempCardsToSubmit" + .@i, 0); } } bonus_script_clear 1; deltimer strnpcinfo(3) + "::OnTimerReturnCards"; end; Error: [Error]: get_val_: fatal error ! player not attached! [Debug]: Source (NPC): [ Letter A ] at yuno_in02 (93,207) [Debug]: Source (NPC): [ Letter A ] is located in: npc/custom/Card_Collector_A.txt [Warning]: script:get_val: cannot access player variable 'TempCardID0', defaulting to 0 -
You need to tell the client date. coz old client might not work with the updated grfs. Lua Files and System Folder are kind of different from time to time.
-
I reuploaded this. thanks
-
Hello, what if I want to make this permanent? bonus_script "{ bonus bVit, 30; }", 512; is this correct?
-
Hello I was trying to add new clans and it worked but i need to add bonus to it like changing the race of the joiner. Anyone know the right values for this? Thanks! status.cpp if(sc->getSCE(SC_ANGELCLAN)){ base_status->race = RC_ANGEL; }
-
How to make this work on 2022-04-06? I've tried this on hercules and it's working on the same client date but here it's not.