Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 4Story
You last visited: Today at 01:46

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

Advertisement



[TUT] Add new effects to your server

Discussion on [TUT] Add new effects to your server within the 4Story forum part of the MMORPGs category.

Reply
 
Old   #1
 
NavigatorCreed's Avatar
 
elite*gold: 222
Join Date: Jan 2017
Posts: 463
Received Thanks: 317
[TUT] Add new effects to your server

Hello,

I want to show you how to add a new effect to your private server but I wasn't working on a 4story for a very long time so if i made something worng just let me know

Ok so let's start:

First of all we need few thing to make this working.
Here is the list:

a) TItemGradeVisual.tcd and Editor to open the file ( Don't worry if you don't have one, I will post here my old editor for you )

b) Index Editor ( In this tutorial I'm using Stotterer09's Index Editor which can be found here: , unfortunately I couldn't find my own Index Editor ...

b) Sources:

- TClient.
- TProtocol.
- TMAP.

Step #1 - Open TItemGradeVisual Editor and load Tcd file:
Scroll to the end of Listbox and check how many kindID got your file, In my case I got 18 of them:



Step #2:

So if I have 18 x KindID it means that I need to create 18 new Items in the Tcd file.
To create a new Items in TItemGradeVisual click on the "Add New" in my case i need to do this 18 times.
After creating all ot this Items my tcd file looks like this:



Step #3:

Let's leave for a second the Tcd file but do not close it, we will need it later.
To create a new effect we need a textureID, probably the easiest way to find a random texture just for a test purpose is to open Index Editor and just find TextureID:



Step #4: So we got our TextureID and now we can finish editing the Tcd file:

- Set for every Item KindID from 1 to 18 ( In my case i got 18 )
- Set dwTextureID to 285967338.
- Set bOPCode to 2.
- We need also a wGrade so let's take a random numer hum maybe 25

Your Tcd file should looks like this after changes and is now ready to be saved:



Step #5: We can move now to the TProtocol Sources:

- Open NetCode.h and find following line of code:

PHP Code:
typedef enum TITEMGRADEEFFECT_TYPE 
And add the following line of code:

PHP Code:
IE_TEST 


Step #6:

- Go to the TClient Source and open TClientItem.cpp.
- Find following line of code:

PHP Code:
LPTITEMGRADEVISUAL CTClientItem::GetGradeVISUAL() 
And add following line of code:

PHP Code:
case IE_TEST:
          
wGradeSkin 25;
          break; 


Step #7:

Save everything and rebuild TProtocol, TClient and TMAP



And here is the final result ( I know it doesn't looks great but cmon it's only a test )




VirusTotal - TItemGradeVisual Editor:

Unpacked Textures with correct IDs :
Attached Files
File Type: rar TItemGradeVisual Editor.rar (7.9 KB, 62 views)
NavigatorCreed is offline  
Thanks
16 Users
Old 02/11/2021, 12:45   #2
 
Mikrole's Avatar
 
elite*gold: 50
Join Date: Jan 2013
Posts: 485
Received Thanks: 187
good job
Mikrole is offline  
Thanks
1 User
Old 02/11/2021, 13:26   #3
 
-Nástý's Avatar
 
elite*gold: 0
Join Date: Oct 2020
Posts: 43
Received Thanks: 1
Very nice, but what i need to change in TMAP?
-Nástý is offline  
Old 02/11/2021, 13:46   #4
 
NavigatorCreed's Avatar
 
elite*gold: 222
Join Date: Jan 2017
Posts: 463
Received Thanks: 317
Quote:
Originally Posted by -Nástý View Post
Very nice, but what i need to change in TMAP?
You need only to rebuild TMAP with new TProtocol without changing anything in TMAP.
NavigatorCreed is offline  
Thanks
1 User
Old 02/11/2021, 13:57   #5
 
-Nástý's Avatar
 
elite*gold: 0
Join Date: Oct 2020
Posts: 43
Received Thanks: 1
So something doesn't work for me, he adds the new color but not with the armor and weapons only as a "cloak" color

-Nástý is offline  
Old 02/11/2021, 14:29   #6
 
NavigatorCreed's Avatar
 
elite*gold: 222
Join Date: Jan 2017
Posts: 463
Received Thanks: 317
Quote:
Originally Posted by -Nástý View Post
So something doesn't work for me, he adds the new color but not with the armor and weapons only as a "cloak" color

Double check everything, I have just did it once more to check everything again and it's working, maybe you did something wrong there
NavigatorCreed is offline  
Old 02/11/2021, 14:44   #7
 
-Nástý's Avatar
 
