cahadeyelo Posted January 18, 2016 Share Posted January 18, 2016 i got this script for my server but it seems like it didn't work - script mob_points -1,{ OnNPCKillEvent: if( killedrid == 1313 ){ [email protected] = 1; set MOBPOINTS,MOBPOINTS + [email protected]; dispbottom "Gained : 1 Mob Point(s). Total : "+ MOBPOINTS +" Mob Point(s)."; end; } } can someone please tell me why this script didn't work Quote Link to comment Share on other sites More sharing options...
0 benching Posted January 19, 2016 Share Posted January 19, 2016 its should be killed, not just hit. Quote Link to comment Share on other sites More sharing options...
0 Enthr Posted January 18, 2016 Share Posted January 18, 2016 Its loaded? because you have to load it in scripts_custom.conf for example (Or any other that you want) with the line: npc: npc/directory/npcname.txt Quote Link to comment Share on other sites More sharing options...
0 cahadeyelo Posted January 18, 2016 Author Share Posted January 18, 2016 (edited) It is sir and it's been on npc/custom/mobpoints.txt also on scripts_custom.conf. I'm using revision 17726 of rathena trunk. Edited January 18, 2016 by cahadeyelo Quote Link to comment Share on other sites More sharing options...
0 Enthr Posted January 18, 2016 Share Posted January 18, 2016 You got an error message or something in the console? Quote Link to comment Share on other sites More sharing options...
0 cahadeyelo Posted January 18, 2016 Author Share Posted January 18, 2016 Nothing sir... it's just when i killed the mobster, the server didn't give the point nor announce the gained. Quote Link to comment Share on other sites More sharing options...
0 Enthr Posted January 18, 2016 Share Posted January 18, 2016 Ok, i just tested the script and its working whitout problems the mob that give you the points is the mobster (id 1313), ¿Are you trying with those? ¿You want more mobs or all mobs to count you the points? try loading it with @loadnpc path, and tell me if it worked or not. try loading it with @loadnpc path, and tell me if it worked or not. Quote Link to comment Share on other sites More sharing options...
0 cahadeyelo Posted January 18, 2016 Author Share Posted January 18, 2016 (edited) i'll try it now and thanks for the effort you kind sir. I find this weird that when i killed the mob using skill...well the script works but not on normal attacks. Edited January 19, 2016 by cahadeyelo Quote Link to comment Share on other sites More sharing options...
0 Enthr Posted January 18, 2016 Share Posted January 18, 2016 Tried with a LK and a Hunter, no problem at all... ¿With wich attack you tried? Quote Link to comment Share on other sites More sharing options...
0 cahadeyelo Posted January 19, 2016 Author Share Posted January 19, 2016 that wizard.. i just hit the mob with my normal attack and nothing happened Quote Link to comment Share on other sites More sharing options...
0 cahadeyelo Posted January 19, 2016 Author Share Posted January 19, 2016 (edited) thanks sir Enthr and benching for the answers and all the helped. I just found out than the cause of my last problem was my weapon ( angra manyu ), the server doesn't recognize the kill if angra manyu was the weapon of used. Edited January 19, 2016 by cahadeyelo Quote Link to comment Share on other sites More sharing options...
i got this script for my server but it seems like it didn't work
- script mob_points -1,{ OnNPCKillEvent: if( killedrid == 1313 ){ [email protected] = 1; set MOBPOINTS,MOBPOINTS + [email protected]; dispbottom "Gained : 1 Mob Point(s). Total : "+ MOBPOINTS +" Mob Point(s)."; end; } }can someone please tell me why this script didn't work
Link to comment
Share on other sites