Jump to content

AnnieRuru

Script Developers
  • Content Count

    1677
  • Joined

  • Last visited

  • Days Won

    246

Everything posted by AnnieRuru

  1. check your `atcommandlog` table and be more specific how you want it to show in-game
  2. isn't it still better than kick the whole server xDwell, if event maps, there are nocashshop mapflag, but if instance map, no comment just in case you don't know how to do this ... every time some one do @reloadcashshop, it adds the server variable +1 then there is also a player variable initialize when they log in if the player variable doesn't match the server variable, ask them to relog I used this trick for reset txt style pvp ladder
  3. honestly you should try pull request these script commands *rentitem2 *makeitem2 *getequipexpiretick should go inside our repo
  4. LOL !!! you only asked me about how to kick players if you really told me about cashshop, I know which function to hook ..... #include "common/hercules.h"#include <stdio.h>#include <string.h>#include <stdlib.h>#include "map/pc.h"#include "map/clif.h"#include "common/HPMDataCheck.h"HPExport struct hplugin_info pinfo = { "reloadcashshop", SERVER_TYPE_MAP, "1.0", HPM_VERSION,};ACMD(reloadcashshop) { clif->cashshop_load(); clif->pCashShopSchedule( sd->fd, sd ); return true;}HPExport void plugin_init (void) { addAtcommand( "reloadcashshop", reloadcashshop );}what the ... the item appear twice in my window http://herc.ws/board/topic/1247-adding-reloadcashshop/?p=9041 so Ind was right it has to kick the player this is a client side restriction, because the client can only receive and add additional items but the client NEVER refresh or delete the cash item list maybe Samuel you can do that one post in the topic, only ask the player to relog when the server did @reloadcashshop so don't have to kick innocent players
  5. I already knew about this and they missing @inventorylist_uniqueid ... this is more important though need this to search in their inventory, cart, storage and so on
  6. Maze event -> link - update Portal event -> link - update <- just tested ... it seems some portal vanish inside the building ... need some rework these 2 scripts are too similar Euph's Maze event is a random chance, each portal has 1/15 chance to go to next round player just have to find ANY portal and keep entering any portal to win and my Portal event is based on memory there are X amount of portal in the map, only 2 of them go to next round the portals are always randomize in each run player have to remember which portal and share these information among guilds to quickly advance to next round, or win .... now I not sure want to add Euph's maze event or not ... because updating my portal event is my goal EDIT: I think just add it in then ... since some server players already familiar with that event already
  7. My event script go 1st Run or Die event Last Man Standing event Portal event Martial Arts Tournament Fight for Treasure Chest event Scuffle event King of Emperium Hill Devil Square card collector event candy event lucky pick event did you think I only have 3 ? LOL others in eathena dice event clucker event yes I know there is an updated version in our repo ... disguise event yes I know there is an updated version in our repo ... russian roulette find the mushroom poring punch juggernaut event others in rathena count the poring event stolaos-auto-event 7 elements emperium list of my script request not sure which one should take, seems like there are a few of them others in hercules poring summoner gamble event > gamble some of your points with other players, and winner takes all > ... need some rewrite, the idea is nice btw some ideas I really want to make now assault event invasion event after I read through Smoke's battleground, now I'm convinced that battleground system can be turn into events so battleground scripts will be added here too bg_pvp_points bg_emp_round bg_assassinate battleground rush war over rune poring ball arathi basin trade or raid ..... I need to test every script in smoke's collection, maybe some of them are unique yes I know there are a lot out there, but I am not satisfy with any of them, going to make another one Current Total -> 32 events ! . . Rejected list :- stop the clock this script has rumor that bots and openkore player can always get the time correctly find the baphomet too similar to find the mushroom tarot card of fate event too similar to roulette event monster hunt event or mvp hunt event too similar to invasion event poring ball -> another link > this script is too tough, I not sure I want to write this or not guess the password event > after I reread this script again, this event has to start by GM because GM has to set hint and password . some topics worth note : http://herc.ws/board/topic/14528-release-babbs-event-scripts/ post up ! just post up here make this the truly ALL in One Event manager script, let your server event non-stop 24/7 LOL when you post the event name, remember to post the link to that topic, so I can rewrite them
  8. one of my customer sent me Euphy's Event Manager script and asked me to write -> join the event simply using bindatcmd @joinevent means, yeah, all 7 events in that script, use 1 command @joinevent will warp you to the map that event is on Add -> there is also a command @eventlist to tell which event going to have next, since the time is configure by GMs now that the script is in my hand, (of course I can't distribute it, but I can always reproduce it) I have to say that idea is very well made but I'm not satisfy to just limit to 7 events, I want to integrate ALL event scripts across eAthena/rAthena/Hercules forums so everyone help me search out ALL event script you can find, and post in this topic oh and, of course this is a free release I always thinking of some ways to pull rathena member to use hercules this project should be enough to attract some of them enough, I guess ? since most of the scripts I write will be hercules only script commands
  9. then show your edited script you said you have edit the script before
  10. a mapflag to block friend invitation for pvp/gvg/bg event so player can't abuse that open a notificaition window during an important event Download: 1.1 plugin prontera mapflag noinvitation block friend invite in prontera and to block others like trade/party/guild invitation use notrade, partylock, guildlock mapflags ... actually I'm just lazy to do it lol credit to @kyeme https://github.com/HerculesWS/Hercules/pull/842#issuecomment-166850955
  11. you know what ? I'm going to show you the simplest way how to do this abuse the battle manual and bubble gum cash item status https://github.com/HerculesWS/Hercules/blob/master/db/sc_config.txt#L162 93 = 64+16+8+4+1 = cannot be dispel, doesn't remove on death, persist after logout ... PLUS ++ it also show the status icon on the client
  12. 2.0 http://upaste.me/0acf22299e09596b4 - add pvp mapflag, don't have to /ns - remove the OnPCDieEvent, use queue iterator - add timeleft__ function - add deny entry in 30 mins, configurable - add full heal upon entering ... http://upaste.me/898c22300e72f6281 - nochangeequip diff into plugin - fix a rare bug inside a nochangeequip map, and a GM #delitem, the item still show in the equipment window
  13. - script asdf 1_F_MARIA,{OnClock0000: getmemberaid ALL_CLIENT; for ( .@i = 0; .@i < $@onlinecount; ++.@i ) { attachrid $@onlineaid[.@i]; M_point = 3; buyVIP = 0; } query_sql "update char_reg_num_db set `value` = 3 where `key` = 'M_point'"; query_sql "insert ignore into char_reg_num_db select char_id, 'M_point', 0, 3 from `char` where account_id != 1"; query_sql "delete from char_reg_num_db where `key` = 'buyVIP'"; end;}you should know this kind of script is performance killer script unless you really tell how that "M_point" and "buyVIP" come from, then you can stick to this script that lags every time it runs
  14. set buyVIP, 0;and what is this mean ?you never say anything about VIP in your post also, its bad idea to give items automatically in utility script event script is 1 thing, since players usually under 90% weight (to whack monsters/pvp), thus can skip the *checkweight check but in utility script has to use *checkweight script command every time if you give items to player automatically at certain time without any notification, like just give 10 berry at 12am automatically, if the player at the time are adjusting equipment, using storage, ... etc and caused overweight, the item will fall on the floor EDIT: you should describe more about this variable set M_Point, 3;where you use it ?why it increase ? why you want it reset ? does it affect to all players or just VIP ? seriously I regret reply the kind of post where it doesn't describe everything properly
  15. more like select * from picklog where ( nameid = 607 or nameid = 608 ) and type = 'N';
  16. the best log is query_sql, hands down erm, isn't the `picklog` table already handle that ? under type (N), that is https://github.com/HerculesWS/Hercules/blob/master/conf/logs.conf#L17
  17. @@Angelmelody all right I open an issue in github https://github.com/HerculesWS/Hercules/issues/1006 @@chiba222 EDITED: the full script already posted on post#2 isn't it ?
  18. prontera,155,185,5 script kdjsfskfh 1_F_MARIA,{ dispbottom gettimestr("%l:%M %p",10);}my test server crash---------------------------Microsoft Visual C++ Debug Library---------------------------Debug Assertion Failed!Program: D:RagnarokHerculesmap-server.exeFile: f:ddvctoolscrt_bldself_x86crtsrcstrftime.cLine: 798Expression: ( "Invalid format directive" , 0 )For information on how your program can cause an assertionfailure, see the Visual C++ documentation on asserts.(Press Retry to debug the application)---------------------------Abort Retry Ignore ---------------------------.. if compile under linux or cygwin, the %l should be Hour(1~12) format my test server compile under microsoft visual studio crash on this format, can only use %H %M is minute(00-59) %p is AM-PM I already update the wiki http://herc.ws/wiki/index.php?title=Gettimestr
  19. merge in https://github.com/HerculesWS/Hercules/commit/19d83e65e83887a9f15353e626eaab57d7f86a74 finally ... erm, I just saw messagecolor script command wait wait ... not finish yet ... hmm impossible, it require player to refresh the client #include <stdio.h>#include <stdlib.h>#include <string.h>#include "map/pc.h"#include "map/script.h"#include "common/HPMi.h"#include "common/socket.h"#include "common/strlib.h"#include "common/HPMDataCheck.h"HPExport struct hplugin_info pinfo = { "messagecolor", SERVER_TYPE_MAP, "0.1", HPM_VERSION,};BUILDIN(messagecolor) { TBL_PC *sd = NULL; if (script_isstringtype(st,2)) sd = script->nick2sd(st, script_getstr(st,2)); else sd = script->id2sd(st, script_getnum(st,2)); if ( sd ) { const char *message = script_getstr(st,3); unsigned short msg_len = strlen( message ) +1; int color = script_getnum(st,4); WFIFOHEAD( sd->fd, msg_len + 12 ); WFIFOW( sd->fd, 0 ) = 0x2C1; WFIFOW( sd->fd, 2 ) = msg_len + 12; WFIFOL( sd->fd, 4 ) = sd->bl.id; WFIFOL( sd->fd, 8 ) = RGB2BGR(color); safestrncpy( (char*)WFIFOP( sd->fd,12 ), message, msg_len ); WFIFOL( sd->fd, 4 ) = -sd->bl.id; WFIFOSET( sd->fd, msg_len + 12 ); } return true;}HPExport void plugin_init (void) { addScriptCommand( "messagecolor", "vsi", messagecolor );}looks doesn't work ?prontera,159,185,5 script kjdsfkshfs 1_F_MARIA,{ messagecolor getcharid(3), "test yellow", C_YELLOW; end;}try @fontcolor bluethen type something click on the npc again, then it shows up the sd->fontcolor_tid seems to have something to do it here
  20. server crash when compile under MSVChttps://www.eathena.ws/board/index.php?s=&showtopic=272409&view=findpost&p=1492260 credit to brian for the info LOL I read the topic again, its gettime(3) not gettime(7) HAHAHA !!! http://herc.ws/wiki/Gettimestr %Y is not in the example, time for update that 8 years old script
  21. upon further test, I found out it also has 1. block players from drop items 2. block players from pick up items 3. block players from trade with other players 4. block players from clicking on npc 5. block players from changing cart -> https://github.com/HerculesWS/Hercules/blob/master/src/map/clif.c#L10771 which are not defined in the enum I made ... I try ask Haru's opinion on this ...
  22. I think I can do this if I able to finish up that pcblock script command, so this progressbar will use the flags from BLOCK_ constants http://herc.ws/board/topic/11020-add-pcblockattack-pcblockskill-pcblockchat-pcimmune-script-commands/ currently the BLOCK_ flags are enum block_action_flag { PCBLOCK_MOVE = 0x01, PCBLOCK_ATTACK = 0x02, PCBLOCK_SKILL = 0x04, PCBLOCK_USEITEM = 0x08, PCBLOCK_CHAT = 0x10, PCBLOCK_IMMUNE = 0x20, PCBLOCK_SITSTAND = 0x40, PCBLOCK_COMMAND = 0x80,};@@kyemethe official behavior for progressbar is BLOCK_MOVE|BLOCK_ATTACK|BLOCK_SKILL|BLOCK_USEITEM anything else ? it doesn't block sit/stand, chat and command, right ? so the concept will be something like pcblock "", 3;is equal topcblock "", 3, BLOCK_MOVE|BLOCK_ATTACK|BLOCK_SKILL|BLOCK_USEITEM;match the official behavior but if added an optional flag, it will be pcblock "", 3, false;all actions can be use
  23. merge in https://github.com/HerculesWS/Hercules/commit/6a0093b170719092e6c0f11b889353cd70b38313 credit to emistry ... and Haru too https://github.com/HerculesWS/Hercules/commit/851e97a20701bf2800491690838f654a9a6638e6
  24. I believe the diff still works with latest hercwell if you manually insert those few lines you can find them in spoiler tag I recently hook with Haru in pull request at Github, so I can't have any diff in my test server
  25. I think you misunderstood that behaviorit was reported in this topic -> http://herc.ws/board/topic/11010-run-or-die-event-aka-poring-bomb/?p=65606 <- I need to update that script later . . . doesn't matterlabel always read through all labels as long as there is no end; command
×
×
  • Create New...

Important Information

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