Jump to content

jaBote

Community Contributors
  • Content Count

    2037
  • Joined

  • Last visited

  • Days Won

    43

Everything posted by jaBote

  1. OMG love the electronic components reference. I'll be rolling out new Ziu's patches translations soon since I've just finished the worst exams. There's some two left but they're not as time-consuming as the other ones.
  2. I don't know what you mean with an account in active state, but maybe you can rely on this: conf/char-server.conf // Restrict character deletion by BaseLevel// 0: no restriction (players can delete characters of any level)// -X: you can't delete chars with BaseLevel <= X// Y: you can't delete chars with BaseLevel >= Y// e.g. char_del_level: 80 (players can't delete characters with 80+ BaseLevel)char_del_level: 0 Set this to 1, so that characters cannot be deleted at all.
  3. Enchantment orbs behavior are just like cards, so you'll need an NPC (or @item2) to get those "cards" compounded inside the 4th slot of the item, as quesoph said before. These items will be compounded into the first available slot (if any) and there's no other mean to insert those items directly in the 4th slot (unless you modify source code, which will also modify the behavior of regular cards unless you set a new item type for the orbs and a lot of more cumbersome changes).
  4. As it's said in the guide above, you also need to install msysGit before installing TortoiseGit. Here's a link to the binary you're missing to install for TortoiseGIT to work properly: http://code.google.com/p/msysgit/downloads/detail?name=Git-1.8.1.2-preview20130201.exe&can=2&q=
  5. You could make the Lost Soul NPC give you the desired items if you want, since it's only enabled after having killed Naght Sieger. Maybe putting the prizes you want between the lines 4215 and 4220 4250 and 4254 (the others are up for exploitation) will do what you want. But be careful as this NPC will give that reward to anybody who talks to him.
  6. Not AFAIK, you still need to load main.sql and logs.sql in your database, but they're in the SQL folder.
  7. Well, message no 541 has always been difficult to translate maintaining all the placeholders in that order because of the saxon genitive, since it artificially changes the message order. I'd highly prefer any of those messages you just proposed mainly because of that, letting aside the fact that they're official.
  8. (From cellphone again) I didn't think of it and it's an excellent idea, but in that case make sure that player is vending after issuing that command. I may have dreamt about it, but I'm almost sure there is a checkvending script command. Make sure you remove that status when player logs in again!
  9. Try to get a clean official server GRF. That's where most sound effects are supposed to be stored.
  10. (From cellphone) Yeah you could do it, just be careful that the not equal sign in SQL is <>. This method is a bit slow to update because you'd have to wait the char server to save positions for the characters. You could place an NPC on the autotrade map, then issue a getusers(1)-getusers(8). Flaws of both two? The same. It will neither count autotrading nor shopping users. I'd try to source mod the server (or making a plugin) for saving autotrade status on a SQL table. Or maybe, let's get creative on there, if I remember correctly, there was a script command named getmapusers which had an option for not counting autotrades and/or buying/selling users. I can't look up on script_commands.txt ATM. As always, hope I helped.
  11. You could also set a variable to the value the query_sql function returns, it'll return the number of rows returned, so as said in doc/script_commands.txt: So this also does exactly what you want: set .@onlinecount, query_sql("SELECT `account_id` FROM `char` WHERE `online`=1"); In this case, you can also save yourself from using this SQL query which make the script run a bit slower than using this dedicated function: So it'll be a bit faster if you use this instead of the SQL query: set .@onlineusers, getusers(1); Hope I further helped you or at least given a bit more of insight on this.
  12. if i'm not mistaken. the vps and webhost is always separated. If you have a full VPS and not a RO-server dedicated one that some RO hosters try to sell, you can perfectly install a web server and as many services as you want (just like a dedicated server) given you don't jeopardize your neighboring VPSs or commit abuse your hired services. As far as I'm concerned, Virpus just sells traditional VPSs so it's possible to install more services on it (but again, don't try to abuse your resources). I've never dealt with CentOS (I just don't like it), but I believe its configuration file is located in /etc/httpd/conf/httpd.conf in your CentOS server. Then, look up for the DocumentRoot directive on that file. It should be a line like this one: DocumentRoot "/var/www/html" See that route? That's the directory from where you have your HTML document root. Change it to another already existing directory. Then save the file and reboot your apache server, by issuing only one of the two following sentences (whichever you want) with root privileges (logged in as root or by using the sudo command): /etc/init.d/httpd restartservice httpd restart That's it.
  13. @neqste Well, I agree Harmony is quite outdated and the other post was kinda ontopic but please, avoid deviating the original topic purpose. @bgamez23, did you solve your problem? I think Harmony community would help you better address this issue anyways since here in Hercules we don't have its source code, but will be glad on helping as much as we can on it.
  14. I think it won't have any effect since, as you can read from script_commands.txt, that label doesn't exist (you forgot to add the zero). Even if it was correct the script would only trigger at 2 AM, not every 2 hours: Maybe a good idea would be changing that OnMinute30: label to this code: OnHour02: // Trigger every 2 hoursOnHour04:OnHour06:OnHour08:OnHour10:OnHour12:OnHour14:OnHour16:OnHour18:OnHour20:OnHour22:OnHour24: So that the script would trigger only each 2 hours o'clock. Or, If you want to keep triggering those events at half past the hours, maybe you want to add this just after the OnMinute30: label: set .hourcount, .hourcount +1; if (.hourcount < 2) end; // If just an hour has passed, end scriptset .hourcount, 0; // Reboot count I haven't tested them, so I cannot guarantee these will work, but chances are this will.
  15. Nope, I think you'll have to go one by one and hope you don't have any item that can be permanent and rented at the same time.
  16. The client-side slot information of items (what slots you see available to put a card in there) is set on your client iteminfo.lua (or iteminfo.lub if you use lub); the server-side slot information for items (what slots are actually able to be put a card in) is managed in the server db/{pre-}re/item_db.txt or db/item_db2.txt
  17. I don't know if it was after that commit, but check you have these entries in db/const.txt (the 2 latter ones are the ones you want to see there): killerrid 121 1killedrid 122 1SlotChange 123 1CharRename 124 1 I believe they are mostly responsible of making those changes be saved on the char table instead of the global_reg_value one. If they aren't on that table, try putting them yourself. If they're already there I don't know what's missing then.
  18. jaBote

    Customize NPC Shop

    I think you should call the shop name, not the shop type. Example (as said in doc/script_commands.txt): //Will call the shop named DaShop and opens the buy menu.callshop "DaShop",1; The first argument passed to callshop is the NPC name that has the shop, as you can see. You should declare a shop with your very own name elsewhere and then call it (by its name) from callshop.
  19. Diligently translating sir! Incoming! RO open setup spanish2.txt (Has only the new strings) And I still can't change languages on the program without ResHacking it /sob. Anyways I don't need it, just want to see how that translation looks on it. For people who wait for my patch translations from Ziu: I've translated this because it's way quicker, I'm still knee deep on exams, sorry!
  20. Your reply is in the first post of the topic: As you can see, it's located on db/cashshop_db.conf. P.S.: Please, avoid quoting large and redundant pieces of text. It difficults reading.
  21. Maybe that script command is from eAmod? We don't have 'successenchant' script command here (and we don't support eAmod), but I could help you a bit on this. First, add this at the start of the NPC, just before the first 'mes' and after the NPC declaration: function successenchant; Then, at the end of the file and after the NPC closing curly brace, add this as function (this hasn't been tested so it may have errors or undesired behavior, test at your own risk): function successenchant { set .@id2enchant, getequipid(getarg(0)); unequip getarg(0); delitem .@id2enchant,1; // It's supposed the player should have only one of these, didn't look at it in the script getitem2 .@id2enchant,1,1,0,0,0,0,0,getarg(1); equip .@id2enchant; return;} Theoretically this will help you. I didn't take a detailed look at the script because right now I haven't the time, so it may not work. Tell me if it needs any tweak.
  22. You could use that for setting variables of the current NPC if you want. However, I think that's overkill since you can set your current NPC variables like this: set .variable, value; For setting an NPC variable with getvariableofnpc, you could use any of these two sentences (but hey, don't do that, you're about to do quite an overkill!): set getvariableofnpc(.var, "Current NPC name"), value;set getvariableofnpc(.var, strnpcinfo(3)), value; However, 'getvariableofnpc' script command is made for getting another NPC's variable and even setting it, just in case you need it. Check out what the doc/script_commands.txt has to say about the 'getvariableofnpc' command: Anyways, I agree the structure I've put before is a bit complicated, so I also support your suggestion.
  23. I think something like that could be added and it'd be quite useful. In addition, maybe it'd be good a conf for unloading NPCs with errors so that they won't even appear to users and you won't have to unload/kick them agian, which is quite cumbersome. P.S.: @Emistry, if you want some help on using screen, I could help you for basic usage on it.
  24. This piece of code can already do what you want: set getvariableofnpc(.arg0,"TargetNPC"),1;set getvariableofnpc(.arg1,"TargetNPC"),3;donpcevent("TargetNPC::OnDoFunction");//-----------------------------------// On the other NPCOnDoFunction:callsub "S_Function",.arg0,.arg1; Anyways, I agree your script is way easier.
  25. Bumping this. I know this is a lot of effort but maybe I can lend a hand whenever my exams are finished around July 10th.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.