[Release] WarsongGulch Script menu

User Tag List

Page 1 of 3 123 LastLast
Results 1 to 15 of 34
  1. #1
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Release] WarsongGulch Script

    Warsong Gulch Death Fix
    v 1.0
    I have scripted WSG so that if you are in the WSG map, and you die, it teleports you and revives you back at your base.

    Setup.cpp:
    Code:
    /*
    Author: insanesk8123
    Date: 2/17/08
    Purpose: Revive players when they die in WSG
    todo: Get players health to be full when they revive.
    */
    
    #include "StdAfx.h"
    #include "Setup.h"
    
    #ifdef WIN32
    #pragma warning(disable:4305)// warning C4305: 'argument' : truncation from 'double' to 'float'
    #endif
    
    void UnDeath(Player* Plr)
    {
        if (Plr->GetMapId() == 489)
        {
            if (Plr->getRace()== 10||Plr->getRace()== 2||Plr->getRace()== 6||Plr->getRace()== 8||Plr->getRace()== 5)
            {
                Plr->EventTeleport(489,927.775330,1433.976929,345.535797);
                Plr->BroadcastMessage("[Warsong]|cffCC0000 Try not to die again.");
                Plr->SetMovement(MOVE_UNROOT, 1);                                                //horde
                Plr->ResurrectPlayer();
                Plr->CastSpell(Plr,23493,true); //Restoration spell because FullHPMP() isnt workin' here
            }
            else
            {
                Plr->EventTeleport(489,1526.425049,1481.340210,351.998962);
                Plr->BroadcastMessage("[Silverwing]|cffCC0000 Try not to die again.");
                Plr->SetMovement(MOVE_UNROOT, 1);                                             //alliance
                Plr->ResurrectPlayer();
                Plr->CastSpell(Plr,23493,true); //Restoration spell because FullHPMP() isnt workin' here
            }
            
        }
    }
    
    extern "C" SCRIPT_DECL void _exp_script_register(ScriptMgr* mgr)
    {
    mgr->register_hook(SERVER_HOOK_EVENT_ON_DEATH, &UnDeath);
    }
    extern "C" SCRIPT_DECL uint32 _exp_get_version()
    {
        return MAKE_SCRIPT_VERSION(SCRIPTLIB_VERSION_MAJOR, SCRIPTLIB_VERSION_MINOR);
    }
    
    extern "C" SCRIPT_DECL uint32 _exp_get_script_type()
    {
    return SCRIPT_TYPE_MISC;
    }
    #ifdef WIN32
    
    BOOL APIENTRY DllMain( HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved )
    {
        return TRUE;
    }
    
    #endif
    
    Setup.h
    Code:
    void UnDeath(Player* Plr); //yep, thats all
    


    DLL download (compiled with ascent 3.9):
    Filebeam - Free Fast File Hosting

    Got recommendations? Don't be afraid to tell me.
    Last edited by Pragma; 02-18-2008 at 10:30 PM.


    [Release] WarsongGulch Script
  2. #2
    Saedusii's Avatar Contributor
    Reputation
    116
    Join Date
    Nov 2007
    Posts
    457
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Leet man, I would +Rep, but I need to spread.


  3. #3
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    WOWZ thats my comment lol

  4. #4
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LEET +Rep x3
    Gotta spreadz

  5. #5
    V!persting's Avatar Contributor
    Reputation
    250
    Join Date
    Dec 2007
    Posts
    488
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sweet! , gratz. nice work!

  6. #6
    *Alexz*'s Avatar Member
    Reputation
    105
    Join Date
    May 2007
    Posts
    521
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice +rep soo useing for my server =P

  7. #7
    MysterioussouL's Avatar Banned
    Reputation
    339
    Join Date
    Feb 2008
    Posts
    431
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice script , Cool work +Rep x3

  8. #8
    runiker's Avatar Contributor
    Reputation
    105
    Join Date
    Nov 2007
    Posts
    501
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    can u add Plr->CastSpell(Plr,25840,true);
    If i am right that will cast the "full heal"
    spell after rez therefore rezing with full health?

    noob at this but this might work i know my spells lol

  9. #9
    Pragma's Avatar Contributor
    Reputation
    261
    Join Date
    Feb 2007
    Posts
    630
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would but that spell has a 1 second cast time


  10. #10
    Xeneth's Avatar Member
    Reputation
    157
    Join Date
    Oct 2007
    Posts
    534
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have to spread the rep around


  11. #11
    SectorSeven's Avatar Banned
    Reputation
    444
    Join Date
    Oct 2007
    Posts
    1,948
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Once again nice work compiled good

  12. #12
    Troys's Avatar Contributor
    Reputation
    122
    Join Date
    Oct 2006
    Posts
    601
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice can this go in my db im working with to ?
    Pals 4 Life

  13. #13
    Tom_2001's Avatar Member
    Reputation
    177
    Join Date
    Oct 2007
    Posts
    609
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice contribution +rep

  14. #14
    King Shaun's Avatar Member
    Reputation
    419
    Join Date
    Dec 2007
    Posts
    1,305
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is really nice work mate, keep it up and thanks for this!


    Threads of the Week: [Errage] [Blizzard] [Rapidshare]

  15. #15
    marcicompita's Avatar Member
    Reputation
    1
    Join Date
    Dec 2007
    Posts
    52
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I wanna try to compile it by myself I dont know how to compile a file.
    I have Visual C++ 2005 Express Edition and Dev-C++. Can someone link me a guide?
    Sorry 4 OT (and btw + rep to the creator of this great script)

Page 1 of 3 123 LastLast

Similar Threads

  1. [Release] Custom scripts
    By ion564 in forum World of Warcraft Emulator Servers
    Replies: 20
    Last Post: 05-12-2008, 07:02 PM
  2. [Release] Custom Scripted Leveling Road Mobs
    By b!atch in forum World of Warcraft Emulator Servers
    Replies: 7
    Last Post: 04-05-2008, 02:02 PM
  3. [Release] |Custom Scripted Instance| Shadow Lair
    By wurstbr0t in forum World of Warcraft Emulator Servers
    Replies: 18
    Last Post: 03-05-2008, 12:03 PM
  4. [RELEASE]Ascent/script compiles 3710 (latest 2/6/08)
    By vivec45 in forum WoW EMU Guides & Tutorials
    Replies: 0
    Last Post: 02-06-2008, 07:04 AM
  5. [RELEASE] FunServer Script's ( + Level Cap 80-255 )
    By ~SaiLyn~ in forum World of Warcraft Emulator Servers
    Replies: 36
    Last Post: 01-10-2008, 02:44 PM
All times are GMT -5. The time now is 11:59 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