Jump to content

script help


Danboi

Recommended Posts

ive been asked by phs to make a script

i dont know much but would any body make a script for me

it involves the last player that signed off so like playing a name in an ini file then when you type !last there will be a message that comes up saying this (name) is a death quitter

if someone can make that i would appricate that sooo much

Link to comment

on *:SIGNAL:mta.command: {

if ($3 == !seen) {

var %q = ($mta.nick($1,$2) != $readini(slrSeen.ini,LastSeen,$mta.nick($1,$2)))

var %p = $iif($readini(slrSeen.ini,LastSeen,$mta.nick($1,$2)) == $null,0,$v1)

if (%p == 0) mta.text $1 $mta.nick($1,$2) Has Not Been Seen Before

else {

if (%q != $null) mta.text $1 $mta.nick($1,$2) Was Last Seen At $readini(slrSeen.ini,LastSeen,$mta.nick($1,$2))

}

}

}

on *:SIGNAL:mta.part: {

!writeini -n slrSeen.ini LastSeen $mta.nick($1,$2) $fulldate

}

will that do :lol:

Link to comment
You took this from PRS

grow up you immature little kid this is from prs can you see any comparison

elseif ($3 == !seen) {

%a = $iif((!$4),$mta.nick($1,$2),$4)

if (!$hget(prsseen,%a)) mta.pm $1 $2 ' $+ %a $+ ' Has Never Been Seen Here.

elseif ($mta.nick($1,$prs.getid($1,%a))) mta.text $1 $mta.nick($1,$prs.getid($1,%a)) $+ : Here Since: $gettok($hget(prsseen,$mta.nick($1,$prs.getid($1,%a))),1,32)

else mta.text $1 %a $+ : Last Seen: $hget(prsseen,%a)

}

and this is mine noob

on *:SIGNAL:mta.command: {

if ($3 == !seen) {

var %q = ($mta.nick($1,$2) != $readini(slrSeen.ini,LastSeen,$mta.nick($1,$2)))

var %p = $iif($readini(slrSeen.ini,LastSeen,$mta.nick($1,$2)) == $null,0,$v1)

if (%p == 0) mta.text $1 $mta.nick($1,$2) Has Not Been Seen Before

else {

if (%q != $null) mta.text $1 $mta.nick($1,$2) Was Last Seen At $readini(slrSeen.ini,LastSeen,$mta.nick($1,$2))

}

}

}

on *:SIGNAL:mta.part: {

!writeini -n slrSeen.ini LastSeen $mta.nick($1,$2) $fulldate

}

Link to comment
right is there anyway to convert that so it comes up with no date i just want,so when i type !quit which is stored in the ini file from the server of the people that been on there it picks the name you wants out and says is a death quiter

can you explain it a little more ? so you want it so when you do !quit after a player has quit or when a player rejoines ?

Link to comment

i think he wants it only to store the last player who was on the server (quit it) and show up the name when he types !quit

on *:SIGNAL:mta.part: { 
  set %mta.last $mta.nick($1,$2) 
} 
on *:SIGNAL:mta.command:{ 
  if ($3 == !last) mta.text $1 $iif(%mta.last,$v1 is a death quitter,Nobody has ever quit the server yet.) 
} 
  

Link to comment

i think this works how you want it to any probs let us know :D

on *:SIGNAL:mta.command: {

var %a = ($mta.nick($1,$2) != $readini(slrquitter.ini,deathquiter,$mta.nick($1,%b)))

var %b = $iif((!$4),$2,$iif(($mta.getid($1,$4) == $null),$2,$v1))

if ($3 == !quit) {

if (%a == $null) mta.pm $1 $2 $4 Has Not Been On The Server.

else {

if (%a != $null) mta.text $1 $mta.nick($1,%b) Is A Death Quitter

}

}

}

on *:SIGNAL:mta.part: {

!writeini -n slrquitter.ini deathquiter $mta.nick($1,$2) death quiter

}

Link to comment

erm, no. it's completele wrong.

var %a = ($mta.nick($1,$2) != $readini(slrquitter.ini,deathquiter,$mta.nick($1,%b)))

eh? you set the variable to be a comparison.. that's wrong and you use a %b variable which is undefined (only defined in the next line)

the other code doesn't make sense.

It turns out that you do something like that:

if (%a == $null) mta.pm $1 $2 $4 Has Not Been On The Server.

elseif (%a == $null) mta.text $1 $mta.nick($1,%b) Is A Death Quitter

but uh, comparison is the same in both.. and i have no idea what %a is supposed to return our of your code

Link to comment
  • Recently Browsing   0 members

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