Jump to content

Merge killmonster & killmonster2


lekkereten

Recommended Posts


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  148
  • Reputation:   46
  • Joined:  11/02/11
  • Last Seen:  

I was looking at the monster command and some lines¹ gave me the idea to merge killmonster and killmonster2 into one function, and use killmonster2 as duplicate of killmonster, just like monstersmall/monsterbig and monster.

Patch:

killmonster(2)_merge.patch

[¹]

	if (strcmp(command+1, "monstersmall") == 0)
	strcpy(eventname, "2");
else if (strcmp(command+1, "monsterbig") == 0)
	strcpy(eventname, "4");

  • Upvote 3
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  113
  • Reputation:   2
  • Joined:  10/29/12
  • Last Seen:  

but those two have different functions :/ killmonster with drops and killmonster2 without drops

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  713
  • Reputation:   70
  • Joined:  11/08/11
  • Last Seen:  

but those two have different functions :/ killmonster with drops and killmonster2 without drops

seems like you did not took a look at the patch, +1 to this merge!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

Agreed.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  113
  • Reputation:   2
  • Joined:  10/29/12
  • Last Seen:  

opened the diff. got it now. +1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  427
  • Reputation:   123
  • Joined:  11/17/11
  • Last Seen:  

It seems to be ok to me, good idea.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  87
  • Reputation:   0
  • Joined:  10/28/12
  • Last Seen:  

why is that when i use killmonster my server got DC ?? is that normal ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Link to comment
Share on other sites

×
×
  • Create New...