admin
管理员
管理员
  • UID1
  • 注册日期2011-05-18
  • 最后登录2022-08-22
  • 粉丝94
  • 关注0
  • 发帖数1061
  • QQ
  • 铜币1232枚
  • 威望8点
  • 银元1218个
阅读:5549回复:9

[源码编辑]瞬移系统

楼主#
更多 发布于:2013-01-31 15:59

PHP代码:
void CDPClient :: SendSwapVis ( int nPos1 , int nPos2 )
{
BEFORESENDSOLE ( ar , PACKETTYPE_VISPET_SWAPVIS , DPID_UNKNOWN );
ar << nPos1 << nPos2 ;
SEND ( ar , this , DPID_SERVERPLAYER );
}
下面添加:
PHP代码:
void CDPClient :: SendTeleportPosition ( BYTE nID )
{
BEFORESENDSOLE ( ar , PACKETTYPE_SENDTELEPORTPOSITION , DPID_UNKNOWN );
ar << nID ;
SEND ( ar , this , DPID_SERVERPLAYER );
}
-------------------------------------------------- --------------------------------------------------
DPClient.h
-------------------------------------------------- --------------------------------------------------
搜索:
PHP代码:
void SendGuildHouseTenderJoin ( OBJID objGHId , int nTenderPerin , int nTenderPenya );
#endif // __GUILD_HOUSE_MIDDLE
下面添加:
PHP代码:
public:
void SendTeleportPosition ( BYTE nID );
-------------------------------------------------- --------------------------------------------------
DPSrvr.cpp
-------------------------------------------------- --------------------------------------------------
搜索:
PHP代码:
#ifdef __QUIZ
ON_MSG ( PACKETTYPE_QUIZ_ENTRANCE , OnQuizEventEntrance );
ON_MSG ( PACKETTYPE_QUIZ_TELEPORT , OnQuizEventTeleport );
#endif // __QUIZ
下面添加:
PHP代码:
ON_MSG ( PACKETTYPE_SENDTELEPORTPOSITION , OnSendTeleportPosition );
搜索:
PHP代码:
void CDPSrvr :: OnGuildHouseTenderJoin ( CAr & ar , DPID dpidCache , DPID dpidUser , LPBYTE , u_long )
{
CUser * pUser = g_UserMng . GetUser ( dpidCache , dpidUser );
if( IsValidObj ( pUser ) == TRUE )
{
OBJID objGHId ;
int nTenderPerin , nTenderPenya ;
ar >> objGHId >> nTenderPerin >> nTenderPenya ;
GuildHouseMng -> OnGuildHouseTenderJoin ( pUser , objGHId , nTenderPerin , nTenderPenya );
}
}
#endif // __GUILD_HOUSE_MIDDLE
下面添加:
PHP代码:
void CDPSrvr :: OnSendTeleportPosition ( CAr & ar , DPID dpidCache , DPID dpidUser , LPBYTE , u_long ) //Teleport Fenster Stuff
{
CUser * pUser = g_UserMng . GetUser ( dpidCache , dpidUser );
if( IsValidObj ( pUser ) )
{
BYTE nID ;
D3DXVECTOR3 vPos ;
int dwWorldID ;
ar >> nID ;
switch( nID )
{
case 1 :
vPos = D3DXVECTOR3 ( 6973.0F , 100.0F , 3328.0F ); dwWorldID = 1 ;
break;
case 2 :
vPos = D3DXVECTOR3 ( 8321.0F , 100.0F , 3720.0F ); dwWorldID = 1 ;
break;
case 3 :
vPos = D3DXVECTOR3 ( 3900.250732F , 59.0F , 4377.806641F ); dwWorldID = 1 ;
break;
case 4 :
vPos = D3DXVECTOR3 ( 5574.530273F , 75.001129F , 3900.282227F ); dwWorldID = 1 ;
break;
case 5 :
vPos = D3DXVECTOR3 ( 3240.482910F , 11.316653F , 3409.634766F ); dwWorldID = 1 ;
break;
case 6 :
vPos = D3DXVECTOR3 ( 881.142883F , 183.273331F , 1008.118652F ); dwWorldID = 206 ;
break;
case 7 :
vPos = D3DXVECTOR3 ( 8268.617F , 70.0F , 9378.295F ); dwWorldID = 1 ;
break;
case 8 :
vPos = D3DXVECTOR3 ( 6785.000000F , 100.699989F , 6062.000000F ); dwWorldID = 1 ;
break;
case 9 :
vPos = D3DXVECTOR3 ( 6642.931152F , 58.000000F , 6454.676758F ); dwWorldID = 1 ;
break;
case 10 :
vPos = D3DXVECTOR3 ( 4908.647F , 100.000F , 3457.677F ); dwWorldID = 1 ;
break;
case 11 :
vPos = D3DXVECTOR3 ( 5267.235F , 100.000F , 4719.388F ); dwWorldID = 1 ;
break;
case 12 :
vPos = D3DXVECTOR3 ( 7213.436F , 107.523F , 3666.329F ); dwWorldID = 1 ;
break;
default: return FALSE ;
}
pUser -> REPLACE ( g_uIdofMulti , dwWorldID , vPos , REPLACE_NORMAL , nDefaultLayer );
}
}
-------------------------------------------------- --------------------------------------------------
DPSrvr.h
-------------------------------------------------- --------------------------------------------------
搜索:
PHP代码:
void OnGuildHouseTenderJoin ( CAr & ar , DPID dpidCache , DPID dpidUser , LPBYTE , u_long );
#endif // __GUILD_HOUSE_MIDDLE
下面添加:
PHP代码:
public:
void OnSendTeleportPosition ( CAr & ar , DPID dpidCache , DPID dpidUser , LPBYTE , u_long );
-------------------------------------------------- --------------------------------------------------
WndField.cpp
-------------------------------------------------- --------------------------------------------------
搜索:
PHP代码:
#define MAX_GUILDCOMBAT_LIST_PER_PAGE 11
#define MAX_MAIL_LIST_PER_PAGE 6
#define MAX_GUILDCOMBAT_LIST 100
下面添加:
PHP代码:
//--------------- Teleport ----------------------------------
//-----------------------------------------------------------------------------
CWndTeleporter :: CWndTeleporter ( void )
{
}
//-----------------------------------------------------------------------------
CWndTeleporter ::~ CWndTeleporter ( void )
{
DeleteDeviceObjects ();
}
//-----------------------------------------------------------------------------
BOOL CWndTeleporter :: Initialize ( CWndBase * pWndParent , DWORD dwType )
{
return CWndNeuz :: InitDialog ( g_Neuz . GetSafeHwnd (), APP_TELEPORTUSER , 0 , CPoint ( 0 , 0 ), pWndParent );
}
//-----------------------------------------------------------------------------
BOOL CWndTeleporter :: OnCommand ( UINT nID , DWORD dwMessage , CWndBase * pWndBase )
{
return CWndNeuz :: OnCommand ( nID , dwMessage , pWndBase );
}
void CWndTeleporter :: OnSize ( UINT nType , int cx , int cy )
{
CWndNeuz :: OnSize ( nType , cx , cy );
}
void CWndTeleporter :: OnLButtonUp ( UINT nFlags , CPoint point )
{
}
void CWndTeleporter :: OnLButtonDown ( UINT nFlags , CPoint point )
{
}
void CWndTeleporter :: OnDraw ( C2DRender * p2DRender )
{
}
HRESULT CWndTeleporter :: RestoreDeviceObjects ()
{
CWndNeuz :: RestoreDeviceObjects ();
return S_OK ;
}
HRESULT CWndTeleporter :: InvalidateDeviceObjects ()
{
CWndNeuz :: InvalidateDeviceObjects ();
return S_OK ;
}
HRESULT CWndTeleporter :: DeleteDeviceObjects ()
{
CWndNeuz :: DeleteDeviceObjects ();
InvalidateDeviceObjects ();
return S_OK ;
}
void CWndTeleporter :: OnInitialUpdate ( void )
{
CWndNeuz :: OnInitialUpdate ();
RestoreDeviceObjects ();
CRect rectRoot = m_pWndRoot -> GetLayoutRect ();
CRect rectWindow = GetWindowRect ();
CPoint point ( rectRoot . right - rectWindow . Width (), 110 );
Move ( point );
MoveParentCenter ();
}
BOOL CWndTeleporter :: OnChildNotify ( UINT message , UINT nID , LRESULT * pLResult )
{
switch ( nID )
{
case WIDC_BUTTON_FLARIS1 : // Flaris
{
g_DPlay . SendTeleportPosition ( 1 );
Destroy ();
break;
}
case WIDC_BUTTON_SM1 : // Saint Morning
{
g_DPlay . SendTeleportPosition ( 2 );
Destroy ();
break;
}
case WIDC_BUTTON_DARKON1 : // Darkon
{
g_DPlay . SendTeleportPosition ( 3 );
Destroy ();
break;
}
case WIDC_BUTTON_DARKON11 : // Darkon1
{
g_DPlay . SendTeleportPosition ( 4 );
Destroy ();
break;
}
case WIDC_BUTTON_DARKON3 : // Darkon3
{
g_DPlay . SendTeleportPosition ( 5 );
Destroy ();
break;
}
case WIDC_BUTTON_VULCANO1 : // VOLCANO
{
g_DPlay . SendTeleportPosition ( 6 );
Destroy ();
break;
}
case WIDC_BUTTON_PVP1 : // Vorm Behemoth Dungeon
{
g_DPlay . SendTeleportPosition ( 7 );
Destroy ();
break;
}
case WIDC_BUTTON_HERODUNGEON : // Aminus Hero
{
g_DPlay . SendTeleportPosition ( 8 );
Destroy ();
break;
}
case WIDC_BUTTON_MASTERDUNGEON : // Aminus Master
{
g_DPlay . SendTeleportPosition ( 9 );
Destroy ();
break;
}
case WIDC_BUTTON_TRAMNUKM : // Tramnuk Master
{
g_DPlay . SendTeleportPosition ( 10 );
Destroy ();
break;
}
case WIDC_BUTTON_TRAMNUK : // Tramnuk Normal
{
g_DPlay . SendTeleportPosition ( 11 );
Destroy ();
break;
}
case WIDC_BUTTON_EVENT : // Event Area
{
g_DPlay . SendTeleportPosition ( 12 );
Destroy ();
break;
}
}
return CWndNeuz :: OnChildNotify ( message , nID , pLResult );
}
//---------------- Teleport --------------------
WndField.h
搜索:
PHP代码:
#ifdef __MAIL_REQUESTING_BOX
#include "WndMailRequestingBox.h"
#endif // __MAIL_REQUESTING_BOX
下面添加:
PHP代码:
class CWndTeleporter : public CWndNeuz
{
public:
CWndTeleporter ( void );
~ CWndTeleporter ( void );
virtual HRESULT RestoreDeviceObjects ();
virtual HRESULT InvalidateDeviceObjects ();
virtual HRESULT DeleteDeviceObjects ();
public:
virtual BOOL Initialize ( CWndBase * pWndParent = NULL , DWORD nType = MB_OK );
virtual BOOL OnChildNotify ( UINT message , UINT nID , LRESULT * pLResult );
virtual void OnDraw ( C2DRender * p2DRender );
virtual void OnInitialUpdate ();
virtual BOOL OnCommand ( UINT nID , DWORD dwMessage , CWndBase * pWndBase );
virtual void OnSize ( UINT nType , int cx , int cy );
virtual void OnLButtonUp ( UINT nFlags , CPoint point );
virtual void OnLButtonDown ( UINT nFlags , CPoint point );
};
MsgHdr.h
搜索:
PHP代码:
#define PACKETTYPE_QUERYMAILBOX_COUNT (DWORD)0x88100241
下面添加:
PHP代码:
#define PACKETTYPE_SENDTELEPORTPOSITION (DWORD)0x88100299
FuncApplet.cpp
搜索:
PHP代码:
DECLAREAPPLET ( AppMain_WndNavigator , new CWndNavigator );
下面添加:
PHP代码:
DECLAREAPPLET ( AppMain_TeleportTool , new CWndTeleporter );
搜索:
PHP代码:
AddAppletFunc ( AppMain_WndTrade , APP_TRADE , _T ( "WndTrade" ) , _T ( "Icon_Trade.dds" ) , GETTEXT ( TID_TIP_TRADE ), 0 );
下面添加:
PHP代码:
AddAppletFunc ( AppMain_TeleportTool , APP_TELEPORTUSER , _T ( "WndMotion" ) , _T ( "Icon_Motion.dds" ) , GETTEXT ( TID_TIP_MOTION ), 'Z' ); //Hotkey Z

