Kakaroto Posted September 7, 2017 Share Posted September 7, 2017 I am getting error messages in the horror script toy factory, can anyone help me? Follow script: [email protected]_d,1,5,3 script #bssk03 CLEAR_NPC,{ end; OnStart: .@event$ = instance_npcname( strnpcinfo(0) ) + "::OnMyMobDead"; killmonster 'xm_d_map$, .@event$; while (1) { getunitdata 'celene_id, .@data; .@x = .@data[UMOB_X] + rand(1,20) - 10; .@y = .@data[UMOB_Y] + rand(1,20) - 10; monster 'xm_d_map$,.@x,.@y, "#f_w_1",3038,1, .@event$;// HIDDEN_MOB7 .@mon_num++; if (.@mon_num > 20) break; sleep2 200; } sleep 6000; killmonster 'xm_d_map$, .@event$; end; OnMyMobDead: end; OnInstanceInit: hideonnpc instance_npcname( strnpcinfo(0) ); end; } Print: I appreciate who can help me. Quote Link to comment Share on other sites More sharing options...
0 Technoken Posted September 7, 2017 Share Posted September 7, 2017 Just replace sleep2 with sleep since there's no attached rid when the sleep2 is called. It was because of this commit Git Hash: a8e4c83 2 Quote Link to comment Share on other sites More sharing options...
0 Jey Posted September 7, 2017 Share Posted September 7, 2017 Just replace sleep2 with sleep. You don't have an attached player, nor you'd need one. Another suggestion would be to change while (1) to for ( [email protected]_num = 0; [email protected]_num < 20; [email protected]_num++ ). Good luck! (Oh Technoken was quicker than me :D) 1 1 Quote Link to comment Share on other sites More sharing options...
0 Kakaroto Posted September 7, 2017 Author Share Posted September 7, 2017 Thank you so much! Quote Link to comment Share on other sites More sharing options...
0 Technoken Posted September 7, 2017 Share Posted September 7, 2017 @Jey XD guess that's need to be updated too on the repo. Quote Link to comment Share on other sites More sharing options...
0 Jey Posted September 7, 2017 Share Posted September 7, 2017 @Technoken why? I think the error helps to differentiate both types. Quote Link to comment Share on other sites More sharing options...
0 Technoken Posted September 8, 2017 Share Posted September 8, 2017 @Jey I was talking about the Horror Toy Factory script. Quote Link to comment Share on other sites More sharing options...
0 Jey Posted September 8, 2017 Share Posted September 8, 2017 Oh didn't thought it is in our repo. Thanks for mentioning it. Fixed in https://github.com/rathena/rathena/commit/b275412bcc1251a1c9214b8cdafdf40323c2b0f7 Quote Link to comment Share on other sites More sharing options...
I am getting error messages in the horror script toy factory, can anyone help me?
Follow script:
Print:
I appreciate who can help me.
Link to comment
Share on other sites