teleportAuto_useSkill: diferent flag

International

Moderator: Moderators

joamil1
Noob
Noob
Posts: 14
Joined: 25 Jun 2008, 19:48
Noob?: Yes

teleportAuto_useSkill: diferent flag

#1 Post by joamil1 »

Hello there,

Im posting here since bRO support is kinda out =/ . If mods move the topic, no problems at all.

One user submited to me an interesting question, maybe you guys could solve this one.

In our official server, there's no fly wings or butterfly wings avaliable on NPC merchants. They're only buyable through real money as cash items. And it is kinda expensive. Even acolytes dont have de skill teleport.

Creamy cards were taken out from regular drops and a year ago or maybe more, it was put to sell as a cash item too - just for a few weeks. REALLY expensive. Its price now is something insane.

Another cash item was released, a hat with Teleport Skill lvl 1 - a relief for botters. Expensive too.

And in an somewhat recent update, novices that complete the training in the novice field got as a prize, 50 to 100 "novice fly wings" and 10 to 20 "novice butterfly wings".

An user with an Geographer problem asked me how to set up kore to teleport using these novice items. I instantly told him to change teleportAuto_useSkill to 0, but Im afraid that's not sufficient. How kore will recognize that those items give teleport skill ?

Would really be thankfull for any tips, since this server is crowded with "naturally" spawned MVPs, bosses and hardcore monsters (by GMs, to kill bots who dont have money to get tele items).

ps.: through config.txt , not macros or plugins. Just as like kore does with fly wings and butterfly wings - thought to just 'add' those new items in the same place that makes kore recognize the original wings, but, where?
User avatar
help_us
Testers Team
Testers Team
Posts: 106
Joined: 04 Apr 2008, 21:53
Noob?: No
Location: Asia

Re: teleportAuto_useSkill: diferent flag

#2 Post by help_us »

try to modified misc.pm on sub useTeleport.

Code: Select all

	# could lead to problems if the ItemID would be different on some servers
	# 1 Jan 2006 - instead of nameID, search for *wing in the inventory
	my $item;
	if ($use_lvl == 1) {
		$item = $char->inventory->getByName("Fly Wing");
	} elsif ($use_lvl == 2) {
		$item = $char->inventory->getByName("Butterfly Wing");
	}
try to look that line and modified it
Image
Image
joamil1
Noob
Noob
Posts: 14
Joined: 25 Jun 2008, 19:48
Noob?: Yes

Re: teleportAuto_useSkill: diferent flag

#3 Post by joamil1 »

Solved.

It was needed to add a line on items.txt with the name of the new item and its ID:

12323#Novice Fly Wing#

Kore now uses it too.

Code: Select all

my $item;
	if ($use_lvl == 1) {
		$item = $char->inventory->getByName("Fly Wing");
		$item = $char->inventory->getByName("Novice Fly Wing");
	} elsif ($use_lvl == 2) {
		$item = $char->inventory->getByName("Butterfly Wing");
	}
Tks for the tip help_us, I looked many of those .pms, and not misc.pm .