elite*gold: 0
Join Date: Oct 2020
Posts: 43
Received Thanks: 1
Quote:
Originally Posted by NavigatorCreed View Post
Double check everything, I have just did it once more to check everything again and it's working, maybe you did something wrong there
I did it exactly as you described it, redone the client and redone TMAP but somehow it doesn't work

TItemGradeVisual.tcd i have 1-18
-Nástý is offline  
Old 02/11/2021, 14:45   #8
 
NavigatorCreed's Avatar
 
elite*gold: 222
Join Date: Jan 2017
Posts: 463
Received Thanks: 317
Quote:
Originally Posted by -Nástý View Post
I did it exactly as you described it, redone the client and redone TMAP but somehow it doesn't work

TItemGradeVisual.tcd i have 1-18
Show me the code from sources
NavigatorCreed is offline  
Old 02/11/2021, 14:57   #9
 
-Nástý's Avatar
 
elite*gold: 0
Join Date: Oct 2020
Posts: 43
Received Thanks: 1
Quote:
Originally Posted by NavigatorCreed View Post
Show me the code from sources


-Nástý is offline  
Old 02/11/2021, 15:04   #10
 
NavigatorCreed's Avatar
 
elite*gold: 222
Join Date: Jan 2017
Posts: 463
Received Thanks: 317
can you please paste for me code from NetCode.h and TClientItem.cpp (Whole function) on Pastebin or even here as code and ill edit it for you ^^
NavigatorCreed is offline  
Old 02/11/2021, 15:10   #11
 
-Nástý's Avatar
 
elite*gold: 0
Join Date: Oct 2020
Posts: 43
Received Thanks: 1
Quote:
Originally Posted by NavigatorCreed View Post
can you please paste for me code from NetCode.h and TClientItem.cpp (Whole function) on Pastebin or even here as code and ill edit it for you ^^
Works now bro, thanks <3

I did something wrong in TClientItem
-Nástý is offline  
Old 02/11/2021, 15:11   #12
 
NavigatorCreed's Avatar
 
elite*gold: 222
Join Date: Jan 2017
Posts: 463
Received Thanks: 317
Quote:
Originally Posted by -Nástý View Post
Works now bro, thanks <3

I did something wrong in TClientItem
Okey, good luck

Edit: If you want more Tutorials just let me know
NavigatorCreed is offline  
Thanks
1 User
Old 02/11/2021, 21:26   #13
 
0x6a6b's Avatar
 
elite*gold: 45
Join Date: May 2015
Posts: 229
Received Thanks: 184
People like you restore my faith in this ****** up 'community.'

Quote:
Edit: If you want more Tutorials just let me know
If you are searching for ideas:
  • Placing Portals
  • Spawning Monsters + Changing Loot
0x6a6b is offline  
Thanks
5 Users
Old 02/11/2021, 21:32   #14
 
elite*gold: 0
Join Date: Jan 2017
Posts: 721
Received Thanks: 465
Quote:
Originally Posted by 0x6a6b View Post
People like you restore my faith in this ****** up 'community.'



If you are searching for ideas:
  • Placing Portals
  • Spawning Monsters + Changing Loot
That's rich coming from you.

@ Can you make tutorial how to change RPS rewards?
.Konst is offline  
Old 02/11/2021, 22:28   #15
 
-Nástý's Avatar
 
elite*gold: 0
Join Date: Oct 2020
Posts: 43
Received Thanks: 1
Quote:
Originally Posted by .Konst View Post
That's rich coming from you.

@ Can you make tutorial how to change RPS rewards?
oh yes i need it
-Nástý is offline  
Reply


Similar Threads Similar Threads
[Tut][06.01.2013]How To Add Different Effects To Items
09/09/2013 - S4 League Hacks, Bots, Cheats & Exploits - 77 Replies
Hi To All , It's Been A Long Time I Haven't Posted A New Thread. But I'm With You Again. Today I Will Teach You How To Add Different Effects To Items. I'll Add A Video Later. Let's Get Started : Requirements : Cheat Engine
New NPC Effects + Player Effects
11/22/2008 - EO PServer Hosting - 9 Replies
Okay guys I have noticed that some of the old npc effects are getting old and boring... so I have found new ways of adding effects to not only NPCs but players also. Here are some of the many effects you can use. To test them use /addeffect and then one of the codes below: noconfirm029 <---- 029 numbers can be changed for different effects newyear5 <----- 5 number can be changed for different effects balloon1 <-- 1 number can be changed for different effects meltnpc action3 <--- 3...



All times are GMT +2. The time now is 01:46.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.