[FIXBUG] 0144 minimap_indicator

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

Message
Author
windows98SE
Human
Human
Posts: 22
Joined: 31 May 2008, 21:40
Noob?: No

[FIXBUG] 0144 minimap_indicator

#1 Post by windows98SE »

file : ../src/Network/Receive.pm
find

Code: Select all

'0144' => ['minimap_indicator', 'V1 V1 V1 V1 v1 x3', [qw(ID clear x y color)]],
replace

Code: Select all

'0144' => ['minimap_indicator', 'a4 V3 C5', [qw(npcID type x y ID blue green red alpha)]],
Find

Code: Select all

 sub minimap_indicator {
Fix to..

Code: Select all

 sub minimap_indicator {
 	my ($self, $args) = @_;
 
-	if ($args->{clear}) {
+	if ($args->{type} == 2) {
 		message TF("Minimap indicator at location %d, %d " .
-		"with the color %s cleared\n", $args->{x}, $args->{y}, $args->{color}),
+		"with the color %s cleared\n", $args->{x}, $args->{y}, "[R:$args->{red}, G:$args->{green}, B:$args->{blue}, A:$args->{alpha}]"),
 		"info";
 	} else {
 		message TF("Minimap indicator at location %d, %d " .
-		"with the color %s shown\n", $args->{x}, $args->{y}, $args->{color}),
+		"with the color %s shown\n", $args->{x}, $args->{y}, "[R:$args->{red}, G:$args->{green}, B:$args->{blue}, A:$args->{alpha}]"),
 		"info";
 	}
 }
Free !!, All about BOT SETTING, Plz. Read Openkore Manual

hakore
Super Moderators
Super Moderators
Posts: 200
Joined: 16 May 2008, 08:28
Noob?: No
Contact:

Re: [FIXBUG] 0144 minimap_indicator

#2 Post by hakore »

Commited, thanks.
Whatever...

Post Reply