[Guide]how to make pet sql

07/08/2010 14:44 seraf2#1
sample SQL, the id i used are sample id and might be already in use in your server


i know some will find that hard to understand so now ill go through each bit one by one

cq_action

ok where it writes delete from cq_action where id >= 727440 and id <= 728445; go into your database then go into cq_action then type in the id e.g. 727440-727445, if they are taken/used then search for another id like 727430-727435.

now you have your id all you do is change the id on the rest of the sql so it corresponds.

cq_itemtype

ok this is alot easier so just follow simple steps

  • the red ID's are the pet id, they are given with pet release
  • the green is the pet ID, but just without 10 in front you start with 00

cq_eudemon_rbn_type
ok the next one cq_eudemon_rbn_type is easy all you do is put in the pet id again

  • red ID input your pet ID

cq_grade

  • again replace the red ID for pet ID


cq_monstertype

  • ok blue is the pet ID without 10 in the front
  • e.g. pet ID is 1079122 then blue ID is 79122
  • green is the lookface you need to change that to the pet lookface you are adding



ok i hope this guide helps, have fun on elitepvpers :)
07/08/2010 15:13 DEADP00L#2
Seraf good guide but there is an easier way..excel is your friend trust me
07/08/2010 15:48 zspider#3
nice work but you forgot to change lookface on cq_monstertype
07/08/2010 15:48 PraDevil[ELITE]#4
just getting on people client and make sql? wtf!
07/08/2010 15:52 Nukleuz#5
at least he tried to help
07/08/2010 15:59 PraDevil[ELITE]#6
@nukleus: yes its help people hehe..just wait your client being stolen and u will know what i mean;)
@seraf2: ty for da guide..
07/08/2010 16:08 Nukleuz#7
actually it doest matter .. we all here steal TQ/Netdragon work. did we make the c3/.dds ourself ? i dont think so.. to prevent ur client to be easily rip off.. just make whole long code for the setting so quite hard for newbie to stole it.
07/08/2010 16:29 funhacker#8
As deadpool said excel is awesome for when making any SQL script.

But also with MySQL if you are using ALL fields within a table you do not need to name them all you have to do is write "values" after the table name for example

insert into cq_action
values
(1,2,3,120,0,'Param'),
(2,3,1,120,0,'Param'),
(3,1,2,120,0,'Param');
07/08/2010 16:54 seraf2#9
thanks guys :)

about excel i dont know how to do on excel but ill love to learn.
notpad is easy as well :) just do ctrl H then replace ids with new ids and stuff :)
07/08/2010 18:44 DEADP00L#10
seraf hit me on MsN i will teamview you and show you exactly how to use excel for what you want to do. With excel you can hit ctrl+c then paste it right into the database directly.

[Only registered and activated users can see links. Click Here To Register...]

anyone other than Seraf adds me and i wont be a nice person
07/08/2010 22:44 seraf2#11
bro i tryed to use excel and it is easy XD all you do is drag down codes and ctrl c XD
thanks deadpool and funhacker for the idea and small guide :)
07/09/2010 16:45 T.h.u.n.d.e.r#12
guys sry about this question cuz iam still learning about that ! What about the id action thats i must put in the iteamtype.dat what i mean that how do i know it ?? also this
Code:
"[COLOR="Black"](Egg ID)', '(pet name)', '28', '3000000', '(Egg ID)', '0000', '1', '1', '00', '00000', '(Bag ID)', '0', '0', '30000', '00', '00', '00', '00', '00'),[/COLOR]"
line its mean thats the egg id is the id action while i saw in many sqls for diffrent pets thats the id action diffrent than the egg id ! cuz the proplems thats i get is from the iteamtype.dat i think its the id action point ! any idea about that =/
07/10/2010 14:15 seraf2#13
bro im not to sure what u mean?
07/10/2010 15:31 zspider#14
Quote:
Originally Posted by seraf2 View Post
Code:
insert into cq_action (id,id_next,id_nextfail,type,data,param) 
values 
([COLOR="Red"]728440[/COLOR],728441,728444,508,0,'1 0 52'),
Code:
insert into cq_itemtype (id,name,monopoly,price,id_action,dodge,amount,amount_limit,gem1,hitrate,monster_type,able_mask,exp_type,emoney,official1,official2,official3,official4,official5) 
values
('(Egg ID)',  '(pet name)',   '28', '3000000', '[COLOR="Red"](Action ID)[/COLOR]', '0000', '1', '1', '00', '00000', '(Bag ID)', '0', '0', '30000', '00', '00', '00', '00', '00'),
he mean u must edit ur post and change it to look like this it's action ID not egg ID
07/10/2010 15:48 T.h.u.n.d.e.r#15
thats what i mean :D