{--} MMO Games Development Forums
Building up your own servers is easy,!
  Usergroups  ·  Register ·    Profile  ·  Log in to check your private messages  ·   Log in     

FAQ · Search · Memberlist


[Guide] Level tạo DarkLord

 
Post new topic   Reply to topic    {--} MMO Games Development Forums Forum Index -> MU Guides - Tutorials
View previous topic :: View next topic  
Author Message
nT | Heartdie
Junior 2
Junior 2
nT | Heartdie

Joined: 26 Aug 2007
Posts: 24
Location: C:/AppServ

PostPosted: 26/08/2007 23:09    Post subject: [Guide] Level tạo DarkLord Reply with quote

// Hướng dẫn này rât thú vị. Bình thường bạn phải chơi đến Level 300 mới có thể tạo thêm Chúa Tể (DL). Bạn có bao giờ nghĩ mình sẽ tạo DL theo ý mình chưa? Hãy đọc bài này của Heartdie => Làm theo => Bạn sẽ thành công như ý muốn !

1. Chạy Query Analyzer của SQL (Start / Programs / Microsoft SQL / Query Analyzer)

2. Điền Username "sa" và Password của "sa" vào khung đầu nếu bạn được hỏi.

3. Sau đó, chọn Database là "MuOnline". Copy và Paste đoạn Query này vào khung soạn thảo Query, sau đó Click nút "Mũi tên xanh" hoặc bấm F5. Bạn sẽ thành công (Xem hình).
Query
Quote:
-- =============================================
-- Thay doi Level tao nhan vat Chua Te
-- (C) 2007 by MuoDEV Forums | MuoDEV.MyForum.Ro |
-- Guide By nT | Heartdie
-- =============================================

CREATE TRIGGER [prevent_DL] ON [dbo].[Character]
FOR INSERT
AS
--declarations of variables
DECLARE @Acc varchar(10), @Max INT, @Min INT
SET @Min = 300
DECLARE LISTA CURSOR LOCAL FOR
SELECT AccountID FROM INSERTED
WHERE (Class=64)
OPEN LISTA
FETCH NEXT FROM LISTA INTO @Acc
WHILE @@FETCH_STATUS = 0
BEGIN
SET @Max = (SELECT MAX(cLevel) FROM [Character] WHERE (AccountID=@Acc))
IF (@Max < @Min) --if his max level is less than our minimun requiered: KILL!!!!
BEGIN
ROLLBACK TRANSACTION
END
FETCH NEXT FROM LISTA INTO @Acc
END
--gracefully ending the procedure
CLOSE LISTA
DEALLOCATE LISTA

Mặc định sẽ là 300. Nếu bạn muốn sửa theo ý mình thì hãy sửa giá trị 300 tại đoạn:
Quote:
SET @Min = 300 // Sửa 300 theo ý bạn

[Guide] Level tạo DarkLord [Guide] Level t&#7841;o DarkLord

CHÚC THÀNH CÔNG! HAVE FUN!

_________________
When i'm dead, lay me besides my PC...
Back to top
View user's profile Send private message
Endy
Administrator
Administrator
Endy

Joined: 19 Jun 2007
Posts: 77
Location: Behind YOU

PostPosted: 26/08/2007 23:49    Post subject: Reply with quote

Many thanks Heartdie. I like this post very much. Keep on doing your good job, man! Congratulations !!! :lol:
_________________
[Guide] Level tạo DarkLord [Guide] Level t&#7841;o DarkLord
Back to top
View user's profile Send private message
nT | Heartdie
Junior 2
Junior 2
nT | Heartdie

Joined: 26 Aug 2007
Posts: 24
Location: C:/AppServ

PostPosted: 27/08/2007 17:39    Post subject: Reply with quote

Cảm ơn ADM đã ủng hộ, mình sẽ cố gắng Post thêm bài nữa !
_________________
When i'm dead, lay me besides my PC...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    {--} MMO Games Development Forums Forum Index -> MU Guides - Tutorials All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group  ·  Theme and Graphics by Tim Blackman
Fa-ti si tu propriul forum GRATUIT, pe www.myforum.ro