[Guide] GM Jail With Out Model Editing menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 21 of 21
  1. #16
    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)
    ok i made it and it compiled fine, not sure about ingame, heres source:
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    //Written By Doublehex
    //Feel free to use if you want
    
    void jail(Player * pPlayer, uint32 Type, uint32 Lang, const char * Message)
        {    
    string jailsend=".jail send";
    
        if(Message == "jailsend") //send to jail
        {
                if(pPlayer->GetSession()->HasGMPermissions())
                {
                pPlayer->GetItemInterface()->RemoveItemAmt(6948, 1);
                   pPlayer->EventTeleport(1, 16237, 16396, 60);
                    pPlayer->BroadcastMessage("Sending to Jail");  
                    }     
        }
    
    string jailremove=".jail remove";
    
        if(Message == "jailremove") // send to chat
        {
                        if(pPlayer->GetSession()->HasGMPermissions())
                        {
                pPlayer->GetItemInterface()->AddItemToFreeSlot(objmgr.CreateItem(6948, pPlayer));
                   pPlayer->EventTeleport(530, -1897.59, 5412.08, -12.4277);   
                    pPlayer->BroadcastMessage("Removing from Jail");     
                        }
        }
    
    }
    void Setupjail(ScriptMgr * mgr)
    {
    mgr->register_hook(SERVER_HOOK_EVENT_ON_CHAT, jail);
    }

    [Guide] GM Jail With Out Model Editing
  2. #17
    Murlock.'s Avatar Knight-Lieutenant
    Reputation
    86
    Join Date
    Oct 2007
    Posts
    271
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by doublehex View Post
    ok i made it and it compiled fine, not sure about ingame, heres source:
    Code:
    #include "StdAfx.h"
    #include "Setup.h"
    
    //Written By Doublehex
    //Feel free to use if you want
    
    void jail(Player * pPlayer, uint32 Type, uint32 Lang, const char * Message)
        {    
    string jailsend=".jail send";
    
        if(Message == "jailsend") //send to jail
        {
                if(pPlayer->GetSession()->HasGMPermissions())
                {
                pPlayer->GetItemInterface()->RemoveItemAmt(6948, 1);
                   pPlayer->EventTeleport(1, 16237, 16396, 60);
                    pPlayer->BroadcastMessage("Sending to Jail");  
                    }     
        }
    
    string jailremove=".jail remove";
    
        if(Message == "jailremove") // send to chat
        {
                        if(pPlayer->GetSession()->HasGMPermissions())
                        {
                pPlayer->GetItemInterface()->AddItemToFreeSlot(objmgr.CreateItem(6948, pPlayer));
                   pPlayer->EventTeleport(530, -1897.59, 5412.08, -12.4277);   
                    pPlayer->BroadcastMessage("Removing from Jail");     
                        }
        }
    
    }
    void Setupjail(ScriptMgr * mgr)
    {
    mgr->register_hook(SERVER_HOOK_EVENT_ON_CHAT, jail);
    }
    Have you tested it?

    I'm no expert at scripting, but I know a bit and it looks pretty solid!
    Last edited by Murlock.; 02-23-2008 at 08:46 PM.

  3. #18
    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)
    no havent tested, hoping someone else would.

  4. #19
    Murlock.'s Avatar Knight-Lieutenant
    Reputation
    86
    Join Date
    Oct 2007
    Posts
    271
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by doublehex View Post
    no havent tested, hoping someone else would.
    Well, if it works good I would love to have that on my server

  5. #20
    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)
    it wont work, ill work on fixing it right now, i found some errors with it, i was tired and was working too fast, ill post an updated one, and hopefully have someone test it for me.

  6. #21
    Murlock.'s Avatar Knight-Lieutenant
    Reputation
    86
    Join Date
    Oct 2007
    Posts
    271
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't mind right now, But next time could you not go off topic on some one else's thread? It's sorta rude

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Need help with my model edit
    By Paketet in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 09-29-2007, 04:44 PM
  2. Bug with my model edit...
    By namas in forum WoW ME Questions and Requests
    Replies: 3
    Last Post: 09-04-2007, 11:36 AM
  3. [GUIDE] yet another How-To model edit for dummies (with abuse) :D
    By Snuggles in forum World of Warcraft Model Editing
    Replies: 35
    Last Post: 05-31-2007, 10:29 AM
  4. So is DBC editing done for good even with the model editing fix?
    By WickedCitizen in forum WoW ME Questions and Requests
    Replies: 2
    Last Post: 04-29-2007, 02:46 PM
  5. Need help with weapon model edit!
    By Chewbbaca in forum WoW ME Questions and Requests
    Replies: 0
    Last Post: 09-20-2006, 07:02 PM
All times are GMT -5. The time now is 02:24 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