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

[TUTORIAL] Send Dungeon Reward

$
0
0
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.

[RewardItem] = Auto Increment
Id
RewardItemIdx = 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


2) Open MissionDungeon.scp, find the DungeonIdx we want to add reward, and change the reward 5th value with our RewardItemIdx.


MissionReward.scp


After completing this, we finished the changes on server-side.


Part 2 (Client-Side)

Files that we will have to change:


* Quest.enc
* Cont2.enc
1) Decrypt your .enc using your xor.


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.


Viewing all articles
Browse latest Browse all 35375

Trending Articles



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