I am trying to reduce the mob level in a given region by 60% using the following :-
- Code: Select all
UPDATE `mob` SET Level = round(x*.4,0) WHERE 'Region' = 'said region';
UPDATE `mob` SET Level = round(x*.4,0) WHERE 'Region' = 'said region';
Lugus
You can't select mob by zone with this simple query...
you're just linking mob table to zone table using a common regionid, as long as the zone exists all mob in the region will still be updated with your query
You need at least some X, Y boundaries compared to mob position to achieve a zone update, this can be done using a "VIEW" for example...
// in the "ON" Clause
AND M.RegionId = Z.RegionId
Users browsing this forum: No registered users and 1 guest