Jump to content
  • 0

Creating a new "announce"


Question

Posted (edited)

Even trying to copy the "announce" command, making the changes to leave it just below the old one, changing the X and Y and align positions.
Even after compiling, there is no change in the game.
Anybody know?

const char *mes       = script_getstr(st,2);
    int         flag      = script_getnum(st,3);
    const char *fontColor = script_hasdata(st,4) ? script_getstr(st,4) : NULL;
    int         fontType  = script_hasdata(st,5) ? script_getnum(st,5) : FW_NORMAL; // default fontType
    int         fontSize  = script_hasdata(st,6) ? script_getnum(st,6) : 12;    // default fontSize
    int         fontAlign = script_hasdata(st,7) ? script_getnum(st,7) : 0;     // default fontAlign
    int         fontY     = script_hasdata(st,8) ? script_getnum(st,8) : 0;     // default fontY

doc/scripts_commands.txt

Optional parameters may not work well (or at all) depending on a game client used.

Edited by HD Scripts

4 answers to this question

Recommended Posts

  • 0
Posted

I'm pretty sure i've read somewhere that the location of the broadcast displayed int he client window is hardcoded - you can only use the offset (fontY), but trying to duplicate the command will still use the same packets, so unless you're going to repack your client with new packets to handle this (which is not possible) then you're stuck with the announce code that everyone else has.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...