Jump to content

Jinun

Members
  • Posts

    25
  • Joined

  • Last visited

  • Days Won

    1

Jinun last won the day on May 28

Jinun had the most liked content!

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Jinun's Achievements

Santa Poring

Santa Poring (3/15)

  • Dedicated
  • Collaborator
  • Reacting Well
  • First Post
  • Conversation Starter

Recent Badges

12

Reputation

1

Community Answers

  1. You are encountering issues when trying to get information about players using their account IDs retrieved from the database. This can happen if the character associated with that account ID is not currently on the same map server as the script is running, leading to functions like rid2name and getmapxy failing. This one is perfectly working on me. - script dualclientkicker -1,{ OnPCLoadMapEvent: // Check if the current map is one of the restricted maps set .@charmap$, strcharinfo(3); // Use inarray to check if the current map is in the list if (inarray(.maps$[0], .@charmap$) == -1) end; // Get the IP address of the triggering player set .@player_ip$, getcharip(); set .@player_aid, getcharid(3); // Get the account ID of the triggering player set .@same_ip_count, 0; // Get a list of all players on the current map by their Account ID set .@num_players_on_map, getmapunits(BL_PC, .@charmap$, .@map_player_aids[0]); // Iterate through players on the map for (set .@i, 0; .@i < .@num_players_on_map; set(.@i, .@i + 1)) { set .@current_aid, .@map_player_aids[.@i]; // Skip the triggering player themselves if (.@current_aid == .@player_aid) continue; // Get the IP address of the current player on the map set .@current_ip$, getcharip(.@current_aid); // Compare IP addresses if (.@current_ip$ == .@player_ip$) { set .@same_ip_count, .@same_ip_count + 1; } } // Check if the count of other players with the same IP exceeds the limit // .limitacc is the maximum allowed *additional* accounts (e.g., 1 means total 2 accounts allowed) if (.@same_ip_count >= .limitacc) { dispbottom "Dual accounts not allowed in this map."; warp "SavePoint",0,0; } end; OnInit: // Maximum allowed additional accounts with the same IP on the restricted maps set .limitacc, 1; // Allows 1 additional account (total 2) // List of maps where dual-clienting is restricted setarray .maps$[0], "poring_w01", "quiz_01"; // Set mf_loadevent flag on these maps set .@lens, getarraysize(.maps$); for (set .@a, 0; .@a < .@lens; set(.@a, .@a + 1)) { setmapflag .maps$[.@a], mf_loadevent; } }
  2. //= Item shop selling Valkyrie gear for Proof of Donation Ticket. //============================================================ prontera,150,150,4 itemshop Valkyrie_Gear_Shop 115,7179,2357:1,2524:1,2421:1,5171:1 You can use this like this. OR Like this prontera,155,185,4 script Valkyrie_Gear_Shop 115,{ mes "[Valkyrie Gear Merchant]"; mes "Welcome! I trade powerful Valkyrie gear for Proofs of Donation."; next; // Call the floating itemshop by its unique name callshop "Valkyrie_Gear_Shop_Data", 1; end; } // Floating itemshop definition (invisible, holds the items and currency) - itemshop Valkyrie_Gear_Shop_Data -1,7179,2357:1,2524:1,2421:1,5171:1
  3. You can try here: https://manuuuu21.github.io/rAthena-Text-Editor/ Updates: The rAthena Text Editor is now running on the Google SDK Sandbox to support the Gemini Chatbot’s long context capabilities and increase the API limit. The chatbot has been fully supervised-trained using the script_commands.txt and status_change.txt documentation. With this training, the chatbot is now intelligent enough to serve as your coding assistant capable of code generation, conceptual code review, troubleshooting, best practices guidance, and information retrieval based on the provided documentation. chrome_RjGvSuCsUQ.mp4
  4. That's a great improvement over /effect. being able to selectively disable effects is super helpful. Well done, and I hope it gets added officially!
  5. 1st is Download the Repo. 2nd Get you your APIKey here: https://aistudio.google.com/apikey, you need a google account. 3. After getting the APIKey, Put your APIKey at myGeminiAPIKey.js 4. Now, its ready to talk to you.
  6. UPDATES!! NOW, integrated with the Gemini Chatbot API for the Editor! Just ask it, and it will provide code for you directly in rAthena Text Editor. Simply provide your Gemini API key. We're using the latest and fastest Gemini model: "gemini-2.5-flash-preview-05-20".
  7. Update: Added Autocomplete suggestions
  8. Update: Added a Ctrl+S feature and SAVE button. The tab title now updates based on the file you open or created/saved. Drag and drop .txt files to get the data of txt file Added some rathena scripting keywords to highlight. <-- this is most tiring xD
  9. Hello guys, this is my rAthena Text Editor (Offline), a lightweight, browser-based tool I created for editing rAthena scripts (syntax highlight) without needing any installation or internet connection. Features: NOW, integrated with the Gemini Chatbot API for the Editor! Just ask it, and it will provide code for you directly in rAthena Text Editor. Simply provide your Gemini API key. We're using the latest and fastest Gemini model: "gemini-2.5-flash-preview-05-20". Edit your scripts directly in your browser Download your code as a .txt file after you're done Open existing .txt files to continue editing Toggle between Dark Mode and Light Mode for better readability Autocomplete suggestions Added a CTRL+S feature and SAVE button. The tab title now updates based on the file you open or created/saved as. Drag and drop .txt files to get the data of txt file Works on mobile but on Chrome and Edge only. Added some rathena scripting keywords to highlight. <-- this is most tiring xD Works 100% offline – no installation, no internet, no hassle This is a simple tool made for convenience, especially for fellow scripters who want to work quickly without setting up a full IDE. Feel free to check it out, use it, or suggest improvements. Thanks and happy scripting! Screenshots:
  10. - Id: 89 Name: WZ_STORMGUST Description: Storm Gust MaxLevel: 10 Type: Magic TargetType: Ground Flags: IsAutoShadowSpell: true Range: 9 Hit: Single HitCount: 1 Element: Water Knockback: 2 CopyFlags: Skill: Plagiarism: true Reproduce: true CastCancel: true CastTime: 0 AfterCastActDelay: 1000 Cooldown: 1000 Requires: SpCost: 78 Unit: Id: Dummyskill Layout: 4 Range: 1 Interval: 450 Target: Enemy Flag: NoOverlap: true PathCheck: true Status: Freeze Is there any possible way to get the value of Cooldown object in the skill_db.yml?
  11. If it is just a test purpose. Better use the ancient username "root" with no password at inter_athena.conf
  12. Thank you so much for your suggestion! I commented out the clif_msg(sd, WORK_IN_PROGRESS) line in both the int npc_click function in npc.cpp and the clif_parse_NpcClicked function in clif.cpp. This resolved the issue I was facing. I really appreciate your help!
  13. This guide will teach you through modifying the existing code in itemInfo.lua to add ItemID numbers to the description of all items in your server. Specifically, we'll replace the current loop that processes identified descriptions with a method that concatenates all descriptions and appends the ItemID at the end of the description. Step 1: The original code uses a loop to add identified descriptions. just remove this at your itemInfo.lua for k, v in pairs(DESC.identifiedDescriptionName) do result, msg = AddItemIdentifiedDesc(ItemID, v) if not result == true then return false, msg end end Step 2: Replace the Loop -- Concatenate identified description into a single string local fullDescription = table.concat(DESC.identifiedDescriptionName, "\n") -- Append the ItemID only once at the end of the full description fullDescription = fullDescription .. "\n\n_______________________\n^0000CCItem ID:^000000 " .. ItemID -- Add the modified full description result, msg = AddItemIdentifiedDesc(ItemID, fullDescription) if not result == true then return false, msg end The Result will be look like this.
      • 1
      • MVP
  14. Bumb. I wanted to remove the warning "Any work in progress (NPC dialog, manufacturing...) quit and try again" once the progress is running while I am doing a spam click. It should be the same as using skill and the progress bar is running. the NPC is not clickable.
  15. what do you mean? Care to share how to solve?
×
×
  • Create New...