Mam problem nasel sem si na scriptdev2 script na item teleporter:
#include "precompiled.h"
bool It"pie"se_item_vesnice(Player *player, Item* _Item, SpellCastTargets const& targets)
{
if ( (player->isAttacked()) || (player->isInFlight()) || (player->isDead()) || (player->IsMounted()))
{
player->SendEquipError(EQUIP_ERR_NOT_IN_COMBAT,_Item,NULL );
return true;
}
player->RemoveSpellsCausingAura(SPELL_AURA_MOUNTED);
// Teleport player to darkheim
if ( player->GetTeam() == ALLIANCE ) {
player->TeleportTo(1, 7334.067871,-1536.504150,160.535187,4.973411);
}
else {
player->TeleportTo(1, 7334.067871,-1536.504150,160.535187,4.973411);
}
return false;
}
void AddSC_item_vesnice()
{
Script *newscript;
newscript = new Script;
newscript->Name="item_vesnice";
newscript->pIt"pie"se = It"pie"se_item_vesnice;
m_scripts[nrscripts++] = newscript;
}
Mam problem pri kompilac nejde mi to skompilovat pise to tyto chyby:
1>..\scripts\custom\item_vesnice.cpp(20) : error C2143: syntax error : missing ';' before 'string'
1>..\scripts\custom\item_vesnice.cpp(21) : error C2143: syntax error : missing ';' before '{'
1>..\scripts\custom\item_vesnice.cpp(21) : error C2447: '{' : missing function header (old-style formal list?)
1>..\scripts\custom\item_vesnice.cpp(45) : error C2039: 'pIt' : is not a member of 'Script'
1> c:\users\satan\mangos\src\bindings\scriptdev2\include\../ScriptMgr.h(29) : see declaration of 'Script'
1>..\scripts\custom\item_vesnice.cpp(45) : error C2143: syntax error : missing ';' before 'string'
1>..\scripts\custom\item_vesnice.cpp(45) : error C2146: syntax error : missing ';' before identifier 'se'
1>..\scripts\custom\item_vesnice.cpp(45) : error C2065: 'se' : undeclared identifier
1>..\scripts\custom\item_vesnice.cpp(45) : error C2143: syntax error : missing ';' before 'string'
1>..\scripts\custom\item_vesnice.cpp(45) : error C2146: syntax error : missing ';' before identifier 'se_item_vesnice'
1>..\scripts\custom\item_vesnice.cpp(45) : error C2065: 'se_item_vesnice' : undeclared identifier
1>..\scripts\custom\item_vesnice.cpp(46) : error C2065: 'm_scripts' : undeclared identifier
1>..\scripts\custom\item_vesnice.cpp(46) : error C2065: 'nrscripts' : undeclared identifier