[complete] to show your own alchemist point,while making pot

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

Moderator: Moderators

toro88
Noob
Noob
Posts: 15
Joined: 12 Jul 2008, 05:19
Noob?: No

[complete] to show your own alchemist point,while making pot

#1 Post by toro88 »

go to src folder, open receive.pm

src\receive.pm


find sub refine_result
replace all thing below


Code: Select all

sub refine_result {
	my ($self, $args) = @_;
	if ($args->{fail} == 0) {
		message TF("You successfully refined a weapon (ID %s)!\n", $args->{nameID});
	} elsif ($args->{fail} == 1) {
		message TF("You failed to refine a weapon (ID %s)!\n", $args->{nameID});
	} elsif ($args->{fail} == 2) {
		message TF("You successfully made a potion (ID %s)!\n", $args->{nameID});
	} elsif ($args->{fail} == 3) {
		message TF("You failed to make a potion (ID %s)!\n", $args->{nameID});
	} else {
		message TF("You tried to refine a weapon (ID %s); result: unknown %s\n", $args->{nameID}, $args->{fail});
	}
}


sub blacksmith_points {
my ($self, $args) = @_;
message("[POINT] Blacksmist Ranking Point increase ".$args->{points}.". The total is ".$args->{total}." points.\n","list");
}


sub alchemist_point {
my ($self, $args) = @_;
message("[POINT] Alchemist Ranking Point increase ".$args->{points}.". The total is ".$args->{total}." points.\n","list");
}
[/color]
Last edited by toro88 on 08 Jun 2009, 06:21, edited 2 times in total.
h4rry84
Moderators
Moderators
Posts: 234
Joined: 04 Apr 2008, 09:30
Noob?: Yes
Location: My House

Re: [complete] to show your own alchemist point,while making pot

#2 Post by h4rry84 »

moved to commit queue, make a DIFF if possible and should be supported localization already.

Committed already with some changes to support localization

Code: Select all

sub blacksmith_points {
	my ($self, $args) = @_;
	message TF("[POINT] Blacksmist Ranking Point is increasing by %s. Now, The total is %s points.\n", $args->{points}, $args->{total}, "list");
}


sub alchemist_point {
	my ($self, $args) = @_;
	message TF("[POINT] Alchemist Ranking Point is increasing by %s. Now, The total is %s points.\n", $args->{points}, $args->{total}, "list");
}
kali
OpenKore Monk
OpenKore Monk
Posts: 457
Joined: 04 Apr 2008, 10:10

Re: [complete] to show your own alchemist point,while making pot

#3 Post by kali »

h4rry, has this been committed already? :) If so, I suggest moving it to developer's corner with a last line of committed (and I guess locked to prevent spamming and bumping) so that we know which stuff has been committed already :)
Got your topic trashed by a mod?

Trashing topics is one click, and moving a topic to its proper forum is a lot harder. You expend the least effort in deciding where to post, mods expend the least effort by trashing.

Have a nice day.
h4rry84
Moderators
Moderators
Posts: 234
Joined: 04 Apr 2008, 09:30
Noob?: Yes
Location: My House

Re: [complete] to show your own alchemist point,while making pot

#4 Post by h4rry84 »

it's already comitted