Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Cabal Online > Cabal Guides & Templates
You last visited: Today at 05:05

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Guide] AutoIt template to teleport

Discussion on [Guide] AutoIt template to teleport within the Cabal Guides & Templates forum part of the Cabal Online category.

Reply
 
Old   #1
 
168Atomica's Avatar
 
elite*gold: 0
Join Date: Jul 2008
Posts: 72
Received Thanks: 85
[Guide] AutoIt template to teleport

To those who wants to go to different map (for botting, etc.). Here is the code I use. If you are following my threads, I only use scripts to bot and still enjoy the game :P

Ok enough with the talk. Here is the function
Code:
Func _teleport($mapcode)
	Sleep(2000)
	Switch $mapcode
		;Teleport Map Codes
		Case $BI1
		Case $BI2
		Case $DS1
		Case $DS2
		Case $GD1
		Case $GD2
		Case $PL1
			_chooseMap($PL)
			MouseClick("left",430, 306)
			Sleep(2000)
		Case $PL2
		Case $PL3
		Case $FRUINA1
		Case $FRUINA2
		Case $UG1
		Case $UG2
		Case $FRUINS1
		Case $FRUINS2
		Case $FRUINS2
		Case $LS1
		Case $LS2
		Case $LS3
		Case $MF1
			_chooseMap($MF)
			MouseClick("left",513, 523)
			Sleep(2000)
		Case $MF2
		Case $PF1
		Case $PF2
	EndSwitch
	Sleep(10000)	;WAIT FOR MAP TO LOAD
EndFunc
Here is the Map selector (_chooseMap) called by that function. What this function does is open the map and select the map based on the mapcode specified.
Code:
Func _chooseMap($mapcode)
	_openMap()
	MouseMove(732,326)	;
	MouseWheel("up",3)	;this resets the map
	Switch $mapcode
		Case $BI
			$mapPos =  $mapstarty + (41 * 0)
			MouseClick("left",$mapstartx,$mapPos)
		Case $DS
			$mapPos =  $mapstarty + (41 * 1)
			MouseClick("left",$mapstartx,$mapPos)
		Case $GD
			$mapPos =  $mapstarty + (41 * 2)
			MouseClick("left",$mapstartx,$mapPos)
		Case $PL
			$mapPos =  $mapstarty + (41 * 3)
			MouseClick("left",$mapstartx,$mapPos)
		Case $FRUINA
			$mapPos =  $mapstarty + (41 * 4)
			MouseClick("left",$mapstartx,$mapPos)
		Case $UG
			$mapPos =  $mapstarty + (41 * 5)
			MouseClick("left",$mapstartx,$mapPos)
		Case $FRUINS
			$mapPos =  $mapstarty + (41 * 6)
			MouseClick("left",$mapstartx,$mapPos)
		Case $LS
			$mapPos =  $mapstarty + (41 * 7)
			MouseClick("left",$mapstartx,$mapPos)
		Case $MF
			Sleep(100)
			MouseWheel("down",1)
			Sleep(100)
			$mapPos =  $mapstarty + (41 * 7)
			MouseClick("left",$mapstartx,$mapPos)
		Case $PF
			Sleep(100)
			MouseWheel("down",2)
			Sleep(100)
			$mapPos =  $mapstarty + (41 * 7)
			MouseClick("left",$mapstartx,$mapPos)
		EndSwitch
	Sleep(1500)	;WAIT FOR MAP TO LOAD
EndFunc
And here is the function to open the map.
Code:
Func _openMap()
	if not _isMapOpen() Then
		Send("m")
	EndIf
EndFunc
Remember that we need to check whether the map is open or not. (I use a special color that is unique with the map window to detect if it is open). So I device a little code to check if the map is already open.
Code:
Func _isMapOpen()
	$coord = PixelSearch(520,214,520,214, 0x618AA4, 10, 1)
	if not @error Then
		Return True
	Else
		Return False
	EndIf
EndFunc
And finally you need to declare these constants at the top of your code.
Code:
;-------------------------------MAP CODE CONSTANTS ------------------------------------
;Map Codes
Const $BI 	= "Bloody Ice"
Const $DS	= "Desert Scream"
Const $GD	= "Green Despair"
Const $PL	= "Port Lux"
Const $FRUINA = "Fort Ruina"
Const $UG	= "Undead Ground"
Const $FRUINS = "Frogotten Ruins"
Const $LS	= "Lakeside"
Const $MF	= "Mutant Forest"
Const $PF	= "Pontus Ferrum"

;Teleport Map Codes
Const $BI1	= 0X1
Const $BI2 	= 0X2
Const $DS1	= 0X3
Const $DS2	= 0X4
Const $GD1	= 0X5
Const $GD2	= 0X6
Const $PL1	= 0X7
Const $PL2	= 0X8
Const $PL3	= 0X9
Const $FRUINA1	= 0XA
Const $FRUINA2	= 0XB
Const $UG1	= 0XC
Const $UG2	= 0XD
Const $FRUINS1	= 0XE
Const $FRUINS2	= 0XF
Const $LS1	= 0X10
Const $LS2	= 0X11
Const $LS3	= 0X12
Const $MF1	= 0X13
Const $MF2	= 0X14
Const $PF1	= 0X15
Const $PF2	= 0X16

