Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

[TUTORIAL] Send Dungeon Reward

Newbie Spellweaver
Joined
May 8, 2020
Messages
22
Reaction score
19
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
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​


ciclope - [TUTORIAL] Send Dungeon Reward - RaGEZONE Forums

ItemReward.scp


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

ciclope - [TUTORIAL] Send Dungeon Reward - RaGEZONE Forums

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.

ciclope - [TUTORIAL] Send Dungeon Reward - RaGEZONE Forums

Enc Packer


2) Open quest.dec, find <cabal_reward>, add a new <reward_item_set> and include the ItemReward we created server-side.

ciclope - [TUTORIAL] Send Dungeon Reward - RaGEZONE Forums

Quest.dec​


3) Open cont2.dec, find your Dungeon and change the reward 5th value, adding our new ItemRewardIdx.

ciclope - [TUTORIAL] Send Dungeon Reward - RaGEZONE Forums

Cont2.dec​



4) Pack your modified .dec and include it in your client.

ciclope - [TUTORIAL] Send Dungeon Reward - RaGEZONE Forums

Enc Packer

Done!
Now we can test.


Result:

ciclope - [TUTORIAL] Send Dungeon Reward - RaGEZONE Forums


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:
Banned
Banned
Joined
Jan 27, 2013
Messages
123
Reaction score
43
very easy no need this tutotrail.............
some one need SQL script not this...............
 
Newbie Spellweaver
Joined
Dec 30, 2016
Messages
77
Reaction score
2
thanks alot for this detailed tutorial, keep up with the good work.
 
Junior Spellweaver
Joined
Apr 24, 2014
Messages
117
Reaction score
7
Good, Mail to cabal cash vouchers can be used.
İf i set like this that's "dammy" vouchers works ?
 
Newbie Spellweaver
Joined
Jul 14, 2022
Messages
29
Reaction score
1
Can anyone tell me what is the 1000000 value of this reward? reward="0:1000000:0:0:0:0:0:0"

Tried and it's an Alz, but anyone who can tell me the complete address of that reward in it's own value?
 
Last edited:
Junior Spellweaver
Joined
Jul 30, 2020
Messages
163
Reaction score
33
Last edited:
Back
Top