Jump to content

Recommended Posts

  • 39 years later...
Posted

hello, I want a help here on how to modify the command. gmlvl in 1 tele for so he can run when not being attacked, for use when being attacked not give to use when being attacked well the command line is this if they can help me how he had been and where it is and how is the command to make the change

comand:

bool ChatHandler: HandleTeleCommand (const char * args)

(

if (* args)

return false;

Player _PLAYER = m_session-> getPlayer ();

/ / Id, or string, or [name] Shift-click form | color | Hoel: id | h [name] | h | r

GameTele const * tele extractGameTeleFromLink = ((char *) args);

if (tele)

(

SendSysMessage (LANG_COMMAND_TELE_NOTFOUND);

SetSentErrorMessage (true);

return false;

)

/ / Stop flight if need

if (_PLAYER-> isInFlight ())

(

_PLAYER-> GetMotionMaster () -> MovementExpired ();

_PLAYER-> m_taxi.ClearTaxiDestinations ();

)

/ / Save only in non-flight case

else

_PLAYER-> SaveRecallPosition ();

_PLAYER-> teleportt (tele-> mapId, tele-> position_x, tele-> position_y, tele-> position_z, tele-> orientation);

return true;

)

where I put the command and control and what that faiz to make it work it

well I'm not very fluent in English plus any doubts ask me

thanks

Posted

im not sure if i understand what you want... you wanna to make .tele unusable in combat? if it is folow >>>

        SetSentErrorMessage(true);
        return false;
    }  
[color=SeaGreen]+    if(_player->isInCombat())  //Combat check
+    {
+        SendSysMessage("Em combate");
+        SetSentErrorMessage(true);
+        return false;
+    }[/color]

    // stop flight if need
    if(_player->isInFlight())

just this.

  • 1 month later...
Posted
Perhaps we can simply copy the code .tele and make a new command which will use a new table (not game_tele).

Bad idea because we should try not to do new useless tables.

Posted
It is better to use the new table than to change the old, which can vary in the future.

We can drop useless columns in any time.

Where you will place the new data? It will not be simple to make a copy well. We have to use data which exists in a dbase.

Posted

Cool... not bad idea about a new game table...

i want add some teles where only GM can go ... i ll looking for more information about this command, new table etc..

new sugestions is welcome! :)

Ty for help.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use