Results 1 to 9 of 9

Thread: cure poison

  1. #1
    iBot User
    Join Date
    May 2012
    Location
    USA
    Posts
    153
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    16
    Rep Power
    5

    cure poison

    can someone help me i need script to cure poison if poison damage is more than 1 and if its 1 do nothing

  2. #2
    iBot User
    Join Date
    May 2012
    Location
    USA
    Posts
    153
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    16
    Rep Power
    5
    anyone?

    ~short

  3. #3
    iBot User
    Join Date
    May 2012
    Location
    USA
    Posts
    153
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    16
    Rep Power
    5
    BUmp
    Bump~

  4. #4
    iBot User
    Join Date
    May 2012
    Location
    USA
    Posts
    153
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    2 Post(s)
    Reputation
    16
    Rep Power
    5
    bump~bump~

  5. #5
    Banned
    Join Date
    May 2012
    Posts
    1,364
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    127
    Rep Power
    0
    no function to see the damage of a poison/curse/etc

  6. #6
    Normal User
    Join Date
    Jun 2012
    Location
    Sweden
    Posts
    1,671
    Mentioned
    18 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    8 Post(s)
    Reputation
    132
    Rep Power
    9
    Try this:
    (Creds to sirmate)
    PHP Code:
    local MESSAGES getnewmessages("Server Log"
    local MESSAGES_QUANTITY MESSAGES.count 

    for INDEX 0MESSAGES_QUANTITY do 
        if (
    poisoned) and ((MESSAGES[MESSAGES_QUANTITY INDEX].text:match("You lose (%w+) hitpoints."))) then 
            
    while (poisoned) do
                
    cast("exana pox"wait(300,500)
                
    updateworld()
            
    end
        end 
    end 
    This should cast exana pox when you you're poisoned and the creature that poisoned you is dead (You get message You lose x hitpoints.[2 or more posion tick])
    Last edited by soder; 10-21-2012 at 07:08 PM.

  7. #7
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    ^ Beat me to it :[

  8. #8
    Normal User
    Join Date
    Oct 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quoted
    0 Post(s)
    Reputation
    12
    Rep Power
    5
    Quote Originally Posted by soder View Post
    Try this:
    (Creds to sirmate)
    PHP Code:
    local MESSAGES getnewmessages("Server Log"
    local MESSAGES_QUANTITY MESSAGES.count 

    for INDEX 0MESSAGES_QUANTITY do 
        if (
    poisoned) and ((MESSAGES[MESSAGES_QUANTITY INDEX].text:match("You lose (%w+) hitpoints."))) then 
            
    while (poisoned) do
                
    cast("exana pox"wait(300,500)
                
    updateworld()
            
    end
        end 
    end 
    This should cast exana pox when you you're poisoned and the creature that poisoned you is dead (You get message You lose x hitpoints.[2 or more posion tick])
    And how to change it for if the poison dmg is more than 15? Thanks

  9. #9
    iBot User pink_panther's Avatar
    Join Date
    May 2012
    Location
    Australia
    Posts
    4,075
    Mentioned
    49 Post(s)
    Tagged
    1 Thread(s)
    Quoted
    178 Post(s)
    Reputation
    309
    Rep Power
    10
    This might work for dmg over 9... I dont fully understand LUA and wildcards... I was pretty sure it was just a +, not sure what the %w is for... I get the (), some scripters just love wrapping everything in brackets.


    PHP Code:
    local MESSAGES getnewmessages("Server Log"
    local MESSAGES_QUANTITY MESSAGES.count 

    for INDEX 0MESSAGES_QUANTITY do 
        if (
    poisoned) and ((MESSAGES[MESSAGES_QUANTITY INDEX].text:match("You lose 1(%w+) hitpoints."))) then 
            
    while (poisoned) do
                
    cast("exana pox"wait(300,500)
                
    updateworld()
            
    end
        end 
    end 

Posting Permissions

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