Jump to content

Jinun

Members
  • Posts

    16
  • Joined

  • Last visited

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

3

Reputation

1

Community Answers

  1. - 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?
  2. If it is just a test purpose. Better use the ancient username "root" with no password at inter_athena.conf
  3. 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!
  4. 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.
  5. 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.
  6. what do you mean? Care to share how to solve?
  7. How can I fix the warning: "Any work in progress (NPC dialog, manufacturing...) quit and try again"? This warning appears when the player is under a progress bar. If the player clicks the NPC again while the progress bar is still running, the warning shows up in the chat window. How can I resolve this issue? bandicam 2024-10-20 18-07-33-705.mp4
  8. It works. Thanks mate. But I would like to know why 16348 not 8192? Why zone 10 instead of zone 9?
  9. Thanks mate, but the mapflag only restricts the skill on a specific map. I have already done that. What I want to know is how to restrict the Warp Skill on all maps in the server once the Automatic Event starts and disable it once the event finishes.
  10. I already put the mapflag for the event. but Despite implementing map flags to restrict movements, I can still use the /memo command or warp skills outside the tower to access the summit area. I have created a Automatic Geffen Tower Summit Event (I just name it on my own) where the first player to reach the summit and click with the event NPC will be declared the winner. The same principle of Hide and Seek Event with Twist I guess. Here is my code: gef_tower,104,32,5 script GTS Event 871,{ OnTouch: killmonsterall "gef_tower"; announce "Congrats to " + strcharinfo(0) + " for winning the Geffen Tower Summit Event! You're the first to reach the GTS Event NPC!", 0; //reward for winning getitem 7227, 1; getitem 30031, 1; getitem 30038, 1; disablenpc "GTS Event"; // Disable mapflag removemapflag "gef_tower", mf_noskill; end; OnGTS_EventStart: // add a notify waitingroom "Geffen Tower Summit Event!", 0; // Enable mapflag setmapflag "gef_tower", mf_noskill; // warp out all players outside the geffen tower, when the GTS event is started mapwarp "gef_tower","geffen",120,104,0; sleep 2000; // enable the npc becasue we will disable the npc once the player reach the summit enablenpc "GTS Event"; // summon monsters each floor monster "gef_tower", 113, 73, "Paladin Randel", 2235, 1; monster "gef_tower", 102, 75, "Paladin Randel", 2235, 1; monster "gef_tower", 111, 72, "Paladin Randel", 2235, 1; monster "gef_tower", 108, 108, "Paladin Randel", 2235, 1; monster "gef_tower", 120, 107, "Paladin Randel", 2235, 1; monster "gef_tower", 112, 108, "Paladin Randel", 2235, 1; monster "gef_tower", 119, 168, "Paladin Randel", 2235, 1; monster "gef_tower", 105, 167, "Paladin Randel", 2235, 1; monster "gef_tower", 113, 166, "Paladin Randel", 2235, 1; monster "gef_tower", 36, 33, "Paladin Randel", 2235, 1; monster "gef_tower", 53, 33, "Paladin Randel", 2235, 1; monster "gef_tower", 65, 28, "Paladin Randel", 2235, 1; monster "gef_tower", 60, 98, "Paladin Randel", 2235, 1; monster "gef_tower", 46, 99, "Paladin Randel", 2235, 1; monster "gef_tower", 41, 98, "Paladin Randel", 2235, 1; end; OnGTS_EventAnnouncement: // delete a notify room first delwaitingroom; // Remove mapflag first removemapflag "gef_tower", mf_noskill; killmonsterall "gef_tower"; // Disable the npc before enabling to avoid exploit disablenpc "GTS Event"; announce "GTS Event: We are going to have a Geffen Tower Summit Event!", 0; end; OnTimer3000: announce "GTS Event: For those who want to join, please come to Geffen Tower!", 0; end; OnTimer5000: announce "GTS Event: Whoever to reach first the summit and click the GTS Event NPC will win!.", 0; end; // 35000 OnTimer10000: announce "GTS Event: Last 30 Seconds until the event will start.", 0; end; // 65000 OnTimer15000: sleep 1000; announce "GTS Event: The Event will start in 5 seconds.", 0; sleep 1000; announce "GTS Event: The Event will start in 4 seconds.", 0; sleep 1000; announce "GTS Event: The Event will start in 3 seconds.", 0; sleep 1000; announce "GTS Event: The Event will start in 2 seconds.", 0; sleep 1000; announce "GTS Event: The Event will start in 1 second.", 0; sleep 1000; announce "GTS Event: lets the GTS Event begin!", 0; // Call the GTS start event goto OnGTS_EventStart; end; end; OnInit: // Call it first the OnGTS_EventAnnouncement after I reload the script // then, the timer will Start a every 1hr and 30-minute the "OnGTS_EventAnnouncement" OnTimer5400000: initnpctimer; goto OnGTS_EventAnnouncement; end; // Prevent user from logout and login hack, to immediately go to the summit. OnPCLoginEvent: // warp players outside the geffen tower, when the GTS event is started mapwarp "gef_tower","geffen",120,104,0; end; } // Mapflags gef_tower mapflag nowarp gef_tower mapflag nowarpto gef_tower mapflag nomemo gef_tower mapflag noreturn
  11. Hello, I’m trying to figure out how to block a specific skill for all players when my event starts automatically. For example, I want to stop everyone from using the Warp Skill during the event. I found the pcblockskill function, which lets you prevent a specific character from casting all his skills. It looks like this: // Prevents the current char from casting skills. pcblockskill getcharid(3),1; But it only works when attached to a player and for one player at a time. What I really need know is a way to block a skill ID (like the Warp Skill) for everyone at once when the event kicks off. Does anyone know how I can do this in rAthena? I’d really appreciate any tips or examples!
  12. prontera,150,180,5 script Card Master Manuel 812,{ mes "[Card Master Manuel]"; mes "Welcome to my table, adventurer!"; mes "Do you wish to play a game of Lucky 9?"; next; switch(select("Yes, let's play!:No, maybe later.")) { case 1: mes "[Card Master Manuel]"; mes "Great! Let's see if luck is on your side."; mes "How much Zeny would you like to bet?"; input @bet, 1, Zeny; // Input the amount the player wants to bet, limited to available Zeny if(@bet > Zeny) { mes "It seems you don't have enough Zeny for that bet."; close; } set Zeny, Zeny - @bet; // Deduct the bet from the player's Zeny mes "You bet " + callfunc("F_InsertComma", @bet) + " Zeny. Let's begin!"; next; set @player_card1, rand(1,9); set @player_card2, rand(1,9); set @npc_card1, rand(1,9); set @npc_card2, rand(1,9); set @player_total, (@player_card1 + @player_card2) % 10; set @npc_total, (@npc_card1 + @npc_card2) % 10; mes "You draw: " + @player_card1 + " and " + @player_card2 + "."; mes "Your total is: " + @player_total; next; switch(select("Draw a third card.:Stand")) { case 1: set @player_card3, rand(1,9); set @player_total, (@player_total + @player_card3) % 10; mes "You draw a " + @player_card3 + "."; mes "Your new total is: " + @player_total; next; mes "[Card Master Manuel]"; mes "My turn now."; next; mes "I draw: " + @npc_card1 + " and " + @npc_card2 + "."; mes "My total is: " + @npc_total; next; if(@npc_total < 7) { set @npc_card3, rand(1,9); set @npc_total, (@npc_total + @npc_card3) % 10; mes "I draw a " + @npc_card3 + "."; mes "My new total is: " + @npc_total; } next; break; case 2: mes "[Card Master Manuel]"; mes "My turn now."; next; mes "I draw: " + @npc_card1 + " and " + @npc_card2 + "."; mes "My total is: " + @npc_total; next; if(@npc_total < 7) { set @npc_card3, rand(1,9); set @npc_total, (@npc_total + @npc_card3) % 10; mes "I draw a " + @npc_card3 + "."; mes "My new total is: " + @npc_total; } next; break; } if(@player_total > @npc_total) { mes "Congratulations! You win!"; specialeffect2 EF_HOLY_AVENGE; // Example visual effect set Zeny, Zeny + @bet * 2; // Double the player's bet and give it as a reward mes "You've won " + callfunc("F_InsertComma", @bet * 2) + " Zeny!"; } else if (@player_total == @npc_total) { mes "It's a tie! Your bet is returned."; set Zeny, Zeny + @bet; // Return the bet in case of a tie } else { mes "I win! Better luck next time."; specialeffect2 EF_STUN; // Example of a loss visual effect } close; break; case 2: mes "[Card Master Manuel]"; mes "No worries, come back anytime if you change your mind."; close; break; } }
  13. Hi, I know this is a sudden question. But anyone have a dress changer but a 4th job sprite.
  14. Thank you mate I will try this one.
  15. Can Anyone help me to convert this code at rathena scripting code. I am not good at rathena scripting but still in learning. I've write this code in Javascript I want to respawn the Treasure Box chest at prontera every 1 hour just the concept of setInterval, How Do I write that? setInterval(function() { // this is a scripting of rathena // I know this line of code how it works monster "prontera",0,0,"Treasure Box",2288,1,"Treasure Box Respawner::OnTBoxDestroyed"; OnTBoxDestroyed: $TBoxDestroyed++; if ($TBoxDestroyed > 0) { announce "The Treasure box has been destroyed by " + strcharinfo(0) + "!",3; $TBoxDestroyed = 0; } end; },1000 * 60 * 60 * 1);
×
×
  • Create New...