Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Private Server > SRO PServer Guides & Releases
You last visited: Today at 22:56

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

Advertisement



[Release] Rerward Your Players For Reg. in battle arena

Discussion on [Release] Rerward Your Players For Reg. in battle arena within the SRO PServer Guides & Releases forum part of the SRO Private Server category.

Reply
 
Old 11/10/2015, 15:08   #16


 
​Exo's Avatar
 
elite*gold: 28
Join Date: Aug 2014
Posts: 4,096
Received Thanks: 2,649
First of all, comparing IF/CASE statements is just non sense! Why? IF is used when there's actually a logic behind your cases and you have to first match the cases that are most likely to happen first whilst, CASE is used when you are just returning values. So CASE is not better that IF, they are completely different when it comes to their usages.

Now coming to your last insert statement where you used the case to select the SkillID. You totally missed a default case, which is actually just ****** up!

Every time the case statement won't match any of your cases this query is going to throw an exception since _CharSkill isn't designed to accept NULL values. Performance gg wp!
​Exo is offline  
Old 11/10/2015, 23:16   #17

 
TheRunner's Avatar
 
elite*gold: 50
Join Date: Jan 2015
Posts: 813
Received Thanks: 237
Excellent . Continued do not hear of non- useful people
TheRunner is offline  
Old 11/11/2015, 09:06   #18
 
Eslam Galull's Avatar
 
elite*gold: 85
Join Date: Aug 2010
Posts: 1,278
Received Thanks: 521
Quote:
Originally Posted by ​Exo View Post
First of all, comparing IF/CASE statements is just non sense! Why? IF is used when there's actually a logic behind your cases and you have to first match the cases that are most likely to happen first whilst, CASE is used when you are just returning values. So CASE is not better that IF, they are completely different when it comes to their usages.

Now coming to your last insert statement where you used the case to select the SkillID. You totally missed a default case, which is actually just ****** up!

Every time the case statement won't match any of your cases this query is going to throw an exception since _CharSkill isn't designed to accept NULL values. Performance gg wp!

actually those words completely right i was using if statement but i edit it to catch in case as skipper suggest in frist posts ..
Eslam Galull is offline  
Reply


Similar Threads Similar Threads
Help how to remove Arena Coin from all players
04/20/2015 - Shaiya PServer Development - 6 Replies
Need Query remove arena coin from all player's :confused::confused:
Help how to remove Arena Coin from all players
04/17/2015 - SRO Private Server - 4 Replies
Help how to remove Arena Coin from all players:confused::confused::confused:
SRO-R Battle Arena of Infinity Arena Coins
04/03/2013 - SRO Private Server - 3 Replies
Hi, is there a possible way to make a script for a sro char, in which the char automatically goes to arena of infinity personal dungeon and transforms itself to one of the 2 monsters and kills wave for wave with the 2 skills provided after transforming? And ofc going back to town and doing it over and over again ? is this possible? its a slow way of farming coins sure but its enough for my accessory set =) is this possible in auto it? best regards and thanks in advance for ur reply
2.4 Arena PTR: Teleporting to players
03/01/2008 - WoW Exploits, Hacks, Tools & Macros - 0 Replies
Type /console port and you will port to them. This is currently only on the arena PTR to my knowledge.



All times are GMT +2. The time now is 22:56.


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.