Page 1 of 1

ADD FRIEND

Posted: 2008-08-15 03:45:10
by punkerman
i need a script that add friends and attack everybody if s/he isnt friend...

is that possible?

Posted: 2008-08-15 11:01:53
by Scripts Writer
I think that's very difficult, but if u make array with ID and use script, which will compare every element of your array with laststatus ID, and if it's not so ID in your array- attack, or make a msg 'ID found. Friend'

Something like this:

Code: Select all

sub Attack()
 
  DIM Friend[3]
 
  Friend[0]=ID_FirstFriend
  Friend[1]=ID_SecondFriend
  Friend[2]=ID_ThirdFriend

  var i
  for i=0 to 2
    if uo.GetSerial('laststatus')==Friend[i] then
      uo.Say('Hi, friend!')
      wait(100)
    else
      uo.Attack('laststatus')
    end if
  next
end sub

Posted: 2008-08-15 17:47:32
by punkerman
sub Attack()

DIM Friend[3]

Friend[0]=ID_FirstFriend
Friend[1]=ID_SecondFriend
Friend[2]=ID_ThirdFriend

var i
for i=0 to 2
if uo.GetSerial('laststatus')==Friend[i] then
uo.Say('Hi, friend!')
wait(100)
else
uo.Attack('laststatus')
end if
next
end sub


does this script attack?

Posted: 2008-08-15 18:48:07
by Scripts Writer

Code: Select all

uo.Attack('laststatus')


don't you see that?

Posted: 2008-08-17 01:14:18
by punkerman
oh sry.. i'll try it.. thanks