Jump to content

bWolfie

Members
  • Content Count

    848
  • Joined

  • Last visited

  • Days Won

    34

Everything posted by bWolfie

  1. Let me rephrase my question... How do I send clifmessage->so it can send a number to %d in messages.conf?
  2. I concur. Last updated Herc October 2016, seems there's tons of new stuff since then. In the process of getting up to speed. I suggest stay on your version updated one seems very unstable. Actually there was an issue with item cloning; but this was resolved Thanks for the advice. I go commit by commit since our server has messy custom code everywhere, so not too much of an issue to review what we are putting in.
  3. I was thinking, how about a disabled_status mapflag or map zone conf? How it would work is whenever 'SC_STATUS' is specified in that mapflag (or map zone?), it will automatically end or not allow that status to take place. Example hypothetical mapflag: prtg_cas01 mapflag nostatus SC_ASSUMPTIO In this instance, when on the map prtg_cas01, even if a player can use a skill which does this status (i.e. Assumptio, High Priest Skill), the status will not take effect. And any new players entering this map will automatically lose SC_ASSUMPTIO. Or it could work in map_zone_db.conf. This example would do the same as above for Blessing and Assumptio statuses. disabled_status: { SC_ASSUMPTIO: true SC_BLESSING: true } Erm, just throwing an idea I thought of out there. Let me know what you guys think. Even if it's not suitable for official herc, maybe it will inspire someone
  4. When you want to trigger the warp, you need to use attachrid(AID) 1. When creating event, you need to add every AID to an array which will be looped through at the end to check. 2. When event starts, save coordinates and map values using temporary @ value. E.g. @map$ = "prontera"; @x = 150; @y = 150; 3. When event ends, trigger donpcevent() for the event. 4. Loop through array and attachrid as you go. Here is an example...cannot confirm it works trying to work through with logic. prontera,150,150,3 script Blah_Blah_Me CLEAR_NPC,{ @map$ = "amatsu"; @x = 200; @y = 200; $@Event_Array[$@Count] = getcharid(CHAR_ID_ACCOUNT); $@Count ++; mes("I saved your coordinates!"); close; OnEnd: for (.@i = 0; .@i < getarraysize($@Event_Array); ++.@i) if (isloggedin($@Event_Array[.@i])) { attachrid($@Event_Array[.@i]); warp("" + @map$ + "", @x, @y, 0); detachrid(); } deletearray($@Event_Array); $@Count = 0; end; } Again, cannot confirm if works, tryna work through logic.
  5. Thanks Dastgir, that is perfect, just what I needed! I made a copy @who command which just counts so it can be used by the script engine.
  6. In the following code in channel.c, when your tick is not at 0 it will direct you to message 1455, "You're talking too fast!" if (sd && chan->msg_delay != 0 && DIFF_TICK(sd->hchsysch_tick + chan->msg_delay*1000, timer->gettick()) > 0 && !pc_has_permission(sd, PC_PERM_HCHSYS_ADMIN)) { clif->messagecolor_self(sd->fd, COLOR_RED, msg_sd(sd,1455)); return; } I wish to display the remaining ticks (seconds) instead of a static message. E.g. message 1455, "You cannot send a message to this channel for another %d seconds." Thanks.
  7. I guess I will use query_sql for now. query_sql("SELECT COUNT(account_id) FROM `autotrade_merchants`", .@merchants); .@total = getusers(1) - .@merchants;
  8. We are using custom @who4 command, which displays online players without autotraders. switch (display_type) { ....... default: { if (display_type == 4 && pl_sd->state.autotrade == 1) // who4: ignore autotrade vendors continue; struct party_data *p = party->search(pl_sd->status.party_id); ...... So I'm interested in being able to generate this number to use in a script.
  9. Hello, I will try to explain what I am looking for. Example: You use the @who command and it displays '53 players found'. How would one capture that '53' and convert it so it could be used in a script? Say, once the 53 is counted, it would be saved as a mapreg variable $who_count Thanks for any help.
  10. hatereset is a custom command. someone gave me this code long ago. not sure if I should share, but this should probably be in our official code thing. atcommand.c ACMD(hatredreset) { pc->resethate(sd); clif->message(fd, msg_fd(fd,1552)); //Hatred mark target has been reset. return true; } pc.cint pc_resethate(struct map_session_data* sd) { int i; nullpo_ret(sd); for (i = 0; i < MAX_PC_FEELHATE; i++) { sd->hate_mob[i] = -1; pc_setglobalreg(sd,script->add_str(pc->sg_info[i].hate_var),0); } return 0; } You need to add msg 1552 or whatever number you want to conf/messages.conf also there might be more to it cos this was just inside a plugin on my server. good luck lol. maybe someone who reads this post can help put my stuff together. i am kind of lazy right now sorry.
  11. I know 2014-10-22b.ragexe is fully stable as far as I know (except one issue where safety check vending button crashes on certain langtype). Pros of using this client: - Updated user interface - Bank vault. - Mail box still works (breaks on later clients which us RODEX). - Instant stat update (not slow like older clients). Cons - There are some unused features, or ones you might not use, which could be confusing for players. Stuff like kafra points. - Not supporting new features such as Doram, rodex. Well IMO I think it is worth updating. I actually don't know what the older clients have which the newer ones don't. Although, if there's nothing in the new clients you want/need, probably don't need to update.
  12. I concur. Last updated Herc October 2016, seems there's tons of new stuff since then. In the process of getting up to speed.
  13. 2 servers. one for web, one for game. game server should only run game related stuff. everything else can go on the web server.
  14. bWolfie

    Heal over Time

    for (.@i = 0; .@i < 5; ++.@i) ( perecentheal(3, 0); sleep2(1000); } Dunno how reliable this is, or if it should be used in item scripts.
  15. bWolfie

    Heal over Time

    oh i didnt see that however can it be percentage of your max hp instead? Yup.bonus2 bHPRegenRate, (MaxHp/100), 1000;This script would drain 1% of max hp every 1000ms (1 second).
  16. bWolfie

    Heal over Time

    You should check Incantation Samurai Card. Does same thing IIRC, except you can just change the negative integer to positive.
  17. I forgot what the whole thing is called, and even what the file is called. But I remember you can put this in some /etc/confs-avaiable/something.?? <VirtualHost *:80> ServerName example.net DocumentRoot /var/www/html/ ErrorLog /var/www/html/forum/error.log CustomLog /var/www/html/forum/requests.log combined Redirect /index.php http://example.net/cp </VirtualHost> virtual host that's what it called. i think you should google it so you can learn for you OS.
  18. So I currently have this clif->message which displays in your chat when you cast a certain skill. It only goes to the public log and I want it to go to 'Battle Message' (using 20141022 client). I noticed in msgstring it has these lines: [%s] deal '%d' damage on you.# [%s] received damage from [%s] with '%d' damage.# [%s] received '%d' damage.# [%s] deal damage to [%s] with '%d' damage.# Where can I find it in the source to send a message like this? Because I want the message to only appear as a Battle Message. To reiterate, I want to display my custom message so it appears as a battle message like this: Thanks
  19. In example.net/index.php <html> <head> <meta http-equiv="Refresh" content="0;url=http://example.net/cp"> </head> </html> Every time someone visits index.php (which is the page itself) they would be redirected to /cp
  20. Woohoo! I will test later. This is awesome. One warning: ReduceSkillDamage.c ReduceSkillDamage.c: In function ‘battle_calc_damage_post’: ReduceSkillDamage.c:100:27: warning: variable ‘s_sd’ set but not used [-Wunused-but-set-variable] struct map_session_data *s_sd, *t_sd; Compiling in CentOS7 (gcc 4.8.5 20150623)
  21. Thanks! Works. Now I have a second question for anybody who may know. How come # variable is on the excluded list? Would there be issues if I removed it from here? switch (*name) { case '#': case '$': case '.': case '\'': ShowError("script:getvariableofpc: illegal scope (not pc variable)\n"); script->reportdata(data); script_pushnil(st); st->state = END; return false; }
  22. Hi, I want to know where I can find the commit for adding of getvariableofpc() script command. I am running old version of Herc (2016) and want to add this to my source.
  23. sorry for my question i worked it out.
  24. I think it goes the same for any npc, even FAKE_NPC. The only time you can walk over it is when it is disabled (maybe disablenpc())
×
×
  • Create New...

Important Information

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