Страница 1 из 1

Телепорт lv 1 скиллом без подтверждения [mod] [не проверено]

Добавлено: Пн мар 24, 2008 12:33 pm
piroJOKE
Сабж нужен для некоторых пирацких серваков; только для тех, где не выскакивает менюшка, когда юзаешь слилл телепорт lv.1 или крими-карточку.
"Perma teleport with teleport skill lvl1"
http://forums.openkore.com/viewtopic.php?t=28356

Botty01:

I have problem on my server with teleport skill lvl1.
My champion has only teleport lvl1.
Teleport skill lvl1 acts same as fwing, no confirmation window.
My priest has teleport skill lvl2 and no problem with teleport skill.

Код: Выделить всё

You use Teleport on yourself : Lv 1
Map Change: prt_fild08.gat (114, 291)
You use Teleport on yourself : Lv 1
Map Change: prt_fild08.gat (94, 264)
You use Teleport on yourself : Lv 1
Map Change: prt_fild08.gat (88, 184)
You use Teleport on yourself : Lv 1
Map Change: prt_fild08.gat (188, 323)
You use Teleport on yourself : Lv 1
Map Change: prt_fild08.gat (64, 298)
You use Teleport on yourself : Lv 1
Map Change: prt_fild08.gat (253, 105)
You use Teleport on yourself : Lv 1
Map Change: prt_fild08.gat (327, 351)
You use Teleport on yourself : Lv 1
Map Change: prt_fild08.gat (197, 308)
You use Teleport on yourself : Lv 1
Map Change: prt_fild08.gat (283, 62)
I paste for you eA script about teleport skill

Код: Выделить всё

	case AL_TELEPORT:
........................
			if(skilllv == 1) {
				// possibility to skip menu [LuzZza]
				if(!battle_config.skip_teleport_lv1_menu &&
					sd->skillitem != AL_TELEPORT) //If skillid is not teleport, this was auto-casted! [Skotlex]
					clif_skill_warppoint(sd,skillid,skilllv,"Random","","","");
				else
					pc_randomwarp(sd,3);
			} else {
				if (sd->skillitem != AL_TELEPORT)
					clif_skill_warppoint(sd,skillid,skilllv,"Random",
						mapindex_id2name(sd->status.save_point.map),"","");
				else //Autocasted Teleport level 2??
					pc_setpos(sd,sd->status.save_point.map,
						sd->status.save_point.x,sd->status.save_point.y,3);
			}
		} else
			unit_warp(bl,-1,-1,-1,3);
you can read the part // possibility to skip menu [LuzZza]
How to fix this problem with bot?


* * *

n0rd:

http://forums.openkore.com/viewtopic.ph ... 571#215571
If I understood things correctly, then this patch will do the trick:

Код: Выделить всё

Index: CoreLogic.pm
===================================================================
--- CoreLogic.pm	(revision 6276)
+++ CoreLogic.pm	(working copy)
@@ -599,10 +599,13 @@
 			# and the ai_teleport_delay timeout has elapsed
 			$messageSender->sendTeleport(AI::args->{lv} == 2 ? "$config{saveMap}.gat" : "Random");
 			AI::dequeue;
-		} elsif (!$timeout{ai_teleport_delay}{time} && timeOut($timeout{ai_teleport_retry})) {
+		} elsif (!$timeout{ai_teleport_delay}{time} && timeOut($timeout{ai_teleport_retry}) && !(defined($config{'teleportAuto_noConfirmation'}) && $config{'teleportAuto_noConfirmation'})) {
 			# We are still trying to use the Teleport skill
 			$messageSender->sendSkillUse(26, $char->{skills}{AL_TELEPORT}{lv}, $accountID);
 			$timeout{ai_teleport_retry}{time} = time;
+		} elsif (defined($config{'teleportAuto_noConfirmation'}) && $config{'teleportAuto_noConfirmation'}) {
+			# We used skill but received no confirmation and configured not to receive confirmation so proceed as nothing happened
+			AI::dequeue;
 		}
 	}
 }

Добавлено: Пн мар 24, 2008 1:47 pm
4epT