Quantcast
Channel: RaGEZONE - MMO Development Forums
Viewing all articles
Browse latest Browse all 32677

Adding the Duck Set to New Characters (+ Level Up Reward Tutorial)

$
0
0
For those of you used to the newer versions of Trickster, the duck set in your inventory is a nice little gift. However, the Season 2 files we have do not add the duck set automatically, and as such, you are left with the rookie equips until you find something better. (Which, in all honesty, isn't that far off, but nonetheless)
In this tutorial, I will show you how to automatically give your players the duck set in two different ways.

Method 1: Using the level up reward system

1) In your libconfig, search for the table "PostBoxLevelUpGiftInfo". This is where all the level up rewards are located.

2) Using the rows above as a guide, insert and edit a new row for the duck set. You are able to send a total of eight items using this, but in this case, we only need four. We'll fill in the leftover sections in the end.

Here is the setup I use, as viewed in an XML editor.


I will describe the various sections here.
WARNING: do NOT add apostrophes to any of these! This will result in the message failing to send.
Quote:

ID: The internal ID of the reward. As there were 30 IDs already, this ID is 31.
Level: The level required to receive the reward. Set it to 5 or 10. I would not set it to 1 because it may result in errors. (If you want to do that, please use Method 2 instead.)
ChrType: Numbers that determine what kind of character can receive this reward. I copy-pasted the ones from the level 15 reward.
Sender: Should be self explanatory. Usually set as "GM".
Title: The title of your message.
Message: The message itself.
ItemName_00 (and so on): name of the item you're sending.
ItemID_00 (and so on): the internal ID of the item you are sending. In the case of the duck set, the IDs should be the following: 75037 (staff), 77035 (hat), 78335 (shield) and 19434 (keychain)
ItemCount_00 (and so on): how many of the item you're sending. Since these are equipment items, I have it set at 1.
Unfortunately, all of the sections have to be filled in. For blank sections, leave the item name blank fill in the ID and count with "0", as shown above.
Rinse and repeat for any level up rewards you want. As far as I know, there is no limit.

Method 2: Modifying a stored procedure
For those of you wanting to add the set upon character creation, altasking has provided me with a way to replicate what the official servers did and automatically insert the duck set into new characters. To do this, follow the following steps:

1) Login to SQL Server Management Studio.
2) Go to the trickster database and look for the procedure "usp_insert_character"
3) Right click and choose "Modify".
Make a backup of the procedure before continuing! (copy and paste it into a .txt file)

4) Search for the following:
Quote:

-- 복표션(HP, MP) -
- 2008.06.26 신규 가입 이벤트 관련 인벤에 포션 30증설
5) Add the following rows below:
Code:

insert into tbl_item values (19434, 2, 1, 0, default, 0, 0, 0, 0)
insert into tbl_item_char values (@char_uid, @@IDENTITY, 1, 0)
insert into tbl_item values (75037, 2, 1, 0, default, 0, 0, 0, 0)
insert into tbl_item_char values (@char_uid, @@IDENTITY, 1, 0)
insert into tbl_item values (77035, 2, 1, 0, default, 0, 0, 0, 0)
insert into tbl_item_char values (@char_uid, @@IDENTITY, 1, 0)
insert into tbl_item values (78335, 2, 1, 0, default, 0, 0, 0, 0)
insert into tbl_item_char values (@char_uid, @@IDENTITY, 1, 0)

This is what it should look like:


6) Save and create a new character to test. If something goes wrong, check the procedure and, if need be, remove the rows you added.

Viewing all articles
Browse latest Browse all 32677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>