Posts: 473
Threads: 50
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Dec 2011
Reputation:
0
i learn that if you tell me how i do that i have good database only i have few problem with query but thx you for help
UPDATE t_item SET a_price = a_price / 2 WHERE a_level > 96 AND a_flag = 62 work for me but problem i cannt buy items in cash shop
but that work for me
UPDATE t_item SET a_price = a_price *1 WHERE a_level > 96 AND a_flag = 62 that work perfect i know what is problem
Posts: 610
Threads: 13
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jun 2011
Reputation:
0
Try to put the / at different places.
Ex: a_price/ 2
a_price/2
a_price /2
etc
Posts: 473
Threads: 50
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Dec 2011
Reputation:
0
why i past thes in updat in navicat i restart server than i cannt buy itemes from cash shop
OMG LMFAO you need to put a semicolon at the end of every line, add one of these ; to the end
Posts: 393
Threads: 22
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Dec 2011
Reputation:
0
OMG LMFAO you need to put a semicolon at the end of every line, add one of these ; to the end
maybe not only in the end.. maybe alos between /2 and WHERE if it dont work
Posts: 84
Threads: 3
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Feb 2012
Reputation:
0
LOL what? So, you are sayig in the column a_price in t_item instead of the actual cost of the 97+ equippment say its 2000000 you put a_price/2 instead?
Posts: 603
Threads: 73
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Aug 2011
Reputation:
0
hmm i think this looks more how it should i learned sql a ltittle bit
UPDATE t_item SET a_price = a_price / 2 WHERE a_level >"96" AND a_flag = 62;
Posts: 610
Threads: 13
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jun 2011
Reputation:
0
To be honest I only tested the query on phpmyadmin and it worked like a charm.
And Addicted, what I say is that for 97+ items, u have to divide the price by 2 (only in the database). For example, if the current db price is 2,000,000 for an item, then u'll have to set it to 1,000,000. The query will do that for every 97+ items.