Issue information

Issue ID
#5932
Status
Fixed
Severity
Low
Started
Hercules Elf Bot
Jun 4, 2012 14:13
Last Post
Hercules Elf Bot
Jun 12, 2012 9:59
Confirmation
Yes (1)
No (0)

Hercules Elf Bot - Jun 4, 2012 14:13

Originally posted by [b]Lemongrass[/b]
From revision 16227 the feature to check if a player is near a NPC is supported. The default range that should be checked is a 3 cell radius arround the player. It is set correctly within the conf files but I think it should also be set in the source files.

[url="http://sourceforge.net/apps/trac/rathena/changeset/16227"]http://sourceforge.net/apps/trac/rathena/changeset/16227[/url]

Therefore in battle.c line 5332 should be adjusted.
{ "min_npc_vending_distance", &battle_config.min_npc_vending_distance, 0, 0, 100 },

This would be the correct initialisation:
{ "min_npc_vending_distance", &battle_config.min_npc_vending_distance, [color=#ff0000]3[/color], 0, 100 },

This post has been edited by Lemongrass on Jun 4, 2012 14:14

Hercules Elf Bot - Jun 4, 2012 15:15

Originally posted by [b]EvilPuncker[/b]
also the indentation of the lines around it are horrible xd

Hercules Elf Bot - Jun 4, 2012 16:11

Originally posted by [b]Ind[/b]
Should be fixed in [rev=16230]