Signup Now
Results 1 to 5 of 5
  1. #1
    Free User Harvey's Avatar
    Join Date
    Dec 2013
    Location
    Philippines
    Posts
    2,407
    Reputation
    15
    Rep Power
    25

    npcsay, say, depositer

    Is it possible to add optional attempts then pausebot when say. npcsay or within the depositerbank? like if character is spamming etc, you can set the attempts on speaking same word, then pausebot to reduce the risk of getting deleted?


    or is there a variable of last message your character typed?

    Maybe adding a checker of the NPC's reply

    noticed that when character cast spells, it overtypes the depositerbank() when its about to say hi, making that miss can cause spamming of 'balance' till idle. I saw some video that gets deleted for spamming same word on NPC channel


    for the meantime, I turn off healer and other spell casters when withdrawing.

  2. #2
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Yes, but we are not implementing this into the core. If you want to, overwrite say and npcsay, like this:

    _SAY = say
    _LAST = {}

    function say(channel, message)
    if message == nil then
    message = channel
    channel = 'Default'
    end


    if _LAST.message ~= message then
    _LAST.times = 0
    end

    _LAST.times = _LAST.times + 1
    _LAST.message = message

    if _LAST.times > 3 then
    error('Shit, I\'m stuck saying this! Abort mission!')
    end

    _SAY(channel, message)
    end

    function npcsay(message)
    say('NPCs', message)
    end

  3. #3
    Free User Harvey's Avatar
    Join Date
    Dec 2013
    Location
    Philippines
    Posts
    2,407
    Reputation
    15
    Rep Power
    25
    Quote Originally Posted by Raphael View Post
    Yes, but we are not implementing this into the core. If you want to, overwrite say and npcsay, like this:

    _SAY = say
    _LAST = {}

    function say(channel, message)
    if message == nil then
    message = channel
    channel = 'Default'
    end


    if _LAST.message ~= message then
    _LAST.times = 0
    end

    _LAST.times = _LAST.times + 1
    _LAST.message = message

    if _LAST.times > 3 then
    error('Shit, I\'m stuck saying this! Abort mission!')
    end

    _SAY(channel, message)
    end

    function npcsay(message)
    say('NPCs', message)
    end
    hahah ty xD

    but with the depositerbank, should be nice like how resupply works, depositer doesnt have attempts like resupply

  4. #4
    Moderator Raphael's Avatar
    Join Date
    Dec 2013
    Location
    raphseller.com
    Posts
    2,441
    Reputation
    309
    Rep Power
    28
    Quote Originally Posted by Harvey View Post
    hahah ty xD

    but with the depositerbank, should be nice like how resupply works, depositer doesnt have attempts like resupply
    It does if you use the functions above, as it uses them internally.

  5. #5
    Free User Harvey's Avatar
    Join Date
    Dec 2013
    Location
    Philippines
    Posts
    2,407
    Reputation
    15
    Rep Power
    25
    Quote Originally Posted by Raphael View Post
    It does if you use the functions above, as it uses them internally.
    okidokie. thanks raph

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •