|
|
someone asked a vid b4, dont remember who.. but there's one.
|
|
var mobs = monster birdman
while true
attack mobs
end
var mobs = monster birdman and monster othermonster? - var mobs = monster birdman , monster othermonster? - var mobs = monster birdman var mobs = monster othermonster
when hp < 40
use item Stancher
end
when true
attack self with Superman
end
while true
attack monster Pheasant
loot item meteor
loot item dragonball
loot item gold
end
if can see monster X attack monster x loot item gold loot item meteor loot item dragonball else jump posx - random(1,10), posy - random(1,10) end
there is actually something for thatQuote:
thank you so much, this is by far one of the most amazing things i have ever seen (once made something similar for a different game). I am a .NET coder and will thoroughly enjoy what you have given me. You have made so many contributions through the years, and all are very much appreciated.
thank you.
also, quick question.
i noticed this
(using version 1.1 btw)
how do i declare multiple instances of mobs?Code:var mobs = monster birdman while true attack mobs end
just curious.Code:var mobs = monster birdman and monster othermonster? - var mobs = monster birdman , monster othermonster? - var mobs = monster birdman var mobs = monster othermonster
also this gives me an undefined variable error
Code:when hp < 40 use item Stancher end when true attack self with Superman end while true attack monster Pheasant loot item meteor loot item dragonball loot item gold end
also could you provide the code for scanning to see if monster x is visible, and if not jump randomly?
something like
Code:if can see monster X attack monster x loot item gold loot item meteor loot item dragonball else jump posx - random(1,10), posy - random(1,10) end
var x = random 1, 10
jump to posx + random 0,6 - 3, posy + random 0,6 - 3
attack self with skill Superman
<3Quote:
there is actually something for that
in my messy documentation
Value := "random" S Expression "," S Expression `value = new RandomNode(results[1].Value, results[3].Value)`
that means you can define a random number between 1 and 10 like so...
Code:var x = random 1, 10It looks like a mess, but it does work. Also I've completely forgot about negative numbers as a constant "var x = -3" == fail. I should add that later.Code:jump to posx + random 0,6 - 3, posy + random 0,6 - 3
Also... multiple mobs or mob arrays can not declare yet and
needs the skill keywordCode:attack self with skill Superman
when hp < 40
use item Stancher
end
when true
attack self with skill Superman
end
while true
attack monster Pheasant
loot item meteor
loot item dragonball
loot item gold
loot item sycee
end
# 20/06/2010 5:04:00 PM universal time
var pot = Amrita
var mob = Pheasant
var x = random 1, 10
when hp < 40
use item pot
end
when true
attack self with skill Superman
sleep 2000
end
if found monster mob
attack monster mob
loot item meteor
loot item dragonball
loot item gold
loot item sycee
else
jump to posx + random 0,6 - 3, posy + random 0,6 - 3
end
Quote:
added sleep works now nvm
crap now another undefined variable error using this code
Code:# 20/06/2010 5:04:00 PM universal time var pot = Amrita var mob = Pheasant var x = random 1, 10 when hp < 40 use item pot end when true attack self with skill Superman sleep 2000 end if found monster mob attack monster mob loot item meteor loot item dragonball loot item gold loot item sycee else jump to posx + random 0,6 - 3, posy + random 0,6 - 3 end
var pot = item Amrita var mob = monster Pheasant
that would make itQuote:
needs item / monster keywords (sorta like the type of the value being set to the variable)Code:var pot = item Amrita var mob = monster Pheasant
I can see my documentation needs work
i see,Quote:
if that works, then great but i just did a system restore and am reinstalling CO because i replaces conquer.exe with a hacked one and then the bot didnt work so i ran latest patch and it still didnt work so i reinstalled and still didnt work so i did a system restore. now im stuck with version one because shitcash wont let me download.
=/
hope it works now.