How can I do a dialog with GoodGame like Galerium? A dialog like rank up
(09-11-2018 - 12:21 PM)Citssss Wrote: How can I do a dialog with GoodGame like Galerium? A dialog like rank up
Code:
bool featureBigMPMessge = false;
char* BigMPMessagemgs, BigMPMessagedesc;
void MPMESSAGE(char* msg, char* desc){ featureBigMPMessge = true; BigMPMessagemgs = msg; BigMPMessagedesc = desc; PLAY_SOUND_FRONTEND(-1, "RACE_PLACED", "HUD_AWARDS");}
if (featureBigMPMessge)
{
if (!HAS_SCALEFORM_MOVIE_LOADED(SFBigMPMessage))
SFBigMPMessage = REQUEST_SCALEFORM_MOVIE("MP_BIG_MESSAGE_FREEMODE");//can change
else
{
if (GET_GAME_TIMER() > featureTimeMPMessage) {
featureTimeMPMessage = GET_GAME_TIMER() + 20;
_PUSH_SCALEFORM_MOVIE_FUNCTION(SFBigMPMessage, "SHOW_SHARD_CREW_RANKUP_MP_MESSAGE"); //can change
set_text_component(BigMPMessagemgs);
set_text_component(BigMPMessagedesc);
_POP_SCALEFORM_MOVIE_FUNCTION_VOID();
DRAW_SCALEFORM_MOVIE_FULLSCREEN(SFBigMPMessage, 255, 255, 255, 255);
if (_BigMPMessagetime == 40) {
_PUSH_SCALEFORM_MOVIE_FUNCTION(SFBigMPMessage, "TRANSITION_UP");//can change
_POP_SCALEFORM_MOVIE_FUNCTION_VOID();
SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED(&SFBigMPMessage);
featureBigMPMessge = false;
_BigMPMessagetime = 0;
}
else
_BigMPMessagetime++;
}
}
}
case ..: MPMESSAGE("Title", "Description"); break;
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
(09-11-2018 - 07:02 PM)NoNameV2345 Wrote:(09-11-2018 - 12:21 PM)Citssss Wrote: How can I do a dialog with GoodGame like Galerium? A dialog like rank up
Credits by TheRouletteBoi'sCode:bool featureBigMPMessge = false;
char* BigMPMessagemgs, BigMPMessagedesc;
void MPMESSAGE(char* msg, char* desc){ featureBigMPMessge = true; BigMPMessagemgs = msg; BigMPMessagedesc = desc; PLAY_SOUND_FRONTEND(-1, "RACE_PLACED", "HUD_AWARDS");}
if (featureBigMPMessge)
{
if (!HAS_SCALEFORM_MOVIE_LOADED(SFBigMPMessage))
SFBigMPMessage = REQUEST_SCALEFORM_MOVIE("MP_BIG_MESSAGE_FREEMODE");//can change
else
{
if (GET_GAME_TIMER() > featureTimeMPMessage) {
featureTimeMPMessage = GET_GAME_TIMER() + 20;
_PUSH_SCALEFORM_MOVIE_FUNCTION(SFBigMPMessage, "SHOW_SHARD_CREW_RANKUP_MP_MESSAGE"); //can change
set_text_component(BigMPMessagemgs);
set_text_component(BigMPMessagedesc);
_POP_SCALEFORM_MOVIE_FUNCTION_VOID();
DRAW_SCALEFORM_MOVIE_FULLSCREEN(SFBigMPMessage, 255, 255, 255, 255);
if (_BigMPMessagetime == 40) {
_PUSH_SCALEFORM_MOVIE_FUNCTION(SFBigMPMessage, "TRANSITION_UP");//can change
_POP_SCALEFORM_MOVIE_FUNCTION_VOID();
SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED(&SFBigMPMessage);
featureBigMPMessge = false;
_BigMPMessagetime = 0;
}
else
_BigMPMessagetime++;
}
}
}
case ..: MPMESSAGE("Title", "Description"); break;
DRAW_SCALEFORM_MOVIE_FULLSCREEN
set_text_component
_POP_SCALEFORM_MOVIE_FUNCTION_VOID();
_BigMPMessagetime
SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED
_PUSH_SCALEFORM_MOVIE_FUNCTION
plz...
(09-11-2018 - 09:26 PM)Citssss Wrote:(09-11-2018 - 07:02 PM)NoNameV2345 Wrote:(09-11-2018 - 12:21 PM)Citssss Wrote: How can I do a dialog with GoodGame like Galerium? A dialog like rank up
Credits by TheRouletteBoi'sCode:bool featureBigMPMessge = false;
char* BigMPMessagemgs, BigMPMessagedesc;
void MPMESSAGE(char* msg, char* desc){ featureBigMPMessge = true; BigMPMessagemgs = msg; BigMPMessagedesc = desc; PLAY_SOUND_FRONTEND(-1, "RACE_PLACED", "HUD_AWARDS");}
if (featureBigMPMessge)
{
if (!HAS_SCALEFORM_MOVIE_LOADED(SFBigMPMessage))
SFBigMPMessage = REQUEST_SCALEFORM_MOVIE("MP_BIG_MESSAGE_FREEMODE");//can change
else
{
if (GET_GAME_TIMER() > featureTimeMPMessage) {
featureTimeMPMessage = GET_GAME_TIMER() + 20;
_PUSH_SCALEFORM_MOVIE_FUNCTION(SFBigMPMessage, "SHOW_SHARD_CREW_RANKUP_MP_MESSAGE"); //can change
set_text_component(BigMPMessagemgs);
set_text_component(BigMPMessagedesc);
_POP_SCALEFORM_MOVIE_FUNCTION_VOID();
DRAW_SCALEFORM_MOVIE_FULLSCREEN(SFBigMPMessage, 255, 255, 255, 255);
if (_BigMPMessagetime == 40) {
_PUSH_SCALEFORM_MOVIE_FUNCTION(SFBigMPMessage, "TRANSITION_UP");//can change
_POP_SCALEFORM_MOVIE_FUNCTION_VOID();
SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED(&SFBigMPMessage);
featureBigMPMessge = false;
_BigMPMessagetime = 0;
}
else
_BigMPMessagetime++;
}
}
}
case ..: MPMESSAGE("Title", "Description"); break;
DRAW_SCALEFORM_MOVIE_FULLSCREEN
set_text_component
_POP_SCALEFORM_MOVIE_FUNCTION_VOID();
_BigMPMessagetime
SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED
_PUSH_SCALEFORM_MOVIE_FUNCTION
plz...
Code:
static void DRAW_SCALEFORM_MOVIE_FULLSCREEN(int scaleform, int r, int g, int b, int a) { invoke<Void>(0x7B48E696, scaleform, r, g, b, a); } // 0x7B48E696
static void _POP_SCALEFORM_MOVIE_FUNCTION_VOID() { invoke<Void>(0x02DBF2D7); } // 0x02DBF2D7
static void SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED(int *scaleformHandle) { invoke<Void>(0x5FED3BA1, scaleformHandle); } // 0x5FED3BA1
static BOOL _PUSH_SCALEFORM_MOVIE_FUNCTION(int scaleform, char *functionName) { return invoke<BOOL>(0x215ABBE8, scaleform, functionName); } // 0x633F8C48
int _BigMPMessagetime;
void set_text_component(char *text)
{
GRAPHICS::_0x3AC9CB55("STRING");
UI::_ADD_TEXT_COMPONENT_STRING(text);
GRAPHICS::_0x386CE0B8();
}
This account is currently banned
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
Ban reason: Leeching and Spamming is not allowed, please read the forum Rules upon your return.
(09-11-2018 - 10:52 PM)NoNameV2345 Wrote:Let's share information with me at Discord L1T#6893(09-11-2018 - 09:26 PM)Citssss Wrote:(09-11-2018 - 07:02 PM)NoNameV2345 Wrote:(09-11-2018 - 12:21 PM)Citssss Wrote: How can I do a dialog with GoodGame like Galerium? A dialog like rank up
Credits by TheRouletteBoi'sCode:bool featureBigMPMessge = false;
char* BigMPMessagemgs, BigMPMessagedesc;
void MPMESSAGE(char* msg, char* desc){ featureBigMPMessge = true; BigMPMessagemgs = msg; BigMPMessagedesc = desc; PLAY_SOUND_FRONTEND(-1, "RACE_PLACED", "HUD_AWARDS");}
if (featureBigMPMessge)
{
if (!HAS_SCALEFORM_MOVIE_LOADED(SFBigMPMessage))
SFBigMPMessage = REQUEST_SCALEFORM_MOVIE("MP_BIG_MESSAGE_FREEMODE");//can change
else
{
if (GET_GAME_TIMER() > featureTimeMPMessage) {
featureTimeMPMessage = GET_GAME_TIMER() + 20;
_PUSH_SCALEFORM_MOVIE_FUNCTION(SFBigMPMessage, "SHOW_SHARD_CREW_RANKUP_MP_MESSAGE"); //can change
set_text_component(BigMPMessagemgs);
set_text_component(BigMPMessagedesc);
_POP_SCALEFORM_MOVIE_FUNCTION_VOID();
DRAW_SCALEFORM_MOVIE_FULLSCREEN(SFBigMPMessage, 255, 255, 255, 255);
if (_BigMPMessagetime == 40) {
_PUSH_SCALEFORM_MOVIE_FUNCTION(SFBigMPMessage, "TRANSITION_UP");//can change
_POP_SCALEFORM_MOVIE_FUNCTION_VOID();
SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED(&SFBigMPMessage);
featureBigMPMessge = false;
_BigMPMessagetime = 0;
}
else
_BigMPMessagetime++;
}
}
}
case ..: MPMESSAGE("Title", "Description"); break;
DRAW_SCALEFORM_MOVIE_FULLSCREEN
set_text_component
_POP_SCALEFORM_MOVIE_FUNCTION_VOID();
_BigMPMessagetime
SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED
_PUSH_SCALEFORM_MOVIE_FUNCTION
plz...
Code:static void DRAW_SCALEFORM_MOVIE_FULLSCREEN(int scaleform, int r, int g, int b, int a) { invoke<Void>(0x7B48E696, scaleform, r, g, b, a); } // 0x7B48E696
static void _POP_SCALEFORM_MOVIE_FUNCTION_VOID() { invoke<Void>(0x02DBF2D7); } // 0x02DBF2D7
static void SET_SCALEFORM_MOVIE_AS_NO_LONGER_NEEDED(int *scaleformHandle) { invoke<Void>(0x5FED3BA1, scaleformHandle); } // 0x5FED3BA1
static BOOL _PUSH_SCALEFORM_MOVIE_FUNCTION(int scaleform, char *functionName) { return invoke<BOOL>(0x215ABBE8, scaleform, functionName); } // 0x633F8C48
int _BigMPMessagetime;
void set_text_component(char *text)
{
GRAPHICS::_0x3AC9CB55("STRING");
UI::_ADD_TEXT_COMPONENT_STRING(text);
GRAPHICS::_0x386CE0B8();
}
Users browsing: 9 Guest(s)