最新喜欢:

飞飞阿六飞飞阿六 端乐飞飞端乐飞飞
哎...今天够累的,签到来了3...
shevechco
4级·生命之泉
4级·生命之泉
  • UID17
  • 注册日期2011-05-19
  • 最后登录2018-03-28
  • 粉丝4
  • 关注0
  • 发帖数308
  • QQ
  • 铜币274枚
  • 威望0点
  • 银元433个
沙发#
发布于:2013-01-31 18:33
顶哦,管理员亲自出马发资源了。
admin
管理员
管理员
  • UID1
  • 注册日期2011-05-18
  • 最后登录2022-08-22
  • 粉丝94
  • 关注0
  • 发帖数1061
  • QQ
  • 铜币1232枚
  • 威望8点
  • 银元1218个
板凳#
发布于:2013-02-04 09:33
随便发发。发现目标直接转
哎...今天够累的,签到来了3...
james5336
1级·灵魂力量
1级·灵魂力量
  • UID43564
  • 注册日期2015-03-29
  • 最后登录2015-04-07
  • 粉丝0
  • 关注0
  • 发帖数8
  • QQ
  • 铜币10枚
  • 威望0点
  • 银元0个
地板#
发布于:2015-04-06 19:40
我的巨峰19端 源码被人 锁定了·有方法解锁吗·?

