Help me make this command

!addcom !dead $(user) $(eval var sayings = [‘Died In a fire.’, ‘Was crushed by a storage container.’, ‘Fell into a pit of poisonous snakes.’, ‘Was flattened by a steam roller.’, ‘Got there head chopped off.’, ‘Survived this time.’, ‘Drowned in a pool.’, ‘Fell of a bridge’, ‘Better not tell you now.’, ‘Bled out from a bullet wound.’, ‘Fell in front of a moving train.’, ‘Died mysteriously.’, ‘Suffocated to death’, ‘Was choked out.’, ‘Ask again later.’, ‘My reply is no.’, ‘Outlook good.’, “Don’t count on it.”]; sayings[ Math.floor(Math.random() * sayings.length) ]:wink: Here is my code for a command I’m working on, I don’t have all the out comes yet but it will not add to the stream, can someone tell me what’s wrong? Please and thanks

It looks like you have a couple of issues here.

  1. If I try to paste your eval portion into the “Message” of a new custom command, it doesn’t fit, it exceeds the 500 maximum character limit, no big deal, just less death messages.

  2. Your quotation marks, single and double are all wrong, they look like they are from a word document or something, they’re not the standard characters, examples:

          ‘ ’ “ ” versus ' "

This is what it should look like, but this exceeds the 500 limit, so just remove some death messages:

!addcom !dead $(user) $(eval var sayings = ['Died In a fire.', 'Was crushed by a storage container.', 'Fell into a pit of poisonous snakes.', 'Was flattened by a steam roller.', 'Got there head chopped off.', 'Survived this time.', 'Drowned in a pool.', 'Fell of a bridge', 'Better not tell you now.', 'Bled out from a bullet wound.', 'Fell in front of a moving train.', 'Died mysteriously.', 'Suffocated to death', 'Was choked out.', 'Ask again later.', 'My reply is no.', 'Outlook good.', "Don't count on it."]; sayings[ Math.floor(Math.random() * sayings.length) ])

I am using custom quote system for it. Check it out [CustomAPI] Quote system
Get Tokens is very easy, just click on
token from 1 string for reading
token from 2 or 3 string for writing
Add your messages to pool WRITE TOKEN &data= TEXT
and that use that code: $(eval
var answer="$(urlfetch READ TOKEN &no_id=1) "
//bla bla using ‘answer’
so ‘answer’ is random message from pool.

or more simple one
$(user), $(urlfetch READ TOKEN &no_id=1)
P.s. U can add some emote in your pool CurseLit MingLee

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.