[Release] .mall command to port players menu

User Tag List

Results 1 to 10 of 10
  1. #1
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] .mall command to port players

    here is a script that will teleport the player who uses .mall to the coords depending on his faction

    simply edit the coords to change it

    Code:
    //---------------------
    // Name: Custom Player Mall port command
    // Author: Mager1794
    // This Script can not be released by anyone else other than me 
    //---------------------
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    static string mall = ".mall";
    static bool bypassCombat = false;//Change this if you wish to allow them to port while in combat
    
    void PlayerChat(Player * pPlayer, uint32 Type, uint32 Lang, const char * Message, const char * Misc)
    {
       if(Message == mall)
       {
    	   if(bypassCombat || !pPlayer->CombatStatus.IsInCombat())
    		      if(pPlayer->getRace()== 10||pPlayer->getRace()== 2||pPlayer->getRace()== 6||pPlayer->getRace()== 8||pPlayer->getRace()== 5)
    				  pPlayer->EventTeleport(1, 7367.040039, -1559.760010, 163.52295);
    			  else
    				   pPlayer->EventTeleport(0, -4828.089844, -982.234009, 464.709015);
    	   else
    		   pPlayer->BroadcastMessage("you cannot port to the mall while in combat");
       }
    }
    
    
    void SetupCustomCommands(ScriptMgr * mgr)
    {
       mgr->register_hook(SERVER_HOOK_EVENT_ON_CHAT, &PlayerChat);
    }
    Last edited by mager1794; 07-31-2008 at 04:41 AM. Reason: cant use the command while in combat anymore
    Lunar Gaming - Reaching For The Stars

    [Release] .mall command to port players
  2. #2
    Stabatha's Avatar Contributor
    Reputation
    84
    Join Date
    Dec 2007
    Posts
    345
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by mager1794 View Post
    if(pPlayer->getRace()== 10||pPlayer->getRace()== 2||pPlayer->getRace()== 6|
    |pPlayer->getRace()== 8||pPlayer->getRace()== 5)
    Should use getTeam()== 1) imo.




    [/quote]

    GoblinCity.net -
    Home of the only Cataclysm Twink Server
    Instant Level 49 * Custom Gear * Scripted Raids * Tons More
    We are the oldest private twink server community - Open since 2007

  3. #3
    umriwe's Avatar Active Member
    Reputation
    37
    Join Date
    Feb 2008
    Posts
    42
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cool Man... I can say it's EPIC !!! +Rep From me

  4. #4
    kruz2's Avatar Member
    Reputation
    2
    Join Date
    Mar 2008
    Posts
    29
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    how can i compile it?

  5. #5
    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)
    Problem is, dot commands get intercepted by the chathandler if you're a GM
    And yes, use GetTeam() instead of race.

  6. #6
    Fan Boi's Avatar Member
    Reputation
    5
    Join Date
    Jul 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is a /copy /paste of Spideys Event Commands then modified. Give credits?

  7. #7
    mager1794's Avatar Member
    Reputation
    356
    Join Date
    Feb 2008
    Posts
    703
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok i will give credits to spideys event command for teaching me how to do this but i did not copy and paste nothing

    and i forgot about the get team command lol
    oh and the bypasscombat was his work
    Lunar Gaming - Reaching For The Stars

  8. #8
    Hellgawd's Avatar Member
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fan Boi reminds me alot of SectorSeven...

  9. #9
    Nomada's Avatar Member
    Reputation
    52
    Join Date
    Dec 2007
    Posts
    189
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thaks a lot ^^ +rep

    If U Like It +Rep

  10. #10
    Fan Boi's Avatar Member
    Reputation
    5
    Join Date
    Jul 2008
    Posts
    65
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Hellgawd View Post
    Fan Boi reminds me alot of SectorSeven...
    What if I am?

Similar Threads

  1. [RELEASE] Mall Bouncer
    By mager1794 in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 06-28-2008, 09:21 PM
  2. [Release] Event Commands
    By TheSpidey in forum World of Warcraft Emulator Servers
    Replies: 15
    Last Post: 05-19-2008, 09:05 PM
  3. [Release] Mall!
    By ~ViVo~ in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 04-01-2008, 09:19 PM
  4. [Release / Request] changing client side players name in c++
    By macintox in forum WoW Memory Editing
    Replies: 5
    Last Post: 03-25-2008, 12:51 AM
  5. [Release] Mall template
    By kate1 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 01-13-2008, 10:26 AM
All times are GMT -5. The time now is 01:51 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