Hi, this part of code is not working for me? Can anyone help me?
Code:
#ifdef __ALLOW_VENDING_AREA
switch (CContinent::GetInstance()->GetContinent(pUser))
{
case TOWN_SAINCITY:
case CONT_SAINTMORNING:
break;
default:
pUser->AddText("You must be in Saint City to open a shop!");
return;
break;
}
#endif //__ALLOW_VENDING_AREA
I added it under CDPSrvr::OnPVendorOpen
I can still open a shop, but the shop title doesn't appear.
Also the pUser->AddText is not appearing
//__DISABLE_VEND
switch (CContinent::GetInstance()->GetContinent(pUser))
{
case TOWN_FLARINENOSPLE:
case CONT_FLARIS:
{
pUser->AddText("You're not allowed to vend here!");
return;
break;
}
}
//__DISABLE_VEND
//__DISABLE_VEND
switch (CContinent::GetInstance()->GetContinent(pUser))
{
case TOWN_FLARINENOSPLE:
case CONT_FLARIS:
{
pUser->AddText("You're not allowed to vend here!");
return;
break;
}
}
//__DISABLE_VEND
Hi, this part of code is not working for me? Can anyone help me?
Code:
#ifdef __ALLOW_VENDING_AREA
switch (CContinent::GetInstance()->GetContinent(pUser))
{
case TOWN_SAINCITY:
case CONT_SAINTMORNING:
break;
default:
pUser->AddText("You must be in Saint City to open a shop!");
return;
break;
}
#endif //__ALLOW_VENDING_AREA
Actually your code is allowing to create private shop in saint morning
I added it under CDPSrvr::OnPVendorOpen
I can still open a shop, but the shop title doesn't appear.
Also the pUser->AddText is not appearing
#ifdef __ALLOW_VENDING_AREA switch( CContinent::GetInstance()->GetContinent( pUser ) ) { case TOWN_FLARINENOSPLE: case CONT_FLARIS: break; default: pUser->AddText("You must be in Flaris to open a shop!"); return; break; } #endif //__ALLOW_VENDING_AREA
if( CContinent::GetInstance()->GetMapNo(g_pPlayer) != 4 )
{
g_WndMng.PutString( "Du kannst nur in Saint Morning einen Shop aufmachen." );
return TRUE;
}
Dont forget to include Continent.h at the beginning of WndVendor.cpp otherwise you will get error
if( CContinent::GetInstance()->GetMapNo(g_pPlayer) != 4 )
{
g_WndMng.PutString( "Du kannst nur in Saint Morning einen Shop aufmachen." );
return TRUE;
}
Dont forget to include Continent.h at the beginning of WndVendor.cpp otherwise you will get error
Code:
#include "Continent.h"
The message will come, once you press the button.
That was exactly what I needed, thank you so much <3
Saint Morning Crash! :/ help... 02/18/2013 - Flyff Private Server - 2 Replies Hay, Leute ich weiß nemme weiter.... ich kann mich überal hin teleportieren... auser nach sm egal ob mit dem Teleporter oder Mit einem Blinkwing... wenn ich mich teleportet habe hat der client ein standbild und crashed....
Error:
mfg. Kevin
Flaris + Saint Morning NPC Spawn 09/14/2008 - Flyff Private Server - 3 Replies Halli Hallo,
Ich hör auf mit Pserver bis alle DBs zum Download zu 100% sind. Macht keinen Sinn oder ich spiel einfach nurnoch Offi Server.
Also sagen wir so, habe Flaris full Npc gespawned, bis auf Frankie, hab den ned gefunden. Saint Morning, eigtl.alle bis auf die oben bei Station, die Theaterkinder und einen noch, sonst alle wichtigen.
RapidShare: Easy Filehosting
Viel Spaß, hoffe es bringt euch weiter :)