Author Topic: Targeting zombies on freeshard  (Read 3093 times)

0 Members and 1 Guest are viewing this topic.

Offline XanderyumTopic starter

  • Full Member
  • ***
  • Posts: 143
  • Activity:
    0%
  • Reputation Power: 2
  • Xanderyum has no influence.
  • Gender: Male
  • Respect: +9
  • Referrals: 0
    • View Profile
Targeting zombies on freeshard
« on: February 23, 2014, 03:54:42 PM »
0
So, to preface this, the free shard I play on does this zombie event once in awhile.  To play you go to a npc in town double click and the screen fades in and out, and poof your a generic toon in a map full of zombies!  You can attack just by double clicking, but that drops your swing speed to like once every 45 seconds.  Or you can "say" numbers with the "!" in front of them, and you swing your weapon or shoot your bow in that direction.  Thus creating an arcade like feel to the zombie event.  

Example if you look at your number pad that is 3x3 you put your character in the "5" IF a zombie is in your "8" spot you say !8 and your toon swings in that direction.  To start I'd also like to say the easiest way to play this is to set macros in razor for each of the 8 directions you swing in.

BUT!  I'm assuming I could write a script that says to find the zombie and if zombie is x+1 and y to swing in that direction,  basically say the script would "see" the exact spot the zombie was in and find the correct if statement that relates to this......? 8 if statements in total.

Code: [Select]
:First I'd set up the part to tell the script what I'm looking for...ZOMBIES!

Set %zombie "XYZ" :At work so, not too sure on the exact ID of the zombies

Then the script loop would start and It should have a name here right?

The_Kill_Zone :name of the killing loop

Finditem %zombie G_1

IF #findx = #CHARPOSX + 1 || #findy = #CHARPOSY - 1
 {
 msg !7 $
 }

else

IF #findx = #CHARPOSX + 1 || #findy = #CHARPOSY  
 {
 msg !8 $
 }

else

IF #findx = #CHARPOSX + 1 || #findy = #CHARPOSY + 1
 {
 msg !9 $
 }

:and so on for all 8 IF statements..
wait 5 :there is a delay for the weapons each category is differen, So adjust as needed
goto The_Kill_zone



: multiple edits at this point
:is the above statement what I need to find a zombie and swing in the correct direction?

:here is where I get a little unglued, as I haven't really written much in the form of scripts, just altered pre-existing ones.

DONE I think  --->>> How do I tell the script to compare the location of the zombie to me, and if its in one of the 8 squares around me, to speak the correct "!(number)" ?

DONE i think ---->>> I went with the 8 IF statements     I do know I'd need 8 "IF" statments, or a statement with an adjustable variable that is changed each find cycle?  the idea with 8 seperate "IF" statments is easier to wrap my brain around, but more code I believe.

DONE I think --->>>>So after we have found any zombies with in one square of me and swung at them, we need to repeat the process all over again.



DONE  ---->>>Also, I'm pretty sure a small wait is needed after each swing.

Cheers!

Xander
« Last Edit: February 23, 2014, 06:07:13 PM by Xanderyum »

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: Targeting zombies on freeshard
« Reply #1 on: February 23, 2014, 05:45:58 PM »
0
you need to put code blocks around your code. It makes it easier for us to copy and see what we need to for EUO.
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

Offline XanderyumTopic starter

  • Full Member
  • ***
  • Posts: 143
  • Activity:
    0%
  • Reputation Power: 2
  • Xanderyum has no influence.
  • Gender: Male
  • Respect: +9
  • Referrals: 0
    • View Profile
Re: Targeting zombies on freeshard
« Reply #2 on: February 23, 2014, 06:04:10 PM »
0
OH! UHHH How do I do that?
I'll try and mess with this here.

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: Targeting zombies on freeshard
« Reply #3 on: February 25, 2014, 07:20:32 PM »
0
This code will work once you define zombies. However problem is.  !9 is a variable... and so to make it a string you might have to look into that.  I am not sure how to do it.
Code: [Select]
;First I'd set up the part to tell the script what I'm looking for...ZOMBIES!

Set %zombie FO

;Then the script loop would start and It should have a name here right?
;name of the killing loop
The_Kill_Zone:

Finditem %zombie G_1

IF #findx = #CHARPOSX + 1 || #findy = #CHARPOSY - 1
 {
 msg !7 $
 }

else

IF #findx = #CHARPOSX + 1 || #findy = #CHARPOSY  
 {
 msg !8 $
 }

else

IF #findx = #CHARPOSX + 1 || #findy = #CHARPOSY + 1
 {
 msg !9 $
 }

;and so on for all 8 IF statements..
wait 5
;there is a delay for the weapons each category is differen, So adjust as needed
goto The_Kill_zone

[/quote]

« Last Edit: February 25, 2014, 07:25:14 PM by Tidus »
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

Offline XanderyumTopic starter

  • Full Member
  • ***
  • Posts: 143
  • Activity:
    0%
  • Reputation Power: 2
  • Xanderyum has no influence.
  • Gender: Male
  • Respect: +9
  • Referrals: 0
    • View Profile
Re: Targeting zombies on freeshard
« Reply #4 on: February 27, 2014, 03:00:41 PM »
0
Woo Tidus!  Things for your input! I didn't get a chance to try it out, as the event ended before I coud get on, we had family and friends over.  :(  but, the event will happen again.

Cheers!

Tags: