TheJagNG
01-02-2009, 03:50
I just made this tutorial for a guy that asked how to make the bot drop loot, and I think other ppl may need some help to.
Step 1
Do like this in the end of your waypoints before "gotoscriptline 0":
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
that will go to a line that says ':deposit' if your cap is 100 or less
Step 2
now you need to do a line that says ':deposit' after goto scriptline 0.
like this:
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
Step 3
And after :deposit you make your waypoints to the lootdrop place
example
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
Step 4
If you wanna drop all loot, you just put "dropLootOnGround 32789,31140,10
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
waitX 1 (wait 1 second, not needed)
dropLootOnGround 32789,31140,10
waitX 1
continue to step 5 if you wanna drop all your loot (gold too)
Step 4.1
and if you don't wanna drop all loot on your lootlist you will need the command "resetloot"
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
resetloot
Step 4.2
then you put all the items you wanna drop
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
resetloot
setLoot (viking helpmet)
setLoot (brass helmet)
setLoot (whatever)
Step 4.3
and then you put put 'dropLootOnGround 32789,31140,10'
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
resetloot
setLoot (viking helpmet)
setLoot (brass helmet)
setLoot (whatever)
waitX 1 (wait 1 second, not needed)
dropLootOnGround 32789,31140,10
waitX 1
Step 4.4
and then you gotta put 'resetloot' again, and put ALL the ID's you had in the beginning
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
resetloot
setLoot (viking helpmet)
setLoot (brass helmet)
setLoot (whatever)
waitX 1 (wait 1 second, not needed)
dropLootOnGround 32789,31140,10
waitX 1
resetloot
setLoot D6 0C
setLoot C0 0C
setLoot 53 0D
setLoot 27 0D
setLoot D7 0B
setLoot 71 90
setLoot 31 0D
Step 5
That is how you make the bot drop loot on x sqm, now you just gotta make waypoints back to where your script starts
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
resetloot
setLoot (viking helpmet)
setLoot (brass helmet)
setLoot (whatever)
waitX 1 (wait 1 second, not needed)
dropLootOnGround 32789,31140,10
waitX 1
setLoot D6 0C
setLoot C0 0C
setLoot 53 0D
setLoot 27 0D
setLoot D7 0B
setLoot 71 90
setLoot 31 0D
move xyz
move xyz
move xyz
move xyz
move xyz
gotoscriptline 0
and don't forget gotoscriptline 0.
And the final script will be:
onGMpause
setMeleeKill ghoul
setMeleeKill skeleton
setMeleeKill crypt shambler
setPriority crypt shambler:+1
setLoot D6 0C
setLoot C0 0C
setLoot 53 0D
setLoot 27 0D
setLoot D7 0B
setLoot 71 90
setLoot 31 0D
move 32782,31142,9
move 32767,31128,9
move 32768,31128,9
move 32763,31128,9
move 32757,31137,9
move 32757,31136,9
move 32754,31146,9
move 32754,31145,9
move 32757,31145,9
move 32758,31157,9
move 32756,31160,9
move 32757,31161,9
move 32754,31161,9
move 32752,31145,9
move 32752,31144,9
move 32761,31128,9
move 32761,31115,9
move 32753,31103,9
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
resetloot
setLoot (viking helpmet)
setLoot (brass helmet)
setLoot (whatever)
waitX 1 (wait 1 second, not needed)
dropLootOnGround 32789,31140,10
waitX 1
resetloot
setLoot D6 0C
setLoot C0 0C
setLoot 53 0D
setLoot 27 0D
setLoot D7 0B
setLoot 71 90
setLoot 31 0D
move xyz
move xyz
move xyz
move xyz
move xyz
gotoscriptline 0
Example made from this script:
http://blackdtools.net/showthread.php?p=266193#post266193
hope it helped
Step 1
Do like this in the end of your waypoints before "gotoscriptline 0":
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
that will go to a line that says ':deposit' if your cap is 100 or less
Step 2
now you need to do a line that says ':deposit' after goto scriptline 0.
like this:
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
Step 3
And after :deposit you make your waypoints to the lootdrop place
example
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
Step 4
If you wanna drop all loot, you just put "dropLootOnGround 32789,31140,10
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
waitX 1 (wait 1 second, not needed)
dropLootOnGround 32789,31140,10
waitX 1
continue to step 5 if you wanna drop all your loot (gold too)
Step 4.1
and if you don't wanna drop all loot on your lootlist you will need the command "resetloot"
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
resetloot
Step 4.2
then you put all the items you wanna drop
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
resetloot
setLoot (viking helpmet)
setLoot (brass helmet)
setLoot (whatever)
Step 4.3
and then you put put 'dropLootOnGround 32789,31140,10'
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
resetloot
setLoot (viking helpmet)
setLoot (brass helmet)
setLoot (whatever)
waitX 1 (wait 1 second, not needed)
dropLootOnGround 32789,31140,10
waitX 1
Step 4.4
and then you gotta put 'resetloot' again, and put ALL the ID's you had in the beginning
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
resetloot
setLoot (viking helpmet)
setLoot (brass helmet)
setLoot (whatever)
waitX 1 (wait 1 second, not needed)
dropLootOnGround 32789,31140,10
waitX 1
resetloot
setLoot D6 0C
setLoot C0 0C
setLoot 53 0D
setLoot 27 0D
setLoot D7 0B
setLoot 71 90
setLoot 31 0D
Step 5
That is how you make the bot drop loot on x sqm, now you just gotta make waypoints back to where your script starts
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
resetloot
setLoot (viking helpmet)
setLoot (brass helmet)
setLoot (whatever)
waitX 1 (wait 1 second, not needed)
dropLootOnGround 32789,31140,10
waitX 1
setLoot D6 0C
setLoot C0 0C
setLoot 53 0D
setLoot 27 0D
setLoot D7 0B
setLoot 71 90
setLoot 31 0D
move xyz
move xyz
move xyz
move xyz
move xyz
gotoscriptline 0
and don't forget gotoscriptline 0.
And the final script will be:
onGMpause
setMeleeKill ghoul
setMeleeKill skeleton
setMeleeKill crypt shambler
setPriority crypt shambler:+1
setLoot D6 0C
setLoot C0 0C
setLoot 53 0D
setLoot 27 0D
setLoot D7 0B
setLoot 71 90
setLoot 31 0D
move 32782,31142,9
move 32767,31128,9
move 32768,31128,9
move 32763,31128,9
move 32757,31137,9
move 32757,31136,9
move 32754,31146,9
move 32754,31145,9
move 32757,31145,9
move 32758,31157,9
move 32756,31160,9
move 32757,31161,9
move 32754,31161,9
move 32752,31145,9
move 32752,31144,9
move 32761,31128,9
move 32761,31115,9
move 32753,31103,9
move 32753,31108,9
move 32761,31124,9
move 32777,31131,9
move 32781,31140,9
IfTrue ($mycap$#number<=#10000) Goto $nlineoflabel:deposit$
gotoScriptLine 0
:deposit
move xyz
move xyz
move xyz
move xyz
move 32789,31140,10 (<-DROP LOOT HERE)
resetloot
setLoot (viking helpmet)
setLoot (brass helmet)
setLoot (whatever)
waitX 1 (wait 1 second, not needed)
dropLootOnGround 32789,31140,10
waitX 1
resetloot
setLoot D6 0C
setLoot C0 0C
setLoot 53 0D
setLoot 27 0D
setLoot D7 0B
setLoot 71 90
setLoot 31 0D
move xyz
move xyz
move xyz
move xyz
move xyz
gotoscriptline 0
Example made from this script:
http://blackdtools.net/showthread.php?p=266193#post266193
hope it helped