Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2009-07-12 (original capture). Home · Forum · All archived topics · Downloads
Warcraft-Source.com - WCS mod for CSS
July 12, 2009, 01:33:37 AM *
Welcome, Guest. Please login or register.
Login with username, password and session length
News: Please obey the rules, to achieve a pleasent order in our community.
Google  
  Home   Forum   Help Search Login Register   *
Pages: 1 [2] 3 4 5   Go Down
  Print  
Current Topic Rating: **** You have not rated this topic. Select a rating:
Author Topic: Scorpion  (Read 3493 times)
Real_Wolf
WCS Supporter
Level 7 Master
*****
Offline Offline

New Zealand New Zealand

Posts: 639


« Reply #15 on: June 19, 2007, 12:15:16 AM »

Original:
"skill4_setting"    "es_xsetinfo wcs_chance 28|es_xsetinfo wcs_chance 33|es_xsetinfo wcs_chance 30|es_xsetinfo wcs_chance 45|es_xsetinfo wcs_chance 50"
    "skill4_cmd"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_userid);es es_xif (server_var(wcs_dice) <= 10) then est_isalive wcs_alive server_var(wcs_userid);est_spawn server_var(wcs_userid);es es_xif (server_var(wcs_rand) <= 10) then est_teleport server_var(wcs_userid) server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1);es es_xif (server_var(wcs_rand) <= 10) then es_xtell server_var(wcs_userid) : teleported."
    "skill4_sfx"        "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 event_var(attacker);es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_userid);es_xmath wcs_z1 + 20;es_xmath wcs_z2 + 20;es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_Effect 3 #a 0 sprites/tp_beam001.vmt server_var(wcs_x1) server_var(wcs_y1) server_var(wcs_z1) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2) 1 2 5 255 151 67 255"
    "ultimate_cooldown" "25"

Revised skill
    "skill4_setting"  "es_xsetinfo wcs_chance 60;es es_xsetinfo wcs_radius 600|etc"
    "skill4_cmd"    "es es_xif (server_var(wcs_dice) <= server_var(wcs_chance)) then est_isalive wcs_alive server_var(wcs_userid);es es_xif (server_var(wcs_alive) = 1) then es_xdoblock wcs/WCSultimates/wcs_ulti_scorpion"
    "skill4_sfx"    "etc"

