Jump to content
  • 0

Creating a new "announce"


HD Scripts

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  183
  • Reputation:   15
  • Joined:  06/10/12
  • Last Seen:  

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
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  927
  • Reputation:   168
  • Joined:  04/05/13
  • Last Seen:  

Maybe client sides need to change something too.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3123
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  183
  • Reputation:   15
  • Joined:  06/10/12
  • Last Seen:  

@Akkarin Got it.
But even changing fontY doesn't change anything in announce.
It remains in the same position on the screen.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  183
  • Reputation:   15
  • Joined:  06/10/12
  • Last Seen:  

1 hour ago, Start_ said:

Maybe client sides need to change something too.

i'm using 20180620RagexeRE

Link to comment
Share on other sites

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.

×
×
  • Create New...