Register for your free account! | Forgot your password?

You last visited: Today at 16:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Help with skill level

Discussion on Help with skill level within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2009
Posts: 35
Received Thanks: 23
Help with skill level

This is based on 5017 Reunited CO source....
I wanna learn how to specify Skill Level in my if statements. Like for example
PHP Code:
                  if (SkillId==1002)
                                {                  
                                    
MyChar.SkillLooping SkillId;
                                    
MyChar.SkillLoopingX = (ushort)x;
                                    
MyChar.SkillLoopingY = (ushort)y;
                                    
MyChar.SkillLoopingTarget Target;
                                    
MyChar.AtkType 21;
                                    
MyChar.Attack();
                                    
MyChar.Attacking true;
                                    
CurMP-=130;
                                } 
Im trying to code in the magic skills to take mana. And a elementary tornado isnt gonna take 130 mana.
ConquerFreakish is offline  
Old 05/04/2011, 08:53   #2
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,376
No offense but why not simplify the entire thing...

Instead of the SkillLooping, X, Y, Target all being different values... just save the attack packet that is sent from the client and just re-process it through the packet processor every X ms (based on attack speed/attack type... I'd calculate "next attack" in the final attack code you are using.

So in simpler terms..

public byte[] AttackPacket = null;
public DateTime NextAttack = DateTime.Now; //just so it's initialized

On SUCCESSFUL attack set AttackPacket = current packet being processed (you'd need to edit some of your attack methods to accept the actual packet... but it's simple enough to do) and set NextAttack = DateTime.Now.AddMilliseconds(AttackSpeedForSkill/AttackType);

Then in your threading system (per character or however you are doing it) just check if DateTime.Now > MyChar.NextAttack && MyChar.AttackPacket != null

Remember to null out the attack packet on... movement, portal, scroll, death, target killed or out of range...
pro4never is offline  
Reply


Similar Threads Similar Threads
Low level can use high level skill - 100% Work!!! (permanent)
03/05/2011 - Facebook - 53 Replies
Tools: Cheat Engine Firefox Levelbypass Do it 1. Open your Ninja Saga then choose a character then click play 2. Open Your Cheat Engine then target your browser (note: if you are using firefox select plugin-container.exe).
Level 46 Körperkrieger s9 m8 skill...
02/13/2011 - Metin2 Trading - 25 Replies
Verkaufe hiermit meinen Körper krieger auf server9 Legoria...für nur 15 euro paypal.... Der account: Level 46,besitzt einen KG level 12,leider kein eq aber er hat 100kk und paar segis und bonen. SKilzz:aura m1,3wege M8...
STO - increase of skill- and level-cap
02/22/2010 - Gaming News - EN - 0 Replies
The latest issue of "Ask Cryptic" appeared on the website of Star Trek Online. The developersteam answers questions of the community about the skillpoint-cap and if the level-cap should be increased and also about skills for ships and recrutement of bridge-officiers. With a bigger update still this year, the Level-Cap will increase. There will also be a new Respecc-System, that you can earn more skillpoints with and also reorder your skills. Further details on the latest issue "Ask...
How to amke all pets born with level 3 or 4 skill level adn players as well
09/12/2009 - EO PServer Hosting - 4 Replies
Hi i been trying to design Cq_magic to make players and pets learn skills and they will be automaticly level 3 or 4 i tryed chaining the level but it didnt wokr any ideas guys thanks, also whats a libra mount look like



All times are GMT +2. The time now is 16:44.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.