[C++] Teleport Stone menu

Shout-Out

User Tag List

Results 1 to 7 of 7
  1. #1
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++] Teleport Stone

    Hello and thanks for looking at this thread,

    I've just created a C++ script, AND this is my FIRST script,
    and I've got some errors when compiling, I've tried my best to clear them,
    But it seems it won't work,

    Would appriciate some fast answers. :'3

    So here's the CODE;


    OwlStone.cpp

    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    #ifdef WIN32
    #pragma warning(disable:4305) // warning C4305: 'argument' : truncation from 'double' to 'float'
    #endif
    
    #define STONEID 90020
    
    class SCRIPT_DECL OwlStone : public GossipScript
    {
    public;
    void GossipHello(Object * pObject, Player* Plr, bool AutoSend);
    void GossipSelectOption(Object * pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code);
    void GossipEnd(Object * pObject, Player* Plr);
    void Destroy()
    {
    delete this;
    }
    };
    
    void OwlStone::GossipHello(Object * pObject, Player* Plr, bool AutoSend)
              {
              if(Plr->CombatStatus.IsInCombat())   
              Plr->BroadcastMessage("You are in combat!");   
              return;
              }
    GossipMenu *Menu;
    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
    {
    Menu->AddItem(5,"Shattrath Mall", 1);
    Menu->AddItem(0,"PvP Areas", 2);
    Menu->AddItem(0,"Battlefront Areas", 3);
    Menu->AddItem(5,"Advance all Wep Skills", 4);
    Menu->AddItem(5,"Save Character", 5);
    Menu->AddItem(5,"Reset Talents", 6);
    Menu->AddItem(5,"Remove Ress Sickness", 7);
    if(AutoSend)
    Menu->SendTo(Plr);
    }
    
    void OwlStone::GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
    {
            GossipMenu * Menu;
            switch(IntId)
    {
            case 0:
            GossipHello(pObject, Plr, true);
            break;
    
        case 1:
            {
                Plr->EventTeleport(530, -1851.617188, 5466.460938, 12.428118);
            }
    }break;
    
        case 2:
            {
    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
        Menu->AddItem(5,"Nagrand PvP Arena", 10);
        Menu->AddItem(5,"Blade's Edge Arena", 11);
        Menu->AddItem(5,"Gurubashi Arena", 12);
        Menu->SendTo(Plr);
    }
    break;
    
        case 3:
            {
    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
        Menu->AddItem(5,"Horde Battlefront Area", 15);
        Menu->AddItem(5,"Battlefront Mid-Field Area", 16);
        Menu->AddItem(5,"Alliance Battlefront Area", 17);
        Menu->SendTo(Plr);
    }
    break;
    
        case 4:
    {
    
            if (Plr->_HasSkillLine(43))
                                          {Plr->_AdvanceSkillLine(43, 350);}
                                  if (Plr->_HasSkillLine(55))
                                          {Plr->_AdvanceSkillLine(55, 350);}
                                  if (Plr->_HasSkillLine(44))
                                          {Plr->_AdvanceSkillLine(44, 350);}
                                  if (Plr->_HasSkillLine(95))
                                          {Plr->_AdvanceSkillLine(95, 350);}
                                  if (Plr->_HasSkillLine(54))
                                          {Plr->_AdvanceSkillLine(54, 350);}
                                  if (Plr->_HasSkillLine(45))
                                          {Plr->_AdvanceSkillLine(45, 350);}
                                  if (Plr->_HasSkillLine(46))
                                          {Plr->_AdvanceSkillLine(46, 350);}
                                  if (Plr->_HasSkillLine(136))
                                          {Plr->_AdvanceSkillLine(136, 350);}
                                  if (Plr->_HasSkillLine(160))
                                          {Plr->_AdvanceSkillLine(160, 350);}
                                  if (Plr->_HasSkillLine(162))
                                          {Plr->_AdvanceSkillLine(162, 350);}
                                  if (Plr->_HasSkillLine(172))
                                          {Plr->_AdvanceSkillLine(172, 350);}
                                  if (Plr->_HasSkillLine(173))
                                          {Plr->_AdvanceSkillLine(173, 350);}
                                  if (Plr->_HasSkillLine(176))
                                          {Plr->_AdvanceSkillLine(176, 350);}
                                  if (Plr->_HasSkillLine(226))
                                          {Plr->_AdvanceSkillLine(226, 350);}
                                  if (Plr->_HasSkillLine(228))
                                          {Plr->_AdvanceSkillLine(228, 350);}
                                  if (Plr->_HasSkillLine(229))
                                          {Plr->_AdvanceSkillLine(229, 350);}
                                  if (Plr->_HasSkillLine(473))
                                          {Plr->_AdvanceSkillLine(473, 350);}
                                  Plr->Gossip_Complete();
    }
    break;
    
        case 5: 
    {
        Plr->SaveToDB(true);
        Plr->BroadcastMessage("Your Character Has Been Succesfully Saved to the Database");               
        Plr->Emote(EMOTE_ONESHOT_CHEER);
        Plr->Gossip_Complete();
    }
    break;
    
        case 6: 
    {
        Plr->BroadcastMessage("Your Talentpoints have been sucessfully reset!");
        Plr->Reset_Talents();
        Plr->Gossip_Complete();
    }
    break;
    
        case 7: 
    {
        Plr->addSpell(15007);
        Plr->removeSpell(15007,0,0,0);
        Plr->BroadcastMessage("You have been cured of that dreaded sickness!" );
        Plr->Gossip_Complete();
    }
    break;
    
        case 10:
    {
        Plr->EventTeleport(530, -2046.101807, 6657.619141, 13.053440);
    }break;
    
        case 11:
    {
        Plr->EventTeleport(530, 2838.986572, 5928.729004, 11.064964);
    }
    break;
    
        case 12:
    {
        Plr->EventTeleport(0, -13228.034180, 229.909576, 33.117268);
    }
    break;
    
        case 15:
    {
        Plr->EventTeleport(0, -8282.810547, -3328.542236, 170.881210);
    }
    break;
    
        case 16:
    {
        Plr->EventTeleport(0, -7886.782227, -3345.649902, 171.201370);
    }
    break;
    
        case 17:
    {
        Plr->EventTeleport(0, -7569.903809, -3434.363770, 170.881958);
    }
    break;
    }
    }
    void OwlStone::GossipEnd(Object * pObject, Player* Plr)
          {
          GossipScript::GossipEnd(pObject, Plr);
          }
          void SetupOwlStone(ScriptMgr * mgr);
          {
          GossipScript * gs = (GossipScript*) new OwlStone();
          mgr->register_item_gossip_script(STONEID,gs);
          }


    The ERRORS;

    Code:
    ..\src\OwlStone\OwlStone.cpp(11) : error C2143: syntax error : missing ';' before '<class-head>'
    ..\src\OwlStone\OwlStone.cpp(13) : error C2143: syntax error : missing ':' before ';'
    ..\src\OwlStone\OwlStone.cpp(30) : error C2143: syntax error : missing ';' before '.'
    ..\src\OwlStone\OwlStone.cpp(30) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    ..\src\OwlStone\OwlStone.cpp(30) : error C2556: 'int Singleton<type>::getSingleton(void)' : overloaded function differs only by return type from 'ObjectMgr &Singleton<type>::getSingleton(void)'
            with
            [
                type=ObjectMgr
            ]
            c:\Documents and Settings\Togetha'\Skrivbord\OwlEmuSN\branch\STABLE\src\ascent-shared\Singleton.h(49) : see declaration of 'Singleton<type>::getSingleton'
            with
            [
                type=ObjectMgr
            ]
    ..\src\OwlStone\OwlStone.cpp(30) : error C2040: 'Singleton<type>::getSingleton' : 'int (void)' differs in levels of indirection from 'ObjectMgr &(void)'
            with
            [
                type=ObjectMgr
            ]
    ..\src\OwlStone\OwlStone.cpp(31) : error C2447: '{' : missing function header (old-style formal list?)
    ..\src\OwlStone\OwlStone.cpp(56) : error C2043: illegal break
    ..\src\OwlStone\OwlStone.cpp(58) : error C2046: illegal case
    ..\src\OwlStone\OwlStone.cpp(60) : error C2228: left of '.CreateGossipMenuForPlayer' must have class/struct/union
    ..\src\OwlStone\OwlStone.cpp(66) : error C2043: illegal break
    ..\src\OwlStone\OwlStone.cpp(68) : error C2046: illegal case
    ..\src\OwlStone\OwlStone.cpp(70) : error C2228: left of '.CreateGossipMenuForPlayer' must have class/struct/union
    ..\src\OwlStone\OwlStone.cpp(76) : error C2043: illegal break
    ..\src\OwlStone\OwlStone.cpp(78) : error C2046: illegal case
    ..\src\OwlStone\OwlStone.cpp(117) : error C2043: illegal break
    ..\src\OwlStone\OwlStone.cpp(119) : error C2046: illegal case
    ..\src\OwlStone\OwlStone.cpp(126) : error C2043: illegal break
    ..\src\OwlStone\OwlStone.cpp(128) : error C2046: illegal case
    ..\src\OwlStone\OwlStone.cpp(134) : error C2043: illegal break
    ..\src\OwlStone\OwlStone.cpp(136) : error C2046: illegal case
    ..\src\OwlStone\OwlStone.cpp(143) : error C2043: illegal break
    ..\src\OwlStone\OwlStone.cpp(145) : error C2046: illegal case
    ..\src\OwlStone\OwlStone.cpp(148) : error C2043: illegal break
    ..\src\OwlStone\OwlStone.cpp(150) : error C2046: illegal case
    ..\src\OwlStone\OwlStone.cpp(154) : error C2043: illegal break
    ..\src\OwlStone\OwlStone.cpp(156) : error C2046: illegal case
    ..\src\OwlStone\OwlStone.cpp(160) : error C2043: illegal break
    ..\src\OwlStone\OwlStone.cpp(162) : error C2046: illegal case
    ..\src\OwlStone\OwlStone.cpp(166) : error C2043: illegal break
    ..\src\OwlStone\OwlStone.cpp(168) : error C2046: illegal case
    ..\src\OwlStone\OwlStone.cpp(172) : error C2043: illegal break
    ..\src\OwlStone\OwlStone.cpp(174) : error C2046: illegal case
    ..\src\OwlStone\OwlStone.cpp(178) : error C2043: illegal break
    ..\src\OwlStone\OwlStone.cpp(180) : error C2059: syntax error : '}'
    ..\src\OwlStone\OwlStone.cpp(180) : error C2143: syntax error : missing ';' before '}'
    ..\src\OwlStone\OwlStone.cpp(180) : error C2059: syntax error : '}'
    ..\src\OwlStone\OwlStone.cpp(182) : error C2143: syntax error : missing ';' before '{'
    ..\src\OwlStone\OwlStone.cpp(182) : error C2447: '{' : missing function header (old-style formal list?)
    ..\src\OwlStone\OwlStone.cpp(186) : error C2447: '{' : missing function header (old-style formal list?)


    [C++] Teleport Stone
  2. #2
    doublehex's Avatar Member
    Reputation
    34
    Join Date
    Mar 2007
    Posts
    385
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    fixed:
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    #ifdef WIN32
    #pragma warning(disable:4305) // warning C4305: 'argument' : truncation from 'double' to 'float'
    #endif
    
    #define STONEID 90020
    
    class SCRIPT_DECL OwlStone : public GossipScript
    {
    public:
    void GossipHello(Object * pObject, Player* Plr, bool AutoSend);
    void GossipSelectOption(Object * pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code);
    void GossipEnd(Object * pObject, Player* Plr);
    void Destroy()
    {
    delete this;
    }
    };
    
    void OwlStone::GossipHello(Object * pObject, Player* Plr, bool AutoSend)
              {
              if(Plr->CombatStatus.IsInCombat()) 
                {          
              Plr->BroadcastMessage("You are in combat!");   
              return;
              }
    GossipMenu *Menu;
    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
    {
    Menu->AddItem(5,"Shattrath Mall", 1);
    Menu->AddItem(0,"PvP Areas", 2);
    Menu->AddItem(0,"Battlefront Areas", 3);
    Menu->AddItem(5,"Advance all Wep Skills", 4);
    Menu->AddItem(5,"Save Character", 5);
    Menu->AddItem(5,"Reset Talents", 6);
    Menu->AddItem(5,"Remove Ress Sickness", 7);
    if(AutoSend)
    Menu->SendTo(Plr);
    }}
    
    void OwlStone::GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
    {
            GossipMenu * Menu;
            switch(IntId)
    {
            case 0:
            GossipHello(pObject, Plr, true);
            break;
    
        case 1:
            {
                Plr->EventTeleport(530, -1851.617188, 5466.460938, 12.428118);
            }
    break;
    
        case 2:
            {
    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
        Menu->AddItem(5,"Nagrand PvP Arena", 10);
        Menu->AddItem(5,"Blade's Edge Arena", 11);
        Menu->AddItem(5,"Gurubashi Arena", 12);
        Menu->SendTo(Plr);
    }
    break;
    
        case 3:
            {
    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
        Menu->AddItem(5,"Horde Battlefront Area", 15);
        Menu->AddItem(5,"Battlefront Mid-Field Area", 16);
        Menu->AddItem(5,"Alliance Battlefront Area", 17);
        Menu->SendTo(Plr);
    }
    break;
    
        case 4:
    {
    
            if (Plr->_HasSkillLine(43))
                                          {Plr->_AdvanceSkillLine(43, 350);}
                                  if (Plr->_HasSkillLine(55))
                                          {Plr->_AdvanceSkillLine(55, 350);}
                                  if (Plr->_HasSkillLine(44))
                                          {Plr->_AdvanceSkillLine(44, 350);}
                                  if (Plr->_HasSkillLine(95))
                                          {Plr->_AdvanceSkillLine(95, 350);}
                                  if (Plr->_HasSkillLine(54))
                                          {Plr->_AdvanceSkillLine(54, 350);}
                                  if (Plr->_HasSkillLine(45))
                                          {Plr->_AdvanceSkillLine(45, 350);}
                                  if (Plr->_HasSkillLine(46))
                                          {Plr->_AdvanceSkillLine(46, 350);}
                                  if (Plr->_HasSkillLine(136))
                                          {Plr->_AdvanceSkillLine(136, 350);}
                                  if (Plr->_HasSkillLine(160))
                                          {Plr->_AdvanceSkillLine(160, 350);}
                                  if (Plr->_HasSkillLine(162))
                                          {Plr->_AdvanceSkillLine(162, 350);}
                                  if (Plr->_HasSkillLine(172))
                                          {Plr->_AdvanceSkillLine(172, 350);}
                                  if (Plr->_HasSkillLine(173))
                                          {Plr->_AdvanceSkillLine(173, 350);}
                                  if (Plr->_HasSkillLine(176))
                                          {Plr->_AdvanceSkillLine(176, 350);}
                                  if (Plr->_HasSkillLine(226))
                                          {Plr->_AdvanceSkillLine(226, 350);}
                                  if (Plr->_HasSkillLine(228))
                                          {Plr->_AdvanceSkillLine(228, 350);}
                                  if (Plr->_HasSkillLine(229))
                                          {Plr->_AdvanceSkillLine(229, 350);}
                                  if (Plr->_HasSkillLine(473))
                                          {Plr->_AdvanceSkillLine(473, 350);}
                                  Plr->Gossip_Complete();
    }
    break;
    
        case 5: 
    {
        Plr->SaveToDB(true);
        Plr->BroadcastMessage("Your Character Has Been Succesfully Saved to the Database");               
        Plr->Emote(EMOTE_ONESHOT_CHEER);
        Plr->Gossip_Complete();
    }
    break;
    
        case 6: 
    {
        Plr->BroadcastMessage("Your Talentpoints have been sucessfully reset!");
        Plr->Reset_Talents();
        Plr->Gossip_Complete();
    }
    break;
    
        case 7: 
    {
        Plr->addSpell(15007);
        Plr->removeSpell(15007,0,0,0);
        Plr->BroadcastMessage("You have been cured of that dreaded sickness!" );
        Plr->Gossip_Complete();
    }
    break;
    
        case 10:
    {
        Plr->EventTeleport(530, -2046.101807, 6657.619141, 13.053440);
    }break;
    
        case 11:
    {
        Plr->EventTeleport(530, 2838.986572, 5928.729004, 11.064964);
    }
    break;
    
        case 12:
    {
        Plr->EventTeleport(0, -13228.034180, 229.909576, 33.117268);
    }
    break;
    
        case 15:
    {
        Plr->EventTeleport(0, -8282.810547, -3328.542236, 170.881210);
    }
    break;
    
        case 16:
    {
        Plr->EventTeleport(0, -7886.782227, -3345.649902, 171.201370);
    }
    break;
    
        case 17:
    {
        Plr->EventTeleport(0, -7569.903809, -3434.363770, 170.881958);
    }
    break;
    }
    }
    void OwlStone::GossipEnd(Object * pObject, Player* Plr)
          {
          GossipScript::GossipEnd(pObject, Plr);
          }
    void SetupOwlStone(ScriptMgr * mgr)
          {
          GossipScript * gs = (GossipScript*) new OwlStone();
          mgr->register_item_gossip_script(STONEID,gs);
          }


  3. #3
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Woah! Thanks for that , sir!
    It cleared alot of Errors, but I got two errors left,
    Here it is:

    Errorz;
    Compiling...
    OwlStone.cpp
    ..srcOwlStoneOwlStone.cpp(10) : error C2143: syntax error : missing ';' before '<class-head>'
    Setup.cpp
    cocuments and SettingsTogetha'SkrivbordOwlEmuSNbranchSTABLEsrcascent-sharedsvn_revision.h(7) : error C2144: syntax error : 'const char' should be preceded by ';'

  4. #4
    Performer's Avatar Contributor
    Reputation
    212
    Join Date
    Nov 2007
    Posts
    874
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try:

    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    #ifdef WIN32
    #pragma warning(disable:4305) // warning C4305: 'argument' : truncation from 'double' to 'float'
    #endif
    
    #define STONEID 90020
    
    class SCRIPT_DECL OwlStone : public GossipScript
    {
        public:
            void GossipHello(Object * pObject, Player* Plr, bool AutoSend);
            void GossipSelectOption(Object * pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code);
            void GossipEnd(Object * pObject, Player* Plr);
            void Destroy()
            {
                delete this;
            }
    };
    
    void OwlStone::GossipHello(Object * pObject, Player* Plr, bool AutoSend)
              {
              if(Plr->CombatStatus.IsInCombat()) 
                {          
              Plr->BroadcastMessage("You are in combat!");   
              return;
              }
    GossipMenu *Menu;
    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
    {
    Menu->AddItem(5,"Shattrath Mall", 1);
    Menu->AddItem(0,"PvP Areas", 2);
    Menu->AddItem(0,"Battlefront Areas", 3);
    Menu->AddItem(5,"Advance all Wep Skills", 4);
    Menu->AddItem(5,"Save Character", 5);
    Menu->AddItem(5,"Reset Talents", 6);
    Menu->AddItem(5,"Remove Ress Sickness", 7);
    if(AutoSend)
    Menu->SendTo(Plr);
    }}
    
    void OwlStone::GossipSelectOption(Object* pObject, Player* Plr, uint32 Id, uint32 IntId, const char * Code)
    {
            GossipMenu * Menu;
            switch(IntId)
    {
            case 0:
            GossipHello(pObject, Plr, true);
            break;
    
        case 1:
            {
                Plr->EventTeleport(530, -1851.617188, 5466.460938, 12.428118);
            }
    break;
    
        case 2:
            {
    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
        Menu->AddItem(5,"Nagrand PvP Arena", 10);
        Menu->AddItem(5,"Blade's Edge Arena", 11);
        Menu->AddItem(5,"Gurubashi Arena", 12);
        Menu->SendTo(Plr);
    }
    break;
    
        case 3:
            {
    objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 2593, Plr);
        Menu->AddItem(5,"Horde Battlefront Area", 15);
        Menu->AddItem(5,"Battlefront Mid-Field Area", 16);
        Menu->AddItem(5,"Alliance Battlefront Area", 17);
        Menu->SendTo(Plr);
    }
    break;
    
        case 4:
    {
    
            if (Plr->_HasSkillLine(43))
                                          {Plr->_AdvanceSkillLine(43, 350);}
                                  if (Plr->_HasSkillLine(55))
                                          {Plr->_AdvanceSkillLine(55, 350);}
                                  if (Plr->_HasSkillLine(44))
                                          {Plr->_AdvanceSkillLine(44, 350);}
                                  if (Plr->_HasSkillLine(95))
                                          {Plr->_AdvanceSkillLine(95, 350);}
                                  if (Plr->_HasSkillLine(54))
                                          {Plr->_AdvanceSkillLine(54, 350);}
                                  if (Plr->_HasSkillLine(45))
                                          {Plr->_AdvanceSkillLine(45, 350);}
                                  if (Plr->_HasSkillLine(46))
                                          {Plr->_AdvanceSkillLine(46, 350);}
                                  if (Plr->_HasSkillLine(136))
                                          {Plr->_AdvanceSkillLine(136, 350);}
                                  if (Plr->_HasSkillLine(160))
                                          {Plr->_AdvanceSkillLine(160, 350);}
                                  if (Plr->_HasSkillLine(162))
                                          {Plr->_AdvanceSkillLine(162, 350);}
                                  if (Plr->_HasSkillLine(172))
                                          {Plr->_AdvanceSkillLine(172, 350);}
                                  if (Plr->_HasSkillLine(173))
                                          {Plr->_AdvanceSkillLine(173, 350);}
                                  if (Plr->_HasSkillLine(176))
                                          {Plr->_AdvanceSkillLine(176, 350);}
                                  if (Plr->_HasSkillLine(226))
                                          {Plr->_AdvanceSkillLine(226, 350);}
                                  if (Plr->_HasSkillLine(228))
                                          {Plr->_AdvanceSkillLine(228, 350);}
                                  if (Plr->_HasSkillLine(229))
                                          {Plr->_AdvanceSkillLine(229, 350);}
                                  if (Plr->_HasSkillLine(473))
                                          {Plr->_AdvanceSkillLine(473, 350);}
                                  Plr->Gossip_Complete();
    }
    break;
    
        case 5: 
    {
        Plr->SaveToDB(true);
        Plr->BroadcastMessage("Your Character Has Been Succesfully Saved to the Database");               
        Plr->Emote(EMOTE_ONESHOT_CHEER);
        Plr->Gossip_Complete();
    }
    break;
    
        case 6: 
    {
        Plr->BroadcastMessage("Your Talentpoints have been sucessfully reset!");
        Plr->Reset_Talents();
        Plr->Gossip_Complete();
    }
    break;
    
        case 7: 
    {
        Plr->addSpell(15007);
        Plr->removeSpell(15007,0,0,0);
        Plr->BroadcastMessage("You have been cured of that dreaded sickness!" );
        Plr->Gossip_Complete();
    }
    break;
    
        case 10:
    {
        Plr->EventTeleport(530, -2046.101807, 6657.619141, 13.053440);
    }break;
    
        case 11:
    {
        Plr->EventTeleport(530, 2838.986572, 5928.729004, 11.064964);
    }
    break;
    
        case 12:
    {
        Plr->EventTeleport(0, -13228.034180, 229.909576, 33.117268);
    }
    break;
    
        case 15:
    {
        Plr->EventTeleport(0, -8282.810547, -3328.542236, 170.881210);
    }
    break;
    
        case 16:
    {
        Plr->EventTeleport(0, -7886.782227, -3345.649902, 171.201370);
    }
    break;
    
        case 17:
    {
        Plr->EventTeleport(0, -7569.903809, -3434.363770, 170.881958);
    }
    break;
    }
    }
    void OwlStone::GossipEnd(Object * pObject, Player* Plr)
          {
          GossipScript::GossipEnd(pObject, Plr);
          }
    void SetupOwlStone(ScriptMgr * mgr)
          {
          GossipScript * gs = (GossipScript*) new OwlStone();
          mgr->register_item_gossip_script(STONEID,gs);
          }


  5. #5
    Babbaa's Avatar Member
    Reputation
    32
    Join Date
    Nov 2007
    Posts
    206
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Same error.

  6. #6
    Gastricpenguin's Avatar Legendary
    Reputation
    980
    Join Date
    Feb 2007
    Posts
    2,236
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Don't triple post
    Life Puzzler WoW - Website | Forums

  7. #7
    doublehex's Avatar Member
    Reputation
    34
    Join Date
    Mar 2007
    Posts
    385
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i did another quick look over and i dont see anything and its compiling fine for me in my source, what source are you using? and performer you just posted my fixed one but you just moved a couple lines over...
    Last edited by doublehex; 10-14-2008 at 09:25 AM.


Similar Threads

  1. Teleporter stone not working
    By alwise17 in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-27-2009, 09:17 PM
  2. [LUA] Teleport Stone Issue
    By marco1234 in forum WoW EMU Questions & Requests
    Replies: 6
    Last Post: 03-29-2009, 07:05 AM
  3. Wishing stone or Teleporter?
    By Arugos in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 03-23-2008, 08:13 PM
  4. Any working teleport hack?
    By iamtheovermind in forum World of Warcraft General
    Replies: 18
    Last Post: 07-12-2006, 12:17 PM
  5. Any working teleport hack?
    By iamtheovermind in forum World of Warcraft Bots and Programs
    Replies: 6
    Last Post: 05-05-2006, 04:38 PM
All times are GMT -5. The time now is 08:20 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search