Jump to content

bWolfie

Members
  • Content Count

    850
  • Joined

  • Last visited

  • Days Won

    34

Everything posted by bWolfie

  1. You should try Digital Ocean. Their servers are pretty highly used, meaning for a production environment, it wouldn't be ideal for anything larger than a small community of 10+ players, but their website has lots of guides. I started their with almost zero knowledge, and now it's almost like a second language to me.
  2. Great work! I think you should release it Or maybe Herc dev could look to put this in a battleconf setting.
  3. Yes i understand all that. I want to make it so the NPC takes a record of their IP and block usage of that npc afterwards. I did some searching and found a guild pack script to use in what I'm after. From this thread: https://rathena.org/board/topic/94294-guild-pack-npc-giver-help-please/ 1. First script needs label to call in callsub: S_Check_IP: return query_sql("SELECT 1 FROM `guildpack` join login on login.`last_ip` = `guildpack`.`last_ip` where login.account_id = "+ getcharid(CHAR_ID_ACCOUNT), .@tmp); 2. Then define IP: .@myip$ = getcharip(); 3. Return true through callsub if IP exists in table: if (callsub(S_Check_IP)) { mes .@name$; mes("^616D7EIt seems I have already recorded your IP Address: ^ff0000" + .@myip$ + "^000000."); close; } 4. If does not exist, enter new entry to previously created table: query_sql("INSERT INTO `guildpack` VALUES (NULL," + getcharid(CHAR_ID_ACCOUNT) + ",'" + escape_sql(strcharinfo(PC_NAME)) + "','" + .@myip$ + "')"); All in all it looks something like this: https://pastebin.com/Lk8MHMBg This can be used for get_unique_id() too if you have gepard shield. My intention was to use this in a Lottery script, so people could only purchase one ticket per week. After each lottery draw, the table would be truncated so everybody can buy tickets again.
  4. Hello! I'm guessing this has been done time and time again, but my search skills are newbie at best. I have this particular NPC which I only want to be allowed to use once per IP, and then restricted from then on. E.g. Player A buys Jellopy from NPC on Account 1. Player A logs out, logs into Account 2. Player A is denied buying Jellopy from NPC on Account 2. It would be as if the NPC took a record of the IP, and then once that IP was in the system, anyone carrying the IP could not buy the jellopy again.
  5. Yup got this problem on my server too. Dunno what to do about it.
  6. I guess for something like this people maybe prefer to manually add things as opposed to plugin version. I have this version of BG working on my server. Can't give you any help tho, since someone else put it in. The only thing missing is the teams.
  7. Very nice work. Excellent idea.
  8. https://github.com/HerculesWS/Hercules/blob/master/doc/script_commands.txt#L7578 soundeffect script command can help you here. It plays .wav files in your GRF.
  9. Somebody has to manually change it every week. If they forget, then the week before will repeat. A script would make life easier meaning we can forget about it for good until we need to change the routine/pattern again.
  10. I want to set it via a script using this NPC. My castles change every week, so I currently have to delete all the sessions and re-add them every week.
  11. bWolfie

    Channel delay

    You can combine atcommand and OnInit to have the commands execute on script start.
  12. Hello, I am using Euphy's WOE Controller to schedule Wars of Emperium. An issue I have is each week the castle will change for a particular time. E.g. Week 1: Kriemhild (Prontera) @ Sat 13:00. Week 2: Bright Arbor (Payon) @ Sat 13:00. Is it possible to set the castle and/or other variables using script commands? If so, how? Thanks, TZ
  13. I think Haziel should take a moment and not take on any new projects. Just to catch up on everything. And then go from there.
  14. I always wondered what are people supposed to use instead of goto
  15. Very nice. A useful, but dangerous command, for sure!
  16. Hmm, is there a script that will message the usage delay to a player? You can make a script, yes, but you won't be able to stop them using the berry again. Example: if (@ygg_berry <= gettimetick(2)) { percentheal 100,100; @ygg_berry = gettimetick(2) + 10; } This will give a 10 second delay for the effect to take place. The issue with this method is if the player uses a berry before the delay timer is finished, the berry will be consumed and no effect will take place.
  17. welcome back rapalooza!
  18. Maybe client too old for this feature.
  19. Thanks. I did: chown -R 48:48 ../cp/data/logs chmod -R 0777 ../cp/data/logs What should my chmod value be? When I did 0600 like it recommended in error.php, site wouldn't work.
×
×
  • Create New...

Important Information

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