View Full Version : Killpop for Andrew's/Gen's config running with hudbot?
found this earlier
// KillPop
// by SuperSlug
$slugVersion::KillPop = "final";
function KillPop(%killer, %victim, %weapon)
{
if(%weapon == "Suicide" || %weapon == "Turret")
return;
if(%killer == getManagerID() || %victim == getManagerID())
remoteTP(2048, "<JC><F1>Killer: <F2>" @ CleanName(Client::getName(%killer)) @ "<F1> Victim: <F2>" @ CleanName(Client::getName(%victim)) @ "\n<F1>Weapon: <F2>" @ %weapon, 3);
}
Event::Attach(eventKillTrak, KillPop);
with this as well
function CleanName(%name)
{
%name = String::Replace(%name, ">", "_");
%name = String::Replace(%name, "<", "_");
return %name;
}
but cant seem to get it working
have put it in killpop.cs and have added exec("killpop.cs"); to autoexec but it still doesnt popup :(
please help the codally challenged
where does the second bit go (if anywhere)?
411vm
13-05-2006, 08:16 PM
poor iago. with his inability to code and his over sized testicals.... how's pablo?
Czech
19-05-2006, 10:09 AM
From what i know hudbot aint got anything to do with killpop.cs
:S
Plus in order to launch Event::Attach(eventKillTrak, KillPop); you need to have presto pack.
If you go into the game and load the script through the console instead of the autoexec.cs you'll see that the script actually gives an error along the line of Event::
:) Download presto pack and it should work.
exec("killpop.cs");
Czech
19-05-2006, 10:23 AM
http://img147.imageshack.us/img147/1039/hi8ni.th.jpg (http://img147.imageshack.us/my.php?image=hi8ni.jpg)
Cloud
19-05-2006, 11:21 AM
cze i want that config thanks =]
hmm, cant use presto with andrews config *criesohnoes*
eskimofo
20-05-2006, 01:39 AM
yeah dont use that shit, andrew owns t1 configs. i've got something that works, i have your msn
Hurley
03-06-2006, 09:42 PM
andrew's should have its own events in it iago.
try the script i wrote (modified abit for andrews's) should work as i use it with andrew's full config.
could be a problem since ur using gen's which from memory is only andrew's 15k config or sometihng like that.
*EDIT* eski got to your first
$powda::time = 5; //Change this to change the duration of the popups.
Event::Attach(eventKillTrak, powda::handlekillpop);
function powda::handlekillpop(%killer, %victim, %weapon) {
%me = getManagerID();
%sKiller = Client::getName(%killer);
%sVictim = Client::getName(%victim);
if( %victim == %me && %weapon == "Suicide" ) {
remoteBP(2048, "<JC><F1>ctrl + k", $powda::time);
}
else if( %victim == %me && %weapon == "Teamkill" ) {
remoteBP(2048, "<JC><F1>Teamkilled by <f2>"@%sKiller, $powda::time);
}
else if( %victim == %me && %weapon == "Turret" ) {
remoteBP(2048, "<JC><F1>You were killed by a turret.", $powda::time);
}
else if( %killer == %me && %weapon == "Teamkill" ) {
remoteBP(2048, "<JC><F1>You Teamkilled <F2>"@%sVictim, $powda::time);
}
else if( %victim == %me ) {
remoteBP(2048, "<JC><F2>"@%sKiller@"<F1> killed you with <f2>"@%weapon, $powda::time);
}
else if( %killer == %me ) {
remoteBP(2048, "<JC><F1>You killed <f2>"@%sVictim@"<f1> with your <f2>"@%weapon, $powda::time);
}
else if( %weapon == %debris ) {
remoteBP(2048, "<JC><F1>You were killed by debris.", $powda::time);
}
}
hmm..........does this go in autoexec or in its own .cs?
i can't get it to work in any case and yes i am using gen's
eskimofo
08-06-2006, 07:11 PM
.acs?
Hurley
08-06-2006, 07:38 PM
problem is,
the 15k config (from memory) does not include events,
thus you cant get the killpopup to work ... unless someone writes the events into the script itself,
and im not that good at scripting i dont know how to or i'd do it for you.
If you want to use andrew's full (which is basically Andrew's 15k for afew extra perks) then i can help you via MSN make the transition from 15k to andrew's full as ive editted mine to make the hurley config quite extensivly. Andrew's full also has a nice module system that makes adding/editing/removing scripts a breeze.
colabus or eski may be able to help u write events into the script or for your config ... sorry bud.
try making a new file
in the config folder
"killpopup.acs.cs" <--- paste the script i copyed here and save
then in autoexec add
exec("killpopup.acs.cs");
unelss u already did that and still nogo.
kustom
09-06-2006, 11:14 AM
i suggest you use this config :
http://www.tribin.net/forums/viewtopic.php?t=606&start=0
this is what i use now, same with eski. it's andrews full config edited by eskimofo. It's got everything you need + more. and if you have troubles, i can help, or eski
eskimofo
09-06-2006, 07:59 PM
yeah thats the best config u'll get these days, nice and clean but totaly sick hidden scripts n skins
vBulletin® v3.6.7, Copyright ©2000-2010, Jelsoft Enterprises Ltd.