Ultimates.txt addon:
block wcs_ulti_scorpion
{
  // wcs_userid, and wcs_radius
  es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid)
  es_xsetinfo wcs_counter 0
  es es_xgetplayerteam wcs_team server_var(wcs_userid)
  es_xsetinfo wcs_x 0
  es_xsetinfo wcs_y 0
  es_xsetinfo wcs_z 0
  es_xsetinfo wcs_teleportenemy 0
  // check teams (T=2, CT=3)
  es_xsetinfo wcs_team_target 0
  es es_xif (server_var(wcs_team) = 2) do
  {
    es_xsetinfo wcs_team_target 3
    es_xsetinfo wcs_team_targetn "#c!d"
  }
  es es_xif (server_var(wcs_team) = 3) do
  {
    es_xsetinfo wcs_team_target 2
    es_xsetinfo wcs_team_targetn "#t!d"
  }
  es es_xif (server_var(wcs_team_target) != "0") do
  {
    alias wcs_ulti_scorpion_replace "es es_xsetinfo wcs_x server_var(wcs_x2);es es_xsetinfo wcs_y server_var(wcs_y2);es es_xsetinfo wcs_z server_var(wcs_z2);es es_xsetinfo wcs_targetenemy server_var(wcs_targetid)"
    alias wcs_ulti_scorpion_closest "es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2;es es_xmath wcs_x2 - server_var(wcs_x1);es es_xmath wcs_y2 - sever_var(wcs_y1);es es_xmath wcs_z2 - server_var(wcs_z1);es es_xif (server_var(wcs_x2) < 0) then es_xmath wcs_x * -1;es es_xif (server_var(wcs_y2) < 0) then es_xmath wcs_y * -1;es es_xif (server_var(wcs_z2) < 0) then es_xmath wcs_z * -1;es_xcopy wcs_x3 wcs_x;es_xcopy wcs_y3 wcs_y;es_xcopy wcs_z3 wcs_z;es es_xmath wcs_x3 - server_var(wcs_x2);es es_xmath wcs_y3 - server_var(wcs_y2);es es_xmath wcs_z3 - server_var(wcs_z2);es_xsetinfo wcs_activate 1;es es_xif (server_var(wcs_x3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_y3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_z3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_activate) = 1) then wcs_ulti_scorpion_replace"
    es est_Near wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_userid) "es es_xexists wcs_exists userid server_var(wcs_targetid);es es_xif (server_var(wcs_exists) = 1) then wcs_ulti_scorpion_closest"
    es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_teleportenemy)
    es es_xmath wcs_x1 - server_var(wcs_x2)
    es es_xmath wcs_y1 - server_var(wcs_y2)
    es es_xif (server_var(wcs_x1 >= 0 ) then es_xmath wcs_x2 - 10
    es es_xif (server_var(wcs_y1 >= 0 ) then es_xmath wcs_y2 - 10
    es es_xif (server_var(wcs_x1 < 0 ) then es_xmath wcs_x2 + 10
    es es_xif (server_var(wcs_y1 < 0 ) then es_xmath wcs_y2 + 10
    es ma_teleport server_var(wcs_userid) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2)
    es es_xtell server_var(wcs_userid) #green Ultimate Activated: You were teleported behind the enemy
  }

}


Please note theres alot of coding in there and i could easily have made a mistake.

What that will do, is when you press ultimate, it will find the closest enemy and teleport you behind them. Oh, and wcs_radius is what determines just how far away they can be. Once more, i dunno much about numbers, i just know that 600 is a general low number for wcs_radius
Logged

=|[K|T]|= Real Wolf

HOLLIDAY
<Race Maker>
Moderator
Level 7 Master
*****
Offline Offline

Posts: 2168



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #16 on: June 19, 2007, 02:43:12 AM »

i tryed it out and the ultimate just flashes, dosent seem to do anything
ill run sheck it with the syntax checker
as you said you may have made a mistake

nevermind i forgot the most important line in the ultimate block

block wcs_ulti_scorpion

lol ill try it again
« Last Edit: June 19, 2007, 06:05:34 AM by HOLLIDAY » Logged


HOLLIDAY
<Race Maker>
Moderator
Level 7 Master
*****
Offline Offline

Posts: 2168



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #17 on: June 19, 2007, 06:27:35 AM »

it works good if your within the radius of the enemy
it needs somthing like chain lightning that says somthing like
teleport attack failed because no enemys were close enough

if you use it and there are no enemys close enough it will teleportyou into walls or off the map
Logged


Real_Wolf
WCS Supporter
Level 7 Master
*****
Offline Offline

New Zealand New Zealand

Posts: 639


« Reply #18 on: June 20, 2007, 02:19:16 AM »

lo, well i know how to fix that.

  es es_xif (server_var(wcs_team_target) != "0") do
  {
    alias wcs_ulti_scorpion_replace "es es_xsetinfo wcs_x server_var(wcs_x2);es es_xsetinfo wcs_y server_var(wcs_y2);es es_xsetinfo wcs_z server_var(wcs_z2);es es_xsetinfo wcs_targetenemy server_var(wcs_targetid)"
    alias wcs_ulti_scorpion_closest "es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2;es es_xmath wcs_x2 - server_var(wcs_x1);es es_xmath wcs_y2 - sever_var(wcs_y1);es es_xmath wcs_z2 - server_var(wcs_z1);es es_xif (server_var(wcs_x2) < 0) then es_xmath wcs_x * -1;es es_xif (server_var(wcs_y2) < 0) then es_xmath wcs_y * -1;es es_xif (server_var(wcs_z2) < 0) then es_xmath wcs_z * -1;es_xcopy wcs_x3 wcs_x;es_xcopy wcs_y3 wcs_y;es_xcopy wcs_z3 wcs_z;es es_xmath wcs_x3 - server_var(wcs_x2);es es_xmath wcs_y3 - server_var(wcs_y2);es es_xmath wcs_z3 - server_var(wcs_z2);es_xsetinfo wcs_activate 1;es es_xif (server_var(wcs_x3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_y3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_z3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_activate) = 1) then wcs_ulti_scorpion_replace"
    es est_Near wcs_targetid server_var(wcs_team_targetn) server_var(wcs_radius) server_var(wcs_userid) "es es_xexists wcs_exists userid server_var(wcs_targetid);es es_xif (server_var(wcs_exists) = 1) then wcs_ulti_scorpion_closest"
    es_xsetinfo wcs_activate 0
    es_xif (server_var(wcs_x) != 0) then es_xsetinfo wcs_activate 1
    es_xif (server_var(wcs_y) != 0) then es_xsetinfo wcs_activate 1
    es_xif (server_var(wcs_z) != 0) then es_xsetinfo wcs_activate 1
    es es_xif (server_var(wcs_activate) = 1) do
    {
      es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_teleportenemy)
      es es_xmath wcs_x1 - server_var(wcs_x2)
      es es_xmath wcs_y1 - server_var(wcs_y2)
      es es_xif (server_var(wcs_x1 >= 0 ) then es_xmath wcs_x2 - 10
      es es_xif (server_var(wcs_y1 >= 0 ) then es_xmath wcs_y2 - 10
      es es_xif (server_var(wcs_x1 < 0 ) then es_xmath wcs_x2 + 10
      es es_xif (server_var(wcs_y1 < 0 ) then es_xmath wcs_y2 + 10
      es ma_teleport server_var(wcs_userid) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2)
      es es_xtell server_var(wcs_userid) #green Ultimate Activated: You were teleported behind the enemy
    }
    es es_xif (server_var(wcs_activate) = 0) do
    {
      es est_csay server_var(wcs_userid) "No one within range!"
    }
  }

}

There. Replace from the top bit. in the old one, make sure not to accidentally delete something though. Only from that if statement down is changed
Logged

=|[K|T]|= Real Wolf

HOLLIDAY
<Race Maker>
Moderator
Level 7 Master
*****
Offline Offline

Posts: 2168



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #19 on: June 20, 2007, 11:58:24 AM »

now it always says   no one within range
even when your right next to them
Logged


Real_Wolf
WCS Supporter
Level 7 Master
*****
Offline Offline

New Zealand New Zealand

Posts: 639


« Reply #20 on: June 21, 2007, 01:41:59 AM »

thats werid. As long as the wcs_ulti_scorpion_replace alias is called, it should potentially set wcs_activate to 1.

This is the problem with coding such complex math stuff, i can't understand what my own alias does easily.

However the basics of the problem comes from the absolute error in the first part of the alias.

just before the first es es_xmath in the wcs_ulti_scorpion_closest, change it to this
alias wcs_ulti_scorpion_closest "es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_targetid);es es_xma...etc

As atm its setting those both to 0 so its never working. Also not helping is a few coding errors, and the lack of logic. Needs an absolute value, but the *-1 if < 0 will work i guess. Fixed it up a fair bit now

    alias wcs_ulti_scorpion_closest "es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_targetid);es es_xmath wcs_x2 - server_var(wcs_x1);es es_xmath wcs_y2 - sever_var(wcs_y1);es es_xmath wcs_z2 - server_var(wcs_z1);es es_xif (server_var(wcs_x2) < 0) then es_xmath wcs_x2 * -1;es es_xif (server_var(wcs_y2) < 0) then es_xmath wcs_y2 * -1;es es_xif (server_var(wcs_z2) < 0) then es_xmath wcs_z2 * -1;es_xcopy wcs_x3 wcs_x;es_xcopy wcs_y3 wcs_y;es_xcopy wcs_z3 wcs_z;es es_xif (server_var(wcs_x3) < 0) then es_xmath wcs_x3 * -1;es es_xif (server_var(wcs_y3) < 0) then es_xmath wcs_y3 * -1;es es_xif (server_var(wcs_z3) < 0) then es_xmath wcs_z3 * -1;es es_xmath wcs_x3 - server_var(wcs_x2);es es_xmath wcs_y3 - server_var(wcs_y2);es es_xmath wcs_z3 - server_var(wcs_z2);es_xsetinfo wcs_activate 1;es es_xif (server_var(wcs_x3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_y3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_z3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_activate) = 1) then wcs_ulti_scorpion_replace"


Man thats a massive line. Replace the alias with that and it should work
Logged

=|[K|T]|= Real Wolf

c6464
Guest
« Reply #21 on: June 21, 2007, 07:16:45 AM »

I haven't read this, but if it teleports to enemy closest to you, within radius, thats assume!!! Almost like mole!
Nice skill!
Logged
HOLLIDAY
<Race Maker>
Moderator
Level 7 Master
*****
Offline Offline

Posts: 2168



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #22 on: June 21, 2007, 08:08:22 AM »

i was thinking of takeing somthing from the mole skill.
after i replaced it the server cashed 3 times...
Logged


Real_Wolf
WCS Supporter
Level 7 Master
*****
Offline Offline

New Zealand New Zealand

Posts: 639


« Reply #23 on: June 22, 2007, 10:05:19 PM »

lol, well theres some error somewhere.

Either its too long, or i made another big mistake.

Yup, just checked it, the lines too long.

Gonna have to split it into 2 alias's, i'll do it after my exam on monday
Logged

=|[K|T]|= Real Wolf

HOLLIDAY
<Race Maker>
Moderator
Level 7 Master
*****
Offline Offline

Posts: 2168



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #24 on: June 23, 2007, 12:21:08 AM »

yeah,the line was longer than you can scroll
never new if that was too long,always just tried to keep it one line across
Logged


Real_Wolf
WCS Supporter
Level 7 Master
*****
Offline Offline

New Zealand New Zealand

Posts: 639


« Reply #25 on: June 25, 2007, 09:11:41 AM »

Yeah, i think its 1056 characters max per line.

    alias wcs_ulti_scorpion_absolute  "es es_xif (server_var(wcs_x2) < 0) then es_xmath wcs_x2 * -1;es es_xif (server_var(wcs_y2) < 0) then es_xmath wcs_y2 * -1;es es_xif (server_var(wcs_z2) < 0) then es_xmath wcs_z2 * -1;es_xcopy wcs_x3 wcs_x;es_xcopy wcs_y3 wcs_y;es_xcopy wcs_z3 wcs_z;es es_xif (server_var(wcs_x3) < 0) then es_xmath wcs_x3 * -1;es es_xif (server_var(wcs_y3) < 0) then es_xmath wcs_y3 * -1;es es_xif (server_var(wcs_z3) < 0) then es_xmath wcs_z3 * -1"
    alias wcs_ulti_scorpion_closest "es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_targetid);es es_xmath wcs_x2 - server_var(wcs_x1);es es_xmath wcs_y2 - sever_var(wcs_y1);es es_xmath wcs_z2 - server_var(wcs_z1);wcs_ulti_scorpion_absolute;es es_xmath wcs_x3 - server_var(wcs_x2);es es_xmath wcs_y3 - server_var(wcs_y2);es es_xmath wcs_z3 - server_var(wcs_z2);es_xsetinfo wcs_activate 1;es es_xif (server_var(wcs_x3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_y3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_z3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_activate) = 1) then wcs_ulti_scorpion_replace"


There, split it
Logged

=|[K|T]|= Real Wolf

HOLLIDAY
<Race Maker>
Moderator
Level 7 Master
*****
Offline Offline

Posts: 2168



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #26 on: June 25, 2007, 09:24:26 AM »

so there should be 3 alias's?

so it should look like this?




block wcs_ulti_scorpion
{
  // wcs_userid, and wcs_radius
  es es_xgetplayerlocation wcs_x1 wcs_y1 wcs_z1 server_var(wcs_userid)
  es_xsetinfo wcs_counter 0
  es es_xgetplayerteam wcs_team server_var(wcs_userid)
  es_xsetinfo wcs_x 0
  es_xsetinfo wcs_y 0
  es_xsetinfo wcs_z 0
  es_xsetinfo wcs_teleportenemy 0
  // check teams (T=2, CT=3)
  es_xsetinfo wcs_team_target 0
  es es_xif (server_var(wcs_team) = 2) do
  {
    es_xsetinfo wcs_team_target 3
    es_xsetinfo wcs_team_targetn "#c!d"
  }
  es es_xif (server_var(wcs_team) = 3) do
  {
    es_xsetinfo wcs_team_target 2
    es_xsetinfo wcs_team_targetn "#t!d"
  }
  es es_xif (server_var(wcs_team_target) != "0") do
  {
    alias wcs_ulti_scorpion_replace "es es_xsetinfo wcs_x server_var(wcs_x2);es es_xsetinfo wcs_y server_var(wcs_y2);es es_xsetinfo wcs_z server_var(wcs_z2);es es_xsetinfo wcs_targetenemy server_var(wcs_targetid)"
    alias wcs_ulti_scorpion_absolute  "es es_xif (server_var(wcs_x2) < 0) then es_xmath wcs_x2 * -1;es es_xif (server_var(wcs_y2) < 0) then es_xmath wcs_y2 * -1;es es_xif (server_var(wcs_z2) < 0) then es_xmath wcs_z2 * -1;es_xcopy wcs_x3 wcs_x;es_xcopy wcs_y3 wcs_y;es_xcopy wcs_z3 wcs_z;es es_xif (server_var(wcs_x3) < 0) then es_xmath wcs_x3 * -1;es es_xif (server_var(wcs_y3) < 0) then es_xmath wcs_y3 * -1;es es_xif (server_var(wcs_z3) < 0) then es_xmath wcs_z3 * -1"
    alias wcs_ulti_scorpion_closest "es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_targetid);es es_xmath wcs_x2 - server_var(wcs_x1);es es_xmath wcs_y2 - sever_var(wcs_y1);es es_xmath wcs_z2 - server_var(wcs_z1);wcs_ulti_scorpion_absolute;es es_xmath wcs_x3 - server_var(wcs_x2);es es_xmath wcs_y3 - server_var(wcs_y2);es es_xmath wcs_z3 - server_var(wcs_z2);es_xsetinfo wcs_activate 1;es es_xif (server_var(wcs_x3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_y3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_z3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_activate) = 1) then wcs_ulti_scorpion_replace"

    {
      es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_teleportenemy)
      es es_xmath wcs_x1 - server_var(wcs_x2)
      es es_xmath wcs_y1 - server_var(wcs_y2)
      es es_xif (server_var(wcs_x1 >= 0 ) then es_xmath wcs_x2 - 10
      es es_xif (server_var(wcs_y1 >= 0 ) then es_xmath wcs_y2 - 10
      es es_xif (server_var(wcs_x1 < 0 ) then es_xmath wcs_x2 + 10
      es es_xif (server_var(wcs_y1 < 0 ) then es_xmath wcs_y2 + 10
      es ma_teleport server_var(wcs_userid) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2)
      es es_xtell server_var(wcs_userid) #green Ultimate Activated: You were teleported behind the enemy
    }
    es es_xif (server_var(wcs_activate) = 0) do
    {
      es est_csay server_var(wcs_userid) "No one within range!"
    }





ill try that out
Logged


Real_Wolf
WCS Supporter
Level 7 Master
*****
Offline Offline

New Zealand New Zealand

Posts: 639


« Reply #27 on: June 25, 2007, 09:31:08 AM »

run it through syntax checker first, jst in case.

http://mattie.info/cs/checkscript.asp
Logged

=|[K|T]|= Real Wolf

HOLLIDAY
<Race Maker>
Moderator
Level 7 Master
*****
Offline Offline

Posts: 2168



WWW
Wc3_HOLLIDAY_Wc3
wc3hollidaywc3

myServer 8.2.0.222:27015
(Warning: click connects through Steam)
« Reply #28 on: June 25, 2007, 09:42:15 AM »

Line #30: 1. Missing 1 close parentheses.
Line #31: 2. Missing 1 close parentheses.
Line #32: 3. Missing 1 close parentheses.
Line #33: 4. Missing 1 close parentheses.
5. There are missing or extra brackets in this block:
{ = 5
} = 4
<-----------------> Total Errors = 5 <----------------->


-----------------------------------------------------------------------------
but i dont see them


could it mean this part


 es es_xif (server_var(wcs_x1 >= 0 ) then es_xmath wcs_x2 - 10
      es es_xif (server_var(wcs_y1 >= 0 ) then es_xmath wcs_y2 - 10
      es es_xif (server_var(wcs_x1 < 0 ) then es_xmath wcs_x2 + 10
      es es_xif (server_var(wcs_y1 < 0 ) then es_xmath wcs_y2 + 10
because there are two (( before a )


i tryed it just the way it was and the screen just flashes
it dosent say no one within range anymore,so i think i did somthing wrong
cant figure out what tho
« Last Edit: June 25, 2007, 11:06:08 AM by HOLLIDAY » Logged


RJ2002
Level 0 Beginner

Offline Offline

Germany Germany

Posts: 8



« Reply #29 on: June 26, 2007, 01:02:11 PM »

Quote
es es_xif (server_var(wcs_team_target) != "0") do
{
    alias wcs_ulti_scorpion_replace "es es_xsetinfo wcs_x server_var(wcs_x2);es es_xsetinfo wcs_y server_var(wcs_y2);es es_xsetinfo wcs_z server_var(wcs_z2);es es_xsetinfo wcs_targetenemy server_var(wcs_targetid)"
    alias wcs_ulti_scorpion_absolute  "es es_xif (server_var(wcs_x2) < 0) then es_xmath wcs_x2 * -1;es es_xif (server_var(wcs_y2) < 0) then es_xmath wcs_y2 * -1;es es_xif (server_var(wcs_z2) < 0) then es_xmath wcs_z2 * -1;es_xcopy wcs_x3 wcs_x;es_xcopy wcs_y3 wcs_y;es_xcopy wcs_z3 wcs_z;es es_xif (server_var(wcs_x3) < 0) then es_xmath wcs_x3 * -1;es es_xif (server_var(wcs_y3) < 0) then es_xmath wcs_y3 * -1;es es_xif (server_var(wcs_z3) < 0) then es_xmath wcs_z3 * -1"
    alias wcs_ulti_scorpion_closest "es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_targetid);es es_xmath wcs_x2 - server_var(wcs_x1);es es_xmath wcs_y2 - sever_var(wcs_y1);es es_xmath wcs_z2 - server_var(wcs_z1);wcs_ulti_scorpion_absolute;es es_xmath wcs_x3 - server_var(wcs_x2);es es_xmath wcs_y3 - server_var(wcs_y2);es es_xmath wcs_z3 - server_var(wcs_z2);es_xsetinfo wcs_activate 1;es es_xif (server_var(wcs_x3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_y3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_z3) < 0) then es_xsetinfo wcs_activate 0;es es_xif (server_var(wcs_activate) = 1) then wcs_ulti_scorpion_replace"

    {
es es_xgetplayerlocation wcs_x2 wcs_y2 wcs_z2 server_var(wcs_teleportenemy)
      es es_xmath wcs_x1 - server_var(wcs_x2)
      es es_xmath wcs_y1 - server_var(wcs_y2)
      es es_xif (server_var(wcs_x1 >= 0 ) then es_xmath wcs_x2 - 10
      es es_xif (server_var(wcs_y1 >= 0 ) then es_xmath wcs_y2 - 10
      es es_xif (server_var(wcs_x1 < 0 ) then es_xmath wcs_x2 + 10
      es es_xif (server_var(wcs_y1 < 0 ) then es_xmath wcs_y2 + 10
      es ma_teleport server_var(wcs_userid) server_var(wcs_x2) server_var(wcs_y2) server_var(wcs_z2)
      es es_xtell server_var(wcs_userid) #green Ultimate Activated: You were teleported behind the enemy
    }
    es es_xif (server_var(wcs_activate) = 0) do
    {
      es est_csay server_var(wcs_userid) "No one within range!"
    }
}

The if -> do command misses a bracket. To openings but just one closing. Also the whole Block misses one at the end.
Logged
Pages: 1 [2] 3 4 5   Go Up
  Print  
 
Jump to:  

Last 7 Shouts:
July 11, 2009, 06:57:11 AM
is there anyplace i can get help with maps? ive made a map recently but its crashin css everytime a person trys to load it
July 10, 2009, 02:22:30 PM
go in a forum; go into a topic; down below youll find a reply button
July 10, 2009, 02:15:52 PM
can anyone help me i dont know how to post posts.
July 10, 2009, 02:15:40 PM
sup fellas
July 10, 2009, 01:39:30 PM
dashi619 read pm i send you
July 10, 2009, 12:48:28 PM
help?
July 10, 2009, 10:22:56 AM
ME Tongue
Recent
[Today at 01:23:27 AM]

[July 11, 2009, 11:21:04 PM]

[July 11, 2009, 11:12:14 PM]

[July 11, 2009, 10:51:38 PM]

[July 11, 2009, 10:39:32 PM]

[July 11, 2009, 10:13:01 PM]

[July 11, 2009, 09:25:35 PM]

[July 11, 2009, 09:18:30 PM]

by M.R.
[July 11, 2009, 05:16:58 PM]

[July 11, 2009, 05:05:18 PM]
Theme switch

Powered by MySQL Powered by PHP Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC
TinyPortal v0.9.8 © Bloc
Valid XHTML 1.0! Valid CSS!
Page created in 0.13 seconds with 25 queries.