Jump to content

AnnieRuru

Script Developers
  • Content Count

    1677
  • Joined

  • Last visited

  • Days Won

    246

Everything posted by AnnieRuru

  1. ahh ! figure out now need to add both #include "../common/strlib.h" strlib = GET_SYMBOL("strlib");fixed that ! thanks to Ind <3
  2. http://www.eathena.ws/board/index.php?showtopic=242812http://www.eathena.ws/board/index.php?showtopic=258994 these 2 should give you a little bit pump up
  3. I have already tried that before I changed into strncpymy map-server.exe crashed so I change into strlib->safestrncpy( mail.send_name, send_name, NAME_LENGTH ); strlib->safestrncpy( mail.dest_name, sd->status.name, NAME_LENGTH ); strlib->safestrncpy( mail.title, title, MAIL_TITLE_LENGTH ); strlib->safestrncpy( mail.body, body, MAIL_BODY_LENGTH );throw this error instead1>d:herculessrcpluginssendmail.c(153): error C2059: syntax error : '('1>d:herculessrcpluginssendmail.c(154): error C2059: syntax error : '('1>d:herculessrcpluginssendmail.c(155): error C2059: syntax error : '('1>d:herculessrcpluginssendmail.c(156): error C2059: syntax error : '('.. hmm ... I think I make a bug report about this
  4. Download: plugin tested with http://upaste.me/c97c10801a13a4261 New version 2.0 will no longer need to use query_sql command to send to offline players I have learn to use SQL->Query in the source, so this script command can send to offline players reference topic http://www.eathena.ws/board/index.php?showtopic=191107&st=0&p=1050527entry1050527 http://rathena.org/board/topic/92722-a-script-command-for-mailbox/ http://rathena.org/board/topic/74969-send-mail-via-scriptcommand/ <-- Credit to clydelion ... I completely rewrite his mod
  5. http://herc.ws/board/topic/4509-vendor-control-rewrite/ wait ... I don't see novend npc inside this script post your edited script its actually better to ... http://rathena.org/board/topic/91478-security-command-error/?p=240134 use Notepad++ and do a "Find in file" with the keyword "novend" inside your "...npc" folder
  6. http://rathena.org/board/topic/87212-utility-promotional-code/ how about you try is this working in hercules =/
  7. prontera,155,185,5 script kjdhfksdjhfs 100,9,9,{ end;OnTouch: npctalk "Hello "+ strcharinfo(0); end;}what kind of news you want to report ? the weather ?
  8. it can be many things but where's the npc name ? sure it should display this along with npc name, then you can show the script here
  9. its better to use foreachinrange instead of foreachinarea in this case foreachinrange can be set by any number instead of the default AREA_SIZE ... which is actually configure at confbattleclient.conf) http://upaste.me/789e10797db5b0132 hmmm I forgot to make a patch .... hahaha ... nvm
  10. I just found a bug on my plugin my test server has prevent_logout defaulted to 0 inside my import folder, makes me forget to change this change this line if ( !battle_config.prevent_logout || DIFF_TICK( timer->gettick(), sd->canlog_tick) > battle_config.prevent_logout ) {intoif ( !battle->bc->prevent_logout || DIFF_TICK( timer->gettick(), sd->canlog_tick) > battle->bc->prevent_logout ) {then add this below battle = GET_SYMBOL("battle");.. . the patch is unaffected .... just redownload the plugin will do, I've changed that
  11. when you talk about bg_queue it should be this so note, this battleground system runs real time the queue is process behind npc script, so there is nothing we can do when somebody starts registering the script function only start to execute when the queue is full go to confbattleground.conf /* feature is not complete */ feature_off: falsechange to false, then find KVM (lvl80+), replace with this },{ name: "KVM (Level 80 and up)" //must match the name in client files event: "bg_pvp::OnStart" minLevel: 1 maxLevel: 150 reward: { // useless ! should be done by npc scripting win: 0 loss: 0 draw: 0 } minPlayers: 2 /* minimum amount of players to start */ maxPlayers: 30 /* maximum amount of players. NOTE: I wonder why they set to 60 when MAX_BG_MEMBERS is only 30 */ minTeamPlayers: 999 /* can I off this ? this one is bugged */ delay_var: "BG_PVP_Tick" /* char variable name that will store the delay for this match */ maxDuration: 1 /* maximum duration in minutes ... this one also bugged */ fillDuration: 20 /* time in seconds to wait for more applications when minimum has been reached */ pGameDuration: 20 /* time to wait for players to confirm their attendence after queueing process has finished */ },{npc scripthttp://upaste.me/d66e107963faa3a04 oh and my source modification of course http://herc.ws/board/topic/4570-battleground-system-without-waitingroom/ so how to make this work 1st, click on the [battle] button just below your character info 2nd, select "KVM (Level 80 and up)", then click individual 3rd, dual client another character, then do the same 4th, go back the 1st character, this window should pop up on 1st character, click [Close] 5th wait about 20 seconds, this window should pop up on both characters, both characters click [OK] .... the rest self-explain, read the script yourself to announce that the battleground started, find OnStart: label, add the announcement below by yourself EDIT: for those who are testing right now, yes, now you know how bug the system is
  12. https://github.com/HerculesWS/Hercules/blob/master/db/produce_db.txt although its possible to do VVS Wind Rod from the source code but we usually use NPC scripting for this kind of operation prontera,157,185,5 script kjdhfksdfjh 100,{ getitem2 1601, 1, 1, 0,0, 255, 2561, getcharid(0) % pow(2,16), getcharid(0) / pow(2,16);}
  13. I believe this is done through npc scripting ... not in the source code ...show your battleground script then I point it out for you
  14. http://rathena.org/board/topic/81302-im-using-annie-koe-script-but-need-some-modifications/?p=237559 just put OnInit: above OnRevKoE: should've fix that 2nd reason nobody uses @reloadscript in a live server ... I'm not going to put that honestly ... this is quite a frequently asked question ...hmm ... I think I should put it into the script, but stay commented
  15. Download: 1.3 plugin -------------------------------- everything is inside this sample http://upaste.me/10bb21957e0971185 its meant to attachrid online players checkmes ... is just like addrid with type 1 ... means only attachrid on players that doesn't have a npc dialog - script test dialog -1,{Onaaa: mes "hi"; close;OnInit: while (1) { getmemberaid ALL_CLIENT; for ( .@i = 0; .@i < $@onlinecount; .@i++ ) { if ( !checkmes( $@onlineaid[.@i] ) ) { // if don't have a npc dialog attachrid $@onlineaid[.@i]; addtimer 1, strnpcinfo(0)+"::Onaaa"; } } sleep 1000; }}
  16. https://github.com/HerculesWS/Hercules/blob/master/conf/battle/monster.conf#L190
  17. definitely work I've used it to teach young scripters back in the days http://www.eathena.ws/board/index.php?s=&showtopic=239278&view=findpost&p=1305044 hmm .. the other 2 links seems to be broken ...
  18. http://herc.ws/board/topic/4283-introducing-hpm-datacheck/ should be more than that how about you just remove that line and see that works ?
  19. how old is your hercules ? at least update to the latest one if you are using outdated hercules then use the patch
  20. AnnieRuru

    Rawr!

    I really like this partrathena has a lot drama ... especially about everyone wants to be lead core-developer over there but see now ? -> http://rathena.org/wiki/Staff they end up having none now they still have 3 active core-developer, but without a lead, they lost directions now . . huhuhu ... I want more custom script commands <3
  21. This plugin has outdated Haru has already fixed queue iterator script command this plugin is no longer needed sample battleground script using queue iterator http://upaste.me/ab3022385d0127b7f outdated topics from eathena or rathena this one is more update Download: 1.5 plugin ----------------------------------------- *createbgid , , , , ; create a specific battleground ID, for the rest .... refer to doc .red = createbgid( "guild_vs3", 13,50, strnpcinfo(0)+"::Onredout", strnpcinfo(0)+"::Onreddead" );.blue = createbgid( "guild_vs3", 86,50, strnpcinfo(0)+"::Onblueout", strnpcinfo(0)+"::Onbluedead" );.----------------------------------------- *setbgid {, }; *setbgid {, }; player attached to the script will join the battleground team, but if a player name ( or account ID ) is specify, will let that player join the battleground team for debugging purposes this command can return positive number ( > 0 ) if the function is successful if it return negative :- -1: the battleground team haven't create yet ... has to be create with createbgid -2: the team already full, it reached MAX_BG_MEMBERS = 30 which can increase at srcmapbattleground.h -3: player not found ... happens when the input is not online or not found -5: the player already join the battleground ID that you specify if the player has joined battleground ID 3, and you use setbgid 5; this will force the player to leave battleground ID 3 and join battleground ID 5 without any notification ( player who same group will receive a message mention that "player xxx leaving battlefield" ) only when the player joined bg ID 9, and use setbgid 9; then only the command return -5 but the script will still continue running without posting any error, so don't worry setbgid 0; is equal to *bg_leave; and setbgid 0, "annie"; or setbgid 0, 2000000; will make the player "annie" ( or account id 2000000 ) leave the battleground team without using *attachrid + *bg_leave warpwaitingpc "guild_vs3", 0,0;for ( .@i = 0; .@i < $@warpwaitingpcnum; .@i++ )setbgid ( .@i % 2 )? .red : .blue, $@warpwaitingpc[.@i];.----------------------------------------- *getbgusers ; similar to getpartymember , 2; // <-- return account ID this will create an array "$@arenamembers" holding all the player's account ID from the battleground team and $@arenamembersnum is equal to bg_get_data(, 0), just like $@partymembercount getbgusers .red;for ( .@i = 0; .@i < $@arenamembersnum; .@i++ )getitem 501, 1, $@arenamembers[.@i];.----------------------------------------- sample script http://upaste.me/7de710709dbb6fa17 example script for reference material default battleground system using waitingroom, works in clean rathena/hercules http://upaste.me/497010755d3295805 this script using this custom script commands http://upaste.me/b2781075699b0f8d9 you can tell it really does make the script shorter
  22. @afk will kick the player offline, but the player will still be vulnerable clif->chsys_quit(sd); clif->authfail_fd(sd->fd, 15);.. this @sleep will just make the player invulnerable by using novice's trick dead skill, but doesn't kick the player offline quite good if you want to idle(go to toilet hahaha) inside a dungeon where aggressive monsters around
  23. try again plugin is the way that you don't have to edit the source codeits kinda hard to install, but once get used to it, its quite convenient http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC
  24. https://github.com/HerculesWS/Hercules/blob/master/src/map/map.c#L5453 who the **** put that bg but needs to read as "battlegrounds" I have to read the source code to find out exactly where it came from just fix it after add bg = GET_SYMBOL("battlegrounds");
  25. ok I got it I need to add status = GET_SYMBOL("status");.. . the problem is this line sc_start(NULL,&sd->bl, SC_TRICKDEAD, 100, 1, 1000);I thought only need to add those which has '->' pointerbut now I just figure out it even needs that symbol where the file came from, even without #include status.h because of this line #define sc_start(src, bl, type, rate, val1, tick) (status->change_start((src),(bl),(type),100*(rate),(val1),0,0,0,(tick),0))sh*t ... next time I shouldn't open too fast
×
×
  • Create New...

Important Information

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