• Scheduled Server Maintenance | Friday 6 November

    Our hardware provider has scheduled RAM maintenance to address the recent server instability. Work is expected by 17:00 Central European time.

    Brief downtime or interruptions may occur while the faulty memory modules are replaced. We apologise for the recent disruption and appreciate your patience.


    Special thanks to our sponsor, HyperFilter!

    We keep our community safe. They keep our servers safe. Running your own game servers? Keep them protected with HyperFilter.

[HELP]Teleporter

Experienced Elementalist
Joined
Jun 22, 2007
Messages
276
Reaction score
0
Hey Guys :D ... ok ... im stuck @ a point ... Iv been making portals the .gm way a while and that works successfully ... but now I have so many game object portals ... it fills the place up ... so if any of yall ppl could be so kind as 2 tell me how to make an NPC teleporter ... (e.g. : click on NPC, NPC shows a list of locations :D) that would be very appreciated :D THANX

~MIZUKI~
 
Hmm... was gonna tell you that there are sites for this, and to go search, but...

Have fun, I had to add a bunch of stuff to VC++, but don't ask me what :-)
 
:s ... any way to do this without having to compile your own source :s ... I dont compile :( ... This is how my Game Object teleporters script looks ...

Code:
global tele_sc = function(plr)
{
plr.Teleport(530, -2345.25, 3234.94, 2.98399);
plr.SendSystemMessage("Welcome To The Mall!");
};

.RegisterGameObjectEvent(8000000, 2, tele_sc);


Please HELP me xD ...
There has 2 b a way to do this but make a warp NPC xD ...
 
:s ... any way to do this without having to compile your own source :s ... I dont compile :( ... This is how my Game Object teleporters script looks ...

Code:
global tele_sc = function(plr)
{
plr.Teleport(530, -2345.25, 3234.94, 2.98399);
plr.SendSystemMessage("Welcome To The Mall!");
};

.RegisterGameObjectEvent(8000000, 2, tele_sc);
Please HELP me xD ...
There has 2 b a way to do this but make a warp NPC xD ...
none of this will matter since GM scripts are gone from ascent!! :flag_schw
 
lol ... sorry to inform ya but I have the latest ascent rev and trust me ... theyr there xD ... I use them alot xD ... they'r there for all the attunements asf xD
 
Well ... im of ta bed :p ... GOODNIGHT xD ... cya 2morz ... *COUGH*Hopefully with an answer or guide xD*COUGH COUGH* :p lol
 
Teleporter NPC's have to be set up using dll files, i do not believe it possible to use a .gm script. Also, heres more info for Ascent and .gm commands:

2036: GmScript Removal Stage one.
2056: Removed reloadscripts command.

There gone, if you are using unaltered compiles. However, if you are using ALTERED compiles, then they may still be working.
 
Hehe ... thats GM commands ... im talking about the .gm scripts in the server xD ... they are in the scripts folder in your server file xD
 
OK ... so I have to use DLL ... @ ackhole ... the link u sent just helps a bit xD ... I still need to know how 2 write the actual dll file ... that only sais how 2 compile it can u plzplzplzpzl help me :D ... add me 2 msn please :D
 
Last edited:
Hehe ... I played around and now it works :p !!! Here is the code if ani1 else is interested ... and follow the guide that Ackhole gave to compile the warper ... it works properly

Code:
#include "StdAfx.h"
#include "Setup.h"


class SCRIPT_DECL Warper : public GossipScript
{
public:
    ADD_GOSSIP_FACTORY_FUNCTION(Warper);
    void GossipHello(Creature * pCreature, Player * Plr, bool AutoSend)
    {

	GossipMenu *Menu;
        objmgr.CreateGossipMenuForPlayer(&Menu, pCreature->GetGUID(), 1, Plr);
		Menu->AddItem(0, "Shoping Centre", 1);
		Menu->AddItem(0, "Main City", 2);
       

       if(AutoSend)
            Menu->SendTo(Plr);
    } 

	void GossipSelectOption(Creature* pCreature, Player* Plr, uint32 Id, uint32 IntId)
    {
        GossipMenu * Menu;
        switch(IntId)
        {
		case 1:     // Shoping Centre
                {
                Plr->EventTeleport(1, 9985.907227, 1971.155640, 1326.815674);
            }break;    

        case 2:     // Alliance
                {
                Plr->EventTeleport(530, -248.160004, 922.348999, 84.379799);
            }
            break;

		}
	}
};



			void SetupCustom_Warper(ScriptMgr * mgr)
{
    /* Teleporter List */
    mgr->register_gossip_script(30001, &Warper::Create);  
			}

Hope this helps some1 :D ...

~MIZUKI~
 
Back