Jump to content

Technoken

Members
  • Posts

    505
  • Joined

  • Days Won

    8

Everything posted by Technoken

  1. Are you going to actually add a new job and add skills on it? If not you could use changebase script command. changebase 26; // for xmas sprite changebase 27; // for summer sprite
  2. I'm currently having issue with character being stucked while talking to a NPC and suddenly clicking ESC key. IDK if it's because of client problem(2013-12-23), because I tested it on 2015-11-04 client and when pressing ESC key the NPC dialogue doesn't disappear. I'm currently facing the issue with the default warper(npc/custom/warper.txt) and default stylist(npc/custom/stylist.txt) without them being modifed. ANYWAYS since I have googled several issues about this and found nothing that help me. I decided to just create a new command(using bindatcmd) that will make stucked characters get 'unstucked'. It's like @refresh but using warp command on the same coordinates and has cooldown. BUT since at my server, normal accounts(group id 0) cannot use atcommand while talking to a npc, I wanted to add something like allowing just a specific command(@refresh2 command to be specific) to be used while interacting at a npc but I can't do it on SRC. I looked at atcommand.c and found this line under bool is_atcommand //If cannot use atcomamnd while talking with NPC [Kichi] if (type == 1 && sd->npc_id && sd->state.disable_atcommand_on_npc) return false; Question: 1) How can I make a specific command to be allowed while talking to a NPC? 2) What part of bool is_atcommand is the variable for the command used? I tried it like this way but it's not working and it's showing compilation warnings //If cannot use atcomamnd while talking with NPC [Kichi] if (type == 1 && sd->npc_id && sd->state.disable_atcommand_on_npc && command != "refresh2") return false; Maybe someone here can help me please. Thank you!
  3. As the topic says, how do you protect your server from DDOS attacks? I got an unmanaged VPS from google cloud. I host my roserver and webserver on 2 different vps. And just now I try to do DDOS attack and both my server went down. I did it just to test how will my server handle attacks. And now since my server went down during the attack, i'm looking for some preventive measures. I was thinking that instead of availing DDOS protected ragnarok hosting, I might gain idea on how can I setup a DDOS protected server from my own unmanaged VPS. Maybe someone here can share any idea to do this? It will be highly appreciated. Thank you.
  4. Yes, That's possible. Just add a woe session using the default woe_controller. However the owner of the castle can only be 1 Guild. So whoever conquers the castle on the 2nd WoE will be the owner.
  5. I just did test your script and it's working fine. Even the duplicates have Pub(waiting room)
  6. http://supportmii.com/ro1/JudasBible.pdf On XXII section.
  7. Can anyone help me about GRF editor? I'm having this error when I'm using GRF editor. I successfully decrypt my grf, but whenever I try to extract the files or even click to view the files it's always throwing up an error -------------- Message -------------- Failed to decompress data. -------------- Stack trace -------------- at GrfToWpfBridge.Application.DefaultErrorHandler._reportAnyManagedExceptions(String message, Exception exception, ErrorLevel errorLevel) at GrfToWpfBridge.Application.DefaultErrorHandler.Handle(Exception exception, ErrorLevel errorLevel) at GRFEditor.WPF.PreviewTabs.FilePreviewTab._baseLoad(FileEntry entry) at GRFEditor.WPF.PreviewTabs.FilePreviewTab.<Update>b__2() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart() -------------- Exception -------------- GRF.ContainerFormat.GrfException: Failed to decompress data. at GRF.ContainerFormat.GrfExceptions.ThrowFailedToDecompressData() at GRF.Core.GrfCompression.CustomCompression.Decompress(Byte[] compressed, Int64 uncompressedLength) at GRF.Core.FileEntry._getDecompressedData() at GRF.ContainerFormat.ContainerEntry.GetDecompressedData() at GRFEditor.WPF.PreviewTabs.PreviewText._load(FileEntry entry) at GRFEditor.WPF.PreviewTabs.FilePreviewTab._baseLoad(FileEntry entry) Btw i'm using GRF editor 1.8.0. I also used this to encrypt this GRF. Decrypting the grf works well before and I can change the datafiles in it. But now IDK what actually happened why this error started showing. Is there anyway to save my data files? I'm actually frustrated right now coz I don't have any backup of this GRF data files. EDIT: IDK what happened but it seems working now. But still there are times that the grf editor is saying the same error. What I did is grab another copy of my grf and try to decrypt it again and somehow it works.
  8. I am looking for a src that adds a permanent hit to all the mobs spawned in my server. I wanted to apply this since I'm running a high rate hunting server. Upon researching I found something to change it via src. I already forgot where I got this idea to change mob spawn stats. on mob.c under int mob_spawn (struct mob_data *md) memset(&md->state, 0, sizeof(md->state)); status_calc_mob(md, SCO_FIRST); + if( !mob_is_clone(md->mob_id) ) // Increase mob's HIT except clones + md->status.hit = (md->status.hit * 250) / 100; md->attacked_id = 0; md->norm_attacked_id = 0; md->target_id = 0; md->move_fail_count = 0; md->ud.state.attack_continue = 0; md->ud.target_to = 0; It was working as i've wanted, but just now I realized the that hit is being recalculated when the mob changed property, and setting the status.hit to it's default hit. And it is somehow related to the issue i posted on github https://github.com/rathena/rathena/issues/1903 Now I wanted it to function again and increase all mobs hit on spawn, but I don't know where should I apply it now or how to fix this issue. I was thinking that it is not working now because of this fix so I tried to replace md->status.hit with md->base_status->hit. It doesn't have any compilation errors or map-server errors. But whenever I start the server, it's always crashing the map-server. Maybe someone here can help me how can I add permanent hit on ALL mobs during spawn? Thank you!
  9. @Akkarin is there any thread where we can see the benefits of being a donator?
  10. Maybe show us your script so we can help you.
  11. Check your npc/scripts_mapflags.conf if there is npc: npc/mapflag/nobranch.txt
  12. - script hourlypoints -1,{ OnPCLoginEvent: if (getgmlevel() > 0) end; attachnpctimer ""+strcharinfo(0)+""; initnpctimer; end; OnTimer60000: set @minute, @minute + 1; //Check for 1 Minute if(@minute == 60){ set @minute,0; set Hourly_Points, Hourly_Points + 1; dispbottom "You received 1 Hourly Points by staying ingame for 1 hour. You now have "+Hourly_Points+" Hourly Points."; } stopnpctimer; initnpctimer; end; }
  13. - script hourlypoints -1,{ OnPCLoginEvent: if (getgmlevel() > 0) end; attachnpctimer ""+strcharinfo(0)+""; initnpctimer; end; OnTimer60000: set @minute, @minute + 1; //Check for 1 Minute if(@minute == 60){ set @minute,0; set Hourly_Points, Hourly_Points + 10; dispbottom "You received 10 Hourly Points by staying ingame for 1 hour. You now have "+Hourly_Points+" Hourly Points."; set @consecutive_hour, @consecutive_hour + 1; } //Check for 3 hours consecutive if(@consecutive_hour == 3) { set @consecutive_hour,0; set Hourly_Points, Hourly_Points + 30; dispbottom "You received 30 additional Hourly Points by staying ingame for 3 consecutive hours. You now have "+Hourly_Points+" Hourly Points."; } stopnpctimer; initnpctimer; end; } EDIT: Even vendors are going to gain hourly points.
  14. Please avoid multiple replies. Now check npc/scripts_mapflags.conf if npc: npc/mapflag/nobranch.txt is included or not commented out. if it is not commented, check npc/re/scripts_main.conf (if your are using renewal ) or npc/pre/scripts_main.conf (if you are using pre-re). If your mapflag scripts are being loaded import: npc/re/scripts_mapflags.conf
  15. Are you sure your mapflag is being loaded? Can you post your mapflag script?
  16. You need a photoshop so you can edit the images in psd format. As for the script, just add it. How? Go here -> https://github.com/rathena/rathena/wiki/Adding-a-Script
  17. I encountered this error after encrypting the my files. When I run my client this error shows up GRF Encryption - File not found Couldn't locate the client executable. Error code: 0x01 I already use the encrypted grf, dll, and client. BTW i'm using ROCred as a launcher. It wouldn't be a problem right? I've been using it before with encrypted files and got no problem. But just now this error shows up.
  18. Works like charm. Thank you so much @Akkarin
  19. Alright so I just did setup my FluxCP. And I tried to access it's sub-directory which I can BUT I couldn't read its contents. Then I did add the patcher and forum folders inside the fluxcp ( FLUXCP/patcher and FLUXCP/forum ) Now how can I make it work like the other fluxcp sub-directories that couldn't be read OR make it totally inaccessible outside. I tried to put .htaccess (Order deny,allow Deny from all) inside the patcher folder but thor patcher.exe doesn't work. Anybody has an idea how to make it work? Thanks!
  20. This is awesome! Thanks @Tokei
  21. I already fixed this by removing/deleting suexec from Centos 7. https://palatana.wordpress.com/2014/09/25/disable-suexec-in-apache/ Thanks to @Akkarin Thanks also for those who helped.
  22. I did what you told me. And yeah, it was root before.
  23. I already configured it. The problem is the errors that's showing. It won't let me in. Message: Failed to write data/tmp/ConfigServers.cache.php permission error or data/tmp not exist in Flux::parseConfigFile()
×
×
  • Create New...