[2.3] Global Chat NPC Problem

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
Can't seem to get this working correctly.
I've added @@sendmsg into QFunction too.

It just doesn't seem to do the actual shouting part of its job.
Can't seem to understand whats wrong

Heres my script;

[@Main]
<WARNING: Spamming will result in a global ban>\ \
Hello there <$USERNAME> im the Global Shout NPC. I allow\
people to use my services to shout a message to everyone\
on the server for a small fee.\
Each message costs 50k in Gold.\ \
<SendMsg/@@sendmsg> \
<Exit/@Exit>\
[@@sendmsg]
#if
checkgold 50000
#act
take gold 50000
SETSENDMSGFLAG
#SAY
Your Message Has Been Sent... \ \
<Back/@main>\
<Exit/@Exit>\
#ElseSay
You dont have enough gold to send a message.....\ \
<Back/@main>


If anyone can clear this up it would be great, cheers
 

TravisW

LOMCN Veteran
Veteran
Sep 4, 2007
737
17
105
At the top of your npc script you need (@@sendmsg) above the [@main] part, and it needs to be in Market_def folder
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
Cheers I managed to get this sorted, nooby mistake of not adding (@@sendmsg) on the actual script its'self. lol ^.^
 
Upvote 0

Madrinha

Dedicated Member
Dedicated Member
Nov 16, 2011
174
6
45
Amstadam
I have the same problem. on my M2Server i get this message

Script Error: SETSENDMSGFLAG line 14

I have the (@@sendmsg) in Qfunction and also at the top of the script.

any idea's? Im running Ruby files.
 
Upvote 0

Tom27

Golden Oldie
Golden Oldie
Sep 15, 2005
1,877
78
185
Norwich
Maybe that SETFLAGSENDMSG isn't compatiable with 2.6 ruby files, just look through the ACT statements for 2.6 and the new command should be pretty close to the older one
 
Upvote 0