Jump to content

AnnieRuru

Members
  • Posts

    2044
  • Joined

  • Last visited

  • Days Won

    51

Everything posted by AnnieRuru

  1. you are not using latest rathena =/ https://github.com/rathena/rathena/blob/master/src/map/script.c#L177 add those lines you think your server is missing
  2. seems like you are using different compiler than mine your compiler can even suggest me to write the code cleaner try this one noitem_20140110.patch curious, tell me what's the compiler you are using ... I'm using microsoft visual c++ 2010
  3. hey .... I start to get frustrating ... [Error]: run_script: infinity loop ! [Debug]: Source (NPC): Mission D#4 at prontera (159,179)just update some random mission, you get this error immediately inside OnRemoveMission: label .@i = 0; .@origin_aid = getcharid(3); while( .@i < .@aid_size ){ if( isloggedin( .@aid[.@i],.@cid[.@i] ) ){ attachrid( .@aid[.@i] ); for( .@i = @ms_size; .@i >= 0; .@i-- ) if( @ms_list$[.@i] == ""+.@mission_id ){ message strcharinfo(0),.@message$; dispbottom "Please visit Mission NPC to gain latest information."; setd( "@ms_"+@ms_list$[.@i]+"_expire" ),0; deletearray getd( "@ms_"+@ms_list$[.@i]+"_list" ); deletearray getd( "@ms_"+@ms_list$[.@i]+"_qty" ); deletearray getd( "@ms_"+@ms_list$[.@i]+"_hunt" ); deletearray @ms_list$[.@i],1; @ms_size--; break; } detachrid; .@count++; } .@i++; }I see there's 2 dimensional loop herea loop with the .@aid_size, which uses index .@i and another loop with .@ms_size; should be using .@j
  4. erm...i remember that it's enabled for all 1-1 job by default ... i didnt add any settings to limit 1-1 job ...the job limitation work after 1-1 job.no ... its not if( .@check_progress & 8 && ( .@eac & .job_branch[.@i] ) ) .@branch_progress++;your script doesn't have 1-1 enablewhen .@eac if ( eaclass() & .job_branch ), 1-1 classes doesn't meet the requirement, thus .@branch_progress becomes 0 thus it meet this condition if( .@check_progress & 8 && ( !.@branch_progress || !.@class_progress ) ){ dispbottom "[Failed] Your Class didnt meet the requirements."; .@check_result |= 8; }I have tested in-game before I post, of courseI have debug your script with announce .@check_progress +" "+ .@branch_progress +" "+ .@class_progress, 0; if( .@check_progress & 8 && ( !.@branch_progress || !.@class_progress ) ){ dispbottom "[Failed] Your Class didnt meet the requirements."; .@check_result |= 8; }@job 0 -> novice, 9 0 0@job 1 -> swordsman, 9 0 1 @job super novice, 9 1 0
  5. I think there's still a bug the job branch doesn't enable a 1-1 job branch if I'm a swordsman/archer/magician, I couldn't do any quest @Kido as long as the data structure has been planned out nicely .. there is no need to modify the sql table .. though, I can kinda tell if emistry wants to add a custom variable as reward ... then need to do alter table in the future
  6. what's your value here ? also ... I think its better to calculate the zeny requirement based on the player's current level ... like level1->2 = 1,000,000 zeny level80->81 = 80,000,000 zeny
  7. [paste=5m1e102vo5aj] can you please try for me, issit after patch, nobody can trade anymore even on the map without noitemtrade mapflag ? I couldn't find the problem though ... or maybe I'm using outdated client ... <.<
  8. Script 1: I see ... that's an item script that has the effect like dota Tidehunter skill, that can remove buff every x seconds thx for showing me this script lol Script 2: *facepalm* I have no idea why this script became so famous even though I have already tag [Outdated] on it that's a very old script that I made while my teachers Yhn and Trancid were still active and I can rewrite that script using better techniques now ... Script 3: no, its not made by me, I have never written any stylist npc because I seldom mess around with client files this should be made by Emistry Emsitry ? went offtopic ... honestly all these script above shouldn't reproduce your error since you said that only script that runs a npc dialog is executed by OnPCLoginEvent then try to read all those scripts that has OnPCLoginEvent: among all scripts that has OnPCLoginEvent, some of them is causing this http://www.eathena.ws/board/index.php?s=&showtopic=274143&view=findpost&p=1503639 or maybe add sleep2 1; .... might help ... or maybe not ... since your error is event timer full, not event queue full actually I'm thinking ... why not just compile your server as something like this lolthen you can continue your way with poorly made scripts ...
  9. I still the same is this bug belongs to group setting ? me as community contributor still having this bug
  10. mf_pvp_noguild 8 <map> mapflag pvp_noguild place this all over your scripts ? lol do you mean in specific maps, in pvp maps, in castle maps, or server wide ?
  11. euphy quest shop needs to use addtimer because the player needs to run another script instances that's a trick invented by toastofdoom to create a delayed timer to execute when the player close a npc script so that shouldn't be change this is how to reproduce your error prontera,160,188,5 script asdf 100,{ for ( .@i = 0; .@i < 100; .@i++ ) addtimer 5000, strnpcinfo(0)+"::Onaaa"; end; Onaaa: dispbottom "bleh"; end; OnNPCKillEvent: mes "haha"; close2; dispbottom "good"; end; } - duplicate(asdf) asdf#1 -1 - duplicate(asdf) asdf#2 -1 - duplicate(asdf) asdf#3 -11. @monster 10022. click on the npc ( to queue the timer ) 3. kill the poring ( execute OnNPCKillEvent ) 4. the npc chat box shows up only once if you relog and straight killing the poring without clicking the npc, you actually can get the npc chat box twice with this error [Warning]: npc_event: player's event queue is full, can't add event 'asdf::OnNPCKillEvent' !means this bug can only reproduce if you have both addtimer command pile up and executing a script via OnxxxxEvent:though, the main point here is some of your poorly made scripts needs to be rewritten with sleep2 timer instead of addtimer something like this prontera,160,188,5 script asdf 100,{ for ( .@i = 0; .@i < 100; .@i++ ) { addtimer 1,strnpcinfo(0)+"::Onaaa"; } end; Onaaa: sleep2 5000; dispbottom "bleh"; end; OnNPCKillEvent: mes "haha"; close2; dispbottom "good"; end; } - duplicate(asdf) asdf#1 -1 - duplicate(asdf) asdf#2 -1 - duplicate(asdf) asdf#3 -1lower down the value of addtimer, and use sleep2 to queue up the timer you wantif you already understand how to reproduce this error, you should know how to fix all your custom script and use sleep2 instead of addtimer so, do you have any npc scripts that execute OnxxxxEvent has a npc dialog ? like botkiller ... player login and greet them with npc dialog etc etc
  12. how about you tell me whats the exact line in 3707 and 3716 ?... or better off just show me the whole npc.c file
  13. http://www.eathena.ws/board/index.php?s=&showtopic=274457&view=findpost&p=1505595
  14. when searching for how to edit atk1&atk2 field, I found this topic =/ mob controller system again ... try this [paste=1a4xw30p3win] since the script use *unitkill script command, it will bypass all kinds of restriction and make the player die under any circumstances you can even make the monster talk !
  15. how about you try mine REPLACE INTO `item_db_re` VALUES (4001,'Poring_Card','Poring ard',6,20,NULL,10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16,NULL,NULL,NULL,NULL,'bonus bLuk,2; bonus bFlee2,1;',NULL,NULL); REPLACE INTO `item_db_re` VALUES (30001,'Poring_Card','Poring Card',6,20,NULL,10,NULL,NULL,NULL,NULL,NULL,NULL,NULL,16,NULL,NULL,NULL,NULL,'bonus bLuk,2; bonus bFlee2,1;',NULL,NULL); and @item2 guard 1 1 0 0 0 0 4001 30001 I got +4 luk from this ... seems like I couldn't reproduce your problem
  16. I don't get any warning during compile ( of course no warning or else I've fix it ) prontera mapflag noitem 4this is actually restricting ARMOR <.< https://github.com/rathena/rathena/blob/master/doc/item_db.txt#L30 if you want to block WEAPON, use 5
  17. AnnieRuru

    R>script

    thx to @Lighta <3 [paste=1cvelflk4v6k] @Blue Jem replace intif_broadcast2( aaa, (int)strlen(aaa)+1, strtol("0x9999FF", NULL, 0), 0x190, 12, 0, 0 );with clif_GlobalMessage( &sd->bl, aaa , ALL_CLIENT );
  18. OnInit: setarray .Rebirth[0],99,50; // Minimum base level, job level to rebirth OR change to third class setarray .JobReq[0],10,40; // Minimum job level to turn into 1st class, 2nd class set .ThirdClass,1; // Enable third classes? (1: yes / 0: no) set .SNovice,45; // Minimum base level to turn into Super Novice set .LastJob,1; // Enforce linear class changes? (1: yes / 0: no) set .SkillPointCheck,1; // Force player to use up all skill points? (1: yes / 0: no) set .Platinum,1; // Get platinum skills automatically? (1: yes / 0: no) end;instead of looking at the game screentry to focus your mind and search for some hint at the script ... there's a lot force power in this particular area ...
  19. getitem2 "Tidal_Shoes",1,1,7,0,0,0,0,0; its better to use constants in script so you can debug the script much easier, especially in utility scriptand don't need the getcharid(3) ... its actually meant for event scripts http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1035 btw I feel like I didn't answer to the topic lol
  20. download from the attachment, don't use pastebin if you download from pastebin you'll get this problem blame @Akkarin I'm going to wear a maid costume and serve him some tea
  21. BUILDIN_DEF(getitem2,"viiiiiiii?"),v = value ( can be string or integer )i = integer ? = optional parameter usually when you see a {,<flag>}; the {} part can be omitted prontera,156,184,5 script kdjhfksdjf 100,{ getitem2 501, 1,1,0,0 ,0,0,0,0; getitem2 501, 1,1,0,0 ,0,0,0,0 , getcharid(3); end; }both will work
  22. FUN ! why not make a script command to change the player's facing [paste=1ta6tj2tm187] then can use - script kdjhfksdjf -1,{ OnPCLoginEvent: setdir DIR_SOUTH; end; }this might be useful with pushpc script command
  23. http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=1260 gold acidus = 1713 blue acidus = 1716 apparently, the monster in abyss_02 can add the count, but if kill inside endless tower, its not perhaps you should tell that ... this npc shouldn't setup outside instance npc ? since all instance script has monster labels @Code Hunter I think his script doesn't have protection against skipping a npc ID means, 1001,1002,1003,1004,1005,1006 ... must be in order .. you can't do 1001,1005,1020,1030 ... it will bug my old one, can jump ID, can detect which npc ID has fault and report it on that npc itself even I think most people here ... doesn't read the error on map-server.exe console ... that might be the problem that's why my script, if setup just slightly a little bug, the whole npc will down
  24. I don't think spawn a clone based on offline character is possible because calling the map_session_data needs the player to be online however, I think it might be possible if do a script command with optional parameter that includes the fields from mob_db *clone "<map name>",<x>,<y>,"<event>",<char id>{,<master_id>{,<mode>{,<flag>,<duration>}}} maybe can expend into *clone2 "<map name>",<x>,<y>,"<event>",<char id>{,<master_id>(,<mode>{,<flag>,<duration>{,"<name>",<level>,<hp>,<range1>,<atk1>,<atk2> .....)))} copy all those fields from mob_db then we can summon the clone with the stats/speed/range we want honestly ... mob controller system can do this via setmobdata ...
  25. yeah ... btw, why I see a condition being repeated ? if ( isequipped(4128) ) { unequip EQI_HAND_L; end; } bonus bIntravision,0; bonus bAllStats,5; bonus bMaxHPrate,10; if(BaseClass==Job_Assassin||BaseJob==Job_Gunslinger||BaseClass==Job_Hunter) { bonus bNoMagicDamage,90; } else if (BaseJob==Job_Ninja||BaseJob==Job_Wizard) { bonus2 bIgnoreMdefRate,RC_DemiHuman,30; bonus bMatk,3; } else if (BaseJob==Job_Ninja||BaseJob==Job_Wizard) { bonus bPerfectHitRate,55; bonus3 bAutoSpell,"LK_PARRYING",9,50; }if the character is a ninja or wizard, they only get ignore matk damage on human and matk +3,perfect hit and parrying auto-spell are not get because of 'else if' condition
×
×
  • Create New...