I have tried but not working.Any code write and succesfully worked. Return or relog not clean up blue from avatars.
It would be better to use it only once to fix the problem then use a filter to avoid it on the future. I don't suggest using the procedure all the timeQuote:
It's not a bad idea, but the flaw here is that once someone realises that the procedure is running let's say every 1 hour.. It will be exploitable all the way :D During the time of last and next execution they can still do whatever they want if there are free avatars.
adding automatic ban should fix that problem. (this exploit cant be used by accident so why not ban them?)Quote:
It's not a bad idea, but the flaw here is that once someone realises that the procedure is running let's say every 1 hour.. It will be exploitable all the way :D During the time of last and next execution they can still do whatever they want if there are free avatars.
I released this a long time ago, I know I could have used loop so please be my guest and release one and i wouldn't mind thanking you.Quote:
1st:
Looks like you don't even know how to remove items the correct way. The table _ItemPool is there for a reason (it is used to mark unused items so the gameserver can overwrite them without creating "dead entries")
2nd:
You execute the same sub query like 100 times just changing the column name by +1.
challange for today:
try to reduce the select and update statement to the joymax tables (_Items & _Inventory) to only 1 of each. (TIP: PIVOT)
this shows once again why i can ask for higher prices then random egypts...
adding automatic ban should fix that problem. (this exploit cant be used by accident so why not ban them?)
1st a loop is basically the same slow shit just with less code (i even gave you a TIP, please try to use it)Quote:
I released this a long time ago, I know I could have used loop so please be my guest and release one and i wouldn't mind thanking you.
@OP Updated
IF MagParams IS NOT IN LIST OF MAGPARAMS
INSERT ItemIDs INTO VARIABLE TABLE
LOOP ON VARIABLE TABLE
SET ItemID = 0 IN INVENTORY ItemID ON ID = @COUNTER
DISABLE ITEM WITH ItemID IN _ItemPool
END LOOP ON VARIABLE TABLE
Are we here to talk about the performance of a single query which is going to be executed only once? Man speak of logic please.Quote:
1st a loop is basically the same slow shit just with less code (i even gave you a TIP, please try to use it)
Anyway, to be even more clear this time: IN THIS CASE YOU HAVE TO USE UNPIVOT
now i did all the hard work for you... cmon you can atlease convert this into a working sql query right...?Code:IF MagParams IS NOT IN LIST OF MAGPARAMS INSERT ItemIDs INTO VARIABLE TABLE LOOP ON VARIABLE TABLE SET ItemID = 0 IN INVENTORY ItemID ON ID = @COUNTER DISABLE ITEM WITH ItemID IN _ItemPool END LOOP ON VARIABLE TABLE
2nd why should I release a better version if i could give the challange to you to atlease improvoe the average knowledge in this community a little bit.
"will be executed only once" > you aren't sure if the guy who read it will execute the Query, going to is only used if you are 100% sure.Quote:
Are we here to talk about the performance of a single query which is going to be executed only once? Man speak of logic please.
You're trying way too hard to prove something that's even if proved, will be always useless unless it was used to create something that's worthy of mentioning.
Thank you for the challenge but I'm good the way I am. One challenge for you, is improving your english and good luck with that.