Danboi Posted September 13, 2007 Share Posted September 13, 2007 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
[UVA]Bart Posted September 14, 2007 Share Posted September 14, 2007 in need of slightly more info lol you mean like a seen script like say todd is the player so !seen todd it would say todd was last seen on day - date - month - time - year Link to comment
Danboi Posted September 14, 2007 Author Share Posted September 14, 2007 yea that is bascially it Link to comment
[UVA]Bart Posted September 14, 2007 Share Posted September 14, 2007 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 Link to comment
SanZoR Posted September 14, 2007 Share Posted September 14, 2007 You took this from PRS Link to comment
[UVA]Bart Posted September 14, 2007 Share Posted September 14, 2007 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
Danboi Posted September 14, 2007 Author Share Posted September 14, 2007 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 Link to comment
[UVA]Bart Posted September 14, 2007 Share Posted September 14, 2007 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
lil Toady Posted September 14, 2007 Share Posted September 14, 2007 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
[UVA]Bart Posted September 14, 2007 Share Posted September 14, 2007 i think this works how you want it to any probs let us know 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
[UVA]Bart Posted September 14, 2007 Share Posted September 14, 2007 will mine work toady ? Link to comment
lil Toady Posted September 14, 2007 Share Posted September 14, 2007 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
[UVA]Bart Posted September 15, 2007 Share Posted September 15, 2007 its suposed to mean that if the playersname is not in $readini(my.ini,lol,playername) my seen command works Link to comment
Danboi Posted September 15, 2007 Author Share Posted September 15, 2007 slr racer thanks for that but its only appearing with my name Link to comment
Danboi Posted September 15, 2007 Author Share Posted September 15, 2007 Toady that is extacly what i wanter thanks mate you good Link to comment
[UVA]Bart Posted September 15, 2007 Share Posted September 15, 2007 ok dude no probs im new lol need a bit more experience Link to comment
Danboi Posted September 15, 2007 Author Share Posted September 15, 2007 still thanks mate keep doing it and practising Link to comment
SanZoR Posted September 15, 2007 Share Posted September 15, 2007 Woot, double post Next time, use edit -button. Link to comment
Recommended Posts