Register for your free account! | Forgot your password?

Go Back   elitepvpers › MMORPGs › 4Story
You last visited: Today at 01:49

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

Advertisement



RELEASE USELESS SCRIPT

Discussion on RELEASE USELESS SCRIPT within the 4Story forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2015
Posts: 41
Received Thanks: 21
RELEASE USELESS SCRIPT

TProtocol/CSProtocol.h
PHP Code:
#define CS_CLOCK_ACK                        (CS_MAP + 0x0945) 
TServer/TMAP/TMapsvr.cpp find
PHP Code:
CTMap *pTMAP = FindTMap( 
        
pPlayer->m_bChannel, 
        
pPlayer->m_wPartyID, 
        
pPlayer->m_wMapID); 
add
PHP Code:
time_t now = time(0); 
        
tm *ltm = localtime(&now); 
        
pPlayer->SendCS_CLOCK_ACK(ltm->tm_hour,ltm->tm_min,ltm->tm_sec); 
TServer\TMapSvr\TPlayer.h
PHP Code:
void SendCS_CLOCK_ACK(BYTE bHour, BYTE bMin, BYTE bSec); 
TServer\TMapSvr\TPlayer.cpp find
PHP Code:
void CTPlayer::OnTimer(DWORD dwTick) 
add
PHP Code:
if(m_bMain) 
        { 
        
time_t now = time(0); 
        
tm *ltm = localtime(&now); 
        
SendCS_CLOCK_ACK(ltm->tm_hour,ltm->tm_min,ltm->tm_sec); 
    } 
TServer\TMapSvr\CSSender.cpp add
PHP Code:
void CTPlayer::SendCS_CLOCK_ACK(BYTE bHour, BYTE bMin , BYTE bSec) 
{ 
    
CPacket * pMSG = new CPacket(); 
    
pMSG->SetID(CS_CLOCK_ACK) 
        << 
bHour 
        
<< bMin 
        
<< bSec; 


    
Say(pMSG); 
} 
TClient\TClient\TClientGame.cpp add
PHP Code:
ON_TRECEIVE(CS_CLOCK_ACK) 
TClient\TClient\TClientGame.h add
PHP Code:
int OnCS_CLOCK_ACK( CTachyonSession *pSession, CPacket *pPacket); 
TClient\TClient\CSHandler.cpp add
PHP Code:
int CTClientGame::OnCS_CLOCK_ACK( CTachyonSession *pSession, CPacket *pPacket ) 
{ 
    
CTChatCommander *pChatCommander = CTChatCommander::GetInstance(); 
    
BYTE bHour; 
    
BYTE bMin; 
    
BYTE bSec; 
    
CString time; 


    (*
pPacket) 
        >> 
bHour 
        
>> bMin 
        
>> bSec; 

    
CTGaugePannel* pTGaugePannel = static_cast<CTGaugePannel*>(m_vTFRAME[TFRAME_GAUGE]); 
    
CString bMins; 
//    bMins.Format("%d",bMin); 

    
CString min; 
    if(
bHour == 1||bHour == 2||bHour == 3||bHour == 4||bHour == 5||bHour == 6||bHour == 7||bHour == 8||bHour == 9||bHour == 10||bHour == 11||bHour == 12) 
    { 
                    if(
bMin == 0) 
        { 
         
            
time.Format("Clock : AM %d : 00",bHour, bSec);  
        } 
        else if(
bMin == 1) 
        { 
            
time.Format("Clock : AM %d : 01 : %d",bHour, bSec);  
        } 
                else if(
bMin == 2) 
        { 
            
time.Format("Clock : AM %d : 02 : %d",bHour, bSec);  
        } 
                else if(
bMin == 3) 
        { 
             
            
time.Format("Clock : AM %d : 03 : %d",bHour, bSec);  
        } 
                else if(
bMin == 4) 
        { 
            
time.Format("Clock : AM %d : 04 : %d",bHour, bSec);  
        } 
                else if(
bMin == 5) 
        { 
            
time.Format("Clock : AM %d : 05 : %d",bHour, bSec);  
        } 
                else if(
bMin == 6) 
        { 
            
time.Format("Clock : AM %d : 06 : %d",bHour, bSec);  
        } 
                else if(
bMin == 7) 
        { 
             
time.Format("Clock : AM %d : 07 : %d",bHour, bSec);  
        } 
                else if(
bMin == 8) 
        { 
             
time.Format("Clock : AM %d : 08 : %d",bHour, bSec);  
        } 
                else if(
bMin == 9) 
        { 
             
time.Format("Clock : AM %d : 09 : %d",bHour, bSec);  
        }  
         
                else if(
bMin > 9) 
                    
time.Format("Clock : AM %d : %d : %d ",bHour, bMin, bSec);  
    } 

            
     
    else 
    { 
                if(
bMin == 0) 
        { 
         
             
time.Format("Clock : PM %d : 00 : %d",bHour, bSec);  
        } 
        else if(
bMin == 1) 
        { 
             
time.Format("Clock : PM %d : 01 : %d",bHour, bSec);  
        } 
                else if(
bMin == 2) 
        { 
             
time.Format("Clock : PM %d : 02 : %d",bHour, bSec);  
        } 
                else if(
bMin == 3) 
        { 
             
time.Format("Clock : PM %d : 03 : %d",bHour, bSec);  
        } 
                else if(
bMin == 4) 
        { 
             
time.Format("Clock : PM %d : 04 : %d",bHour, bSec);  
        } 
                else if(
bMin == 5) 
        { 
             
time.Format("Clock : PM %d : 05 : %d",bHour, bSec);  
        } 
                else if(
bMin == 6) 
        { 
             
time.Format("Clock : PM %d : 06 : %d",bHour, bSec);  
        } 
                else if(
bMin == 7) 
        { 
             
time.Format("Clock : PM %d : 07 : %d",bHour, bSec);  
        } 
                else if(
bMin == 8) 
        { 
             
time.Format("Clock : PM %d : 08 : %d",bHour, bSec);  
        } 
                else if(
bMin == 9) 
        { 
            
time.Format("Clock : PM %d : 09 : %d",bHour, bSec);  
        }  
         
                else if(
bMin > 9) 
            
time.Format("Clock : AM %d : %d : %d ",bHour, bMin, bSec);   
    } 


    
pTGaugePannel->m_pLUCKY->m_strText = time; 
    
//pMainUI->m_ClockTex->m_strText = time; 
    
return TERR_NONE; 
} 
Canadaman12 is offline  
Old   #2
 
