Anarchy Posted May 31, 2009 Author Share Posted May 31, 2009 is it possible for a character to be jailed, and then automatically after a certain amount of time, to be re spawned to a map?also the same with banning, is it possible to unban someone after a certain amount of time or does it have to be done manually Link to comment Share on other sites More sharing options...
The GodFather Posted May 31, 2009 Share Posted May 31, 2009 @Anarchy:> is it possible for a character to be jailed, and then automatically after a certain amount of time, to be re spawned to a map?> also the same with banning, is it possible to unban someone after a certain amount of time or does it have to be done manuallyWouldn't been jailed been exactly the same thing as banning? Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 31, 2009 Share Posted May 31, 2009 Not sure about the banning, but yes, you can jail someone, then allow him to leave after a certain time. This would require some scripting, and utilizing timers. Link to comment Share on other sites More sharing options...
Anarchy Posted May 31, 2009 Author Share Posted May 31, 2009 is there a tutorial on doing this?if not how would i do it? Link to comment Share on other sites More sharing options...
Drummerpete Posted May 31, 2009 Share Posted May 31, 2009 Godlords sadscripting tutorials, check them out, I'll find a link in a minute.Here is the scripting tutorials database, just look through it until you find something useful. :Phttp://www.touchofdeathforums.com/smf/index.php/topic,40748.0.html Link to comment Share on other sites More sharing options...
Anarchy Posted May 31, 2009 Author Share Posted May 31, 2009 thanks, also does anyone know how to jail a player from the client if you are an admin, rather than only allow the person who has the server running on their computer Link to comment Share on other sites More sharing options...
Drummerpete Posted May 31, 2009 Share Posted May 31, 2009 It's in the admin panel, isn't it? Link to comment Share on other sites More sharing options...
Anarchy Posted May 31, 2009 Author Share Posted May 31, 2009 no, you can warp players, but thats not the same as jailing them Link to comment Share on other sites More sharing options...
Drummerpete Posted May 31, 2009 Share Posted May 31, 2009 Could you not just warp them to the jail map? Link to comment Share on other sites More sharing options...
Anarchy Posted May 31, 2009 Author Share Posted May 31, 2009 yeah but then it wouldn't have been recognized as "jailed" unless i script a tile somewhere so that it does, but i dont know how to do this.and then they will have to get past all the strong NPC's to escape back in to the game because they wont finish their jail time Link to comment Share on other sites More sharing options...
Drummerpete Posted May 31, 2009 Share Posted May 31, 2009 I'm sure a "/jail" command could easily be scripted.Dunno how to script properly, but it'd be like..Warp player to jailmapdisplay message: playername "has been jailed."that's psuedocode btw. Link to comment Share on other sites More sharing options...
Anarchy Posted May 31, 2009 Author Share Posted May 31, 2009 thanks, where would i put that? Link to comment Share on other sites More sharing options...
Drummerpete Posted May 31, 2009 Share Posted May 31, 2009 Bottom of main.txt Link to comment Share on other sites More sharing options...
Admiral Refuge Posted May 31, 2009 Share Posted May 31, 2009 @Anarchy:> thanks, where would i put that?I'd recommend taking a look at this guide: http://www.touchofdeathforums.com/smf/index.php/topic,10036.0.htmlIt also explains how to install scripted NPCs, tiles, commands, etc Link to comment Share on other sites More sharing options...
Anarchy Posted May 31, 2009 Author Share Posted May 31, 2009 thanks both of you :icon_music: Link to comment Share on other sites More sharing options...
dao Posted June 1, 2009 Share Posted June 1, 2009 if you still havent figured it out post the question in script request Link to comment Share on other sites More sharing options...
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