DakiLLa Posted July 24, 2010 Share Posted July 24, 2010 Btw, I've noticed one thing: if there are no players on your server and you start resource 'slothbot' and your bots-resource (to spawn some bots on the map) through a console, the bots won't be moving even if you will walk near them. The trick to get rid of this is simple: restart resource if you are the first joined player. addEventHandler( 'onPlayerJoin', root, function() if #getElementsByType( 'player' ) == 1 then restartResource( getResourceFromName( 'slothbot' ) ); end; end); Anybody had such problem ? --- if someone could make a gui for freeroam *facepalm* Link to comment
Slothman Posted July 25, 2010 Author Share Posted July 25, 2010 yeah, thers possibly a problem with the way the bots resume activity when a player returns. ill look into it. restarting the resource is probably a bad idea, cause it could cause other trouble. Link to comment
12p Posted July 26, 2010 Share Posted July 26, 2010 I noticed that when I use the exported function of creating a Bot, it creates me 3 bots, and I want only 1. This is a problem of your resource, of you did it like that? Thanks, Slothman. Link to comment
DakiLLa Posted July 26, 2010 Share Posted July 26, 2010 I noticed that when I use the exported function of creating a Bot, it creates me 3 bots, and I want only 1. This is a problem of your resource, of you did it like that? Thanks, Slothman. Eh, I thought that you have already fixed that problem ? Link to comment
Slothman Posted July 26, 2010 Author Share Posted July 26, 2010 It must be your script. the bot will only be created 1 time. but if you are the person who had the trouble with spawning bots using "onResourceStart", then you need to make sure you don't have it set to happen when EVERY resource starts. Link to comment
directshot Posted July 28, 2010 Share Posted July 28, 2010 How can i start the bot? wenn i start the resource with the console, its nothing working? musst i use a command or so? Link to comment
Xierra Posted July 28, 2010 Share Posted July 28, 2010 You need to make a script which creates the slothbot. The slothbot doesn't mean they spawn, but they're the source of these bots. Use export functions to make it. Link to comment
gallencool Posted September 2, 2010 Share Posted September 2, 2010 wait the reupload for this resource... Link to comment
Xierra Posted September 7, 2010 Share Posted September 7, 2010 I have the resource right here: http://cid-9fe44d35ab240cb2.office.live.com/self.aspx/.Public/MTA%20San%20Andreas%20mods/Resources%20^5Scripts^6/slothbot.zip (Can't make it into an URL, please copy the site instead.) Link info: It's my personal MSN Skydrive storage. Link to comment
gallencool Posted September 8, 2010 Share Posted September 8, 2010 very thank you about the resource.. BTW, we are the same indonesian people.. hehehe.. can i know contact of you, ym or fb?? so i can contact u if i have a problem.. pm me.... Link to comment
Xierra Posted September 8, 2010 Share Posted September 8, 2010 Please don't go offtopic like that, just PM me for that. (Thanks to slothman for learning a "rule" in a forum) Link to comment
djlobo Posted September 14, 2010 Share Posted September 14, 2010 Using this script on mini-missions server and works like a charm, very good indeed. Link to comment
Xierra Posted September 14, 2010 Share Posted September 14, 2010 Putting the bot to your missions? I think slothman would be happy to see that. Link to comment
Fabio(GNR) Posted September 30, 2010 Share Posted September 30, 2010 I tested it, and it's pretty good it would be nice if someone could create a GUI, for spawning, team skins weapons etc. really hard i think, but i really suck at GUI and scripting Nice script!! Link to comment
Xierra Posted October 1, 2010 Share Posted October 1, 2010 Slothman, looks like the Wiki link which you put it on the MTA Community is not working, so I might give you the working link: https://wiki.multitheftauto.com/wiki/Slothman/Slothbot Edit this on the Community. Link to comment
Slothman Posted October 2, 2010 Author Share Posted October 2, 2010 thanks, i thought those pages were gone forever! Link to comment
Fabio(GNR) Posted October 2, 2010 Share Posted October 2, 2010 k i tried something with the example spawn script, this is the code: It's about spawnbot1, it says bad argument @ Getelementinterior and dimension, string defined function, what am i doing wrong?? Sorry for asking, but i would really like bodyguards etc. EDIT: it starts now, but doesnt set it in team GNR, new code: function Spawnbot1 (source) local dimen = getElementDimension (source) local inter = getElementInterior (source) local x,y,z = getElementPosition (source) local rot= 90 local skin=220 local interior=inter local dimension=dimen local team=GNR local weapon=26 local mode= "guarding" local modesubject=source call (getResourceFromName("slothbot"), "spawnBot", x, y+5, z, rot, skin-9, interior, dimension, team, weapon, mode, modesubject) call (getResourceFromName("slothbot"), "spawnBot", x, y+7, z, rot, skin-9, interior, dimension, team, weapon+2, mode, modesubject) end addCommandHandler("spawnbot", Spawnbot1) function Spawnbot2 (source) local x,y,z = getElementPosition (source) local rot= 90 local skin=22 local interior=inter local dimension=dimen local team=GNR local weapon=26 local mode= "guarding" local modesubject=source call (getResourceFromName("slothbot"), "spawnBot", x, y+5, z, rot, skin, interior, dimension, team, weapon, mode, modesubject) call (getResourceFromName("slothbot"), "spawnBot", x, y+7, z, rot, skin, interior, dimension, team, weapon+2, mode, modesubject) end addCommandHandler("spawnbot2", Spawnbot2) Thanks for any help btw yes i am team GNR i set it in admin panel EDIT2: lolz sorry it works now, i should have looked it trough better before posting EDIT3: 1 question, i would like to make it respawn after death, how to use onbotwasted, im kinda a noob coul i do this: addEventHandler ( onBotWasted, Name bot, function ) will that work? Link to comment
izstas Posted December 4, 2010 Share Posted December 4, 2010 I love it Is there any progress with it? EDIT: Is your Zombies resource has better synchronization or AI? If it is, can you port it to SlothBot? Link to comment
CrazyDude Posted January 5, 2011 Share Posted January 5, 2011 Hey Slothman. I making some gamemode using your resource, and i have one problem. I made paths in Map Editor, than i connected them together. In gamemode, i spawn bots at this paths, but bots just staying on the one place, they only start move when some player running at them Link to comment
[MTA]revenngeR Posted January 30, 2011 Share Posted January 30, 2011 Hi this resource is great and i am a newbie in lua. I want to give the bot m4 call (getResourceFromName("Slothbot"), "spawnBot", 2031.7695,1008.1705,10.5474+10, 10) call (getResourceFromName("Slothbot"), "setBotWeapon", [b]WHAT DO I HAVE TO PUT HERE[/b], 31) What do i have to put there? Link to comment
SDK Posted January 30, 2011 Share Posted January 30, 2011 The weapon id https://wiki.multitheftauto.com/wiki/Weapons M4 = 356 Link to comment
[MTA]revenngeR Posted January 30, 2011 Share Posted January 30, 2011 The weapon idhttps://wiki.multitheftauto.com/wiki/Weapons M4 = 356 I don't need help finding weapon id, but i need help with that code. And no, the id is 31 Link to comment
SDK Posted January 30, 2011 Share Posted January 30, 2011 Learn to read, I told you it needs the weapon ID there. https://wiki.multitheftauto.com/wiki/Slo ... tBotWeapon Link to comment
[MTA]revenngeR Posted January 30, 2011 Share Posted January 30, 2011 Learn to read, I told you it needs the weapon ID there.https://wiki.multitheftauto.com/wiki/Slo ... tBotWeapon You should learn https://wiki.multitheftauto.com/wiki/Slo ... tBotWeapon bool setBotWeapon( element theBot, float weapon) element theBot Link to comment
SDK Posted January 30, 2011 Share Posted January 30, 2011 That was confusing, the call returns the bot element. bot = call (getResourceFromName("Slothbot"), "spawnBot", 2031.7695,1008.1705,10.5474+10, 10) call (getResourceFromName("Slothbot"), "setBotWeapon", bot, 31) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now