Elĩţέ Găмέrś™
April 19, 2024, 05:56:33 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to Elite Gamers Community have fun and contribute to the community and be Rewarded.
 
  Home Help Search Arcade Gallery Links Staff List Login Register  

Hercules skill

Pages: [1]
  Print  
Author Topic: Hercules skill  (Read 60 times)
Knightraider
Administrator
New Comer
*

Karma: +105/-0
Posts: 44



View Profile WWW
« on: December 03, 2007, 06:21:05 pm »

This was not made by me but infact Hybrid from HCO so a big thanks goes to him!


Code:
  1115: // Hercules
  begin
   if Lvl > 4 then Exit; // Invalid Spell if Level is higher than 4
   if Attacker.Character.Stamina < 25 then Exit; // check stamina
   if (Attacker.Character.Equipment[ItemPos_Lefthand].ItemID div 1000) <>
      (Attacker.Character.Equipment[ItemPos_Righthand].ItemID div 1000) then
    Exit;
   // above checks if their two weapon-types match

   Attacker.Character.Stamina := Attacker.Character.Stamina - 25;
   // update stamina

   Attacker.SendPacket(StatTypePacket(Attacker.Character.CharacterID, Attacker.Character.Stamina, ST_STAMINA, Attacker.Character.CurrentHP));
  // send new stamina to client

   Targets := TargetsInRange(Attacker, Damage, Lvl+1, DT_PHYSICAL, 0.25);
  // lvl+1 is the range
  // 0.25 is the offset of how much to cut off the damage

   Packet := MAttackPacket(Attacker.Character.CharacterID,
                           X, Y, SpellID, Lvl, Targets);
   Attacker.SendPacket(Packet);
   SendRangePacket(Attacker.Character, MaxViewDistance, MaxViewDistance, Packet);
  // above sends and constructs the packet
   Targets.Free; // dispose of the memory used by 'targets' hashtable
  end;
Report Spam   Logged

Share on Facebook Share on Twitter

Unidentical
Administrator
Known Member
*

Karma: +105/-0
Posts: 69


I have the cape! I am an admin, dont double post!


View Profile WWW
« Reply #1 on: December 03, 2007, 08:27:31 pm »

You notice non of these scripts would proberly work for people all these scripts are to Delphi so yeah but good work..
Report Spam   Logged


Knightraider
Administrator
New Comer
*

Karma: +105/-0
Posts: 44



View Profile WWW
« Reply #2 on: December 03, 2007, 08:31:05 pm »

Never said they were c#, People use delphi as well I have heard rumors theres a source out there

#Knightraider
Report Spam   Logged

Unidentical
Administrator
Known Member
*

Karma: +105/-0
Posts: 69


I have the cape! I am an admin, dont double post!


View Profile WWW
« Reply #3 on: December 03, 2007, 09:01:28 pm »

You reilise this is not really the proper script as hybird as clearly said were u got the spell from

Quote
Ok, For example heres Hercules, // Will be any comments (Comments are on the right of the slashes)
Report Spam   Logged




Pages: [1]
  Print  
 
Jump to:  

Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum

Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy