[C++] Very Basic Script. Lookover? :3 menu

User Tag List

Results 1 to 6 of 6
  1. #1
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [C++] Very Basic Script. Lookover? :3

    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    
    class DefiasTeleporterGossipScript : public GossipScript
    {
    public:
    	void GossipHello(Object* pObject, Player* Plr, bool AutoSend)
    	{
    		GossipMenu *Menu;
    		objmgr.CreateGossipMenuForPlayer(&Menu, pObject->GetGUID(), 1, Plr);
    		Menu->AddItem(0, "Send me to the Defias Isle!", 1); 
    		Menu->SendTo(Plr);
    	}
    
    	void GossipSelectOption(Object* pObject, Player* plr, uint32 Id, uint32 IntId, const char * EnteredCode)
        {
    		Creature* DefiasTeleporter = TO_CREATURE((pObject));		
    		plr->Gossip_Complete();
    		DefiasTeleporter->CastSpell(plr, dbcSpell.LookupEntry(34427), true); // Visual of a WC 3 style Teleport
    		plr->EventTeleport(571, 7939.756766, 4858.290039, 0.565598);		
    	}			
    	void Destroy()
        {
            delete this;
    	}
    
    };
    
    void SetupDefiasGossip(ScriptMgr * mgr)
    {
    	GossipScript * DefiasTeleporterGossip = (GossipScript*) new DefiasTeleporterGossipScript;
    	mgr->register_gossip_script(11111, DefiasTeleporterGossip);		// Defias Teleporter
    }
    Just wanted to know, if anyone could have a quick lookover and tell me if it's fine or not :3

    [C++] Very Basic Script. Lookover? :3
  2. #2
    TheSpidey's Avatar Elite User
    Reputation
    365
    Join Date
    Jan 2008
    Posts
    2,200
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is it not working?

  3. #3
    AngelSandy's Avatar Member
    Reputation
    19
    Join Date
    Jan 2009
    Posts
    330
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I haven't had the oppertunity to test it.
    So I just wanted to know if it would execute right (In theory) :3

  4. #4
    Kiev's Avatar Contributor
    Reputation
    288
    Join Date
    Nov 2007
    Posts
    1,819
    Thanks G/R
    0/4
    Trade Feedback
    3 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can only know by testing it .

    I guess someone will look over it, but they might see its fine, but it might not work still.




  5. #5
    Confucius's Avatar Panda of Worlds The Idiot

    CoreCoins Purchaser Authenticator enabled
    Reputation
    1389
    Join Date
    Oct 2007
    Posts
    2,590
    Thanks G/R
    267/283
    Trade Feedback
    7 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmm, someone can look over it and tell you if it's good, but always test before you post or you may get flamed.

  6. #6
    Morphau45's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks i will try to test it

Similar Threads

  1. [Terran Guide/Tips] The very basics [P1]
    By vallismall in forum Starcraft 2 Exploits, Cheats and Hacks
    Replies: 5
    Last Post: 06-06-2014, 04:33 AM
  2. [Guide - Very Basic] Make your NPC's Move
    By Pufftrees in forum WoW EMU Guides & Tutorials
    Replies: 16
    Last Post: 07-27-2008, 12:26 AM
  3. [Release] Ultima's VERY basic Repack
    By sscultima in forum World of Warcraft Emulator Servers
    Replies: 0
    Last Post: 07-03-2008, 10:43 AM
  4. [Release] Very Basic Ascent Site
    By somguynamedmason in forum WoW EMU Programs
    Replies: 3
    Last Post: 02-02-2008, 02:59 AM
  5. Very basic fishbot source
    By ziao in forum World of Warcraft Bots and Programs
    Replies: 2
    Last Post: 01-10-2007, 12:47 AM
All times are GMT -5. The time now is 10:55 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search