Hi people. I am trying to do some damage on the screen with only a text in the xdat. But I have a problem that when displaying the message the text goes up until it is no longer visible on the screen, it is seen twice but then it disappears. This is the code I added.
variables
---------
const RECOVERY_MESSAGE_OFFSET = 100;
const MAX_RECOVERY_MESSAGE = 2;
var TextBoxHandle txtRecovery[MAX_RECOVERY_MESSAGE];
OnLoad
------
function OnLoad ()
{
local int temp;
Me = GetWindowHandle("OnScreenDmg");
for (temp = 0; temp < 2; temp++)
{
txtRecovery[temp] = GetTextBoxHandle("OnScreenDmg.txtRecovery" $ temp);
}
}
Timer
-------
function OnTimer(int TimerID){
switch (TimerID)
{
case 101:
txtRecovery[0].SetText("");
Me.KillTimer(TimerID);
sysDebug(string(TimerID));
break;
}
HandleSystemMessage
-------------------
function HandleSystemMessage (string a_Param)
{
local int summonDamage;
local int playerDamage;
local int SystemMsgIndex;
local int Restore;
ParseInt(a_Param,"Index",SystemMsgIndex);
sysDebug(string(SystemMsgIndex));
switch (SystemMsgIndex)
{
if (SystemMsgIndex == 2261 || SystemMsgIndex == 2281 || SystemMsgIndex == 1280 || SystemMsgIndex == 2266 || SystemMsgIndex == 1066)
{
ParseInt(a_Param,"Param3", playerDamage);
ParseInt(a_Param,"Param1",Restore);
}
if (SystemMsgIndex == 1066)
{
targetCount++;
if (targetCount < 5)
{
messagePosition++;
if (messagePosition > 3) messagePosition = 0;
switch (SystemMsgIndex)
{
case 1066: //+hp
txtRecovery[0].GetText() == "";
txtRecovery[0].SetAlpha(255);
txtRecovery[0].SetText(string(Restore));
txtRecovery[0].SetAnchor( "OnScreenMessageExWnd", "BottomCenter", "BottomCenter", -200 + Rand(150), Rand(60) );
txtRecovery[0].ClearAnchor();
txtRecovery[0].Move(0, -1500, 8f);
txtRecovery[0].SetAlpha( 0, 2.8f );
Me.KillTimer(101);
Me.SetTimer(101, 300);
break;
}
}
}
the translation on google is something about discovering a mammoths dick or something
but generally he says that "dick" a lot maybe he likes them
but whats the story behind and what is the truth ..we will never know
Ты настолько смешон, что создал специально для этого левый аккаунт?)))
ты не стоишь даже капли с моего члена что бы я ради тебя писал что-то на анг)
Человек видимо облажался с запуском, слил бабки в помойку теперь с горящей жопой бегает по форуму и не знает кого обвинить))))) перечитай что я тебе написал, мне насрать на тебя на твой сервер и на то что ты там выложил)
это все дерьмо неактуально уже давно, скажу тебе если твоя тупая голова это не поняла, АКТУАЛЬНОЕ НИКТО НЕ ПРОДАЕТ, потому что любая продажа это = шара, все что продается ЭТО ОТЪЕЗЖЕННОЕ ГОВНО которое не нужно хозяину, старое как твои обвисшие от гнева сиськи
Question
barao45
Hi people. I am trying to do some damage on the screen with only a text in the xdat. But I have a problem that when displaying the message the text goes up until it is no longer visible on the screen, it is seen twice but then it disappears. This is the code I added.
variables --------- const RECOVERY_MESSAGE_OFFSET = 100; const MAX_RECOVERY_MESSAGE = 2; var TextBoxHandle txtRecovery[MAX_RECOVERY_MESSAGE]; OnLoad ------ function OnLoad () { local int temp; Me = GetWindowHandle("OnScreenDmg"); for (temp = 0; temp < 2; temp++) { txtRecovery[temp] = GetTextBoxHandle("OnScreenDmg.txtRecovery" $ temp); } } Timer ------- function OnTimer(int TimerID){ switch (TimerID) { case 101: txtRecovery[0].SetText(""); Me.KillTimer(TimerID); sysDebug(string(TimerID)); break; } HandleSystemMessage ------------------- function HandleSystemMessage (string a_Param) { local int summonDamage; local int playerDamage; local int SystemMsgIndex; local int Restore; ParseInt(a_Param,"Index",SystemMsgIndex); sysDebug(string(SystemMsgIndex)); switch (SystemMsgIndex) { if (SystemMsgIndex == 2261 || SystemMsgIndex == 2281 || SystemMsgIndex == 1280 || SystemMsgIndex == 2266 || SystemMsgIndex == 1066) { ParseInt(a_Param,"Param3", playerDamage); ParseInt(a_Param,"Param1",Restore); } if (SystemMsgIndex == 1066) { targetCount++; if (targetCount < 5) { messagePosition++; if (messagePosition > 3) messagePosition = 0; switch (SystemMsgIndex) { case 1066: //+hp txtRecovery[0].GetText() == ""; txtRecovery[0].SetAlpha(255); txtRecovery[0].SetText(string(Restore)); txtRecovery[0].SetAnchor( "OnScreenMessageExWnd", "BottomCenter", "BottomCenter", -200 + Rand(150), Rand(60) ); txtRecovery[0].ClearAnchor(); txtRecovery[0].Move(0, -1500, 8f); txtRecovery[0].SetAlpha( 0, 2.8f ); Me.KillTimer(101); Me.SetTimer(101, 300); break; } } }0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now