ok... I don't know if i can do this but I mentioned this a little to Brass.
This is a macro that makes your bot automatically give you the items (in this case gold and poring coins) he/she is carrying when you pm it.
Here's how it works.
1. You pm the bot your current coordinates in prontera (eg. prontera 140 151)
2. The bot will teleport to you and deal you the items (gold and poring coins)
3. You pm the bot either "quit" or "go" (quit - if you want the bot to close openkore, go - if you want the bot to return to gold room and continue collecting items.
What you need to do.
1. Change <name1> and <name2> to your desired character who will the bot follow when you pm it. (I use 2 characters as my receiver of the items in this case. One is Mi Gao and the other... the other is a secret)
---Notes---
1. This one should have no problems at all since I'm using this for 2 weeks already with no problems.
2. There are 8 things you need to change here: 4 <name1> and 4 <name2>
3. All <name1> should be the same (eg. if you change the first <name1> to Mi Gao, all the other 3 <name1> should also be Mi Gao.) as well as for <name2>.
4. If you are assigning <name1> or <name2> with the character name that have a space, use quotation marks. (my character name is Mi Gao so I write it as "Mi Gao".) eg. pm /prontera/ "Mi Gao", Antrax
---Added Notes---
i didn't mention this when i first post this i don't actually know this yet at that time:
the name of the character that you will change <name1> & <name2> [u]should not[/i] have any parenthesis "()" and/or braces "[]" in them. (eg. Cris`[†])
i don't know about quotes (") or apostrophes (') yet, if you happened to tried it pls tell me the outcome.
This is a macro that makes your bot automatically give you the items (in this case gold and poring coins) he/she is carrying when you pm it.
Here's how it works.
1. You pm the bot your current coordinates in prontera (eg. prontera 140 151)
2. The bot will teleport to you and deal you the items (gold and poring coins)
3. You pm the bot either "quit" or "go" (quit - if you want the bot to close openkore, go - if you want the bot to return to gold room and continue collecting items.
What you need to do.
1. Change <name1> and <name2> to your desired character who will the bot follow when you pm it. (I use 2 characters as my receiver of the items in this case. One is Mi Gao and the other... the other is a secret)
- Code:
######## Being Called ########
automacro called {
pm /prontera/ <name1>, <name2>
run-once 0
overrideAI 1
call lipad
}
macro lipad {
$pl = @player ($.lastpm)
$warp = $.lastpmMsg
do c @warp $warp
do sit
do deal $pl
}
######## The Trade ########
automacro lagay {
console /Engaged Deal/
run-once 0
overrideAI 1
call add
}
macro add {
$nume = 30000
$item = gold
$item1 = poring coin
$gold = @invamount ($item)
$gold1 = @storamount ($item)
$gold2 = @inventory ($item)
$pcoin = @invamount ($item1)
$pcoin1 = @storamount ($item1)
$pcoin2 = @inventory ($item1)
$m1 = Engaged Deal with <name1>
$m2 = Engaged Deal with <name2>
if ($.lastLogMsg != $m1 && $.lastLogMsg == $m2) goto one
if ($.lastLogMsg != $m1 || $.lastLogMsg != $m2) goto two
if ($.lastLogMsg == $m1 && $.lastLogMsg != $m2) goto one
:two
do deal no
do c gomen... wrong send
do e sry
stop
:one
[
do deal add $gold2
do deal add $pcoin2
]
stop
}
######## The Deal ########
automacro sure {
console /(<name1>|<name2>) finalized the Deal/
run-once 0
overrideAI 1
call final
}
macro final {
do deal
do deal
}
######## Stop or Continue ########
automacro complete {
pm /go|quit/ <name1>, <name2>
run-once 0
overrideAI 1
call decide
}
macro decide {
if ($.lastpmMsg == go) goto continue
if ($.lastpmMsg == quit) goto done
:continue
do stand
do tele
stop
:done
do stand
do tele
do quit
}
######## Storage ########
automacro storage {
location lou_fild01
weight >= 90%
timeout 600
overrideAI 1
call store
}
macro store {
do c @go 0
do talknpc 153 187 r1
}
automacro proccess {
console "Storage opened."
exclusive 1
call step
}
macro step {
$nume = 30000
$item = gold
$item1 = poring coin
$gold = @invamount ($item)
$gold1 = @storamount ($item)
$gold2 = @inventory ($item)
$pcoin = @invamount ($item1)
$pcoin1 = @storamount ($item1)
$pcoin2 = @inventory ($item1)
$sum = @eval ($gold + $gold1)
$sum1 = @eval ($pcoin + $pcoin1)
$diff = @eval ($nume - $gold1)
$diff1 = @eval ($nume - $pcoin1)
if ($sum < $nume) goto one
if ($sum >= $nume) goto one1
:one
do storage add $gold2
if ($sum1 < $nume) goto two
if ($sum1 >= $nume) goto two2
stop
:one1
if ($diff == 0) goto one1one
if ($diff > 0) goto one1two
stop
:one1one
if ($sum1 < $nume) goto 1two
if ($sum1 >= $nume) goto 1two2
stop
:one1two
do storage add $gold2 $diff
if ($sum1 < $nume) goto 1two
if ($sum1 >= $nume) goto 1two2
stop
:two
do storage add $pcoin2
do storage close
do tele
stop
:two2
if ($diff1 == 0) goto 2three
if ($diff1 > 0) goto please
stop
:please
do storage add $pcoin2 $diff1
do storage close
do tele
stop
:1two
do storage add $pcoin2
do storage close
do quit
:1two2
if ($diff1 == 0) goto 2three
if ($diff1 > 0) goto 2three3
stop
:2three
do storage close
do tele
do quit
:2three3
do storage add $pcoin2 $diff1
do storage close
do tele
do quit
}
######## Tele ########
automacro warp {
location not lou_fild01
location not prontera
overrideAI 1
timeout 10
call fly
}
macro fly {
do c @warp lou_fild01
}
######## Must Heal ########
automacro park {
hp < 20%
timeout 90
exclusive 1
overrideAI 1
call heal
}
macro heal {
do c @go 0
do sit
do talknpc 155 187 r0
do stand
do tele
}
---Notes---
1. This one should have no problems at all since I'm using this for 2 weeks already with no problems.
2. There are 8 things you need to change here: 4 <name1> and 4 <name2>
3. All <name1> should be the same (eg. if you change the first <name1> to Mi Gao, all the other 3 <name1> should also be Mi Gao.) as well as for <name2>.
4. If you are assigning <name1> or <name2> with the character name that have a space, use quotation marks. (my character name is Mi Gao so I write it as "Mi Gao".) eg. pm /prontera/ "Mi Gao", Antrax
---Added Notes---
i didn't mention this when i first post this i don't actually know this yet at that time:
the name of the character that you will change <name1> & <name2> [u]should not[/i] have any parenthesis "()" and/or braces "[]" in them. (eg. Cris`[†])
i don't know about quotes (") or apostrophes (') yet, if you happened to tried it pls tell me the outcome.
Last edited by Janice on 1/8/2010, 9:26 pm; edited 1 time in total