Script Help

Join Discord

Chris22

LOMCN Veteran
Veteran
Jun 10, 2009
372
1
45
Any1 help with this plz

[@Login]
#IF
ISADMIN
Checknamelist GM1
#ACT
SENDMSG 1 GameMaster "GM1" is now online.
#IF
ISADMIN
Checknamelist GM2
#ACT
SENDMSG 1 GameMaster "GM2" is now online.
#ELSEACT
break

This does not work any ideas why it supose to do a server shout out of " GM1 is now online" when GM logs in.
 

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
[@login]
#IF
ISADMIN
#ACT

CHANGEMODE 2 1
sendmsg 0 "Hello Administrator, <$USERNAME> is online."
#IF
ISCASTLEMASTER
#ACT
sendmsg 1 "Castle leader <$USERNAME> is online."
 
Upvote 0

Chris22

LOMCN Veteran
Veteran
Jun 10, 2009
372
1
45
[@login]
#IF
ISADMIN
#ACT
CHANGEMODE 2 1
sendmsg 0 "Hello Administrator, <$USERNAME> is online."

put this into Q-funtion still get nothing :S
 
Upvote 0

Chris22

LOMCN Veteran
Veteran
Jun 10, 2009
372
1
45
Hahahaha tis no wonder i knew there was something wrong, ive made countless scripts, kept drawing a blank.

Kinda feel like the guy who called for IT support but forgot to push the power button :laugh:

Cheers bud
 
Upvote 0

Chris22

LOMCN Veteran
Veteran
Jun 10, 2009
372
1
45
While im here is it also possible to do one so that when a GM is killed by a player a server shout will come up saying GM has been killed and will award the player that killed the GM 100k

is this possible if so how would you go about doing it?
 
Upvote 0

Chris22

LOMCN Veteran
Veteran
Jun 10, 2009
372
1
45
A few more im not sure about

[Onmurder]
#IF
ISADMIN
#SAY
Well done you have killed a GM heres 1m
#ACT
GIVEGOLD 1000000
(HOW WOULD I NOW GET THIS TO DO SHOUTOUT SAYING <USername> HAS KILLED A GAMEMASTER)

if thatd even work in q-funtion

and how would you do a gmserver shout that shows the gms name b4 the shout as the one atm witch is @@ just does text without name b4

any ideas thanks :):)
 
Upvote 0

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
[Onmurder]
#IF
ISADMIN
#SAY
Well done you have killed a GM heres 1m
#ACT
GIVEGOLD 1000000
sendmsg 0 "<$USERNAME> has killed a Gm!"
 
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
105
That script woun't work. That will run when you kill someone, but it will check if you, the murderer, are an admin, and if you are it will give you a million gold.

There is no way that i know of to run checks on the victim of a murder.

p
 
Upvote 0

Chris22

LOMCN Veteran
Veteran
Jun 10, 2009
372
1
45
o didnt see you post but anyways what about bottom 1?

It works sort of but the probelm is it dosent work when a norm player kills a GM but when a GM kills a player it does work :S anyway of fixing?

also any ideas about this 1
how would you do a gmserver shout that shows the gms name b4 the shout as the one atm witch is @@ just does text without name b4
 
Upvote 0

ρяєα¢нєя

Unstookie Titled
VIP
Aug 19, 2008
444
23
105
It works sort of but the probelm is it dosent work when a norm player kills a GM but when a GM kills a player it does work :S anyway of fixing?

The reason it works when a GM kills a GM, is as i said, the @onmuder command runs the script for the player that commited the murder, and therefore any checks in that script are going to be run on the murderer not the victim. So it's essentially cheking if the killer is a GM or not.

There is no way to check if the victim is a GM, you'll have to give up on that idea i'm afraid.

p
 
Upvote 0