我的传送快捷键在C  我想改成V  求帮忙···
a846145540
0级·魔法禁锢
0级·魔法禁锢
  • UID43808
  • 注册日期2015-05-14
  • 最后登录2015-05-14
  • 粉丝0
  • 关注0
  • 发帖数3
  • QQ
  • 铜币2枚
  • 威望0点
  • 银元0个
4楼#
发布于:2015-05-14 09:31
源代码怎么使用才能用到游戏里面,游戏文件都被BOSS给加密了、
0525
0级·魔法禁锢
0级·魔法禁锢
  • UID44503
  • 注册日期2015-10-16
  • 最后登录2015-10-16
  • 粉丝0
  • 关注0
  • 发帖数1
  • QQ
  • 铜币1枚
  • 威望0点
  • 银元0个
5楼#
发布于:2015-10-16 07:59
<p> </p>
<table width="583" height="210" border="1" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF" bgcolor="#000000">
<tr>
<td width="37" height="208" bgcolor="#000000"><img src="img/liuyan.jpg" width="20" height="95" /></td>
<td width="540" bgcolor="#333333"><table width="519" height="196" border="0" cellpadding="7" cellspacing="0">
<tr>    
 
   能帮我看看这个吗

q88841898
1级·灵魂力量
1级·灵魂力量
  • UID45818
  • 注册日期2016-07-01
  • 最后登录2018-02-10
  • 粉丝1
  • 关注4
  • 发帖数26
  • QQ
  • 铜币31枚
  • 威望1点
  • 银元0个
  • 社区居民
