ADD FRIEND

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
punkerman
Posts: 15
Joined: 2007-10-01 22:04:36

ADD FRIEND

Post by punkerman »

i need a script that add friends and attack everybody if s/he isnt friend...

is that possible?
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post 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
punkerman
Posts: 15
Joined: 2007-10-01 22:04:36

Post 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?
Scripts Writer
Posts: 2259
Joined: 2005-04-19 18:00:29
Location: Московская область
Contact:

Post by Scripts Writer »

Code: Select all

uo.Attack('laststatus')


don't you see that?
punkerman
Posts: 15
Joined: 2007-10-01 22:04:36

Post by punkerman »

oh sry.. i'll try it.. thanks
Post Reply