Register for your free account! | Forgot your password?

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

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

Advertisement



[script] No dowgrade at +15, +16, and if you wouldn't like to lose

Discussion on [script] No dowgrade at +15, +16, and if you wouldn't like to lose within the 4Story forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2010
Posts: 213
Received Thanks: 169
[script] No dowgrade at +15, +16, and if you wouldn't like to lose

go to TMapSrv -> CSHandler.cpp, look for this one

Code:
if(pPlayer->ProtectTutorial() || CalcProb(pPlayer, pNpc, PROB_ITEMGUARD, 0))
				{
					BYTE bLevelGuard = 11;
					BYTE bDownProb = 0;
					BYTE bDownGrade = 0;

					if(pItem->m_bLevel <= bLevelGuard)
						bDownProb = 0;
					else
						bDownProb = rand() % 100;
next change it with this

Code:
if(pPlayer->ProtectTutorial() || CalcProb(pPlayer, pNpc, PROB_ITEMGUARD, 0))
				{
					BYTE bLevelGuard = 11;
					BYTE bLevelGuard2 = 15;
					BYTE bLevelGuard3 = 16;
					BYTE bDownProb = 0;
					BYTE bDownGrade = 0;

					if (pItem->m_bLevel <= bLevelGuard || pItem->m_bLevel >= bLevelGuard2  && pItem->m_bLevel <= bLevelGuard3)
						bDownProb = 0;
					else
						bDownProb = rand() % 100;


Now i comment all this lines

Code:
			if(pPlayer->ProtectTutorial() || CalcProb(pPlayer, pNpc, PROB_ITEMGUARD, 0))
				{
					BYTE bLevelGuard = 11; // Limit for don't get downgrade
					BYTE bLevelGuard2 = 15; // Limit for don't get downgrade
					BYTE bLevelGuard3 = 16; // Limit for don't get downgrade
					BYTE bDownProb = 0;
					BYTE bDownGrade = 0;


//if level upgrade is <= 11 or 15 and 16 set downprob to 0 else get random value % 100

	if (pItem->m_bLevel <= bLevelGuard || pItem->m_bLevel >= bLevelGuard2  && pItem->m_bLevel <= bLevelGuard3)
						bDownProb = 0;
					else
						bDownProb = rand() % 100;

					if(bDownProb < 20)//if 20 dont get downgrade
						bDownGrade = 0;
					else if(bDownProb < 55)//if < 55 get -1 downgrade
						bDownGrade = 1;
					else
						bDownGrade = 2;//if < 55 get -1 downgrade

if you would like don't lose the item when you haven't the tinture, change this


Code:
else{
					delete pItem; 
					pInven->m_mapTITEM.erase(bTargetItemID);
					pPlayer->SendCS_DELITEM_ACK(bTargetInven, bTargetItemID);
					pPlayer->SendCS_ITEMUPGRADE_ACK(ITEMUPGRADE_FAIL, 0, 0, 0);
				}
with this one

Code:
else{					pPlayer->SendCS_ITEMUPGRADE_ACK(ITEMUPGRADE_FAIL, 0, 0, 0);
				}
Sicarium is offline  
Thanks
2 Users
Old 03/22/2014, 17:13   #2
 
elite*gold: 0
Join Date: Jan 2014
Posts: 258
Received Thanks: 152
Sicarium you have skype ? i have need for fix 4.3 contact my tin.levin
TinLevin is offline  
Old 03/22/2014, 17:31   #3
 
elite*gold: 0
Join Date: Nov 2010
Posts: 213
Received Thanks: 169
what about?.
Sicarium is offline  
Old 03/22/2014, 17:59   #4
 
elite*gold: 0
Join Date: Jan 2014
Posts: 258
Received Thanks: 152
Fix Servicies 4.3
TinLevin is offline  
Old 03/24/2014, 02:23   #5
 
elite*gold: 0
Join Date: Nov 2010
Posts: 213
Received Thanks: 169
ok contact me
Sicarium is offline  
Old 03/24/2014, 03:31   #6
 
RedSwag's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 444
Received Thanks: 329
Good job scarium... i think someone will use it happily
RedSwag is offline  
Reply


Similar Threads Similar Threads
Any Way to Insert Item And Dont Relogg or Logout?
07/10/2011 - Rappelz - 3 Replies
Hey , is there anyway to insert Items (not #insert_item that wont work for me) with no relog ?. when i use queue than i must relog that the items are in the inventory. is there any other way to do this? thanks for answers :)
Key Lose! -- 100e*gold pro Lose!
05/29/2011 - elite*gold Trading - 8 Replies
Ich verlose Keys. Höchstgewinn -> MW2 Key! andere Spiele: -Nexus The Jupiter Incident -Ghost Recon Advanced Warfighter -Tom Clancys Rainbow Six Vegas Die drei Keys ausser MW2 sind Nicht für Steam Aktivierbar!
why people dont make Script.Kom
03/22/2010 - Grand Chase Hacks, Bots, Cheats & Exploits - 1 Replies
why arent people making Script.Kom hakes enymore the SD hacks:rtfm::p:pimp::mofo::D:bandit::confused: +1 Warning due to wrong section....
How can item that you dont have stats for be worn?
05/09/2006 - Conquer Online 2 - 8 Replies
Can anyone tell me how you can wear items without having the stats for it? Like an unreborn fire taoist wearing a wand lvl 100



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


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.