Signup Now
Results 1 to 5 of 5
  1. #1
    Free User sines's Avatar
    Join Date
    Nov 2014
    Posts
    32
    Reputation
    10
    Rep Power
    0

    Unhappy Help me with my persistant. Exiva random enemy.

    Hey!

    I'm trying to make my script exiva my selected players from my vip list. But I dont know how to make it to exiva random online player.. Now it will exiva the same player over and over again.

    This is what I made so far:

    Code:
    init start
    
    			local names = {"char1", "char2", "char3"} 
    table.lower(names)
    
    init end 
    
    
    auto(2000) 
    
    
    foreach vipentry n do
    if table.find(names, n.name:lower()) and n.isonline then
     		cast('exiva \"'..n.name) 
    	end 
    end
    
    foreach newmessage m do
     if m.content:match('^(.+) is far to the ?a?n? (.-)%.$') or 
        m.content:match('^(.+) is standing next to ?a?n? (.-)%.$') or 
        m.content:match('^(.+) is to the ?a?n? (.-)%.$') or 
        m.content:match('^(.+) is far to the ?a?n? (.-)%.$') or 
        m.content:match('^(.+) is on a lower level to the ?a?n? (.-)%.$') or 
        m.content:match('^(.+) is on a higher level to the ?a?n? (.-)%.$') then
    move('e')
    	end
    end
    Thanks in advance!

  2. #2
    Wind Powered
    Join Date
    Aug 2017
    Location
    Brazil
    Posts
    1
    Reputation
    10
    Rep Power
    0
    I am trying to understand. What exactly you want the script to do? Exiva one time every player or exiva one and move/walk?

  3. #3
    Free User sines's Avatar
    Join Date
    Nov 2014
    Posts
    32
    Reputation
    10
    Rep Power
    0
    Quote Originally Posted by Whaamat View Post
    I am trying to understand. What exactly you want the script to do? Exiva one time every player or exiva one and move/walk?
    @Whaamat

    the "move('e')" is just for testing. I will leave spawn when a player is near. I want it exiva one of the online players every 2 sec or something like that. And if 2 players is online he will exiva randomly between those two. Understand?

  4. #4
    Free User sines's Avatar
    Join Date
    Nov 2014
    Posts
    32
    Reputation
    10
    Rep Power
    0
    Solved

  5. #5
    Free User
    Join Date
    Sep 2014
    Posts
    43
    Reputation
    19
    Rep Power
    0
    Do You mind sharing Your work?
    I find it quite usefull

 

 

Posting Permissions

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