Amusing script functions menu

Shout-Out

User Tag List

Results 1 to 5 of 5
  1. #1
    pcrew's Avatar Member
    Reputation
    54
    Join Date
    Jun 2008
    Posts
    88
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Amusing script functions

    Some of the amusing things you can include in your scripts

    Raid warning:
    Code:
    WorldPacket * data = sChatHandler.FillMessageData(CHAT_MSG_RAID_WARNING,0,"MESSAGE",0,0);
    Plr->GetSession()->SendPacket(data);
    delete data;
    Play a movie (cinematic):
    Code:
    Plr->SendTriggerMovie(2);
    Shut the server down:
    Code:
    sMaster.m_ShutdownTimer = 1000;
    sMaster.m_ShutdownEvent = true;
    sMaster.m_restartEvent = false;
    Change player's speed
    Code:
    Plr->SetPlayerSpeed(RUN,100);
    Send a world DB query
    Code:
    //Send a query with result
    QueryResult *result = NULL;
          result = WorldDatabase.Query("SELECT * FROM gameobject_teleports WHERE entry = %ld", this->_gameobject->GetEntry());
          
          //Parse a single line result
          if(result != NULL)
          {        
        Field *fields = result->Fetch();
    
            var1 = fields[1].GetInt32();
            var2 = fields[2].GetFloat();
    
              delete result;
          }
    Last edited by pcrew; 11-21-2009 at 08:48 AM.

    Amusing script functions
  2. #2
    Vision1000's Avatar Member
    Reputation
    104
    Join Date
    Jun 2008
    Posts
    122
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The Query example actually cleared a few things up for me.

    +rep

  3. #3
    d1shes's Avatar Active Member
    Reputation
    52
    Join Date
    Sep 2007
    Posts
    136
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very interesting post, +rep
    (\_(\_(\_/)_/)_/)
    (◣,(◣,(◣_◢),◢),◢)
    (> (> (><) <) <)
    __/_|/_|/_|_\|_\|_\__
    Make My Day

  4. #4
    Kaido Marahu's Avatar Private
    Reputation
    1
    Join Date
    Nov 2009
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks, these actually helped me clear up some script features... The raid warning one is my favorite... Responses from that are quite amusing. 6):

  5. #5
    ScarySheep's Avatar Member
    Reputation
    10
    Join Date
    Oct 2009
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I really like the player speed script function, I will use that in a script. +rep.

Similar Threads

  1. [IDA Script][Mac][4.1] Marking LUA functions
    By Tanaris4 in forum WoW Memory Editing
    Replies: 2
    Last Post: 04-23-2011, 12:37 AM
  2. [Trinity] TrinityChe ore Functions for scripting?
    By Flushie in forum WoW EMU Questions & Requests
    Replies: 1
    Last Post: 06-18-2010, 10:20 PM
  3. [Macro/Script] Swich mining/herbalism search function automaticly!
    By Gash in forum World of Warcraft Guides
    Replies: 5
    Last Post: 08-23-2009, 04:00 AM
  4. [Script Request]Bank and Mailbox function
    By marco1234 in forum WoW EMU Questions & Requests
    Replies: 7
    Last Post: 06-28-2009, 10:00 PM
  5. Replies: 22
    Last Post: 05-29-2008, 03:52 PM
All times are GMT -5. The time now is 11:33 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