Dungeon Reward
Hello everyone, I would like to share how to send one or more reward items when finishing a dungeon, without using a procedure or altering the database, just using the resources we have.
I will separate the tutorial into two parts, first the server-side changes, and then the client-side changes.
In this tutorial we will aim to reward three "Tokens" if player finish Patren dungeon.
ItemID: 3802 -> Token Artemis
Option: 131 -> Quantity (3)
DungeonIdx: 4256 -> Patren
Part 1 (Server-Side)
Files that we will have to change:
* ItemReward.scp
* MissionDungeon.scp
1) Open the file ItemReward.scp and add a new line with details of our reward.Option: 131 -> Quantity (3)
DungeonIdx: 4256 -> Patren
Part 1 (Server-Side)
Files that we will have to change:
* ItemReward.scp
* MissionDungeon.scp
[RewardItem] = Auto Increment
IdRewardItemIdx = Id of Reward
Class = Class of the item
Type = Type of Item
Grade = Grade of Item
Order = Order of Item
ItemKind = ItemIdx
ItemOpt = ItemOpt
Duration = ItemDuration
IdRewardItemIdx = Id of Reward
Class = Class of the item
Type = Type of Item
Grade = Grade of Item
Order = Order of Item
ItemKind = ItemIdx
ItemOpt = ItemOpt
Duration = ItemDuration
ItemReward.scp
MissionReward.scp
Part 2 (Client-Side)
Files that we will have to change:
* Quest.enc
* Cont2.enc
1) Decrypt your .enc using your xor.Files that we will have to change:
* Quest.enc
* Cont2.enc
Enc Packer
2) Open quest.dec, find <cabal_reward>, add a new <reward_item_set> and include the ItemReward we created server-side.
Quest.dec
3) Open cont2.dec, find your Dungeon and change the reward 5th value, adding our new ItemRewardIdx.
Cont2.dec
4) Pack your modified .dec and include it in your client.
Enc Packer
Done!
Now we can test.
Result:
Important informations:
- Yes, it is possible to include more than one item for the reward;
- Client side and server side must have the reward files synchronized.
I appreciate the attention and I am willing to take any questions.
Last edited: