Jump to content

Kurofly

Members
  • Posts

    283
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Kurofly

  1. encrypting a file that is not in a grf would probably make your client unable to read it (apart from the lub extension obviously but any grf editor can read it anyway) I think there's no other option that putting it in your grf.
  2. Can't you just change the item type and add a script?? 7539,Poring_Coin,Poring Coin,3,0,,0,,,,,,,,,,,,,{},{},{} remplace to 7539,Poring_Coin,Poring Coin,2,0,,0,,,,,,,,,,,,,{#CASHPOINTS++;},{},{} And if you want to put restrictions: Say thanks to the wiki
  3. Thanks for answering so fast (not like me ;p) I tried downloading a few ressources from here especially the water map pack following these steps but I can't manage to solve it. A actually didn't notice untill now but the water textures aren't showing in game ^^ I'll keep trying. ---------------------------------- Ok I managed to make it work (in game too) I lacked the water map pack to load the water textures and I still needed to set the water count to 19 in ro.xml and rodesktop.xml (I did it only in rocheaptop.xml) in order to be able to load the map with browedit. Thanks for your help, I didn't think I was missing files since I thought browedit would tell me something like 'couldn't find ...'. Without this I wouldn't have been able to guess!
  4. You probably can't hide the servers ^^ Running the server on your computer for 4-5 people shouldn't take too much ressources so you should be fine but it all depends on your computer specs, try it out you'll know ^^
  5. Hello there. I'm having trouble opening some of Aerie's maps because browedit crashes on opening telling me there's invalid watertypes..(for example ars_fild24) Do you know how I can fix this? Thanks.
  6. It all depends on what you're looking for. One can be better regarding a certain aspect but you can't say 'this one is better'. One thing for sure is you have choice and that's good, go through posts about this subject in both communities and build your own opinion about it.
  7. Set your packet_db version to 55 In db/packet_db.txt Define packet obfuscation in src/config/core.h Recompile Set your clientinfo version to 55 in clientinfo.xml And diff your ragexe without checking the disable packet encryption option
  8. what did you put in the mmo.h, the packet_db, the core.h, your clientinfo.xml and did you check the disable packet encryption when you diffed?
  9. Hi. Whenever I kill a monster which has a label attached to it, I get this error.. It refers to this part of the script.c I have no idea what this is and I was able to kill mobs with labels untill this afternoon. I don't know what triggered this error either, I didn't do anything meanwhile so I'm a bit lost here. Can you give me a hand? Thanks. ------------------------------------------------------------------------------------------------- Ok I fixed it It was related to a source mod I did in a previous revision, I updated it. ( changed pc_setglobalreg(sd, "killedgid", md->bl.id); to pc_setglobalreg(sd, add_str("killedgid"), md->bl.id); ) Sorry for bothering.
  10. Doesn't seem like a really good idea to me.. Sure I'd love to see .md files as documentations and it's true that we have some monstrous doc files. But that's gonna take a hell lot of time! A big effort has already been put by devs to make the plain texts as easily readable as possible, I personnaly find it easy to read and people are already used to them. Since there are way more people used to those files than people who are not (not 100% sure of that though ^^) I'd say this amount of work is not really worth it There's also one thing I'm afraid of, if you look at the file emistry posted, to me it looks even more horrible than it looked before! Bulleted lists are nice but it becomes a pain when there are too many of them. I'd especially pay attention to that because if you considerer some files monstrous that's definitely something you should avoid. Even so, links, bold texts, and text size would be some really cool features to see in doc files. It all depends on the way it's done, it can be really nice but one thing for sure is that it's gonna take muuuuuch time, that's why I'm a bit reluctant to this idea.
  11. When you downloaded your server folder you normally used either toirtoiseGit or TortoiseSVN. If you used toirtoise git you need to do right click > tortoise git > Pull... If you used tortoise svn you need to do right click > SVN Update
  12. Ah so it's an xampp related problem (I didn't think the database itself would be bugged ^^) Solved (at least for now, I'll edit this topic if the problem occurs again) by getting back to mysql, you should do the same Technoken. Thanks a lot for letting me know, oh and don't forget to do a complete uninstallation of the xampp workbench before downloading mysql back cause I forgot ^^ (uninstall + delete C:\ProgramFiles\Mysql + delete C:\ProgramData\Mysql + delete C:\Users\<YOUR_USER_NAME>\AppData\Roaming\MySQL + reboot, some of those folder may be hidden)
  13. Hi There's a new guide for recent servers, you can follow it Be careful, to me a step is wrong, when loading the sql files you need to load the logs.sql in a new database named 'logs' (you should have 2 new databases, 'ragnarok' and 'logs') (I'm not an expert so don't trust my words more than others') You'll probably have some errors and struggle to solve them like everybody but that's part of the game ^^ I have no idea how to make your friends able to join your server, sorry that's not my domain.. If you want to add custom mobs : wiki , and custom items : wiki Go take a look at the wiki, you'll find a lot of very useful things. If you're a novice at scripting, you need to learn a bit about it if you want to create a server, don't hesitate to look at the wiki and at the script commands, you also have a lot of examples of scripts in your server use them all you want. For the cash shop you need to edit the item_cash_db file. For the scroll thing, you can just set a variable to 1 when equipping an item and setting it to 0 on unequip. This way you'll be able to allow players to use commands with the 'bindatcmd' and 'atcommand' script commands. Like this: // in the item_bd : // id,.......,{},{ GoAllow = 1 ; DuelAllow = 1 ; StorageAllow = 1; },{ GoAllow = 0 ; DuelAllow = 0 ; StorageAllow = 0; } - script At_go_duel_storage_Allow -1,{ OnInit: bindatcmd "go",strncinfo(0)+"::OnGo"; bindatcmd "duel",strncinfo(0)+"::OnDuel"; bindatcmd "storage",strncinfo(0)+"::OnStorage"; end; OnGo: if (getgmlevel() >= 20 || GoAllow) atcommand "@go "+.@atcmd_parameters$; else dispbottom "You don't have permission for using '@go' è_é"; end; OnDuel: if (getgmlevel() >= 20 || DuelAllow) atcommand "@duel "+.@atcmd_parameters$; else dispbottom "You don't have permission for using '@duel' è_é"; end; OnGo: if (getgmlevel() >= 20 || StorageAllow) atcommand "@storage"; else dispbottom "You don't have permission for using '@storage' è_é"; end; } // not tested ;p The izlude map bug is normal in recent clients, I think you need to find an old iz_int map and replace the one you have with it. Hope you'll enjoy the rA world ! Take care
  14. 'Sup there. I'm having trouble with my current server, I've set up a new clean offline server and whenever I kill a monster or use '@item' command the server freezes. I have no error in the consoles but I know it freezes because the client interface still works and the server doesn't tell me when I log out, even more it thinks I'm still online even after trying to log back several times. I have the latest git revision (updated it 5 min ago) (compiled too) and here are the files you may want to know about: src/common/mmo.h: #ifndef PACKETVER #define PACKETVER 20151104 #endif src/config/core.h: #define PACKET_OBFUSCATION db_packet_db.txt: packet_db_ver: 55 //packet_db_ver: default packet_keys_use: default 2015-11-04aRagexe diffed without the 'disable packet encryption' option (client found here) (I actually just checked the recommended and the 'use ragnarok icon' options) clientinfo.xml: <?xml version="1.0" encoding="euc-kr" ?> <clientinfo> <desc>Ragnarok Online Client Information</desc> <servicetype>korea</servicetype> <servertype>primary</servertype> <connection> <display>Local</display> <address>127.0.0.1</address> <port>6900</port> <version>55</version> <langtype>0</langtype> <registrationweb>www.ragnarok.com</registrationweb> <loading> <image>loading00.jpg</image> <image>loading01.jpg</image> <image>loading02.jpg</image> <image>loading03.jpg</image> <image>loading04.jpg</image> </loading> <yellow> <admin>2000000</admin> <admin>2000001</admin> <admin>2000002</admin> </yellow> </connection> </clientinfo> I tried changing the ragexe and the same problem occurs each time, whatever the diffing options. My previous server was a svn revision (r17726), I can't test it on my new ragexe but it works fine with others (2013 and 2012) I managed to temporarly solve the problem by updating my sql-files with the 'uprages' folder and other sql files (I only loaded the main.sql and logs.sql at first) but it suddenly came back, I have no idea what triggered that error the second time, I don't think I did anything unusual.. Well I tried a few things but seems I'm stuck there, I have to call for help There's one thing I'm not sure about, about when I diffed my client: At first I clicked ok without checking and it gave me an error. So I changed it to 'itemInfo.lub' and it worked fine (since my file has a cap) I don't know if it's related to my issue but since it concerns the iteminfo.lub it might have something to do with it, anyway with or without the cap I still have the same error. Whew, that makes a lot to read. Sorry about this and thanks for your support
  15. Can you give us more details? Is this problem occuring on one type of mob or does it seem random? Is your problem solved when you're in/out a party? Try to locate the error.
  16. Hi there. I'm interested in using the item link (the one you put with the alt+left click in chat) in scripts and so I need to know the hidden text behind that feature. More than that I need to know how it works. That's why I need your help there. I already know that the text the server receives is '<ITEM>???????`??`??`??`??</ITEM>', the ? being numbers or characters refering to the item linked. I also noticed this can't be used directly in game. So I have 2 questions left, How does the text refer to the item? And is it possible to use this feature from a NPC? Since it seems you can't link the item by typing the hidden text. As always, thanks for your support
  17. I tried it already but it also makes the monster immune from other monsters attacks (which is the same as making it invisible to others mobs actually).
  18. Ohh there we have something! So as long as one player is connected I can attach those mobs to his/her faction and so I can make mobs that can't be attacked by players. I just have a few questions then: Does the monsters spawned in factions attack normal monsters (not only those of opposite faction)? Is activating the faction vs faction system (with the 'fvfon' command) necessary to spawn monsters? If yes, does it display something on screen or can it be dicreet? Thanks for letting me know, that might be a really good way for me to do this!
  19. Yeah I saw that topic but I can't find it anywhere else that's a shame.. Also we never see his mob taking damage in the video and that makes me wonder about wether he's just immune from attacks. But yeah that's what I'm looking for ^^
  20. Hello everyone. I'm looking for a way of spawning an ally monster which can't be attacked by players, a bit like a pet or a mercenary but something that's not attached to anyone. To give a bit of details I'd like to create some areas where monsters are fighting against soldiers of a city for example. I can already do it with the ai states but since the soldiers are supposed to be your friends I'd like people not to be able to hurt them (because it's bad to hurt your friends, I guess?) Is there any way to do this? PS: I've been wandering the script commands in order to find some pet or mercenary related commands able to run without a player attached but found nothing, then I played a bit with the ai states and then the special ai states but still nothing, so here I am ^^ Thanks in advance.
  21. Ahh ok, I'm sorry I never used eathena. I think you already have to edit those parts, can you comment the lines that give you errors so that you can tell me all the errors you have? This way I'll be able to know what needs to be edited. prontera,157,162,5 script Monster Hunt 105,{ function CheckDelay; // initialise the function ++ set .@ticks , CheckDelay(getcharid(1)); mes "[Monster Hunt]"; if( !.monsterhunt ){ mes "No event for the moment."; }else if( getmapusers("pvp_n_1-3") ){ mes "There is someone/party inside."; }else if( !getcharid(1) || getpartyleader(getcharid(1),2) != getcharid(0) ){ mes "You're not a Leader in a Party."; } -- else if ((.@ticks = CheckDelay(getcharid(1))) > 0) { // one of the player in the party still has a delay ++ else if (.@ticks > 0) { // one of the player in the party still has a delay mes "You have to wait "+.@ticks+" seconds in order to join the event again."; } else{ getpartymember( getcharid(1) ); set .@PartyCount, $@partymembercount; if (.@PartyCount == 5) { mes "Would you like to join?"; menu "Yes",-,"No",M_Exit; set .PartyId , getcharid(1); // keep trace of the party id in order to warp the party out if someone dies warpparty "pvp_n_1-3",100,139,getcharid(1); end; }else{ mes "Dont have enough player/s on your party. You need 5 Members."; } } close; OnMinute04: if( rand(100) < 100 ){ announce "Monster hunt is now open! First party of 5 players (all level 255).",0; killmonsterall "pvp_n_1-3"; monster "pvp_n_1-3.gat",0,0,"RAIDEVENT",1991,1,"Monster Hunt::OnMobKilled"; set .monsterhunt,1; } end; OnMobKilled: set .monsterhunt,0; if( getmapusers("pvp_n_1-3") != 5 ){ announce "Monster Hunt failed by the party <<"+strcharinfo(1)+">>.",bc_all; warpparty "prontera",156,126,getcharid(1); goto OnClear; }else{ getpartymember( getcharid(1),0 ); for( set .@i, 0; .@i < getarraysize($@partymembername$); set .@i, .@i+1 ) getitem 7227,1,getcharid(3, $@partymembername$[.@i]); announce "Monster Hunt event finished <<"+strcharinfo(1)+">> ,the monster will be respawn maybe in an hour",bc_all; } warpparty "prontera",156,126,getcharid(1); end; OnClear: set .monsterhunt,1; set .@PartyCount, $@partymembercount; if (.@PartyCount == 5) { monster "pvp_n_1-3.gat",0,0,"RAIDEVENT",1991,1,"Monster Hunt::OnMobKilled"; } end; M_Exit: close; OnPCDieEvent: // warps the party out of the event and sets a delay if (getcharid(1) == .PartyId) { announce "Party "+strcharinfo(1)+" has failed the Monster Hunt event!",0; warpparty "<map>",<x>,<y>,getcharid(1); // don't forget to edit this part addrid(2,0,getcharid(1)); set MonsterHuntTime , gettimetick(2) + 300; // 5 min delay for every player in the party } end; function CheckDelay { // returns the amount of time the party needs to wait before doing the event again getpartymember getarg(0),2; -- for (; .@i < $@partymembercount ; .@i++) ++ for (; .@i < $@partymembercount ; set .@i , .@i + 1) if (attachrid($@partymemberaid[.@i])) -- if (MonsterHuntTime > .@time) .@time = MonsterHuntTime; ++ if (MonsterHuntTime > .@time) set .@time , MonsterHuntTime; return (.@time - gettimetick(2)); } } The 'addrid' script command might not be available in eathena, if you have an error with this command can you tell me the name of your sql database so that I can do it using sql queries? Thx
  22. I'm not a 100% sure of what I'm about to say but I think labels don't trigger in duplicates. Why do you want to duplicate it?
  23. I just tried it quickly on my server, it seems to work for me. What error do you have? A few things I noticed: I'm not sure if there are some places on the 'pvp_n_1-3' map that you can't access but if there are it would be a good idea to define an area in which the monster spawns so that you don't make it spawn somewhere players can't go ^^ set .@PartyCount, $@partymembercount; if (.@PartyCount == 5) { monster "pvp_n_1-3.gat",0,0,"RAIDEVENT",1991,1,"Monster Hunt::OnMobKilled"; } It's a really bad idea to use the '$@partymembercount' variable at this point! If any other script uses the 'getpartymember' command it will overwrite this variable. Why do you check if the party is still of 5 players before spawning the mob? I'd spawn it anyway since they need to be 5 to enter. end; M_Exit: close; why? xD, the script will end anyway.
  24. Sorry I almost forgot you You can try this, I didn't test it so that might not work but I'm sure you'll be able to correct it yourself if you need to. prontera,157,162,5 script Monster Hunt 105,{ ++ function CheckDelay; // initialise the function mes "[Monster Hunt]"; if( !.monsterhunt ){ mes "No event for the moment."; }else if( getmapusers("pvp_n_1-3") ){ mes "There is someone/party inside."; }else if( !getcharid(1) || getpartyleader(getcharid(1),2) != getcharid(0) ){ mes "You're not a Leader in a Party."; } ++ else if ((.@ticks = CheckDelay(getcharid(1))) > 0) { // one of the player in the party still has a delay ++ mes "You have to wait "+.@ticks+" seconds in order to join the event again."; ++ } else{ getpartymember( getcharid(1) ); set .@PartyCount, $@partymembercount; if (.@PartyCount == 5) { mes "Would you like to join?"; menu "Yes",-,"No",M_Exit; ++ set .PartyId , getcharid(1); // keep trace of the party id in order to warp the party out if someone dies warpparty "pvp_n_1-3",100,139,getcharid(1); end; }else{ mes "Dont have enough player/s on your party. You need 5 Members."; } } close; OnMinute04: if( rand(100) < 100 ){ announce "Monster hunt is now open! First party of 5 players (all level 255).",0; killmonsterall "pvp_n_1-3"; monster "pvp_n_1-3.gat",0,0,"RAIDEVENT",1991,1,"Monster Hunt::OnMobKilled"; set .monsterhunt,1; } end; OnMobKilled: set .monsterhunt,0; if( getmapusers("pvp_n_1-3") != 5 ){ announce "Monster Hunt failed by the party <<"+strcharinfo(1)+">>.",bc_all; warpparty "prontera",156,126,getcharid(1); goto OnClear; }else{ getpartymember( getcharid(1),0 ); for( set .@i, 0; .@i < getarraysize($@partymembername$); set .@i, .@i+1 ) getitem 7227,1,getcharid(3, $@partymembername$[.@i]); announce "Monster Hunt event finished <<"+strcharinfo(1)+">> ,the monster will be respawn maybe in an hour",bc_all; } warpparty "prontera",156,126,getcharid(1); end; OnClear: set .monsterhunt,1; set .@PartyCount, $@partymembercount; if (.@PartyCount == 5) { monster "pvp_n_1-3.gat",0,0,"RAIDEVENT",1991,1,"Monster Hunt::OnMobKilled"; } end; M_Exit: close; ++ OnPCDieEvent: // warps the party out of the event and sets a delay ++ if (getcharid(1) == .PartyId) { ++ announce "Party "+strcharinfo(1)+" has failed the Monster Hunt event!",0; ++ warpparty "<map>",<x>,<y>,getcharid(1); // don't forget to edit this part ++ addrid(2,0,getcharid(1)); ++ set MonsterHuntTime , gettimetick(2) + 300; // 5 min delay for every player in the party ++ } ++ end; ++ function CheckDelay { // returns the amount of time the party needs to wait before doing the event again ++ getpartymember getarg(0),2; ++ for (; .@i < $@partymembercount ; .@i++) ++ if (attachrid($@partymemberaid[.@i])) ++ if (MonsterHuntTime > .@time) .@time = MonsterHuntTime; ++ return (.@time - gettimetick(2)); ++ } }
  25. This function works fine for me. function script itemlink { // getarg(0) : item id return "<ITEMLINK>"+getitemname(getarg(0))+"<INFO>"+getarg(0)+"</INFO></ITEMLINK>"; } //ex: mes "Look at that "+callfunc("itemlink",512)+"! Isn't it awesome!?"; Also for those who wonder I know this functionnality works on my 2013-12-23 client but it doesn't work on my 2013-08-07 client so it's available since a date between those 2.
×
×
  • Create New...