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!

Jjang Pgrade 1.5

Status
Not open for further replies.
Mocro.net
Joined
Feb 3, 2008
Messages
690
Reaction score
96
why pgrade?
So admins and donate grades can wear it to.
and now you can add more jjangs 1,2,3,4,5,6 etc

Ignore the character size.
Mocro - Jjang Pgrade 1.5 - RaGEZONE Forums


Open project gunz.sln.

in: MMatchObject.h

search for:
Code:
enum MMatchPremiumGradeID{
    MMPG_FREE            = 0,    // ¹«·á
    MMPG_PREMIUM_IP        = 1        // ³Ý¸¶ºí PC¹æ º¸³Ê½º
};
add :
Code:
MMPG_JJANG        = 2
dont forget , after MMPG_PREMIUM_IP = 1

Now go to ZCharacter.h

search for:
Code:
    MMatchUserGradeID GetUserGrade()    { return m_MInitialInfo.Ref().nUGradeID; }
add:
Code:
        MMatchPremiumGradeID GetPlayerGrade()    { return m_MInitialInfo.Ref().nPGradeID; }

Now use the Find in files: CTRL + SHIFT + F
and search for:
Code:
MMatchUserGradeID    nUGradeID;
its gonna find 5 files now under that add this:
Code:
    MMatchPremiumGradeID nPGradeID;

Now search for (CTRL + SHIFT + F ) :
Code:
pDest->nUGradeID = pSrcObject->GetAccountInfo()->m_nUGrade;
its gonna find 2 files under that add this:
Code:
pDest->nPGradeID = pSrcObject->GetAccountInfo()->m_nPGrade;
and under:
Code:
pDest->nUGradeID = MMUG_FREE;
add this:
Code:
pDest->nPGradeID = MMPG_FREE;

now in ZCharacter.cpp search for:
Code:
void ZCharacter::InitRound()
and under that replace this:
Code:
    if(GetUserGrade()==MMUG_STAR) {        ZGetEffectManager()->AddStarEffect(this);        
    }
with:
Code:
    if(GetPlayerGrade()==MMPG_JJANG) {        ZGetEffectManager()->AddStarEffect(this);        
    }

now in Zeffectmanager search for:
Code:
class ZEffectIconLoopStar : public ZEffectIconLoop {
replace this:
Code:
            if (pCache && pCache->GetUGrade() != MMUG_STAR)
                return false;
with:
Code:
            if (pCache && pCache->GetPGrade() != MMPG_JJANG)
                return false;
It should be enabled now you still have to do 2 more things:
Open Matchserver.sln in MMatchDBMgr search for:
Code:
poutAccountInfo->m_nPGrade        = MMPG_FREE;
and replace with:
Code:
poutAccountInfo->m_nPGrade             = (MMatchPremiumGradeID)rs.Field("PGradeID").AsInt();

Now in sql server manager click new query and Execute this:
Code:
USE [GunzDB]GO
/****** Object:  StoredProcedure [dbo].[spGetAccountInfo]    Script Date: 05/20/2014 11:30:29 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
------------------------------------------------------------------------------------------------------------


ALTER   PROC [dbo].[spGetAccountInfo]
 [USER=420555]Aid[/USER]  int      
, [USER=502185]serveri[/USER]D int = 0
AS    
BEGIN  
 SET NOCOUNT ON    


 SELECT AID, UserID, UGradeID, PGradeID, Name, HackingType
 , DATEPART(yy, EndHackingBlockTime) AS HackBlockYear, DATEPART(mm, EndHackingBlockTime) AS HackBlockMonth    
 , DATEPART(dd, EndHackingBlockTime) AS HackBlockDay, DATEPART(hh, EndHackingBlockTime) AS HackBlockHour    
 , DATEPART(mi, EndHackingBlockTime) AS HackBlockMin
 , DATEDIFF(mi, GETDATE(), EndHackingBlockTime) AS 'HackingBlockTimeRemainderMin'
 , IsPowerLevelingHacker
 , DATEDIFF(mi, PowerLevelingRegDate, GETDATE()) AS 'PowerLevelingRegPassedTimeMin'
 FROM Account(NOLOCK) WHERE AID = [USER=420555]Aid[/USER]      


 update Account set LastLoginTime = getdate(), ServerID = [USER=502185]serveri[/USER]D  where aid = [USER=420555]Aid[/USER]  
END

Now it should be working This will not change the command /jjang /removejjang i will make a part 2 for that soon.
 
Experienced Elementalist
Joined
Jan 22, 2012
Messages
273
Reaction score
23
i don't have skype :/ i uninstalled it to fix web bug
please could u pm me it here on the forums?



i used classic theme but still
UraNTC7 - Jjang Pgrade 1.5 - RaGEZONE Forums




Mocro help
6LALjWI - Jjang Pgrade 1.5 - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
In Progress... FFXIV...
Loyal Member
Joined
Oct 5, 2010
Messages
1,695
Reaction score
456
He probably changed the default scaling on the character in model.mrs or something. Remembered looking into one of the .XML that does that. Or it could of been source-wise.
 
Mocro.net
Joined
Feb 3, 2008
Messages
690
Reaction score
96
He probably changed the default scaling on the character in model.mrs or something. Remembered looking into one of the .XML that does that. Or it could of been source-wise.
i did it source wise but the scale stays like that after i did it need to fix that first like if some1 has pgrade 255and he has the big scale, the person that joins the room after i joined will get big scaled too. i need to reset it before a person comes in the room after i did , but its not that hard to fix. I just didnt had time to fix it because i was working on somthing else.
jjang and scale.
Mocro - Jjang Pgrade 1.5 - RaGEZONE Forums
 
Mocro.net
Joined
Feb 3, 2008
Messages
690
Reaction score
96
Help mocro
6LALjWI - Jjang Pgrade 1.5 - RaGEZONE Forums

you forgot a , before i warned you about that cant you just download teamviewer or somthing and let me help you its anoying like that you made allot of mistakes. pm me if you have.
 

Attachments

You must be registered for see attachments list
Status
Not open for further replies.
Back
Top