Mob banish on touch + GMS-like cosmetics + Clear missing names
Fixed erroneous clean slate scroll block on equipments having certain properties. Implemented a log for bought cash items from Cash Shop. Implemented mob's player banish by touch (e. g. used by mobs from the Hypnotize quest). Thoroughly revised stylist/surgeon NPCs, adding several missing GMS-like cosmetic contents. Thoroughly revised String.wz names having missing item content throughout the WZ files. Revised missing name info for several faces throughout the WZ files. Solved a possible deadlock case related with a player vision's spawn object method. Fixed an issue with "Movement allowed only within account" items being given as "Untradeable" by NPCs. Happy Holidays and Great New Year everyone!!!
This commit is contained in:
@@ -20,17 +20,25 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/* Eric
|
||||
Singapore VIP Hair/Color Changer
|
||||
@Author AAron, Cody (FlowsionMS) Forums
|
||||
Singapore VIP Hair/Color Changer
|
||||
@Author AAron, Cody (FlowsionMS) Forums
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var mhair = Array(30110, 30290, 30230, 30260, 30320, 30190, 30240, 30350, 30270, 30180);
|
||||
var fhair = Array(31260, 31090, 31220, 31250, 31140, 31160, 31100, 31120, 31030, 31270, 31810);
|
||||
var mhair_v = Array(30000, 30020, 30110, 30120, 30270, 30290, 30310, 30670, 30840);
|
||||
var fhair_v = Array(31010, 31050, 31110, 31120, 31240, 31250, 31280, 31670, 31810);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
cm.sendSimple("Welcome to the Quick-Hand Hair-Salon!. Do you, by any chance, have #b#t5150033##k or #b#t5151028 ##k? If so, how about letting me take care of your hair? Please what you want to do with it.\r\n#L1#Haircut: #i5150033##t5150033##l\r\n#L2#Dye your hair: #i5151028##t5151028##l");
|
||||
cm.sendSimple("Welcome to the Quick-Hand Hair-Salon!. Do you, by any chance, have #b#t5150033##k or #b#t5151028##k? If so, how about letting me take care of your hair? Please what you want to do with it.\r\n#L1#Haircut: #i5150033##t5150033##l\r\n#L2#Dye your hair: #i5151028##t5151028##l");
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
@@ -42,18 +50,18 @@ function action(mode, type, selection) {
|
||||
beauty = 1;
|
||||
hairnew = Array();
|
||||
if (cm.getPlayer().getGender() == 0)
|
||||
for(var i = 0; i < mhair.length; i++)
|
||||
hairnew.push(mhair[i] + parseInt(cm.getPlayer().getHair()% 10));
|
||||
for(var i = 0; i < mhair_v.length; i++)
|
||||
pushIfItemExists(hairnew, mhair_v[i] + parseInt(cm.getPlayer().getHair()% 10));
|
||||
else
|
||||
for(var i = 0; i < fhair.length; i++)
|
||||
hairnew.push(fhair[i] + parseInt(cm.getPlayer().getHair()% 10));
|
||||
for(var i = 0; i < fhair_v.length; i++)
|
||||
pushIfItemExists(hairnew, fhair_v[i] + parseInt(cm.getPlayer().getHair()% 10));
|
||||
cm.sendStyle("I can completely change the look of your hair. Aren't you ready for a change? With #b#t5150033##k, I'll take care of the rest for you. Choose the style of your liking!", hairnew);
|
||||
} else if (selection == 2) {
|
||||
beauty = 2;
|
||||
haircolor = Array();
|
||||
var current = parseInt(cm.getPlayer().getHair()/10)*10;
|
||||
for(var i = 0; i < 8; i++)
|
||||
haircolor.push(current + i);
|
||||
pushIfItemExists(haircolor, current + i);
|
||||
cm.sendStyle("I can completely change the look of your hair. Aren't you ready for a change? With #b#t5151028##k, I'll take care of the rest. Choose the color of your liking!", haircolor);
|
||||
} else if (status == 2) {
|
||||
if (beauty == 1){
|
||||
|
||||
Reference in New Issue
Block a user