|
You last visited: Today at 07:34
Advertisement
[Fix] Arena Enter/Exit by packet
Discussion on [Fix] Arena Enter/Exit by packet within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.
05/12/2020, 20:12
|
#1
|
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
|
[Fix] Arena Enter/Exit by packet
If you don't want someone to use a packet anywhere to teleport inside/outside the arena, change the function CDPSrvr::OnArenaEnter to ->
Code:
void CDPSrvr::OnArenaEnter( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )
{
CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );
if( IsValidObj( pUser ) )
{
if (!CNpcChecker::GetInstance()->IsCloseNpc(MMI_ARENA_ENTER, pUser->GetWorld(), pUser->GetPos()))
return;
if( pUser->IsBaseJob() )
return;
pUser->SetMarkingPos();
pUser->REPLACE( g_uIdofMulti, WI_WORLD_ARENA, D3DXVECTOR3( 540.0F, 140.0F, 485.0F ), REPLACE_NORMAL, nDefaultLayer );
}
}
And the function CDPSrvr::OnArenaExit to ->
Code:
void CDPSrvr::OnArenaExit(CAr& ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize)
{
CUser* pUser = g_UserMng.GetUser(dpidCache, dpidUser);
if (IsValidObj(pUser))
{
if (!CNpcChecker::GetInstance()->IsCloseNpc(MMI_ARENA_EXIT, pUser->GetWorld(), pUser->GetPos()))
return;
pUser->REPLACE(g_uIdofMulti, pUser->m_idMarkingWorld, pUser->m_vMarkingPos, REPLACE_NORMAL, nTempLayer);
}
}
|
|
|
05/13/2020, 12:32
|
#2
|
elite*gold: 0
Join Date: Jan 2014
Posts: 773
Received Thanks: 374
|
Quote:
Originally Posted by ZeroTwo02
If you don't want someone to use a packet anywhere to teleport inside/outside the arena, change the function CDPSrvr::OnArenaEnter to ->
Code:
void CDPSrvr::OnArenaEnter( CAr & ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize )
{
CUser* pUser = g_UserMng.GetUser( dpidCache, dpidUser );
if( IsValidObj( pUser ) )
{
if (!CNpcChecker::GetInstance()->IsCloseNpc(MMI_ARENA_ENTER, pUser->GetWorld(), pUser->GetPos()))
return;
if( pUser->IsBaseJob() )
return;
pUser->SetMarkingPos();
pUser->REPLACE( g_uIdofMulti, WI_WORLD_ARENA, D3DXVECTOR3( 540.0F, 140.0F, 485.0F ), REPLACE_NORMAL, nDefaultLayer );
}
}
And the function CDPSrvr::OnArenaExit to ->
Code:
void CDPSrvr::OnArenaExit(CAr& ar, DPID dpidCache, DPID dpidUser, LPBYTE lpBuf, u_long uBufSize)
{
CUser* pUser = g_UserMng.GetUser(dpidCache, dpidUser);
if (IsValidObj(pUser))
{
if (!CNpcChecker::GetInstance()->IsCloseNpc(MMI_ARENA_EXIT, pUser->GetWorld(), pUser->GetPos()))
return;
pUser->REPLACE(g_uIdofMulti, pUser->m_idMarkingWorld, pUser->m_vMarkingPos, REPLACE_NORMAL, nTempLayer);
}
}
|
Already released in much sources.
|
|
|
05/13/2020, 13:01
|
#3
|
elite*gold: 28
Join Date: Feb 2010
Posts: 463
Received Thanks: 277
|
Released in many sources, but still working on most of the private server
|
|
|
05/13/2020, 13:40
|
#4
|
elite*gold: 0
Join Date: May 2019
Posts: 74
Received Thanks: 5
|
@ , release the always bow charge hack fix as well.
|
|
|
|
Similar Threads
|
[04.09.13] GigaByte v2.6 [FIX, FIX, FIX, FIX AND FIX]
09/11/2013 - WarRock Hacks, Bots, Cheats & Exploits - 79 Replies
http://www.elitepvpers.com/forum/warrock-hacks-bot s-cheats-exploits/2843300-11-09-gigabyte-public-v2 -7-a.html
|
[Release]enter/exit TG
04/27/2011 - CO2 PServer Guides & Releases - 5 Replies
Adds Boxer in tc, adds script to BoxerHuang inside TG to let you out.
Paste code in NPCTalk.cs
#region TC Boxer
case 600076:
{
switch (LinkBack)
{
case 0:
{
Text("If you are level 20 or above you may train the the training ground. Would youlike me to teleport you there for 1000...
|
[Release]enter and exit guild arena
07/14/2009 - CO2 PServer Guides & Releases - 2 Replies
just open up npc talk and put the code on top of a code
yes i named it niggerislands you can change the text
|
Exit sometimes... Didnt write anithing just exit... PLS HELP
11/23/2007 - Silkroad Online - 1 Replies
The problem is :
I can play for a few minutes and after just exit Didnt write out anithnig...
What can i do?
What will be the problem ?
Pls help For me!
TY
|
All times are GMT +1. The time now is 07:34.
|
|