Register for your free account! | Forgot your password?

You last visited: Today at 01:14

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

Advertisement



{HELP}AUTOEP SYSTEM

Discussion on {HELP}AUTOEP SYSTEM within the EO PServer Hosting forum part of the Eudemons Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2008
Posts: 502
Received Thanks: 145
{HELP}AUTOEP SYSTEM

Ok i have the autoep query by Murtah. Ran it and got a message about duplicate entry for key 1.
Would someone please explain what this means.

Secondly, would someone please explain how i can edit said query to change the rates.

And yes i have used the search function, found several interesting threads about queries. Including the one by SWORD-STALKER.
karnyge is offline  
Old 01/05/2012, 18:35   #2
 
acekill's Avatar
 
elite*gold: 0
Join Date: Mar 2008
Posts: 30
Received Thanks: 18
well the duplicate entry means that there is already another entry in ure db with that id used, so instead of INSERT INTO you could change that to REPLACE and re run the query, whenever i edited the auto ep query i just saved it to desktop and opend it with notepad and found where it shows the awarded eps and changed it to what i wanted it to be, should be in the cq_action of the query
acekill is offline  
Thanks
1 User
Old 01/05/2012, 18:39   #3
 
elite*gold: 0
Join Date: Aug 2008
Posts: 502
Received Thanks: 145
Ah. Thanks, that may well help me a lot lol. Will try that now and get back to you in this thread.



delete from cq_monstertype where id >= 3042 and id <= 3042;

So the error is caused because the number 3042 appears in the above line twice?

And i should remove this second id from each line it happens in? And i mean where id is repeated twice in each line?

So it reads
delete from cq_monstertype where id = 3042

??????
yes or no


Additional- for searchers wanting to alter the autoeps.
Easy route around this issue.
Use the navicat sort option to sort ID ascending. Locate the parameter column for the eps awards. They should be in one block of parameters for the autoep system, (ID1-78 for normal monsters and maybe as high as ID186 dependant on DB). Just change the awarded and message of awarded amounts manually. Took me 10-15 minutes.


ISSUE RESOLVED MYSELF!!
Thanks to Ace for his earlier advice. But i did it the way i mentioned in the additional portion of this post.
karnyge is offline  
Old 01/12/2012, 19:25   #4

 
PowerChaos's Avatar
 
elite*gold: 90
Join Date: Feb 2008
Posts: 1,112
Received Thanks: 642
Quote:
Originally Posted by karnyge
delete from cq_monstertype where id >= 3042 and id <= 3042;
Delete from Table where id is equal or greater then number AND id is equal or Smaller then Number

so you try to delete everything that is above that number AND everything that is below that number at the SAME time ??

so if it is number 1 then it is not above 2 , if it is 3 then it is now below 2 so it give big errors

if you like to delete that number only , then just use this
Code:
delete FROM 'cq_monstertype' WHERE 'id' LIKE '3042'
if you want to delete everything above and below
then use this code in 2 Querry's
Code:
delete FROM 'cq_monstertype' WHERE 'id' > '3042'
delete FROM 'cq_monstertype' WHERE 'id' < '3042'
you can not run both codes at the same time , as AND means that it contains x and x at the same time

like
Code:
delete FROM 'cq_monstertype' WHERE 'id' LIKE '3042' AND 'user' LIKE '%PM%'
the above code will delete id 3042 if it match user a username with pm in it on that row

Greetings From PowerChaos
PowerChaos is offline  
Old 01/12/2012, 21:38   #5
 
elite*gold: 0
Join Date: Aug 2008
Posts: 502
Received Thanks: 145
Power
The line was an excerpt from Murtahs, I hope thats spelled right, query which was causing me a problem. I actually solved the issue in the manner i mentioned in my post prior to your reply.
Thx for the info though.
karnyge is offline  
Reply


Similar Threads Similar Threads
MineCraft-Server 24/7 rate System, nonlag, city and region system
07/05/2011 - Minecraft Server Advertising - 2 Replies
Welcome, our new Server Europe is online and it growth. We are looking for new Members and maybe VIP's who want to build on a realistic City. Everyone could buy Region's or get one for a bit of work. We are a friendly community and so please visit us: Server: mc-craft.eu Website (Livemap): *removed
[PvP Funserver]DAMNED[new PvP System, Burnout System, Classbalancing, ...
06/25/2011 - Flyff PServer Advertising - 75 Replies
http://damned-flyff.com/img/logo.png EXP Rate: 500x Drop Rate: 350x Penya Rate: 1200x Hallo und herzlich Willkommen bei DAMNED-Flyff. DAMNED Flyff ist ein neuer Funserver mit einem komplett neuen PvP System um den Spielern ein atemberaubendes PvP Erlebnis zu ermöglichen.
[Release] Murtah's AutoEP System!
02/04/2011 - EO PServer Guides & Releases - 33 Replies
Hello! I made this AutoEP System up.. Was thinkin someone might like to use it ^^ If you dont like the Amount of EP being Obtained Or have found something wrong with it.. add me to MSN, [email protected] and I can help you :P Edit: I found a Mistake in the Query.. its nothing too bad just the Spelling of a Monsters name was Incorrect XD so go and run this Query =P delete from cq_monstertype where id >= 1020 and id <= 1020; INSERT INTO `cq_monstertype` VALUES ('1020',...
Autoep v2
03/26/2009 - EO PServer Hosting - 12 Replies
I am currently working on an autoep system where you can not kill small mobs when you are big and get ep for it I was wondering if anyone else thought this was a good idea. I am stil tweaking the whole thing but am hopeful so far. :mofo: :mofo: :mofo::mofo:



All times are GMT +1. The time now is 01:15.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.