Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 4Story
You last visited: Today at 19:47

  • 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 bHourBYTE bMinBYTE 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 bHourBYTE 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_ACKCTachyonSession *pSessionCPacket *pPacket); 
TClient\TClient\CSHandler.cpp add
PHP Code:
int CTClientGame::OnCS_CLOCK_ACKCTachyonSession *pSessionCPacket *pPacket 

    
CTChatCommander *pChatCommander CTChatCommander::GetInstance(); 
    
BYTE bHour
    
BYTE bMin
    
BYTE bSec
    
CString time


    (*
pPacket
        >> 
bHour 
        
>> bMin 
        
>> bSec

    
CTGaugePannelpTGaugePannel 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",bHourbSec);  
        } 
        else if(
bMin == 1
        { 
            
time.Format("Clock : AM %d : 01 : %d",bHourbSec);  
        } 
                else if(
bMin == 2
        { 
            
time.Format("Clock : AM %d : 02 : %d",bHourbSec);  
        } 
                else if(
bMin == 3
        { 
             
            
time.Format("Clock : AM %d : 03 : %d",bHourbSec);  
        } 
                else if(
bMin == 4
        { 
            
time.Format("Clock : AM %d : 04 : %d",bHourbSec);  
        } 
                else if(
bMin == 5
        { 
            
time.Format("Clock : AM %d : 05 : %d",bHourbSec);  
        } 
                else if(
bMin == 6
        { 
            
time.Format("Clock : AM %d : 06 : %d",bHourbSec);  
        } 
                else if(
bMin == 7
        { 
             
time.Format("Clock : AM %d : 07 : %d",bHourbSec);  
        } 
                else if(
bMin == 8
        { 
             
time.Format("Clock : AM %d : 08 : %d",bHourbSec);  
        } 
                else if(
bMin == 9
        { 
             
time.Format("Clock : AM %d : 09 : %d",bHourbSec);  
        }  
         
                else if(
bMin 9
                    
time.Format("Clock : AM %d : %d : %d ",bHourbMinbSec);  
    } 

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


    
pTGaugePannel->m_pLUCKY->m_strText time
    
//pMainUI->m_ClockTex->m_strText = time; 
    
return TERR_NONE

Canadaman12 is offline  
Old 01/15/2016, 17:34   #2
 
AgnarPlay's Avatar
 
elite*gold: 0
Join Date: Aug 2013
Posts: 192
Received Thanks: 121
Ahh
AgnarPlay is offline  
Old 01/15/2016, 17:38   #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 01/15/2016, 17:45   #4
 
elite*gold: 0
Join Date: Nov 2013
Posts: 431
Received Thanks: 254
Already relased
NightProfit is offline  
Old 01/15/2016, 18:07   #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 +1. The time now is 19:48.


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.