SendNotification script command menu

User Tag List

Results 1 to 3 of 3
  1. #1
    4BOLTMAIN's Avatar Sergeant
    Reputation
    2
    Join Date
    Dec 2010
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SendNotification script command

    I am looking for a command that will produce the same effect when you try to use the portal to blasted lands and are not level 58. On the top center of the screen in red it says "You must reach level 58 to use this portal"

    I am using this in a portal script and limiting the portal to only level 80 characters if you are in Shatt. The portal works like it should but I would like to know how to tell the player they need to be level 80 in red text just like the blasted lands portal.

    Code:
    #include "ScriptPCH.h"
    
    
    class tp_dalaran : public GameObjectScript
    {
        public:
            tp_dalaran()
                : GameObjectScript("tp_dalaran") {}
    
            bool OnGossipHello(Player* player, GameObject* gobject)
            {
    		if ((player->getLevel() <= 79) && (gobject-> GetMapId() == 530))
    		{
    			player->GetSession()->SendNotification("You must be level 80 to use this portal.");
                            return false;
    		}
    		else
    		{
                		player->TeleportTo(571, 5820.606f, 544.037f, 651.932f, 1.858341f);
                		return false;
    		}
            }
    };
    
    void AddSC_tp_dalaran()
    {
        new tp_dalaran();
    }
    If I use this...

    Code:
    player->GetSession()->SendNotification("You must be level 80 to use this portal.");
    ...I get the text I want but it also pops up a gossip menu.
    What am I doing wrong?

    SendNotification script command
  2. #2
    Terrorblade's Avatar Contributor I spent 5k CC and all I got was this user title
    CoreCoins Purchaser
    Reputation
    153
    Join Date
    Oct 2010
    Posts
    312
    Thanks G/R
    6/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    bool OnGossipHello
    I wonder why it sends gossip menu
    Stuff & Things

  3. #3
    4BOLTMAIN's Avatar Sergeant
    Reputation
    2
    Join Date
    Dec 2010
    Posts
    63
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually that has nothing to do with it because I tried OnUse and OnActivate. The problem was in my database. I had to set the gameobject type to 1 (button) then data2 to 1000 (auto-close interval) after I did this the menu never showed.

    Wish I would have figured that out 8 hours ago.
    Last edited by 4BOLTMAIN; 03-31-2011 at 02:08 PM.

Similar Threads

  1. [Question]Random Target Script/Command
    By Freefall552 in forum World of Warcraft General
    Replies: 0
    Last Post: 09-07-2010, 05:18 PM
  2. What the /script command to invite everyone to a guild in the /who list?
    By brazil301 in forum WoW UI, Macros and Talent Specs
    Replies: 3
    Last Post: 05-17-2010, 01:15 PM
  3. [Request] Currently working LUA Script Commands (In a List)
    By sheepking in forum WoW EMU Questions & Requests
    Replies: 2
    Last Post: 10-15-2009, 10:50 AM
  4. how to disable /scripts command?
    By Algorithm in forum World of Warcraft Emulator Servers
    Replies: 19
    Last Post: 05-14-2008, 12:18 AM
  5. I'd like to ask if there is a website where I can find all /script commands
    By Loaril in forum WoW UI, Macros and Talent Specs
    Replies: 3
    Last Post: 01-04-2008, 08:27 AM
All times are GMT -5. The time now is 11:48 PM. 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