Jump to content

Angelmelody

Members
  • Content Count

    772
  • Joined

  • Last visited

  • Days Won

    23

Everything posted by Angelmelody

  1. 客戶端程式錯誤,請使用正常的客戶端程式# Incorrect client. Please run a normal client#
  2. my test input original item_db.conf The output item_db.txt , Some Chinese letters were changed after converting, and AegisName was changed to lowercase letter Here is part of my item_db.conf item_db.7z Thanks for sharing your item_db.conf. Fixed All Errors as stated by you on @r9, Get a new copy of conf2db.lua and try it. today I fund a small bug : " will change to " { Id: 1824 AegisName: "BF_Knuckle2" Name: "Brave Battle Fist" Type: 4 Buy: 20 Atk: 30 Range: 1 Job: 0x00008100 Upper: 63 Loc: 2 WeaponLv: 3 EquipLv: 80 View: 12 Script: <" bonus bStr,2; bonus bInt,1; bonus2 bAddRace,RC_DemiHuman,95; bonus2 bVariableCastrate,MO_EXTREMITYFIST,-25; autobonus "{ bonus2 bVariableCastrate,"MO_EXTREMITYFIST",-100; }",50,6000,BF_WEAPON,"{ specialeffect2 EF_SUFFRAGIUM; }"; bonus bUnbreakableWeapon,0; "> }, 1824,BF_Knuckle2,Brave Battle Fist,4,20,,,30,,1,,0x8100,63,,2,3,80,,12,{bonus bStr,2; bonus bInt,1; bonus2 bAddRace,RC_DemiHuman,95; bonus2 bVariableCastrate,MO_EXTREMITYFIST,-25; autobonus "{ bonus2 bVariableCastrate,"MO_EXTREMITYFIST",-100; }",50,6000,BF_WEAPON,"{ specialeffect2 EF_SUFFRAGIUM; }"; bonus bUnbreakableWeapon,0; },{},{}
  3. my test input original item_db.conf The output item_db.txt , Some Chinese letters were changed after converting, and AegisName was changed to lowercase letter Here is part of my item_db.conf item_db.7z Thanks for sharing your item_db.conf. Fixed All Errors as stated by you on @r9, Get a new copy of conf2db.lua and try it. thx , everything works perfectly
  4. attachrid(killerrid); set .@classname$, jobname( roclass( eaclass(class)));
  5. updated try again No bug now, but doesn't kick the third client. cuz your ip was in the whitelist 127.0.0.1
  6. try this script - script BG_Check_IP -1,{OnInit: .wlmaxw = 2; setarray .check_ip_map$[0],"prtg_cas01","job_sage","job_knt"; setarray .whitelist$[0],"127.0.0.1","127.0.0.2"; .cimsize = getarraysize(.check_ip_map$); .wlsize = getarraysize(.whitelist$); for(.@mf=0;.@mf<.cimsize;.@mf++) setmapflag .check_ip_map$[.@mf],mf_loadevent;end;OnPCLoadMapEvent: .@emap$ = strcharinfo(3); for(.@i=0;.@i<.cimsize;.@i++) { if(.check_ip_map$[.@i]==.@emap$) break; } if(.@i >= .cimsize) end; set .@my_ip$, getcharip(); for(.@k=0;.@k<.wlsize;.@k++) { if(.whitelist$[.@k]==.@my_ip$) { .@wf=1; break; } } .@maxw = (.@wf ? .wlmaxw : 1 ); // Get list of accounts with attached character's IP address. set .@size, query_sql("SELECT `account_id` FROM `login` WHERE `last_ip` = '"+ .@my_ip$ +"'",.@aid); // Passed check if only the attached player is returned. if (.@size <= .@maxw ) end; .@self = getcharid(3); for(.@j=0; .@j < .@size;.@j++) { if (attachrid(.@aid[.@j])) { if (strcharinfo(3) == .@emap$ ) .@w++; } } if(.@w > .@maxw ) { if (attachrid(.@self)) { sleep2 2000; //atcommand "@kick "+strcharinfo(0); warp "SavePoint",0,0; } }end;}
  7. my test input original item_db.conf The output item_db.txt , Some Chinese letters were changed after converting, and AegisName was changed to lowercase letter Here is part of my item_db.conf item_db.7z
  8. Thxn, I was wondering would it be possible to keep the original alphabet case of the AegisName field after converted?
  9. tested with param "RE" , doc was converted to old format successfully ,and also support Chinese charset ,but tested with default params ,my console show the below warnings , and some Chinese words become different words after converting and I notice the param [Case-insensitive] not working properply
  10. run these mysql commands on your database INSERT INTO `sql_updates` (`timestamp`) VALUES (1381354728); -- 2013-10-09--21-38.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1381423003); -- 2013-10-10--16-36.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1382892428); -- 2013-10-27--16-47.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1383162785); -- 2013-10-30--19-53.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1383167577); -- 2013-10-30--21-12.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1383205740); -- 2013-10-31--07-49.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1383955424); -- 2013-11-09--00-03.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1384473995); -- 2013-11-15--00-06.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1384545461); -- 2013-11-15--19-57.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1384588175); -- 2013-11-16--07-49.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1384763034); -- 2013-11-18--08-23.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1387844126); -- 2013-12-24--00-15.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1388854043); -- 2014-01-04--16-47.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1389028967); -- 2014-01-06--17-22.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1392832626); -- 2014-02-19--17-57.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1395789302); -- 2014-03-25--23-57.sqlINSERT INTO `sql_updates` (`timestamp`) VALUES (1396893866); -- 2014-04-07--22-04.sql
  11. try setting limit1 and limit2 to 0 instance_set_timeout 0, 0, <instance id>;
  12. try this 50--> 150 src/map/skill.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff --git a/src/map/skill.c b/src/map/skill.cindex 612b205..f83779d 100644--- a/src/map/skill.c+++ b/src/map/skill.c@@ -10374,7 +10374,7 @@ int skill_castend_pos2(struct block_list* src, int x, int y, uint16 skill_id, ui case 2: sx = x - i; break; case 6: sx = x + i; break; }- skill->addtimerskill(src,timer->gettick() + (50 * i),0,sx,sy,skill_id,skill_lv,dir,flag&2);+ skill->addtimerskill(src,timer->gettick() + (150 * i),0,sx,sy,skill_id,skill_lv,dir,flag&2); } } break;
  13. https://github.com/HerculesWS/Hercules/commit/336b818cd4acc771563d4ab0d98566de25794143
  14. Have you tried setting disable item in mapzone.conf ? 1.create a custom zone 2 set the disable item (incubator) of your zone
  15. this plugin + setting disabled_items: {...} in db/mapzone.conf
  16. for bonus script param pc.h struct s_add_drop { short id, group; int race, rate; }; int (*bonus_item_drop) (struct s_add_drop *drop, const short max, short id, short group, int race, int rate); pc.c int pc_bonus_item_drop(struct s_add_drop *drop, const short max, short id, short group, int race, int rate) { short --> unsigned short
  17. Ind fixed strcmpi thing has some time already xD Ouch! dunno why my local git master don't have that commit I'll check and re-download again
  18. I think bindatcmd was not overwriting original cmd properly, Cause bindatcmd was case sensitive , so it can still be used by converting cmd letters to uppercase/lowercase e.g. @AUToloot 100 require modification on atcommand.c to make it non -case -sensitive
  19. hey! you post in wrong section
  20. Thanks ,but I wanna create a notepate++ macro to convert old format to herc format for exmaple I did a class update macro for this <Macro name="item_db Class Update" Ctrl="no" Alt="no" Shift="no" Key="0"> <Action type="3" message="1700" wParam="0" lParam="0" sParam="" /> <Action type="3" message="1601" wParam="0" lParam="0" sParam="(0x[a-zA-Z0-9]*),2,([0-9]+)" /> <Action type="3" message="1625" wParam="0" lParam="2" sParam="" /> <Action type="3" message="1602" wParam="0" lParam="0" sParam="1,18,2" /> <Action type="3" message="1702" wParam="0" lParam="768" sParam="" /> <Action type="3" message="1701" wParam="0" lParam="1609" sParam="" /> </Macro> so I think regular expression is my best choice ok I spend 1 hour to learn basic R.E , finally I figure out by myslef 1. (pc_readglobalreg*[(]*[[a-zA-Z]**),([^,]*)) 1,script->add_str(2)) 2. (pc_setglobalreg[^,]*),([^,]*),([^,]*)) 1, script->add_str(2),3)
  21. Who can convert the format syntaxes with regular expression 1. pc_readglobalreg(sd,"xxxxxxx") pc_readglobalreg(tsd,"xxxxxxx") ↓ pc_readglobalreg(sd,script->add_str("xxxxxxx")) pc_readglobalreg(tsd,script->add_str("xxxxxxx")) 2. pc_setglobalreg (sd, "xxxxxxx", yyyyyyyyyyy) pc_setglobalreg (tsd, "xxxxxxx", yyyyyyyyyyy) ↓ pc_setglobalreg (sd, script->add_str("xxxxxxx"), yyyyyyyyyyy) pc_setglobalreg (tsd, script->add_str("xxxxxxx"), yyyyyyyyyyy)
×
×
  • Create New...

Important Information

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