AgnarPlay's Avatar
 
elite*gold: 0
Join Date: Aug 2013
Posts: 192
Received Thanks: 121
Ahh
AgnarPlay is offline  
Old   #3


 
AncientCompiler's Avatar
 
elite*gold: 1
Join Date: Jan 2013
Posts: 899
Received Thanks: 689
Releasing the stuff from other ppl is the elitpvpers Omen.
AncientCompiler is offline  
Thanks
3 Users
Old   #4
 
elite*gold: 0
Join Date: Nov 2013
Posts: 431
Received Thanks: 254
Already relased
NightProfit is offline  
Old   #5
 
elite*gold: 0
Join Date: May 2015
Posts: 68
Received Thanks: 56
^but delted.
Andaron4Story is offline  
Reply


Similar Threads Similar Threads
An useless release
05/20/2015 - SRO PServer Guides & Releases - 10 Replies
I left this community long ago, but today I saw it and here I am releasing it. It's just a simple interface edit, from the bar (including the menu). Preview: http://i.epvpimg.com/g5X9d.jpg Things that have to be edited in sro_client: 0060DFE8 -> PUSH 0F 0060DFF1 -> PUSH 0F 0060E228 -> PUSH 69
useless threads in release sections
04/16/2012 - Cabal Online - 1 Replies
More and more the people loose overview in the release sections because of unnecessary questions and senseless stuff. Although the sections are clearly marked and even require confirmation of the warning I'm afraid some people will never learn it. Instead of letting the closed threads spam our release section, how about: 1. moving of questions that make sense to Discussions/Questions section 2. removing pointless and absurd threads what do you think, and Acid whats your point to this ?
[Useless-Release] Camera Zoom
07/03/2011 - S4 League Hacks, Bots, Cheats & Exploits - 14 Replies
Just, camera zoom. If someone can do a dll for this (able to change the value in game), it will be good! (I'll ask someone...). The default value is 500. And sorry for all my useless releases :awesome: Example: Virus Check:
[Release] Useless Botjail Command
05/05/2009 - CO2 PServer Guides & Releases - 7 Replies
Hello this is my first release so this might be nooby but it works.. This is for LOTF based servers I don't use LOTF or Binaries (Never Did) Anymore so I am releasing some of my codes! but here is the command I coded this myself: if (Splitter == "/botjail") { foreach (DictionaryEntry DE in World.AllChars) { ...



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


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

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