Autowarper, For all your warping needs

Other plugins for extending OpenKore's functionality. This forum is only for posting new plugins and commenting on existing plugins. For support, use the Support forum.

Moderator: Moderators

Message
Author
Hexo55
Noob
Noob
Posts: 8
Joined: 19 Jan 2010, 22:57
Noob?: Yes

Autowarper, For all your warping needs

#1 Post by Hexo55 »

Ok here is my first attempt in creating a plugin (Although this is not originally mine, I just edited the works of Joseph and Kissa2k). It is not yet thoroughly tested, but at least it's functional. :D .

Before you attempt to download this, make sure you have at least openkore version 2.0.7. I have only tested this on the latest SVN version so I'm not sure if it works on other version.

So here it is, the autowarper plugin. You may ought to add this in config.txt:

Code: Select all

########## Autowarp Settings #########
autoWarp_maxCastTries 5
autoWarp_timeout 30
If you don't the variables will default to autoWarp_maxCastTries 3 autoWarp_timeout 15. Basically, autoWarp_maxCastTries sets how many times you will try to cast warp portal in case it fails and autoWarp_timeout sets how many seconds will the bot wait before trying again.

To use it type in the console:

Code: Select all

autowarp [move] <fieldname> [<player1> <player2>...]
The [move] and [<player>] parameters are optional. If you supply [move] in the command your bot will move to the warp portal after casting it. For example your bot is a lone traveler (a monk maybe?) you can type this in the console:

Code: Select all

autowarp move prt_fild08
This will open a portal to prt_fild08 (assuming you have a warp to prt_fild08) then move to the warp portal.

If you don't supply a move command, it will just open a warp portal to that location. This is useful if you're a warp seller. For example you are selling warp to prontera, you can type this:

Code: Select all

autowarp prontera
The [<player>] parameter is useful if you have a party and needs to transfer to a new location. You can use this:

Code: Select all

autowarp move prt_fild09 "Yaya Angelina" BarDagul Brownie


This will open a warp portal to prt_fild09 and wait for Yaya Angelina BarDagul and Brownie to enter the warp portal before entering (Assuming all of them are in sight or near you). If you don't supply the [move] parameter, it will just cast warp portal up to autoWarp_maxCastTries until all the players listed have been warped. Note that this will not command the players (Yaya Angelina BarDagul Brownie) to move into the warp portal, you need to use macros for that. ;)

Also take note that after issuing the autowarp command, it will not immediately cast a warp portal. It will first finish what you're currently doing (attacking, casting a skill, taking a bath :lol: ) before it casts the warp portal.

So there you have it. I have made this plugin as robust as I can. I hope you use it wisely and responsibly! ;)
Attachments

[The extension pl has been deactivated and can no longer be displayed.]


EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: Autowarper, For all your warping needs

#2 Post by EternalHarvest »

Any reviews, comments?
Ci this to svn?

User avatar
kLabMouse
Administrator
Administrator
Posts: 1301
Joined: 24 Apr 2008, 12:02

Re: Autowarper, For all your warping needs

#3 Post by kLabMouse »

Nice Plugin.
Should be on SVN. (I think).

gamenikko
The Way Of Human
The Way Of Human
Posts: 192
Joined: 16 Aug 2009, 03:47
Noob?: Yes
Location: Gonryun

Re: Autowarper, For all your warping needs

#4 Post by gamenikko »

when i used the plugin i get this
after i type

Code: Select all

autowarp prontera or anything
Image

im using the latest .svn version, if this will work this will be very cool!!!

EDIT:
I works, it's just me, i used an old version of svn 2.0.7, good job!
Just like old times.

jeljays
Noob
Noob
Posts: 2
Joined: 03 Jul 2010, 09:42
Noob?: Yes

Re: Autowarper, For all your warping needs

#5 Post by jeljays »

uhmmm help?

Image

Technology
Super Moderators
Super Moderators
Posts: 801
Joined: 06 May 2008, 12:47
Noob?: No

Re: Autowarper, For all your warping needs

#6 Post by Technology »

jeljays wrote:uhmmm help?
read gamenikko's post.
One ST0 to rule them all? One PE viewer to find them!
One ST_kRO to bring them all and in the darkness bind them...

Mount Doom awaits us, fellowship of OpenKore!

xiaoTing
Noob
Noob
Posts: 9
Joined: 24 Dec 2009, 10:48
Noob?: No

Re: Autowarper, For all your warping needs

#7 Post by xiaoTing »

since you ppl are using serverType 22, so you guy can try this
goto src\network\send\ open ServerType22
simply add in the below code, and have a try

Code: Select all

# 0x011b,20,useskillmap,2:4
sub sendWarpTele { # type: 26=tele, 27=warp
	my ($self, $skillID, $map) = @_;
	my $msg = pack('v2 Z16', 0x011B, $skillID, stringToBytes($map));
	$self->sendToServer($msg);
	debug "Sent ". ($skillID == 26 ? "Teleport" : "Open Warp") . "\n", "sendPacket", 2
}

jeljays
Noob
Noob
Posts: 2
Joined: 03 Jul 2010, 09:42
Noob?: Yes

Re: Autowarper, For all your warping needs

#8 Post by jeljays »

Thanks.

I did got it working, but it keeps trying to go back to save map.

Ok here's whats happening.

I typed in autowarp move um_fild02
It goes to um_fild02
Once in um_fild02:
Image
The character keeps trying to warp back at my savepoint and he already used all of my Blue Gemstone. In my theory, that's why he's not entering the warp portal on the first time he used it, (when I still have Blue Gemstone) is because there are mobs around. And he tried to attack first before entering the warp portal.

xiaoTing
Noob
Noob
Posts: 9
Joined: 24 Dec 2009, 10:48
Noob?: No

Re: Autowarper, For all your warping needs

#9 Post by xiaoTing »

i only have that for twice time @@, i using openkore 2.1(r7399)

den it back to city

luocongo
Human
Human
Posts: 22
Joined: 02 Aug 2009, 13:00
Noob?: Yes

Re: Autowarper, For all your warping needs

#10 Post by luocongo »

I cannot use this plugin, the error info list below.




Variable "%field" is not imported at D:/openkore/plugins/autowarper.pl line 172.

Variable "%field" is not imported at D:/openkore/plugins/autowarper.pl line 289.

Global symbol "%field" requires explicit package name at
D:/openkore/plugins/autowarper.pl line 172.
Global symbol "%field" requires explicit package name at
D:/openkore/plugins/autowarper.pl line 289.

Post Reply