Results 1 to 3 of 3

Thread: There is any function to attack pre-set creature?

  1. #1
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6

    There is any function to attack pre-set creature?

    Any function that i can attack some creature without creating a new monster on targeting?

  2. #2
    Normal User blakw's Avatar
    Join Date
    Mar 2012
    Location
    www.blakw.com
    Posts
    815
    Mentioned
    221 Post(s)
    Tagged
    2 Thread(s)
    Quoted
    345 Post(s)
    Reputation
    462
    Rep Power
    10
    Yes.

    PHP Code:
    attack("cave rat"


    ------------------------------------Latest Releases:------------------------------------
    Vocations:
    Darashia Lions Rock
    Oramond Seacrest Serpents X1

    For a better iBot!

    (◣_◢)

  3. #3
    Focus Group mexicowss's Avatar
    Join Date
    May 2012
    Location
    Brasil
    Posts
    440
    Mentioned
    20 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    59 Post(s)
    Reputation
    128
    Rep Power
    6
    thanks very much blakw
    rep+ for u

    another question
    are u good with string types?
    im trying to create a sdcombo but i need some help.
    PHP Code:
    local lider "Rickrot"
    local presunto "Luri Canibal"
    local msgs getmessages('Server Log')
    local qtd msgs.count-1

    for i=0,qtd do 
        if 
    msgs[qtd].text:find(presunto.." loses (%w+) .+ due to an attack by "..lider) or msgs[qtd].text:find(presunto.." loses (%w+) .+ due to your attack."then
           attack
    (presunto
           
    useitemontarget("sudden death rune"presunto)
        
    end
    end 
    its working but not the way i want
    is it possible to capture the name of attacked player from serverlog and set it into an empty variable?
    that way i'll not need to set attacked name everytime

    thanks in advance

Posting Permissions

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