Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 4Story
You last visited: Today at 22:20

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[TUT] RPS Game Rewards

Discussion on [TUT] RPS Game Rewards within the 4Story forum part of the MMORPGs category.

Reply
 
Old   #1
 
NavigatorCreed's Avatar
 
elite*gold: 222
Join Date: Jan 2017
Posts: 466
Received Thanks: 317
[TUT] RPS Game Rewards

Hey,

This tutorial is for a new people so please don't write stupid comments

Let's begin:

As always Editor is available to download.

Step #1:

Open TRpsGame Editor and load TRpsGame.tcd.



Let's explaim few things before we start to editing something:

So as you probably know to start playing RPS you need to use NPC.
NPC need to know which type of RTS game you want to play so that's why NPC using bType to recognize the type of game.

As a example let's take a Moon Crystal RTS:



As you can see we have only 2 values available in the first Item in the Listbox
"bType = 1" and "wNeedItem = 9476 (Moon Crystal)" which are needed to initialize RTS game, NPC need to know which Item need Player to start the game that's why for every RTS game you need to have created such record.
Actually I have 4 Types of RTS game but only 3 are supported by the defeault UI in the game.

In my case I'm using Normal, Large and Moon Crystals:

bType = 1 for Moon Crystal game,
bType = 2 for Normal Crystal game,
bType = 3 for Large Crystal game.

bType can be different depending on TRpsGame.tcd but you get the point.

Step #2:

After a short explanation we can move to editing tcd file,
I have already prepared the tcd earlier but it's not a big problem, I will try to explain everything:

Let's say we started playing RTS and we get lucky and we won 1 time:
NPC need to know what type of reward you will get if you stop playing after first win.
That's why we need a second record in our TRpsGame.tcd:

As I mentioned before I'm using bType = 1 for Moon Crystal game.
AS you can see bWin value is responsible for informing NPC what kind of reward we will get if we win x times.
In our case bWin = 1 because we won just one time ;c
Let's talk a little bit about rewards.
We can win up to 2 rewards (Items) and money.

So It means if we stop playing after first win we will get:

- Arcane Reagent x10.
- Gemstone x10.
- 250 silver.

I don't think i need to go deeper in this topic





We want to win more!

We have already 2 wins in the row:
So it means Client need a second record for a second win.
It means you need to repeat the whole process but for second wind:

- bWin = 2.



Client (UI) supports up to 15 wins by default, my tcd file contains only 10 for each RPS game but as I said you can have up to 15

Step #3:

It's time to move to the Database and do exacty the same thing we did for tcd file but let's explain few things first:

PHP Code:
bType
bWinCount 
up to 15
dwRewardMoney 
How much money you get if you win
wRewardItem_1 
First Reward
wRewardItem_2 
Second Reward
bItemCount_1 
Count of first reward
bItemCount_2 
Count of second reward
bProb_Win 
Chance to win
bProb_Draw 
Chance to draw
bProb_Lose 
Chance to lose
wItemID 
Item needed to start playing RPS (Small CrystalItemID 9416), Normal CrystalItemID 9417), Large CrystalItemID 9418) and Moon CrystalItemID 9476)

Working with database is as simple as working with Tcd file:

-Open TRPSGAMECHART:

For a tutorial purpose I'v deleted all record from my table and create 4 new record for each bType I'm using:



I hope everything is clear for you
Don't forget to save everything and restart the server




VirusTotal:
Attached Files
File Type: rar TRpsGame Editor.rar (10.9 KB, 15 views)
NavigatorCreed is offline  
Thanks
7 Users
Old 02/12/2021, 13:21   #2
 
Mikrole's Avatar
 
elite*gold: 50
Join Date: Jan 2013
Posts: 489
Received Thanks: 188
Well done buddy
Mikrole is offline  
Thanks
1 User
Old 02/12/2021, 15:03   #3
 
elite*gold: 0
Join Date: Jun 2014
Posts: 10
Received Thanks: 6
With this you can Change the Wins to 7 or what you need.

XMatscheZ is offline  
Thanks
4 Users
Reply


Similar Threads Similar Threads
[Trading] Trade goldV 64 champs account for rps or account with rps !
11/23/2016 - League of Legends Trading - 0 Replies
Hello i have a gold V, euW, 64 champs, 10 skins account, 6 rune pages with all tier 3 , im looking to trade it for a few rps or account with rps on it add me on skype if u have something like that : [email protected]
[Selling] LOL Accounts EUW (Gold + Skins + RPs / Unranked + RPs)
11/19/2014 - League of Legends Trading - 2 Replies
Hi, im selling my 2 accounts of League of Legends: First one: - Last Season GOLD V (rewards received) - Many champs bought, missing like 40
gate waves end rewards+event rewards
09/15/2012 - DarkOrbit - 35 Replies
i give a list of all rewards of gate's end events. olsow the waves of the gate's to safe peaple some work . i'm not chure i post it in the right section. feel free to drag it to the right one. i hope this helped some peaple. greets. *kaat* 1. alpha gate: NPC waves 40 Streuners
WTB RPS 100$ for 30k-35k RPS RIGHT NOW!
01/25/2012 - Rohan - 2 Replies
WTB RPS 100$ for 30k-35k RPS RIGHT NOW! WTB RPS 100$ for 30k-35k RPS RIGHT NOW! anyone can sell ? please hurry,i need them ;(
Selling RPS (upto 80k rps)
07/12/2011 - Rohan - 0 Replies
send me a pm if you want along with the amount your looking for .. the more you buy in bulk the more the discount.. ill be getting more in stock also when i sell account and gear.,



All times are GMT +1. The time now is 22:21.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.