6楼#
发布于:2016-09-13 18:18
第一个 是那个文件的?
飞吹冷暮
1级·灵魂力量
1级·灵魂力量
  • UID46524
  • 注册日期2017-01-04
  • 最后登录2017-02-28
  • 粉丝0
  • 关注2
  • 发帖数12
  • QQ
  • 铜币61枚
  • 威望1点
  • 银元0个
  • 社区居民
  • 忠实会员
7楼#
发布于:2017-01-09 15:35
挺好的
fuqijiaok111
禁止发言
禁止发言
  • UID46924
  • 注册日期2017-05-13
  • 最后登录2020-05-21
  • 粉丝4
  • 关注1
  • 发帖数137
  • QQ
  • 铜币283枚
  • 威望-9点
  • 银元0个
  • 社区居民
  • 忠实会员
8楼#
发布于:2017-05-13 11:28
用户被禁言,该主题自动屏蔽!
laofeifei
3级·血之光辉
3级·血之光辉
  • UID49318
  • 注册日期2020-03-19
  • 最后登录2020-05-23
  • 粉丝0
  • 关注0
  • 发帖数98
  • QQ
  • 铜币29枚
  • 威望1点
  • 银元0个
  • 社区居民
9楼#
发布于:2020-03-20 21:40
嗯,添加一下看看
游客

返回顶部