Jump to content

Akkarin

Members
  • Content Count

    11
  • Joined

  • Last visited

2 Followers

About Akkarin

  • Rank
    Member
  • Birthday 09/18/1987

Profile Information

  • Gender
    Male
  • Location:
    England, UK
  • Github
    Akkarinage

Recent Profile Visitors

2131 profile views
  1. Thanks for that! I knew it'd be something i'd copied and pasted without reading through it properly to use the correct syntax/functions. I now get no errors.... however: 08:11:52[Status]: HPM: There are '4' plugins loaded, type 'plugins' to list them08:11:52[Debug]: HPM_map_atcommands: duplicate command 'hide', skipping... I guess the plugin system can't be used to overwrite existing commands like the bindatcmd method does. Do you know if this is planned for the future or if this is intentional?
  2. Hi Mumbles In that case i'll just amend the various templates that use them to point to particular sub-forums. That should get the list down and help to point wiki-users in the right direction. Two birds with one stone!
  3. Morning! Does the Hercules wiki utilise the Talk pages, or are they redirected to a hidden forum board that i can't find? Depending on where they go, i can obliterate half of the Wanted Pages list to help clean things up
  4. Thanks for the reply ossi0110 The following is what i've thrown into nhide.c: [cbox] #include <stdio.h> #include <string.h> #include "../common/HPMi.h" #include "../map/script.h" #include "../map/clif.h" #include "../map/pc.h" #include "../map/atcommand.h" HPExport struct hplugin_info pinfo = { "nhide", // Plugin name SERVER_TYPE_MAP,// Which server types this plugin works with? "1.0", // Plugin version HPM_VERSION, // HPM Version (don't change, macro is automatically updated) }; ACMD(hide) { if (sd->sc.option & OPTION_INVISIBLE) { sd->sc.option &= ~OPTION_INVISIBLE; if (sd->disguise != -1 ) status->set_viewdata(&sd->bl, sd->disguise); else status->set_viewdata(&sd->bl, sd->status.class_); clif->specialeffect(&sd->bl, 587, ALL_CLIENT); // Smoke effect clif->specialeffect(&sd->bl, 589, ALL_CLIENT); // Smoke effect clif->message(fd, msg_txt(10)); // Invisible: Off // increment the number of pvp players on the map map->list[sd->bl.m].users_pvp++; if( map->list[sd->bl.m].flag.pvp && !map->list[sd->bl.m].flag.pvp_nocalcrank ) { // register the player for ranking calculations sd->pvp_timer = timer->add( timer->gettick() + 200, pc->calc_pvprank_timer, sd->bl.id, 0 ); } //bugreport:2266 map->foreachinmovearea(clif->insight, &sd->bl, AREA_SIZE, sd->bl.x, sd->bl.y, BL_ALL, &sd->bl); } else { sd->sc.option |= OPTION_INVISIBLE; sd->vd.class_ = INVISIBLE_CLASS; clif->specialeffect(&sd->bl, 587, ALL_CLIENT); // Smoke effect clif->specialeffect(&sd->bl, 589, ALL_CLIENT); // Smoke effect clif->message(fd, msg_txt(11)); // Invisible: On // decrement the number of pvp players on the map map->list[sd->bl.m].users_pvp--; if( map->list[sd->bl.m].flag.pvp && !map->list[sd->bl.m].flag.pvp_nocalcrank && sd->pvp_timer != INVALID_TIMER ) { // unregister the player for ranking timer->delete( sd->pvp_timer, pc->calc_pvprank_timer ); sd->pvp_timer = INVALID_TIMER; } } clif->changeoption(&sd->bl); return true; } /* Server Startup */ HPExport void plugin_init (void) { clif = GET_SYMBOL("clif"); script = GET_SYMBOL("script"); pc = GET_SYMBOL("pc"); atcommand = GET_SYMBOL("atcommand"); if( HPMi->addCommand != NULL ) {//link our '@sample' command HPMi->addCommand("hide",ACMD_A(nhide)); } }[/cbox] Basically all i've done is copied the original @hide code and added two smoke effects. The source version i have from 4-5 years ago obviously wouldn't work with Hercules, so i've tried to just slot them into this instead. I'm trying to use it as a plugin so i can turn it off and on without having to recompile everytime i want to stop the purple smoke from showing. p.s. i've -never- played with the source before, so i'm a big nab @.@
  5. Can we use this method of adding Atcommands to overwrite the default commands? For example, i have a re-vamped @hide, and i'm currently using it with the bindatcmd script. Is it possible for me to do away with the npc script version and use the plugin system as the method to overwrite the original @hide? I've given it a go but the mapserver just states "Server received crash signal" and disconnects. Just wondered if this is even supported before i jump into it. Thanks
  6. Akkarin

    .o/

    A Eurynom! Yarly. <3
  7. Akkarin

    .o/

    Evening all! Well, for those that don't know who i am, i'm a former member of the rAthena team and current administrator over at The Sprite Repository. For those that -do- know me, i wuvs j00. Bored of waiting for TSR to come back online so in the meantime i'm gonna troll your wiki Akky~
  8. rA and TSR live on different VMs on the same box, that's why TSR is down too. Along with 14 of my other sites :/
×
×
  • Create New...

Important Information

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