Help! How to use map 41: Secret Prison?

07/21/2010 08:03 namtuoc13#1
Pls help me how to use the secret prison to impound character?If he has recall run (capital, bootleggery...), he can go out.

Thanks so much.
07/21/2010 14:47 lilprohacker#2
step
1: bring him to prison.
2. make him sit down so you can tell him why and for how long he is there
3. /stopon <toonname> -Use this to make him not be able to stand up

I believe that will keep most people in there. and like I tell people that I send there, if they aren't there when I go to release them they get a permanent IP ban.
07/21/2010 14:52 SiggyMaker#3
What prison? O.o
07/21/2010 18:25 AriezOMG#4
Quote:
Originally Posted by lilprohacker View Post
step
1: bring him to prison.
2. make him sit down so you can tell him why and for how long he is there
3. /stopon <toonname> -Use this to make him not be able to stand up

I believe that will keep most people in there. and like I tell people that I send there, if they aren't there when I go to release them they get a permanent IP ban.
lilpro, I love your work and was wondering if you could give a tutorial on how to ban in any way, i've yet to figure out a few things and banning just happens to be one of them.
07/21/2010 20:20 lilprohacker#5
I use a custom query but you can use the built in stored procedure.
[dbo].[usp_Update_UserStatus] which is under the USerData db.

Just pass the UserUID, "2" for status, "Unban Date", and "GM name for logging"
07/21/2010 23:28 AriezOMG#6
say i was banning somebody named "Joe", UID number "47" how would this procedure be modified?
Code:
USE [PS_userdata]
GO
/****** Object:  StoredProcedure [dbo].[usp_Update_UserStatus]    Script Date: 07/21/2010 14:26:23 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER OFF
GO

/****** Object:  Stored Procedure dbo.usp_Update_UserStatus    Script Date: 2008-6-7 18:34:05 ******/






/*==================================================
@author	lenasoft
@date	2006-10-27
@return	
@brief	상태변경.
==================================================*/
ALTER  Proc [dbo].[usp_Update_UserStatus]
@UserUID 	int,
@Status		smallint,
@BlockEndDate 	datetime = null,
@GmID		varchar(32) = null
AS

SET NOCOUNT ON

DECLARE
@ReturnValue int

BEGIN TRAN

UPDATE Users_Master SET Status = @Status WHERE UserUID = @UserUID

IF @@ERROR <> 0
GOTO ERROR

-- Block Set
IF ( @Status = 2 )
BEGIN
	IF EXISTS ( SELECT UserUID FROM Users_Block WHERE UserUID = @UserUID )
	BEGIN
		UPDATE Users_Block SET BlockEndDate = @BlockEndDate
			WHERE UserUID = @UserUID
	END
	ELSE
	BEGIN
		
		INSERT INTO Users_Block ( UserUID, BlockEndDate)
			VALUES( @UserUID, @BlockEndDate )
	END
END

IF @@ERROR <> 0
GOTO ERROR

-- InsertLog
IF ( @GmID IS NOT NULL )
BEGIN
	INSERT INTO Users_BlockLog ( UserUID, Status, BlockEndDate, GmID, InsertDate) 
		VALUES( @UserUID, @Status, @BlockEndDate, @GmID, GETDATE()  )
	IF @@ERROR <> 0
	GOTO ERROR
END


SET @ReturnValue = 1
COMMIT TRAN
SET NOCOUNT OFF
RETURN @ReturnValue

ERROR:
SET @ReturnValue = -1
ROLLBACK TRAN
SET NOCOUNT OFF
RETURN @ReturnValue
07/21/2010 23:32 SiggyMaker#7
AGAIN I ASK WHAT'S THIS PRISON?
07/22/2010 02:26 lilprohacker#8
Quote:
Originally Posted by Apocalypsist View Post
say i was banning somebody named "Joe", UID number "47" how would this procedure be modified?
Execute the procedure and where it says UserUID put "47", under status put "2", under BanDate put the date that you want to release the ban, and under GMid put the GM name who wants the ban.

Quote:
Originally Posted by SiggyMaker View Post
AGAIN I ASK WHAT'S THIS PRISON?
It's a secret map that is a prison, it has cells that you can summon people there as a punishment. It's map id 41
07/22/2010 02:45 HolyWater93#9
cant you use capital rune while sitting on the ground?
07/22/2010 20:54 AriezOMG#10
Okay so i've been trying for quite some time now and just can't figure it out lilpro, can you redo the script with the names filled in as an example? I need to figure this out, as you're probably well aware its 100% necessary.
07/23/2010 19:45 Jaden151#11
Works Perfect Thank lilpro! been looking for this for weeks!!0-

Apocaly, Worked perfect for me. What part is it coming up for an error in your db?
07/28/2010 09:42 namtuoc13#12
Thanks Lilpro so much ^^