Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/15/12 in Posts

  1. Since our pre-Renewal files are already very stable, I don't see the point in dropping them... It doesn't complicate updates since, well, we're not updating those files, only Renewal ones.
    3 points
  2. input .@i; if (.@i == 0 || .@i > Zeny) mes "That's an invalid amount."; else { mes "You've bet "+.@i+" Zeny..."; set Zeny, Zeny-.@i; sleep2 1000; if (!rand(5)) { mes "You Win!"; set Zeny, Zeny+(.@i*5); } else mes "You Lose."; } close; Somehow I expected more from a "super request"... :3
    2 points
  3. 'ax'toi means a conversion in hexadecimal system, that has numbers from 0 to 9 and letters from A to F. Mostly used in web programming, eA and rA use it a lot for color flags. That's a mere trick but still not the best as efficiency. Works only in rAthena of course as it has some sorto of direct string comparator. It will need the system to make some implicit conversions due to the odd coding to make it like it is. GmOcean's solution was more suitable and actually nicer for the CiC. if( !getstrlen(str$) )
    2 points
  4. First of all download Alexandria's Renewal Data Folder EXAMPLE: [ACCESSORY_IDs.ACCESSORY_BUNNYBAND] = "_�䳢�Ӹ���", HOW TO ADD: [ACCESSORY_IDs.ACCESSORY_HEADGEARNAME] = "_SPRITENAME", <<<<---- UNDERSCORE+SPRITENAME +COMMA don't forget it! We're now done on how to add the "SPRITE"... next step.... goto: luafiles514/lua files/data info/accessoryid.lua EXAMPLE: ACCESSORY_BUNNYBAND = 15, HOW TO ADD: ACCESSORY_HEADGEARNAME = ViewID, <<--- + comma.. ----///// we need to use the ViewID later! and also the HEADERGEARNAME We're now done on how to add the "ViewID" :::NEXT STEP::: File to edits: idnum2itemdesctable.txt idnum2itemdisplaynametable.txt idnum2itemresnametable.txt ABOUT THE: idnum2itemdesctable.txt num2itemdesctable.txt I KNOW! YOU ALREADY KNOW HOW TO ADD/EDIT THAT ONE! 1st STEP: idnum2itemdisplaynametable.txt 2214#Bunny_Band# how to add: ITEMNUMBER#CLIENTITEMNAME# 2nd STEP: idnum2itemresnametable.txt 2214#�䳢�Ӹ���# how to add: ITEMNUMBER#SPRITENAME# <<<----so the sprite name! you need to remove the UNDERSCORE for it... 3rd STEP: num2itemdisplaynametable.txt ITEMNUMBER#SPRITENAME# <<<----so the sprite name! you need to remove the UNDERSCORE for it... how to add: ITEMNUMBER#HAT# --------------- 4th STEP: num2itemresnametable.txt 2214#�䳢�Ӹ���# how to add: ITEMNUMBER#SPRITENAME# Server Side: go to your db/item_db.txt or item_db2.txt 2214,Bunny_Band,Bunny Band,5,20,,100,,2,,0,0xFFFFFFFF,31,2,256,,0,1,15,{ bonus bLuk,2; },{},{} how to add: 2214,Bunny_Band,Bunny Band,5,20,,100,,2,,0,0xFFFFFFFF,31,2,256,,0,1,ViewID,{ bonus bLuk,2; },{},{} ---- remember about the ViewID above? specied your own id!lol And for the finale steps Download luac5.1.4 then download notepad++ open it click file>save as>batch>file type as .bat after save it this will look alike as you notice there is already accessoryid.lua and accname.lua meaning withtin that folder those .lua will convert in .lub even how many .lua's you got in that folder. so open the batch this will pop up after opening it after that press any key as what cmd said then poop the two lua file it become lub then you are done put the .lub in your luafiles514 > lua file > datainfo and you are done NOTE: You have to make sure that you have latest data folder!!!! to avoid other errors
    1 point
  5. I was thinking a freebies giver to have 4 items to give and 1 item it would be a random zhakastia,85,57,6 script Freebies Giver 790,{ OnInit: waitingroom "Get your freebies here!!!",0; if( !Freebies ){ set Freebies,1; mes "Welcome...this is your gift..."; getitem 2357,1; getitem 2524,1; getitem 2421,1; getitem 5171,1; getitem 667,5587,5598,1: <<<<<<this is the example that players will get a random rewards from it so the list above will get thoroughly and for the last item it will be random for the item id that i put in }else{ mes "You have claim the Reward already."; } close; }
    1 point
  6. bugreport:3289 I've toyed around with this bug report for awhile, and we haven't acted upon it yet. Due to the nature of the bug report, possible change significance to the core, and the latter, I figured we'd create a topic after our IRC discussion we had tonight. I know there's a lot of talented DB experts on the rAthena team, and I'd like to see everyone's angle on this bug report so we can come up with a plan to implement. One of us could easily throw in fixes, and changes but I believe everyone contributing to the changes is the best idea - whether it's ideas, or code. The ultimate goal, of course, is to decrease the execution time of queries, and to improve performance. @Ind contributed a diff in the bug report tonight. It was a few changes he made while discussing with us over IRC. I'd say taking a look at the bug report, and viewing his ideas would be the best start. Finally, prior to implementing it if we do alter tables and manipulate constraints, and what-not, we'll want to publicly make it apparent (at least in my opinion) - digest, noticeable commit, and such. The goal of this thread is to make sure we fix the poor performance, and properly implement it with as least repercussions as possible. Discuss! P.S. - I'll use my server as a guinea pig as I do a lot for rA commits. My poor players. Edit #1: I forced @Trojal into #rdev last night (his precious 80 minutes of his life gone) as he didn't want to write a novel in response to this post. Here is what he came up with for indexing:
    1 point
  7. try this.. http://pastebin.com/raw.php?i=rd1s8qid Edit : Some Mistake... change mes ""+.Name[.@i]+" - Fame : "+.Fame; into mes ""+.Name[.@i]+" - Fame : "+.Fame[.@i];
    1 point
  8. Wait for the next source release, then it's a matter of: --- settings_reg-0.cpp Thu Nov 15 17:56:44 2012 +++ settings_reg.cpp Thu Nov 15 17:56:38 2012 @@ -12,7 +12,7 @@ #include "opensetup.h" #include "settings.h" -//#define HKLM_TO_HKCU +#define HKLM_TO_HKCU #define SETTINGS_REGPATH "Software\\Gravity Soft\\Ragnarok" #define SETTINGS_REGPATH_OPTION SETTINGS_REGPATH"\\Option"
    1 point
  9. more like this prontera,155,177,5 script dkfjhsdfkjs 100,{ .@i = 1; while (1) { zeny = zeny + (( !rand(5) )? ( .@i * 5 ): -.@i ); // has a negative sleep2 250; } } although this works, but I don't recommend do something like this I don't believe in how rathena script engine calculating value inside compact if-else I just try this script ... my money really going up ... o.O that betting trick really prove can beat this system to gain infinite money .... in theory of course
    1 point
  10. update : http://goo.gl/mHB4C
    1 point
  11. I mean, why not like this? sleep2 1000; if ( !rand(5) ) { mes "you win"; zeny = zeny + ( .@i *5 ); } else { zeny -= .@i; mes "you lose"; } close;
    1 point
  12. lol my mistaken and a fail understanding what he trying to say O.o
    1 point
  13. did it and some more edit as your need: http://pastebin.com/aLcGgJtd also there still 15 occurrences of isequipped that I didn't bothered to look at but maybe you guys should move them to item_combo_db.txt
    1 point
  14. Try this: { .npc$ = "[Dr. Ibarra]"; mes .npc$; if (Class != Job_Novice) { mes "Who are you? Get away from here."; close; } mes "What job do you want?"; next; set .@i, .Jobs[select(.menu$)-1]; if(Sex==1 && .@i==jobname(4042)) set .@i,jobname(4043); else if(Sex==1 && .@i==jobname(4020) set .@i,jobname(4021); else if(Sex==0 && .@i==jobname(4043)) set .@i,jobname(4042); else if(Sex==0 && .@i==jobname(4021)) set .@i,jobname(4020); else mes .npc$; mes "You have changed into the ^0055FF"+jobname(.@i)+"^000000 class!"; skill "NV_BASIC",9,0; // Give Basic Skill instantly jobchange .@i; BaseLevel = 100; //set base level JobLevel = 50; // set job level SkillPoint = SkillPoint + 118; // Set Skill Point to max specialeffect2 413; close; OnInit: setarray .Jobs[0],4008,4009,4010,4011,4012,4013,4015,4016,4017,4018,4019,4020,4021,4049,4047,23,24,25,4023,4024,4025,4026,4027,4028,4029,4030,4031,4032,4033,4034,4035,4037,4038,4039,4040,4041,4042,4043,4045; set .menu$,""; for(set .@i,0; .@i<getarraysize(.Jobs); set .@i,.@i+1) set .menu$, .menu$+jobname(.Jobs[.@i])+":"; end; } I haven't tested it yet.
    1 point
  15. Afaik, you can only "sign" the name of an existing character.
    1 point
  16. You could however do something like this: if( !axtoi(#AccountPW$) ){do blah;} OR set .@var,axtoi(#AccountPW$); if(!.@var){do blah;} That'll turn your string into an interger, by assuming its a Hex value, this way, any Alpha-numeric combinations will be accepted, vs atoi (which only accepts strings consitant of only numbers). Edit: NVM, that wont work lol.. just realized hex only has A->F as letters lmao, but you CAN do this: if( !getstrlen(#AccountPW$) ){do blah;}
    1 point
  17. Throwing my own idea in. Why not just ignore case sensitivity all together similar to @go? I don't think anyone would be stupid enough to put two maps in that has the same name but different letter cases.
    1 point
  18. using script... bindatcmd using src.... trunk/src/map/atcommand.c
    1 point
  19. 1. Suggestions for Users Online: - FluxCP: get it from /fluxcp/?module=server&action=status-xml - CeresCP: parse it from /cerescp/server_status.php - other CPs: ??? When server owners login to edit their server listing, maybe under "Users Online" have a dropdown list where they choose which CP, then a text box next to it where they input their CP URL. 2. Online Status: optionally let server owners input their IP and ports so your website can display Online/Offline status (if they use FluxCP, grab the server status from /fluxcp/?module=server&action=status-xml)
    1 point
  20. 09 -(+1)-> 10 -(multiple of 4)-> 12 -(-1)-> 11 19 -(+1)-> 20 -(multiple of 4)-> 20 -(-1)-> 19 21 -(+1)-> 22 -(multiple of 4)-> 24 -(-1)-> 23 SaveData\OptionInfo.lua
    1 point
  21. Look at your script. You are using an OnInit label, which means your script will run when loaded or server reload, without attaching any RID. So, at who did it suppose to send the mes "Welcome..." ?? You will just get the Player not attached ! error. About this, Valiente's script is a good solution. I believe it doesn't work instead. .@Item array exists only in the scope of its instance. When loaded with OnInit, it will be created until the script ends, that is at the next line. So when people will speak with the NPC, .@item array will just appear as a never-set array. To solvethis, just use NPC attached variable. (.Item).
    1 point
  22. No. I can show you the same result using my web host. When you drag and drop a GRF, the browser will parse it to get all files under it. There is no network connection even if you are on a host since you are using a local GRF (except if you don't define a GRF, in this case it will use the online GRF host to get files).
    1 point
  23. @echo off for /f "usebackq tokens=*" %%a in (`dir /b/s/a:d`) do ( for %%l in (%%~nxa\*.lua) do ( luac5.1.4 -o %%~nxa\%%~nl.lub %%l ) ) for %%l in (*.lua) do ( luac5.1.4 -o %%~nl.lub %%l ) pause there ya go
    1 point
  24. I haven't tested it yet, but I'm pretty sure that it'll work just fine. zhakastia,85,57,6 script Freebies Giver 790,{ if( !Freebies ){ set Freebies,1; mes "Welcome...this is your gift..."; getitem .@Item[ rand( getarraysize( .@Item ) ) ],1; } else{ mes "You have claim the Reward already."; } close; OnInit: waitingroom "Get your freebies here!!!",0; setarray .@Item[0],2357,2524,2421,5171; } Oh, you also have to restart your map server to give chance for the waiting room command and array declaration to load.
    1 point
  25. Just replace your last getitem line with Emistry's, and fill the array with all the random items you want - the rest is done automatically. Just make sure you use a semi-colon and not a colon.
    1 point
  26. setarray .@Item[0],607,608,512; getitem .@Item[ rand( getarraysize( .@Item ) ) ],1;
    1 point
  27. Do you know how to work with a debugger and Low Level language such as assembly jysn? No offense, but it'll be hard to make our own diff without these skills
    1 point
  28. I'm not your enemy, I swear! I do love tyranitar. I love them with a little salt.
    1 point
  29. If you're wondering about Hybrid's picture: http://www.sixprizes...nitarreuniclus/ Guess it's Reuniclus? Edit: Art by Sunshine-of-Darkness: http://sunshine-of-darkness.deviantart.com/art/Tyranitar-and-Gardevoir-166234660?offset=0
    1 point
×
×
  • Create New...