Jump to content

Smoke

Members
  • Posts

    34
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Smoke

  1. This is handled by the script, and for enriched ores the function is rolled twice. (I personally don't think this is the official way).
  2. Well, you didn't add a morphembryo; in the second case.
  3. You might want to show the rest of the script for better help?
  4. According to the rA documentation - *rand(<number>{,<number>}); This function returns a number ... (if you specify one) ... randomly positioned between 0 and the number you specify -1. (if you specify two) ... randomly positioned between the two numbers you specify. rand(10) would result in 0,1,2,3,4,5,6,7,8 or 9 rand(0,9) would result in 0,1,2,3,4,5,6,7,8 or 9 rand(2,5) would result in 2,3,4 or 5 in your case, the rand can range 0~4 (6047 ~ 6051) where homunculus 6047 doesn't exist.
  5. So I decided to convert client side lua/text files to SQL for use on web applications. Repository: https://github.com/Smokexyz/ROClientSideDatabase Files done - iteminfo.lua questid2display.txt You could probably do cool things like make item/quest tooltips (like they do for WoW) or just link item/quest descriptions on your website. I'd be happy to help with PHP/JS stuff.
  6. What are the errors? Download this... hourly_points.txt
  7. There's no way unless modified in source. Even if you use getinventorylist; and loop through the items, there's no third argument for delitem to specify the inventory index.
  8. I've come up with something that I think would be cooler and can be altered further but I haven't checked it in-game. Please feel free to try the following piece of code - //===== Hourly Points Script ========================================= //===== By: ========================================================== //= Smokexyz //===== Current Version: ============================================= //= 1.0 //===== Compatible With: ============================================= //= Any eAthena Version //===== Description: ================================================= //= Get Points every specified seconds of gameplay. Conditional checks //= for AFK / Vending are provided. Permanent total character playtime //= is also calculated as a by-product. // - script sxyz_hourly_points -1,{ // Init the Awesomeness of this NPC. OnInit: .AFKCheckDelay, 300; // (in seconds) 5 minutes AFK Delay .RewardTimeDelay, 3600; // (in seconds) 1 hour delay between point giving. .RewardPoints, 10; // Points rewarded every .RewardTimeDelay .CheckAFK, 0; // Enable/Disable AFK Checks .CheckVendChat, 1; // Enable/Disable Vending/Chatting Checks. end; // Attach the timer when the player logs in. OnPCLoginEvent: attachnpctimer ""+strcharinfo(0)+""; addtimer 1000,"sxyz_hourly_points::OnProcess"; end; OnProcess: // Exclude Vendors from playtime/Afk Checks. if((checkvending() >= 1 || checkchatting()) && .CheckVendChat) { set .@afk, 1; } else if (.AFKCheckSeconds <= playtime && .CheckAFK) { getmapxy( .@map$, .@x, .@y, 0 ); if (.@map$ == @map$ && .@x == @x && .@y == @y ) set .@afk, 1; } if (!.@afk) { .@tick = gettimetick(2); // Reward the player if check passes. if ((.@tick - @last_active) >= .RewardTimeDelay) { set #REWARDPOINTS, #REWARDPOINTS+ .RewardPoints; dispbottom "[Hourly Points] You've gained "+.RewardPoints+" points! (Playtime: "+playtime+"s)"; } getmapxy( @map$, @x, @y, 0 ); set playtime,playtime++; set @last_active, gettimetick(2); } addtimer 1000,"sxyz_hourly_points::OnProcess"; end; }
  9. Bump, I'm willing to pay for this edit please pm me.
  10. Hi, I'm from India and currently receiving donations through paypal aren't permitted in our country. I will need to change this to a buy now button keeping the automated amount increment process, is there a simple way to do this? Any help would be appreciated.
  11. Thank you for that, but unfortunately my script is more complex than just a single quest. If there isn't a general way I will have to resort to storing the id in a variable as you suggested.
  12. Hi, I'm trying to get the mob-id from specific hunting quest in quest_db.txt, for example : 7074,0,2017,1,0,0,0,0,"Rata Hunt" Is there a way i can pull 2017 or 1 via script command and use it in a script?
  13. Hello, Is it possible to use a data from a mysql database hosted on another vps via an npc script? somewhat like the way its possible with php. I'd just like to know this and if possible, how to do it. Thanks
  14. It says at mob.c:172 Check what you patched there.
  15. Smoke

    Fixed Cast

    Hello, rAthena uses the following code for skills that have no fixed casts. int fixed = skill_get_fixed_cast(skill_id, skill_lv); if( !fixed ) { fixed = skill_get_cast(skill_id, skill_lv); fixed = ( fixed > 1 ? ( fixed * 20 / 100 ) : 0 ); } This means if fixed = 0, then fixed = 20% of the base cast? This means all skills that have no set fixed cast in skill_cast_db.txt, will still have fixed casts. If so is this really how it is in the officials? For example using RA_ARROWSTORM skill has 0 fixed cast according to source . But then it still has 20% of the variable amount as fixed cast time?
  16. Yeah its so costly, and we spend for something that shouldn't occur in the first place. What's sad is that normal players are now aware of how to DDOS.
  17. I just found these codes over some forum. Some dude was facing a similar issue. But you couldn't just edit and post the command temporarily saving 100+ servers out there, could you? >.>
  18. Bump! really? nobody wants to fight DDoS?
  19. Hi, I'm trying to find out a suitable rule for iptables for the three udp ports to rid DDoS attacks. I found this somewhere and was trying to edit it but I thought asking for help here would be a better idea as I needed to know the maximum packet lengths used by the emulator. iptables -A INPUT -p udp --dport 5121 -m length --length 2401:65535 -j DROP iptables -A INPUT -p udp --dport 6121 -m length --length 2401:65535 -j DROP iptables -A INPUT -p udp --dport 6900 -m length --length 2401:65535 -j DROP I'd really like some help with editing these.
  20. Please revise your topic and edit it. Hey, I'm sorry about this but I dont use rAthena so I cannot make a diff with exact line edits. Is it fine if I make a txt file with Find and Replace ? I've added a txt file with find and replace instructions.
  21. Hello, This is the first of my code modifications, so do let me know (with possible fix and what I did wrong) if you find any bugs. What this modification does? Basically logs and announces all trades and drops by GMs using a table that's much easy to understand than normal trade logs, whilst preserving the original trade logs. Find and Replace : TradelogPatch.txt Recompile and ban your corruption! Do let me know what you think
  22. Smoke

    Help please.

    To lower damage of Cross Impact : In src/map/battle.c, Find: /** * GC Guilotine Cross **/ case GC_CROSSIMPACT: skillratio += 1050 + 50 * skill_lv; break; and edit "skillratio += 1050 + 50 * skill_lv;" to your liking. I'd like to help you with the second but that'd just be wrong. Maxing baselevel is really easy, if you can download the svn and compile it + log into your server, you can find out how to use BaseLevel and other simple script commands. I'll link you to this : http://buwinow5.tripod.com/ It may be old but it covers the basics.
  23. Thank you. I had the same issue. It worked fine and I could log in, though now I face this : ./AI sakray/AI_M.lua:300: bad argument #1 to 'Get' (number expected, got nil) Edit: Seems to be working absolutely fine with the AI_Sakray files, when I copied/pasted then into the AI directory.
  24. For the first question. I'm not sure what you're trying to say. Because i see the announce commands in place... this is Spera's Disguise npc if im not mistaken.. and if untouched will work fine. As for the second, Find : getitem 7061,1; Replace with : getitem YOURITEM,QUANTITY;
  25. Maybe this would help. prontera,155,181,5 script Sample 757,{ set .charName$,strcharinfo(0); mes "[Marco Hombreng]"; mes "Anda hanya memiliki 10 menit di dalam map."; next; menu "Gua Iblis[" + getmapusers("morocc") + " / 10]",mangkat; mangkat: announce "[Marco Hombreng]: "+strcharinfo(0)+" Masuk Gua Iblis",0; warp.Map$,0,0; sleep2 5000; initnpctimer; end; OnInit: set .Map$,"morocc"; set .timeOut,60000; end; OnTimer1000: set .timeOut,.timeOut - 1000; if(getnpctimer(0)>=.timeOut) goto TimesUp; else { message .charName$,"You have "+((.timeOut-getnpctimer(0))/1000)+" Seconds."; initnpctimer; } end; TimesUp: message .charName$,"Time's Up!! You will be warped out right now.."; mapannounce .Map$,"Time's Up !! You will be warped out right now..",0; mapwarp .Map$,"prontera",155,181; stopnpctimer; set .timeOut,60000; end; } added .timeout deduction per second. added stopnpctimer on TimesUp. - not sure if this is necessary. added sleep2 5000 to give a 5second gap for map loading... decrease at will. I didn't check if the charid is to be retained so i added sleep2, if it isnt, use sleep instead. Regards~
×
×
  • Create New...