Jump to content
  • 0

normal mob killedrid points


cahadeyelo

Question


  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   1
  • Joined:  11/13/14
  • Last Seen:  

i got this script for my server but it seems like it didn't work

 

-	script	mob_points	-1,{

OnNPCKillEvent:
	if( killedrid == 1313 ){
	.@MPS = 1;
	set MOBPOINTS,MOBPOINTS + .@MPS;
	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

10 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  350
  • Reputation:   43
  • Joined:  09/07/12
  • Last Seen:  

its should be killed, not just hit.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   10
  • Joined:  01/15/16
  • Last Seen:  

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

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   1
  • Joined:  11/13/14
  • Last Seen:  

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 by cahadeyelo
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   10
  • Joined:  01/15/16
  • Last Seen:  

You got an error message or something in the console?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   1
  • Joined:  11/13/14
  • Last Seen:  

Nothing sir... it's just when i killed the mobster, the server didn't give the point nor announce the gained.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   10
  • Joined:  01/15/16
  • Last Seen:  

Ok, i just tested the script and its working whitout problems

5b786dcdd21f275a9b86f8386f042a45.png

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   1
  • Joined:  11/13/14
  • Last Seen:  

i'll try it now and thanks for the effort you kind sir.  /no1


I find this weird that when i killed the mob using skill...well the script works but not on normal attacks.

 

Untitled-1_zpslilfeamf.jpg

Edited by cahadeyelo
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  88
  • Reputation:   10
  • Joined:  01/15/16
  • Last Seen:  

Tried with a LK and a Hunter, no problem at all...


¿With wich attack you tried?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   1
  • Joined:  11/13/14
  • Last Seen:  

that wizard.. i just hit the mob with my normal attack and nothing happened

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  170
  • Reputation:   1
  • Joined:  11/13/14
  • Last Seen:  

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.  /thx

Edited by cahadeyelo
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...