$mapstarty = 263
$mapstartx = 732
mapstarty and mapstartx are the coordinates where to begin searching for the minimap (right side of the map). Each minimap are almost fixed in distance with each other so I just need a reference point to detect how many down arrow i need to go to a specific map. :P

FAQ
1. Does this work without TP stone?
Nope. This only mimics the usual play scenario of opening the map and teleporting to a specific place.

2. Where do I use this?

You could use to anywhere you want. I use this code + my farming script to farm on different maps.
You could use that code to TP back to a place after certain period of farming with scripts.

3. Does this work on every screen sizes?
Nope. If are following my threads, I am working on a 1024x800 screen size (as i have a big monitor )

4. So why bother put that useless code here.
It is not meant for you to copy and paste 'as-is'. It is working for me. If you could adjust the coordinates properly, then you could use make this work for you too.
168Atomica is offline  
Thanks
6 Users
Old 03/07/2013, 08:16   #2
 
elite*gold: 0
Join Date: Feb 2012
Posts: 19
Received Thanks: 0
Nice Script Mr.168Atomica. But i still cannot use any script in my cabal (TH)client. I still wanna guide to bypass that. ^^ pls.
chengman is offline  
Old 03/07/2013, 11:16   #3
 
elite*gold: 0
Join Date: Dec 2011
Posts: 209
Received Thanks: 41
Thumbs up Good job Sir 168Atomica

Nice share.

Thanks
joxof is offline  
Old 03/07/2013, 13:57   #4
 
geosnuk's Avatar
 
elite*gold: 0
Join Date: Jan 2010
Posts: 263
Received Thanks: 52
awesome my master strikes again ^_^..
geosnuk is offline  
Old 03/07/2013, 22:41   #5
 
TotallyRed's Avatar
 
elite*gold: 0
Join Date: Jun 2009
Posts: 336
Received Thanks: 25
Nice work.
TotallyRed is offline  
Reply


Similar Threads Similar Threads
[Guide]Make your own Media.pk2 Template for PSERVER
02/10/2013 - SRO PServer Guides & Releases - 45 Replies
Here you can make for SJSRO,ECSRO,SunWorld,MySro your own template and add some stuff to your Media.pk2 http://i38.tinypic.com/2ebtky9.jpg Features : -Underbar templates -Change HP/MP bar -Add Unique map -Unique 5x bigger -Cursors templates
[Metin2][Teleport][NoClip] Wie in AutoIt umsetzen
08/15/2010 - AutoIt - 9 Replies
Hallo, habe zwei für euch bestimmt einfache Fragen zu Metin 2 :rolleyes: - ich habe per CE meine aktuelle X und Y-Position ermittelt und den entprechenden Pointer dazu gefunden. Wenn ich diese ändere passiert aber nichts. Warum funktioniert das teleportieren nicht? - welche Value muß ich für den NoClip suchen / ändern? In anderen Threads wird empfohlen nach Collision zu suchen. Das bringt auch einige Ergebnisse , aber das sind ja nur Text-Stellen. Bitte um eure Hilfe.
Rogue Template Guide[ENG]
02/16/2005 - WoW Guides & Templates - 6 Replies
Some General Info: -All builds are meant for level 60 characters and assume your RAW chance to crit is around 20%. Daggers used are 100 top end dmg and sword is 150 top end dmg. -It is very easy to get a 20% crit chance while also making a stam build with a rogue. Stam is extremely important for a rogue since they get 10 HP per stam, and their DPS will be very high no matter what. -The majority of rogues DPS comes from skills, NOT normal hits. This is doubly important for combo points. ...
Warrior Template/Guide [ENG]
01/07/2005 - WoW Guides & Templates - 1 Replies
The Warrior is the rock of World of WarCraft and always has been. The Warrior is not only the core of groups, but they are the glue that holds them together. Being PVP or PVE they are the class that manages both tempo and strategy. They lead the group in all the most important ways; they are the one class people count on more than any other for success of failure. Some would argue this, but the fact is no matter how good another person/class is in your group, if your Warrior follies it can only...
Mage Template Guide[ENG]
11/28/2004 - WoW Guides & Templates - 1 Replies
Omg, it's a copy and paste =).. Aber einer, der sich lohnt :): This post attempts to provide an overview of talent spec options available to mages, coupled with some guidance and opinion. I was a level 60 Troll Mage on Closed PvP in Beta and am now looking forward to once again making a mage in retail. Many thanks to all those who answered so many of my questions on this very same board during Beta and I hope that this post will prove useful to some of the new mages joining us in...



All times are GMT +1. The time now is 05:06.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.