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
.gitignore
vendored
20
.gitignore
vendored
@@ -15,6 +15,14 @@
|
||||
/tools/MapleBossHpBarFetcher/dist/
|
||||
/tools/MapleBossHpBarFetcher/nbproject/
|
||||
|
||||
/tools/MapleCashCosmeticsChecker/build/
|
||||
/tools/MapleCashCosmeticsChecker/dist/
|
||||
/tools/MapleCashCosmeticsChecker/nbproject/
|
||||
|
||||
/tools/MapleCashCosmeticsFetcher/build/
|
||||
/tools/MapleCashCosmeticsFetcher/dist/
|
||||
/tools/MapleCashCosmeticsFetcher/nbproject/
|
||||
|
||||
/tools/MapleCashDropFetcher/build/
|
||||
/tools/MapleCashDropFetcher/dist/
|
||||
/tools/MapleCashDropFetcher/nbproject/
|
||||
@@ -27,9 +35,13 @@
|
||||
/tools/MapleCouponInstaller/dist/
|
||||
/tools/MapleCouponInstaller/nbproject/
|
||||
|
||||
/tools/MapleDojoUpdate/build/
|
||||
/tools/MapleDojoUpdate/dist/
|
||||
/tools/MapleDojoUpdate/nbproject/
|
||||
/tools/MapleDojoUpdater/build/
|
||||
/tools/MapleDojoUpdater/dist/
|
||||
/tools/MapleDojoUpdater/nbproject/
|
||||
|
||||
/tools/MapleEmptyItemWzChecker/build/
|
||||
/tools/MapleEmptyItemWzChecker/dist/
|
||||
/tools/MapleEmptyItemWzChecker/nbproject/
|
||||
|
||||
/tools/MapleEquipmentOmnileveler/build/
|
||||
/tools/MapleEquipmentOmnileveler/dist/
|
||||
@@ -100,4 +112,4 @@
|
||||
/tools/SpiderDropFetcher/nbproject/
|
||||
|
||||
/out
|
||||
*.onetoc2
|
||||
*.onetoc2
|
||||
@@ -12,6 +12,7 @@ Known issues:
|
||||
- If there are multiple bosses that shows HPBar on the map, if a player hits more than one the HPBar may start flickering on the screen.
|
||||
- Sometimes battleship may behave oddly with the enhanced buff system, making the character d/c in certain scenarios.
|
||||
- Dragon Roar doesn't show the stun effect to players.
|
||||
- Snipe will show much higher damage value than actually applicable to the attacker.
|
||||
- Some monster status such as freeze and weapon/magic reflect doesn't behave properly in certain scenarios. Freeze seems to not work on mobs with low OID or are starters from server boot time.
|
||||
- On low-end connections, things such as command summoning a player that is currently logging in (already visible to other players) may cause the player to freeze, consequently freezing the account as well since the server-side disconnection doesn't happen.
|
||||
- Reportedly, there are cases where mob positions fail to sync between player's client-view.
|
||||
|
||||
@@ -1504,4 +1504,30 @@ Corrigido sistema de server messages/boss HP bar não atuando de forma esperada
|
||||
Corrigido um problema com o gerador de code coupons, que levava em consideração hifens ("-") no código do cupom, além de um problema de overflow na data de expiração.
|
||||
|
||||
03 Dezembro 2018,
|
||||
Melhorado desenho do worldmap de Victoria, na região do metro de Kerning.
|
||||
Melhorado desenho do worldmap de Victoria, na região do metro de Kerning.
|
||||
|
||||
07 - 08 Dezembro 2018,
|
||||
Corrigido clean slates não checando limites corretamente, levando a bloqueio de uso de clean slates em itens com certas propriedades.
|
||||
Removido comando ambíguo Mesos.
|
||||
Corrigido limites inválidos no comando SetStat.
|
||||
Implementado log em compra de itens de cash.
|
||||
Implementado retorno ao stage 1 na questline Hypnotize ao tocar em mobs.
|
||||
Implementado diversas novas ferramentas, que auxiliam na busca e processamento de itens cosméticos ainda não catalogados pelos NPCs estilistas/cirurgiões.
|
||||
Implementado e revisado scripts dos NPCs estilistas/cirurgiões, adicionando itens cosméticos ainda não referenciados nos scripts.
|
||||
Nova ferramenta: MapleEmptyItemWzChecker, cuja finalidade é reportar itemids presentes nos arquivos Wz onde faltam registros de nome ou de propriedades.
|
||||
Aplicado nova reformatação nos wzs de itens e strings. Removido possibilidade de itens sem nome ou dados nos arquivos, que poderiam levar potencialmente a quebras no cliente.
|
||||
|
||||
09 - 12 Dezembro 2018,
|
||||
Removido todas as opções de tingimento de cores em todas as cidades com salão de beleza. Agora possui um comportamento GMS-like.
|
||||
Aplicado correções nos nomes das faces em ambos String.wz e handbook.
|
||||
Resolvido um possível caso de deadlock com a interação de spawn de objetos para os jogadores no mapa.
|
||||
Melhorado itens cosméticos dos NPCs estilistas/cirurgiões, garantindo o uso de grande parte dos cosméticos disponíveis na fonte, enquanto seguindo o padrão GMS-like.
|
||||
|
||||
13 - 14 Dezembro 2018,
|
||||
Corrigido possibilidade de mudança de face/cabelo podendo levar jogadores a adquirir itens inexistentes, invariavelmente tornando o personagem inacessível.
|
||||
Corrigido equipamentos labelados como "somente movimentação dentro da conta" sendo incorretamente gerados com a flag de "Untradeable" também.
|
||||
Corrigido comandos que transportam jogadores entre mapas não levando em consideração retorno ao mapa onde estavam antes do transporte, para os casos onde se espera retornar ao mapa anterior (e.g. FM's).
|
||||
|
||||
21 Dezembro 2018,
|
||||
Cosméticos já usados pelo jogador não estão mais disponíveis nos estilistas/cirurgiões.
|
||||
Corrigido alguns itens estéticos não sendo devidamente disponibilizados se jogadores usam algum cosmético de cor não-default.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -55,6 +55,9 @@
|
||||
30102 - Brown Fantasy - (no description)
|
||||
30103 - Green Fantasy - (no description)
|
||||
30104 - Blue-Green Fantasy - (no description)
|
||||
30105 - Blue Fantasy - (no description)
|
||||
30106 - Maroon Fantasy - (no description)
|
||||
30107 - Brown Fantasy - (no description)
|
||||
30110 - Black Fireball - (no description)
|
||||
30111 - Red Fireball - (no description)
|
||||
30112 - Orange Fireball - (no description)
|
||||
@@ -167,14 +170,14 @@
|
||||
30245 - Blue Monkey - (no description)
|
||||
30246 - Purple Monkey - (no description)
|
||||
30247 - Brown Monkey - (no description)
|
||||
30250 - Black Afro - (no description)
|
||||
30251 - Red Afro - (no description)
|
||||
30252 - Orange Afro - (no description)
|
||||
30253 - Blonde Afro - (no description)
|
||||
30254 - Green Afro - (no description)
|
||||
30255 - Blue Afro - (no description)
|
||||
30256 - Purple Afro - (no description)
|
||||
30257 - Brown Afro - (no description)
|
||||
30250 - Black Afro (big) - (no description)
|
||||
30251 - Red Afro (big) - (no description)
|
||||
30252 - Orange Afro (big) - (no description)
|
||||
30253 - Blonde Afro (big) - (no description)
|
||||
30254 - Green Afro (big) - (no description)
|
||||
30255 - Blue Afro (big) - (no description)
|
||||
30256 - Purple Afro (big) - (no description)
|
||||
30257 - Brown Afro (big) - (no description)
|
||||
30260 - Black Metrosexual - (no description)
|
||||
30261 - Red Metrosexual - (no description)
|
||||
30262 - Orange Metrosexual - (no description)
|
||||
@@ -223,14 +226,14 @@
|
||||
30315 - Blue Acorn - (no description)
|
||||
30316 - Purple Acorn - (no description)
|
||||
30317 - Brown Acorn - (no description)
|
||||
30320 - Black Afro - (no description)
|
||||
30321 - Red Afro - (no description)
|
||||
30322 - Orange Afro - (no description)
|
||||
30323 - Blonde Afro - (no description)
|
||||
30324 - Green Afro - (no description)
|
||||
30325 - Blue Afro - (no description)
|
||||
30326 - Purple Afro - (no description)
|
||||
30327 - Brown Afro - (no description)
|
||||
30320 - Black Afro (small) - (no description)
|
||||
30321 - Red Afro (small) - (no description)
|
||||
30322 - Orange Afro (small) - (no description)
|
||||
30323 - Blonde Afro (small) - (no description)
|
||||
30324 - Green Afro (small) - (no description)
|
||||
30325 - Blue Afro (small) - (no description)
|
||||
30326 - Purple Afro (small) - (no description)
|
||||
30327 - Brown Afro (small) - (no description)
|
||||
30330 - Black Cabana Boy - (no description)
|
||||
30331 - Red Cabana Boy - (no description)
|
||||
30332 - Orange Cabana Boy - (no description)
|
||||
@@ -1151,6 +1154,14 @@
|
||||
31655 - Blue Dashing Damsel - (no description)
|
||||
31656 - Purple Dashing Damsel - (no description)
|
||||
31657 - Brown Dashing Damsel - (no description)
|
||||
31660 - Black Tighty Bun - (no description)
|
||||
31661 - Red Tighty Bun - (no description)
|
||||
31662 - Orange Tighty Bun - (no description)
|
||||
31663 - Blonde Tighty Bun - (no description)
|
||||
31664 - Green Tighty Bun - (no description)
|
||||
31665 - Blue Tighty Bun - (no description)
|
||||
31666 - Purple Tighty Bun - (no description)
|
||||
31667 - Brown Tighty Bun - (no description)
|
||||
31670 - Black Grandma ma' - (no description)
|
||||
31671 - Red Grandma ma' - (no description)
|
||||
31672 - Orange Grandma ma' - (no description)
|
||||
@@ -1488,6 +1499,7 @@
|
||||
34056 - Purple Aran Hair - (no description)
|
||||
34057 - Brown Aran Hair - (no description)
|
||||
33100 - Black The Coco - (no description)
|
||||
33101 - Red The Coco - (no description)
|
||||
33102 - Orange The Coco - (no description)
|
||||
33103 - Blond The Coco - (no description)
|
||||
33104 - Green The Coco - (no description)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
2000000 - Red Potion - A potion made out of red herbs.\nRecovers 50 HP.
|
||||
2000000 - Red Potion - A potion made out of red herbs.\nRecovers 50 HP.
|
||||
2000001 - Orange Potion - A concentrated potion made out of red herbs.\nRecovers 150 HP.
|
||||
2000002 - White Potion - A highly-concentrated potion made out of red herbs.\nRecovers 300 HP.
|
||||
2000003 - Blue Potion - A potion made out of blue herbs.\nRecovers 100 MP.
|
||||
|
||||
@@ -106,7 +106,7 @@ function action(mode, type, selection) {
|
||||
if (selectedType != 4)
|
||||
selectedItem = selection;
|
||||
else
|
||||
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1);
|
||||
qty = (selection > 0) ? selection : (selection < 0 ? -selection : 1); // thanks br1337 for showing such a simple exploit with quantity on NPC crafters
|
||||
if (selectedType == 0) { //bow refine
|
||||
var matSet = [[4003001,4000000],[4011001,4003000],[4003001,4000016],[4011001,4021006,4003000],[4011001,4011006,4021003,4021006,4003000],[4011004,4021000,4021004,4003000],[4021008,4011001,4011006,4003000,4000014]];
|
||||
var matQtySet = [[5,30],[1,3],[30,50],[2,2,8],[5,5,3,3,30],[7,6,3,35],[1,10,3,40,50]];
|
||||
|
||||
@@ -21,13 +21,15 @@
|
||||
*/
|
||||
/* Natalie
|
||||
Henesys VIP Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30030, 30020, 30000, 30310, 30330, 30060, 30150, 30410, 30210, 30140, 30120, 30200);
|
||||
var fhair = Array(31050, 31040, 31000, 31150, 31310, 31300, 31160, 31100, 31410, 31030, 31080, 31070);
|
||||
var mhair_v = Array(30060, 30140, 30200, 30210, 30310, 33040, 33100);
|
||||
var fhair_v = Array(31150, 31300, 31350, 31700, 31740, 34050, 34110);
|
||||
var hairnew = Array();
|
||||
|
||||
function start() {
|
||||
@@ -35,6 +37,12 @@ function start() {
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode < 1) {
|
||||
cm.dispose();
|
||||
@@ -47,18 +55,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));
|
||||
if (cm.getPlayer().getGender() == 1)
|
||||
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 totally change up your hairstyle and make it look so good. Why don't you change it up a bit? If you have #b#t5150001##k I'll change it for you. Choose the one to 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 totally change your haircolor and make it look so good. Why don't you change it up a bit? With #b#t51051001##k I'll change it for you. Choose the one to your liking.", haircolor);
|
||||
}
|
||||
} else if (status == 2){
|
||||
|
||||
@@ -21,15 +21,24 @@
|
||||
*/
|
||||
/* Brittany
|
||||
Henesys Random Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30310, 30330, 30060, 30150, 30410, 30210, 30140, 30120, 30200, 30560, 30510, 30610, 30470);
|
||||
var fhair = Array(31150, 31310, 31300, 31160, 31100, 31410, 31030, 31080, 31070, 31610, 31350, 31510, 31740);
|
||||
var mhair_r = Array(30060, 30140, 30200, 30210, 30310, 30610, 33040, 33100);
|
||||
var fhair_r = Array(31070, 31080, 31150, 31300, 31350, 31700, 34050, 34110);
|
||||
var mhair_e = Array(30030, 30140, 30200, 30210, 30310, 30610, 33040, 33100);
|
||||
var fhair_e = Array(31070, 31150, 31300, 31350, 31430, 31700, 34050, 34110);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -48,18 +57,30 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("I'm Brittany the assistant. If you have #b#t5150010##k or #b#t5151000##k by any chance, then how about letting me change your hairdo?\r\n#L1#Haircut: #i5150010##t5150010##l\r\n#L2#Dye your hair: #i5151000##t5151000##l");
|
||||
cm.sendSimple("I'm Brittany the assistant. If you have #b#t5150000##k, #b#t5150010##k or #b#t5151000##k by any chance, then how about letting me change your hairdo?\r\n#L0#Haircut: #i5150000##t5150000##l\r\n#L1#Haircut: #i5150010##t5150010##l\r\n#L2#Dye your hair: #i5151000##t5151000##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
if (selection == 0) {
|
||||
beauty = 3;
|
||||
hairnew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mhair_r.length; i++)
|
||||
pushIfItemExists(hairnew, mhair_r[i] + parseInt(cm.getPlayer().getHair()% 10));
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair_r.length; i++)
|
||||
pushIfItemExists(hairnew, fhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
}
|
||||
cm.sendYesNo("If you use the REG coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that even you didn't think was possible. Are you going to use #b#t5150000##k and really change your hairstyle?");
|
||||
} else if (selection == 1) {
|
||||
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_e.length; i++)
|
||||
pushIfItemExists(hairnew, mhair_e[i] + parseInt(cm.getPlayer().getHair()% 10));
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair.length; i++)
|
||||
hairnew.push(fhair[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
for(var i = 0; i < fhair_e.length; i++)
|
||||
pushIfItemExists(hairnew, fhair_e[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
}
|
||||
cm.sendYesNo("If you use the EXP coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that even you didn't think was possible. Are you going to use #b#t5150010##k and really change your hairstyle?");
|
||||
} else if (selection == 2) {
|
||||
@@ -67,7 +88,7 @@ function action(mode, type, selection) {
|
||||
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.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5151000##k and change it up?");
|
||||
}
|
||||
}
|
||||
@@ -81,8 +102,7 @@ function action(mode, type, selection) {
|
||||
} else {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
||||
}
|
||||
}
|
||||
if (beauty == 2){
|
||||
} else if (beauty == 2){
|
||||
if (cm.haveItem(5151000) == true){
|
||||
cm.gainItem(5151000, -1);
|
||||
cm.setHair(haircolor[Math.floor(Math.random() * haircolor.length)]);
|
||||
@@ -90,8 +110,15 @@ function action(mode, type, selection) {
|
||||
} else {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't dye your hair without it. I'm sorry...");
|
||||
}
|
||||
}
|
||||
if (beauty == 0){
|
||||
} else if (beauty == 3){
|
||||
if (cm.haveItem(5150000) == true){
|
||||
cm.gainItem(5150000, -1);
|
||||
cm.setHair(hairnew[Math.floor(Math.random() * hairnew.length)]);
|
||||
cm.sendOk("Enjoy your new and improved hairstyle!");
|
||||
} else {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
||||
}
|
||||
} else if (beauty == 0){
|
||||
if (selection == 0 && cm.getMeso() >= hairprice) {
|
||||
cm.gainMeso(-hairprice);
|
||||
cm.gainItem(5150010, 1);
|
||||
|
||||
@@ -47,7 +47,7 @@ function action(mode, type, selection) {
|
||||
|
||||
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Well, hello! Welcome to the Henesys Skin-Care! Would you like to have a firm, tight, healthy looking skin like mine? With a #b#t5153000##k, you can let us take care of the rest and have the kind of skin you've always wanted~!\r\n#L1#I already have a Coupon!#l");
|
||||
cm.sendSimple("Well, hello! Welcome to the Henesys Skin-Care! Would you like to have a firm, tight, healthy looking skin like mine? With a #b#t5153000##k, you can let us take care of the rest and have the kind of skin you've always wanted~!\r\n#L1#Skin Care: #i5153000##t5153000##l");
|
||||
}
|
||||
else if (status == 1) {
|
||||
if (cm.haveItem(5153000)){
|
||||
|
||||
@@ -23,13 +23,25 @@
|
||||
NPC Name: Big Headward
|
||||
Map(s): Victoria Road : Henesys Hair Salon (100000104)
|
||||
Description: Random haircut
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
|
||||
var status = 0;
|
||||
var mhair = Array(30100, 30850, 30890);
|
||||
var fhair = Array(31180, 31420, 31870, 31400, 31880, 31820, 31860, 31420, 31940, 34000, 31890);
|
||||
|
||||
var mhair_r = Array(30010, 30070, 30080, 30090, 30100, 30690, 30760, 33000);
|
||||
var fhair_r = Array(31130, 31530, 31820, 31920, 31940, 34000, 34030);
|
||||
|
||||
var mhair_v = Array(30010, 30070, 30080, 30090, 30100, 30480, 30560, 30690, 30760, 30850, 30890, 30930, 30950);
|
||||
var fhair_v = Array(31020, 31130, 31510, 31530, 31820, 31860, 31890, 31920, 31940, 31950, 34000);
|
||||
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -50,29 +62,57 @@ function action(mode, type, selection) {
|
||||
status--;
|
||||
|
||||
if (status == 0) {
|
||||
cm.sendSimple("If you use this regular coupon, your hair may transform into a random new look...do you still want to do it using #b#t5150040##k, I will do it anyways for you. But don't forget, it will be random!\r\n\#L2#OK! (Uses #i5150040# #t5150040#)#l");
|
||||
cm.sendSimple("Hi, I'm #p1012117#, the most charming and stylish stylist around. If you're looking for the best looking hairdos around, look no further!\r\n\#L0##i5150040##t5150040##l\r\n\#L1##i5150044##t5150044##l");
|
||||
} else if (status == 1) {
|
||||
cm.sendYesNo("If you use the EXP coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that even you didn't think was possible. Are you going to use #b#t5150040##k and really change your hairstyle?");
|
||||
}
|
||||
else if (status == 2) {
|
||||
if (cm.haveItem(5150040) == true){
|
||||
if (selection == 0) {
|
||||
beauty = 1;
|
||||
cm.sendYesNo("If you use this REGULAR coupon, your hair may transform into a random new look...do you still want to do it using #b#t5150040##k, I will do it anyways for you. But don't forget, it will be random!");
|
||||
} else {
|
||||
beauty = 2;
|
||||
|
||||
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.gainItem(5150040, -1);
|
||||
cm.setHair(hairnew[Math.floor(Math.random() * hairnew.length)]);
|
||||
cm.sendOk("Enjoy your new and improved hairstyle!");
|
||||
} else {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
||||
cm.sendStyle("Using the SPECIAL coupon you can choose the style your hair will become. Pick the style that best provides you delight...", hairnew);
|
||||
}
|
||||
} else if (status == 2) {
|
||||
if (beauty == 1) {
|
||||
if (cm.haveItem(5150040) == true){
|
||||
hairnew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mhair_r.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
}
|
||||
}
|
||||
else {
|
||||
for(var i = 0; i < fhair_r.length; i++) {
|
||||
pushIfItemExists(hairnew, fhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
}
|
||||
}
|
||||
|
||||
cm.gainItem(5150040, -1);
|
||||
cm.setHair(hairnew[Math.floor(Math.random() * hairnew.length)]);
|
||||
cm.sendOk("Enjoy your new and improved hairstyle!");
|
||||
} else {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
||||
}
|
||||
} else if (beauty == 2) {
|
||||
if (cm.haveItem(5150044) == true){
|
||||
cm.gainItem(5150044, -1);
|
||||
cm.setHair(hairnew[selection]);
|
||||
cm.sendOk("Enjoy your new and improved hairstyle!");
|
||||
} else {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
||||
}
|
||||
}
|
||||
|
||||
cm.dispose();
|
||||
|
||||
@@ -21,14 +21,21 @@
|
||||
*/
|
||||
/* Denma the Owner
|
||||
Henesys VIP Eye Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var price = 1000000;
|
||||
var mface = Array(20000, 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20012, 20014);
|
||||
var fface = Array(21000, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008, 21012, 21014);
|
||||
var mface_v = Array(20000, 20001, 20003, 20004, 20005, 20006, 20007, 20008, 20012, 20014, 20015, 20022, 20028, 20031);
|
||||
var fface_v = Array(21000, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008, 21012, 21013, 21014, 21023, 21026);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -47,17 +54,17 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Well, hello! Welcome to the Henesys Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152001##k, you can let us take care of the rest and have the face you've always wanted~!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Well, hello! Welcome to the Henesys Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152001##k, you can let us take care of the rest and have the face you've always wanted~!\r\n#L2#Plastic Surgery: #i5152001##t5152001##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 2) {
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mface.length; i++)
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace()% 1000 - (cm.getPlayer().getFace()% 100));
|
||||
for(var i = 0; i < mface_v.length; i++)
|
||||
pushIfItemExists(facenew, mface_v[i] + cm.getPlayer().getFace()% 1000 - (cm.getPlayer().getFace()% 100));
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fface.length; i++)
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace()% 1000 - (cm.getPlayer().getFace()% 100));
|
||||
for(var i = 0; i < fface_v.length; i++)
|
||||
pushIfItemExists(facenew, fface_v[i] + cm.getPlayer().getFace()% 1000 - (cm.getPlayer().getFace()% 100));
|
||||
}
|
||||
cm.sendStyle("Let's see... I can totally transform your face into something new. Don't you want to try it? For #b#t5152001##k, you can get the face of your liking. Take your time in choosing the face of your preference.", facenew);
|
||||
}
|
||||
|
||||
@@ -21,14 +21,21 @@
|
||||
*/
|
||||
/* Dr. Feeble
|
||||
Henesys Random Eye Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var price = 1000000;
|
||||
var mface = Array(20000, 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20012, 20014);
|
||||
var fface = Array(21000, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008, 21012, 21014);
|
||||
var mface_r = Array(20000, 20005, 20008, 20012, 20016, 20022, 20032);
|
||||
var fface_r = Array(21000, 21002, 21008, 21014, 21020, 21024, 21029);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -47,20 +54,20 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Hi, I pretty much shouldn't be doing this, but with a #b#t5152000##k, I will do it anyways for you. But don't forget, it will be random!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Hi, I pretty much shouldn't be doing this, but with a #b#t5152000##k, I will do it anyways for you. But don't forget, it will be random!\r\n#L2#Plastic Surgery: #i5152000##t5152000##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 2) {
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mface.length; i++) {
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace()
|
||||
for(var i = 0; i < mface_r.length; i++) {
|
||||
pushIfItemExists(facenew, mface_r[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fface.length; i++) {
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace()
|
||||
for(var i = 0; i < fface_r.length; i++) {
|
||||
pushIfItemExists(facenew, fface_r[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
|
||||
@@ -21,15 +21,22 @@
|
||||
*/
|
||||
/* Don Giovanni
|
||||
Kerning VIP Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30030, 30020, 30000, 30130, 30350, 30190, 30110, 30180, 30050, 30040, 30160);
|
||||
var fhair = Array(31050, 31040, 31000, 31060, 31090, 31020, 31130, 31120, 31140, 31330, 31010);
|
||||
var mhair_v = Array(30040, 30130, 30780, 30850, 30860, 30920, 33040);
|
||||
var fhair_v = Array(31090, 31140, 31330, 31440, 31760, 31880, 34050);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -54,12 +61,12 @@ 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));
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
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 totally change up your hairstyle and make it look so good. Why don't you change it up a bit? If you have #b#t5150003##k I'll change it for you. Choose the one to your liking~.", hairnew);
|
||||
} else if (selection == 2) {
|
||||
@@ -67,7 +74,7 @@ function action(mode, type, selection) {
|
||||
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 totally change your haircolor and make it look so good. Why don't you change it up a bit? With #b#t5151003##k I'll change it for you. Choose the one to your liking.", haircolor);
|
||||
}
|
||||
|
||||
@@ -21,15 +21,24 @@
|
||||
*/
|
||||
/* Andre
|
||||
Kerning Random Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30130, 30350, 30190, 30110, 30180, 30050, 30040, 30160, 30770, 30620, 30550, 30520);
|
||||
var fhair = Array(31060, 31090, 31020, 31130, 31120, 31140, 31330, 31010, 31520, 31440, 31750, 31620);
|
||||
var mhair_r = Array(30040, 30130, 30520, 30770, 30780, 30850, 30920, 33040);
|
||||
var fhair_r = Array(31060, 31140, 31330, 31440, 31520, 31750, 31760, 31880, 34050);
|
||||
var mhair_e = Array(30130, 30430, 30520, 30770, 30780, 30850, 30920, 33040);
|
||||
var fhair_e = Array(31060, 31140, 31330, 31520, 31760, 31880, 34010, 34050);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -48,31 +57,47 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("I'm Andre, Don's assistant. Everyone calls me Andre, though. If you have a #b#t5150011##k or a #b#t5151002##k, please let me change your hairdo!\r\n#L1#Haircut: #i5150011##t5150011##l\r\n#L2#Dye your hair: #i5151002##t5151002##l");
|
||||
cm.sendSimple("I'm Andre, Don's assistant. Everyone calls me Andre, though. If you have a #b#t5150002##k, #b#t5150011##k or a #b#t5151002##k, please let me change your hairdo!\r\n#L0#Haircut: #i5150002##t5150002##l\r\n#L1#Haircut: #i5150011##t5150011##l\r\n#L2#Dye your hair: #i5151002##t5151002##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
beauty = 1;
|
||||
if (selection == 0) {
|
||||
beauty = 3;
|
||||
hairnew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mhair.length; i++) {
|
||||
hairnew.push(mhair[i] + parseInt(cm.getPlayer().getHair()
|
||||
for(var i = 0; i < mhair_r.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_r[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair.length; i++) {
|
||||
hairnew.push(fhair[i] + parseInt(cm.getPlayer().getHair()
|
||||
for(var i = 0; i < fhair_r.length; i++) {
|
||||
pushIfItemExists(hairnew, fhair_r[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
cm.sendYesNo("If you use the EXP coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that I came up with. Are you going to use #b#t5150010##k and really change your hairstyle?");
|
||||
cm.sendYesNo("If you use the REG coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that I came up with. Are you going to use #b#t5150011##k and really change your hairstyle?");
|
||||
} else if (selection == 1) {
|
||||
beauty = 1;
|
||||
hairnew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mhair_e.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_e[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair_e.length; i++) {
|
||||
pushIfItemExists(hairnew, fhair_e[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
cm.sendYesNo("If you use the EXP coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that I came up with. Are you going to use #b#t5150011##k and really change your hairstyle?");
|
||||
} 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.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5151002##k and change it up?");
|
||||
}
|
||||
@@ -97,6 +122,15 @@ function action(mode, type, selection) {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't dye your hair without it. I'm sorry...");
|
||||
}
|
||||
}
|
||||
if (beauty == 3){
|
||||
if (cm.haveItem(5150002) == true){
|
||||
cm.gainItem(5150002, -1);
|
||||
cm.setHair(hairnew[Math.floor(Math.random() * hairnew.length)]);
|
||||
cm.sendOk("Enjoy your new and improved hairstyle!");
|
||||
} else {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
||||
}
|
||||
}
|
||||
if (beauty == 0){
|
||||
if (selection == 0 && cm.getMeso() >= hairprice) {
|
||||
cm.gainMeso(-hairprice);
|
||||
|
||||
@@ -21,15 +21,23 @@
|
||||
|
||||
/* Mino the Owner
|
||||
Orbis VIP Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30030, 30020, 30000, 30270, 30230, 30260, 30280, 30240, 30290, 30340);
|
||||
var fhair = Array(31040, 31000, 31250, 31220, 31260, 31240, 31110, 31270, 31030, 31230);
|
||||
var mhair_v = Array(30230, 30260, 30280, 30340, 30490);
|
||||
var fhair_v = Array(31110, 31220, 31230, 31630, 31790);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -54,14 +62,14 @@ 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()
|
||||
for(var i = 0; i < mhair_v.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_v[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair.length; i++) {
|
||||
hairnew.push(fhair[i] + parseInt(cm.getPlayer().getHair()
|
||||
pushIfItemExists(hairnew, fhair[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
@@ -71,7 +79,7 @@ function action(mode, type, selection) {
|
||||
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 totally change your haircolor and make it look so good. Why don't you change it up a bit? With #b#t5151005##k, I'll take care of the rest. Choose the color of your liking!", haircolor);
|
||||
}
|
||||
|
||||
@@ -21,14 +21,22 @@
|
||||
|
||||
/* Franz the Owner
|
||||
Orbis VIP Eye Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var price = 1000000;
|
||||
var mface = Array(20000, 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20012, 20014);
|
||||
var fface = Array(21000, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008, 21012, 21014);
|
||||
var mface_v = Array(20000, 20001, 20003, 20004, 20005, 20006, 20007, 20008, 20012, 20014, 20022, 20028, 20031);
|
||||
var fface_v = Array(21000, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008, 21012, 21014, 21023, 21026);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -47,20 +55,20 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Well well well, welcome to the Orbis Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152005##k, you can let us take care of the rest and have the face you've always wanted~!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Well well well, welcome to the Orbis Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152005##k, you can let us take care of the rest and have the face you've always wanted~!\r\n#L2#Plastic Surgery: #i5152005##t5152005##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 2) {
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mface.length; i++) {
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace()
|
||||
for(var i = 0; i < mface_v.length; i++) {
|
||||
pushIfItemExists(facenew, mface_v[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fface.length; i++) {
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace()
|
||||
for(var i = 0; i < fface_v.length; i++) {
|
||||
pushIfItemExists(facenew, fface_v[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
|
||||
@@ -21,17 +21,29 @@
|
||||
|
||||
/* Rinz the assistant
|
||||
Orbis Random Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30030, 30020, 30000, 30270, 30230, 30260, 30280, 30240, 30290, 30340, 30370, 30630, 30530, 30760);
|
||||
var fhair = Array(31040, 31000, 31250, 31220, 31260, 31240, 31110, 31270, 31030, 31230, 31530, 31710, 31320, 31650, 31630);
|
||||
var mhair_d = Array(30030, 30020, 30000, 30270, 30230);
|
||||
var fhair_d = Array(31040, 31000, 31250, 31220, 31260);
|
||||
var mhair_r = Array(30230, 30260, 30280, 30340, 30490, 30530, 30630, 30740);
|
||||
var fhair_r = Array(31110, 31220, 31230, 31630, 31650, 31710, 31790, 31890, 31930);
|
||||
var mhair_e = Array(30230, 30280, 30340, 30490, 30530, 30740);
|
||||
var fhair_e = Array(31110, 31220, 31230, 31710, 31790, 31890, 31930);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
cm.sendSimple("I'm Rinz, the assistant. Do you have #b#t5150013##k or #b#t5151004##k with you? If so, what do you think about letting me take care of your hairdo? What do you want to do with your hair?\r\n#L1#Haircut: #i5150013##t5150013##l\r\n#L2#Dye your hair: #i5151004##t5151004##l");
|
||||
cm.sendSimple("I'm Rinz, the assistant. Do you have #b#t5154000##k, #b#t5150004##k, #b#t5150013##k or #b#t5151004##k with you? If so, what do you think about letting me take care of your hairdo? What do you want to do with your hair?\r\n#L0#Haircut: #i5154000##t5154000##l\r\n#L1#Haircut: #i5150004##t5150004##l\r\n#L2#Haircut: #i5150013##t5150013##l\r\n#L3#Dye your hair: #i5151004##t5151004##l");
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
@@ -40,23 +52,43 @@ function action(mode, type, selection) {
|
||||
else {
|
||||
status++;
|
||||
if (status == 1) {
|
||||
if (selection == 1) {
|
||||
if (selection == 0) {
|
||||
beauty = 4;
|
||||
hairnew = Array();
|
||||
if (cm.getPlayer().getGender() == 0)
|
||||
for(var i = 0; i < mhair_d.length; i++)
|
||||
pushIfItemExists(hairnew, mhair_d[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
else
|
||||
for (var i = 0; i < fhair_d.length; i++)
|
||||
pushIfItemExists(hairnew, fhair_d[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
cm.sendYesNo("If you use the DRT coupon your hair will change RANDOMLY with a chance to obtain the basic styles that I came up with. Are you going to use #b#t5154000##k and really change your hairstyle?");
|
||||
} else if (selection == 1) {
|
||||
beauty = 3;
|
||||
hairnew = Array();
|
||||
if (cm.getPlayer().getGender() == 0)
|
||||
for(var i = 0; i < mhair_r.length; i++)
|
||||
pushIfItemExists(hairnew, mhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
else
|
||||
for (var i = 0; i < fhair_r.length; i++)
|
||||
pushIfItemExists(hairnew, fhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
cm.sendYesNo("If you use the REG coupon your hair will change RANDOMLY. Are you going to use #b#t5150004##k and really change your hairstyle?");
|
||||
} else if (selection == 2) {
|
||||
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_e.length; i++)
|
||||
pushIfItemExists(hairnew, mhair_e[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
else
|
||||
for (var i = 0; i < fhair.length; i++)
|
||||
hairnew.push(fhair[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
cm.sendYesNo("If you use the EXP coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that I came up with. Are you going to use #b#t5150010##k and really change your hairstyle?");
|
||||
} else if (selection == 2) {
|
||||
for (var i = 0; i < fhair_e.length; i++)
|
||||
pushIfItemExists(hairnew, fhair_e[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
cm.sendYesNo("If you use the EXP coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that I came up with. Are you going to use #b#t5150013##k and really change your hairstyle?");
|
||||
} else if (selection == 3) {
|
||||
beauty = 2;
|
||||
haircolor = Array();
|
||||
var current = (cm.getPlayer().getHair() / 10) | 0;
|
||||
for (var i = 0; i < 8; i++)
|
||||
haircolor.push(current + i);
|
||||
cm.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5151004##k and change it up?");
|
||||
pushIfItemExists(haircolor, current + i);
|
||||
cm.sendYesNo("If you use a regular coupon your hair color will change RANDOMLY. Do you still want to use #b#t5151004##k and change it up?");
|
||||
}
|
||||
}
|
||||
else if (status == 2){
|
||||
@@ -68,16 +100,28 @@ function action(mode, type, selection) {
|
||||
cm.sendOk("Enjoy your new and improved hairstyle!");
|
||||
} else
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
||||
}
|
||||
if (beauty == 2){
|
||||
} else if (beauty == 2){
|
||||
if (cm.haveItem(5151004)){
|
||||
cm.gainItem(5151004, -1);
|
||||
cm.setHair(haircolor[Math.floor(Math.random() * haircolor.length)]);
|
||||
cm.sendOk("Enjoy your new and improved haircolor!");
|
||||
} else
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't dye your hair without it. I'm sorry...");
|
||||
}
|
||||
if (beauty == 0){
|
||||
} else if (beauty == 3){
|
||||
if (cm.haveItem(5150004)){
|
||||
cm.gainItem(5150004, -1);
|
||||
cm.setHair(hairnew[Math.floor(Math.random() * hairnew.length)]);
|
||||
cm.sendOk("Enjoy your new and improved hairstyle!");
|
||||
} else
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
||||
} else if (beauty == 4){
|
||||
if (cm.haveItem(5154000)){
|
||||
cm.gainItem(5154000, -1);
|
||||
cm.setHair(hairnew[Math.floor(Math.random() * hairnew.length)]);
|
||||
cm.sendOk("Enjoy your new and improved hairstyle!");
|
||||
} else
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
||||
} else if (beauty == 0){
|
||||
if (selection == 0 && cm.getMeso() >= hairprice) {
|
||||
cm.gainMeso(-hairprice);
|
||||
cm.gainItem(5150013, 1);
|
||||
|
||||
@@ -27,7 +27,7 @@ var price = 1000000;
|
||||
var skin = Array(0, 1, 2, 3, 4);
|
||||
|
||||
function start() {
|
||||
cm.sendSimple("Well, hello! Welcome to the Orbis Skin-Care~! Would you like to have a firm, tight, healthy looking skin like mine? With #b#t5153001##k, you can let us take care of the rest and have the kind of skin you've always wanted~!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Well, hello! Welcome to the Orbis Skin-Care~! Would you like to have a firm, tight, healthy looking skin like mine? With #b#t5153001##k, you can let us take care of the rest and have the kind of skin you've always wanted~!\r\n#L2#Skin Care: #i5153001##t5153001##l");
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
|
||||
@@ -21,16 +21,24 @@
|
||||
|
||||
/* Riza the Assistant
|
||||
Orbis Random Eye Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var price = 1000000;
|
||||
var mface = Array(20000, 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20012, 20014);
|
||||
var fface = Array(21000, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008, 21012, 21014);
|
||||
var mface_r = Array(20003, 20011, 20021, 20022, 20023, 20027, 20031);
|
||||
var fface_r = Array(21004, 21007, 21010, 21012, 21020, 21021, 21030);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
cm.sendSimple("Hi, I pretty much shouldn't be doing this, but with a #b#t5152004##k, I will do it anyways for you. But don't forget, it will be random!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Hi, I pretty much shouldn't be doing this, but with a #b#t5152004##k, I will do it anyways for you. But don't forget, it will be random!\r\n#L2#Plastic Surgery: #i5152004##t5152004##l");
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
@@ -42,11 +50,11 @@ function action(mode, type, selection) {
|
||||
if (selection == 2) {
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0)
|
||||
for (var i = 0; i < mface.length; i++)
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
for (var i = 0; i < mface_r.length; i++)
|
||||
pushIfItemExists(facenew, mface_r[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
else
|
||||
for (var i = 0; i < fface.length; i++)
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
for (var i = 0; i < fface_r.length; i++)
|
||||
pushIfItemExists(facenew, fface_r[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
cm.sendYesNo("If you use the regular coupon, your face may transform into a random new look...do you still want to do it using #b#t5152004##k?");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,14 +21,22 @@
|
||||
|
||||
/* Everton
|
||||
Ludibrium Random Eye Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var price = 1000000;
|
||||
var mface = Array(20000, 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20012, 20014);
|
||||
var fface = Array(21000, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008, 21012, 21014);
|
||||
var mface_r = Array(20001, 20003, 20007, 20013, 20021, 20023, 20025);
|
||||
var fface_r = Array(21002, 21004, 21006, 21008, 21022, 21027, 21029);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -47,20 +55,20 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Well, I'm bored, so I'll help out the doctor. For a #b#t5152006##k, I will change the way you look. But don't forget, it will be random!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Well, I'm bored, so I'll help out the doctor. For a #b#t5152006##k, I will change the way you look. But don't forget, it will be random!\r\n#L2#Plastic Surgery: #i5152006##t5152006##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 2) {
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mface.length; i++) {
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace()
|
||||
for(var i = 0; i < mface_r.length; i++) {
|
||||
pushIfItemExists(facenew, mface_r[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fface.length; i++) {
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace()
|
||||
for(var i = 0; i < fface_r.length; i++) {
|
||||
pushIfItemExists(facenew, fface_r[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
|
||||
@@ -21,15 +21,23 @@
|
||||
|
||||
/* Miyu
|
||||
Ludibrium VIP Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30030, 30020, 30000, 30250, 30190, 30150, 30050, 30280, 30240, 30300, 30160);
|
||||
var fhair = Array(31040, 31000, 31150, 31280, 31160, 31120, 31290, 31270, 31030, 31230, 31010);
|
||||
var mhair_v = Array(30160, 30190, 30250, 30640, 30660, 30840, 30870, 30990);
|
||||
var fhair_v = Array(31270, 31290, 31550, 31680, 31810, 31830, 31840, 31870);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -54,13 +62,13 @@ 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));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
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#t5150007##k, I'll take care of the rest for you. Choose the style of your liking!", hairnew);
|
||||
@@ -69,7 +77,7 @@ function action(mode, type, selection) {
|
||||
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 color of your hair. Aren't you ready for a change? With #b#t5151007##k, I'll take care of the rest. Choose the color of your liking!", haircolor);
|
||||
}
|
||||
|
||||
@@ -21,15 +21,25 @@
|
||||
|
||||
/* Mini
|
||||
Ludibrium Random Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30250, 30190, 30150, 30050, 30280, 30240, 30300, 30160, 30650, 30540, 30640, 30680);
|
||||
var fhair = Array(31150, 31280, 31160, 31120, 31290, 31270, 31030, 31230, 31010, 31640, 31540, 31680, 31600);
|
||||
var mhair_r = Array(30190, 30220, 30250, 30540, 30610, 30620, 30640, 30650, 30660, 30840, 30870, 30940, 30990);
|
||||
var fhair_r = Array(31170, 31270, 31290, 31510, 31540, 31550, 31600, 31640, 31680, 31810, 31830, 31840, 31870);
|
||||
var mhair_e = Array(30030, 30190, 30220, 30250, 30540, 30610, 30620, 30640, 30650, 30660, 30840, 30990);
|
||||
var fhair_e = Array(31170, 31270, 31430, 31510, 31540, 31550, 31600, 31680, 31810, 31830, 31840, 31870);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -48,28 +58,42 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Hi, I'm the assistant here. Don't worry, I'm plenty good enough for this. If you have #b#t5150012##k or #b#t5151006##k by any chance, then allow me to take care of the rest, alright?\r\n#L1#Haircut: #i5150012##t5150012##l\r\n#L2#Dye your hair: #i5151006##t5151006##l");
|
||||
cm.sendSimple("Hi, I'm the assistant here. Don't worry, I'm plenty good enough for this. If you have #b#t5150006##k, #b#t5150012##k or #b#t5151006##k by any chance, then allow me to take care of the rest, alright?\r\n#L0#Haircut: #i5150006##t5150006##l\r\n#L1#Haircut: #i5150012##t5150012##l\r\n#L2#Dye your hair: #i5151006##t5151006##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
beauty = 1;
|
||||
if (selection == 0) {
|
||||
beauty = 3;
|
||||
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_r.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair.length; i++) {
|
||||
hairnew.push(fhair[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
for(var i = 0; i < fhair_r.length; i++) {
|
||||
pushIfItemExists(hairnew, fhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
}
|
||||
}
|
||||
cm.sendYesNo("If you use the EXP coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that I came up with. Are you going to use #b#t5150010##k and really change your hairstyle?");
|
||||
cm.sendYesNo("If you use the REG coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that I came up with. Are you going to use #b#t5150012##k and really change your hairstyle?");
|
||||
} else if (selection == 1) {
|
||||
beauty = 1;
|
||||
hairnew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mhair_e.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_e[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair_e.length; i++) {
|
||||
pushIfItemExists(hairnew, fhair_e[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
}
|
||||
}
|
||||
cm.sendYesNo("If you use the EXP coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that I came up with. Are you going to use #b#t5150012##k and really change your hairstyle?");
|
||||
} 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.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5151006##k and change it up?");
|
||||
}
|
||||
@@ -92,6 +116,14 @@ function action(mode, type, selection) {
|
||||
} else {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't dye your hair without it. I'm sorry...");
|
||||
}
|
||||
} else if (beauty == 3){
|
||||
if (cm.haveItem(5150006)){
|
||||
cm.gainItem(5150006, -1);
|
||||
cm.setHair(haircolor[Math.floor(Math.random() * haircolor.length)]);
|
||||
cm.sendOk("Enjoy your new and improved haircolor!");
|
||||
} else {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't dye your hair without it. I'm sorry...");
|
||||
}
|
||||
} else if (beauty == 0){
|
||||
if (selection == 0 && cm.getMeso() >= hairprice) {
|
||||
cm.gainMeso(-hairprice);
|
||||
|
||||
@@ -21,14 +21,22 @@
|
||||
|
||||
/* Ellie
|
||||
Ludibrium VIP Eye Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var price = 1000000;
|
||||
var mface = Array(20000, 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20012, 20014);
|
||||
var fface = Array(21000, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008, 21012, 21014);
|
||||
var mface_v = Array(20000, 20001, 20003, 20004, 20005, 20006, 20007, 20008, 20011, 20012, 20014, 20031);
|
||||
var fface_v = Array(21000, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008, 21010, 21012, 21014);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -47,20 +55,20 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Well, hello! Welcome to the Ludibrium Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152007##k, you can let us take care of the rest and have the face you've always wanted~!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Well, hello! Welcome to the Ludibrium Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152007##k, you can let us take care of the rest and have the face you've always wanted~!\r\n#L2#Plastic Surgery: #i5152007##t5152007##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 2) {
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mface.length; i++) {
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace()
|
||||
for(var i = 0; i < mface_v.length; i++) {
|
||||
pushIfItemExists(facenew, mface_v[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fface.length; i++) {
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace()
|
||||
for(var i = 0; i < fface_v.length; i++) {
|
||||
pushIfItemExists(facenew, fface_v[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Oh, hello! Welcome to the Ludibrium Skin-Care! Are you interested in getting tanned and looking sexy? How about a beautiful, snow-white skin? If you have #b#t5153002##k, you can let us take care of the rest and have the kind of skin you've always dreamed of!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Oh, hello! Welcome to the Ludibrium Skin-Care! Are you interested in getting tanned and looking sexy? How about a beautiful, snow-white skin? If you have #b#t5153002##k, you can let us take care of the rest and have the kind of skin you've always dreamed of!\r\n#L2#Skin Care: #i5153002##t5153002##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 2) {
|
||||
cm.sendStyle("With our specialized machine, you can see the way you'll look after the treatment PRIOR to the procedure. What kind of a look are you looking for? Go ahead and choose the style of your liking~!", skin);
|
||||
|
||||
@@ -21,15 +21,23 @@
|
||||
|
||||
/* Grandpa Luo
|
||||
Mu Lung VIP Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30250, 30350, 30270, 30150, 30300, 30600, 30160);
|
||||
var fhair = Array(31040, 31250, 31310, 31220, 31300, 31680, 31160, 31030, 31230);
|
||||
var mhair_v = Array(30150, 30240, 30370, 30420, 30640, 30710, 30750, 30810);
|
||||
var fhair_v = Array(31140, 31160, 31180, 31300, 31460, 31470, 31660, 31910);
|
||||
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 Mu Lung hair shop. If you have a #b#t5150025##k, or a #b#t5151020##k, allow me to take care of your hairdo. Please choose the one you want.\r\n#L1#Haircut: #i5150025##t5150025##l\r\n#L2#Dye your hair: #i5151020##t5151020##l");
|
||||
}
|
||||
@@ -51,14 +59,14 @@ 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()
|
||||
for(var i = 0; i < mhair_v.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_v[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair.length; i++) {
|
||||
hairnew.push(fhair[i] + parseInt(cm.getPlayer().getHair()
|
||||
for(var i = 0; i < fhair_v.length; i++) {
|
||||
pushIfItemExists(hairnew, fhair_v[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
@@ -69,7 +77,7 @@ function action(mode, type, selection) {
|
||||
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 totally change your haircolor and make it look so good. Why don't you change it up a bit? With #b#t5151020##k, I'll take care of the rest. Choose the color of your liking!", haircolor);
|
||||
}
|
||||
|
||||
@@ -21,15 +21,23 @@
|
||||
|
||||
/* Lilishu
|
||||
Mu Lung Random Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30250, 30350, 30270, 30150, 30300, 30600, 30160, 30700, 30720, 30420);
|
||||
var fhair = Array(31040, 31250, 31310, 31220, 31300, 31680, 31160, 31030, 31230, 31690, 31210, 31170, 31450);
|
||||
var mhair_e = Array(30030, 30150, 30240, 30370, 30420, 30550, 30600, 30640, 30700, 30710, 30720, 30750, 30810, 30830);
|
||||
var fhair_e = Array(31140, 31160, 31180, 31210, 31300, 31430, 31460, 31470, 31660, 31690, 31800, 31890, 31910, 31940);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -54,14 +62,14 @@ 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()
|
||||
for(var i = 0; i < mhair_e.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_e[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair.length; i++) {
|
||||
hairnew.push(fhair[i] + parseInt(cm.getPlayer().getHair()
|
||||
for(var i = 0; i < fhair_e.length; i++) {
|
||||
pushIfItemExists(hairnew, fhair_e[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
@@ -72,7 +80,7 @@ function action(mode, type, selection) {
|
||||
var current = parseInt(cm.getPlayer().getHair()
|
||||
/10)*10;
|
||||
for(var i = 0; i < 8; i++) {
|
||||
haircolor.push(current + i);
|
||||
pushIfItemExists(haircolor, current + i);
|
||||
}
|
||||
cm.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5151019##k and change it up?");
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Well, hello! Welcome to the Mu Lung Skin-Care! Would you like to have a firm, tight, healthy looking skin like mine? With #b#t5153006##k, you can let us take care of the rest and have the kind of skin you've always wanted~!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Well, hello! Welcome to the Mu Lung Skin-Care! Would you like to have a firm, tight, healthy looking skin like mine? With #b#t5153006##k, you can let us take care of the rest and have the kind of skin you've always wanted~!\r\n#L2#Skin Care: #i5153006##t5153006##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 2) {
|
||||
cm.sendStyle("With our specialized machine, you can see the way you'll look after the treatment PRIOR to the procedure. What kind of a look are you looking for? Go ahead and choose the style of your liking~!", skin);
|
||||
|
||||
@@ -21,12 +21,29 @@
|
||||
|
||||
/* Pata
|
||||
Mu Lung Random/VIP Eye Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var regprice = 1000000;
|
||||
var vipprice = 1000000;
|
||||
var colors = Array();
|
||||
var mface_v = Array(20000, 20001, 20004, 20005, 20006, 20007, 20009, 20012, 20022, 20028, 20031);
|
||||
var fface_v = Array(21000, 21003, 21005, 21006, 21008, 21009, 21011, 21012, 21023, 21024, 21026);
|
||||
|
||||
function pushIfItemsExists(array, itemidList) {
|
||||
for (var i = 0; i < itemidList.length; i++) {
|
||||
var itemid = itemidList[i];
|
||||
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
@@ -46,21 +63,26 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Hey, I'm Pata, and I am a cosmetic lens expert here in Mu Lung. I believe your eyes are the most important feature in your body, and with #b#t5152042##k or #b#t5152041##k, I can prescribe the right kind of cosmetic lenses for you. Now, what would you like to use?\r\n#L1#Cosmetic Lenses: #i5152042##t5152042##l\r\n#L2#Cosmetic Lenses: #i5152041##t5152041##l");
|
||||
cm.sendSimple("Hey, I'm Pata, and I am a renowned plastic surgeon and cosmetic lens expert here in Mu Lung. I believe your face and eyes are the most important features in your body, and with #b#t5152028##k or #b#t5152041##k, I can prescribe the right kind of facial care and cosmetic lenses for you. Now, what would you like to use?\r\n#L1#Plastic Surgery: #i5152028##t5152028##l\r\n#L2#Cosmetic Lenses: #i5152041##t5152041##l\r\n#L3#One-time Cosmetic Lenses: #i5152100# (any color)#l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
beauty = 1;
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
for(var i = 0; i < mface_v.length; i++) {
|
||||
pushIfItemExists(facenew, mface_v[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
for(var i = 0; i < fface_v.length; i++) {
|
||||
pushIfItemExists(facenew, fface_v[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
colors = Array();
|
||||
colors = Array(current , current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700);
|
||||
cm.sendYesNo("If you use the regular coupon, you'll be awarded a random pair of cosmetic lenses. Are you going to use a #b#t5152042##k and really make the change to your eyes?");
|
||||
cm.sendStyle("I can totally transform your face into something new... how about giving us a try? For #b#t5152028##k, you can get the face of your liking...take your time in choosing the face of your preference.", facenew);
|
||||
} else if (selection == 2) {
|
||||
beauty = 2;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
@@ -72,22 +94,46 @@ function action(mode, type, selection) {
|
||||
% 100 + 21000;
|
||||
}
|
||||
colors = Array();
|
||||
colors = Array(current , current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700);
|
||||
pushIfItemsExists(colors, [current , current + 100, current + 300, current + 500, current + 600, current + 700]);
|
||||
cm.sendStyle("With our new computer program, you can see yourself after the treatment in advance. What kind of lens would you like to wear? Please choose the style of your liking.", colors);
|
||||
} else if (selection == 3) {
|
||||
beauty = 3;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
|
||||
colors = Array();
|
||||
for (var i = 0; i < 8; i++) {
|
||||
if (cm.haveItem(5152100 + i)) {
|
||||
pushIfItemExists(colors, current + 100 * i);
|
||||
}
|
||||
}
|
||||
|
||||
if (colors.length == 0) {
|
||||
cm.sendOk("You don't have any One-Time Cosmetic Lens to use.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
cm.sendStyle("What kind of lens would you like to wear? Please choose the style of your liking.", colors);
|
||||
}
|
||||
}
|
||||
else if (status == 2){
|
||||
cm.dispose();
|
||||
if (beauty == 1){
|
||||
if (cm.haveItem(5152042)){
|
||||
cm.gainItem(5152042, -1);
|
||||
cm.setFace(colors[Math.floor(Math.random() * colors.length)]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
if (cm.haveItem(5152028)){
|
||||
cm.gainItem(5152028, -1);
|
||||
cm.setFace(facenew[selection]);
|
||||
cm.sendOk("Enjoy your new and improved face!");
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
cm.sendOk("I'm sorry, but I don't think you have our plastic surgery coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
}
|
||||
if (beauty == 2){
|
||||
} else if (beauty == 2){
|
||||
if (cm.haveItem(5152041)){
|
||||
cm.gainItem(5152041, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
@@ -95,18 +141,15 @@ function action(mode, type, selection) {
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
}
|
||||
if (beauty == 0){
|
||||
if (selection == 0 && cm.getMeso() >= regprice) {
|
||||
cm.gainMeso(-regprice);
|
||||
cm.gainItem(5152042, 1);
|
||||
cm.sendOk("Enjoy!");
|
||||
} else if (selection == 1 && cm.getMeso() >= vipprice) {
|
||||
cm.gainMeso(-vipprice);
|
||||
cm.gainItem(5152041, 1);
|
||||
cm.sendOk("Enjoy!");
|
||||
} else if (beauty == 3){
|
||||
var color = (colors[selection] / 100) % 100 | 0;
|
||||
|
||||
if (cm.haveItem(5152100 + color)){
|
||||
cm.gainItem(5152100 + color, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("You don't have enough mesos to buy a coupon!");
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,14 +21,29 @@
|
||||
|
||||
/* Noma
|
||||
Mu Lung Random/VIP Eye Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var regprice = 1000000;
|
||||
var vipprice = 1000000;
|
||||
var mface = Array(20000, 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20012, 20014, 20009, 20010);
|
||||
var fface = Array(21000, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008, 21012, 21014, 21009, 21011);
|
||||
var facenew = Array();
|
||||
var mface_r = Array(20002, 20005, 20007, 20011, 20014, 20017, 20029);
|
||||
var fface_r = Array(21001, 21010, 21013, 21018, 21020, 21021, 21030);
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function pushIfItemsExists(array, itemidList) {
|
||||
for (var i = 0; i < itemidList.length; i++) {
|
||||
var itemid = itemidList[i];
|
||||
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
@@ -48,21 +63,21 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Hey, I'm Noma, and I am assiting Pata in changing faces into beautiful things here in Mu Lung. With #b#t5152027##k or #b#t5152028##k, I can change the way you look. Now, what would you like to use?\r\n#L1#Plastic Surgery: #i5152027##t5152027##l\r\n#L2#Plastic Surgery: #i5152028##t5152028##l");
|
||||
cm.sendSimple("Hey, I'm Noma, and I am assisting Pata in changing faces and applying lenses as my internship studies. With #b#t5152027##k or #b#t5152042##k, I can change the way you look. Now, what would you like to use?\r\n#L1#Plastic Surgery: #i5152027##t5152027##l\r\n#L2#Cosmetic Lenses: #i5152042##t5152042##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
beauty = 1;
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mface.length; i++) {
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace()
|
||||
for(var i = 0; i < mface_r.length; i++) {
|
||||
pushIfItemExists(facenew, mface_r[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fface.length; i++) {
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace()
|
||||
for(var i = 0; i < fface_r.length; i++) {
|
||||
pushIfItemExists(facenew, fface_r[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
@@ -71,20 +86,16 @@ function action(mode, type, selection) {
|
||||
} else if (selection == 2) {
|
||||
beauty = 2;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mface.length; i++) {
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fface.length; i++) {
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
cm.sendStyle("I can totally transform your face into something new... how about giving us a try? For #b#t5152028##k, you can get the face of your liking...take your time in choosing the face of your preference.", facenew);
|
||||
colors = Array();
|
||||
pushIfItemsExists(colors, [current , current + 100, current + 300, current + 500, current + 600, current + 700]);
|
||||
cm.sendYesNo("If you use the regular coupon, you'll be awarded a random pair of cosmetic lenses. Are you going to use a #b#t5152042##k and really make the change to your eyes?");
|
||||
}
|
||||
}
|
||||
else if (status == 2){
|
||||
@@ -99,25 +110,12 @@ function action(mode, type, selection) {
|
||||
}
|
||||
}
|
||||
if (beauty == 2){
|
||||
if (cm.haveItem(5152028)){
|
||||
cm.gainItem(5152028, -1);
|
||||
cm.setFace(facenew[selection]);
|
||||
cm.sendOk("Enjoy your new and improved face!");
|
||||
if (cm.haveItem(5152042)){
|
||||
cm.gainItem(5152042, -1);
|
||||
cm.setFace(colors[Math.floor(Math.random() * colors.length)]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our plastic surgery coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
}
|
||||
if (beauty == 0){
|
||||
if (selection == 0 && cm.getMeso() >= regprice) {
|
||||
cm.gainMeso(-regprice);
|
||||
cm.gainItem(5152012, 1);
|
||||
cm.sendOk("Enjoy!");
|
||||
} else if (selection == 1 && cm.getMeso() >= vipprice) {
|
||||
cm.gainMeso(-vipprice);
|
||||
cm.gainItem(5152028, 1);
|
||||
cm.sendOk("Enjoy!");
|
||||
} else {
|
||||
cm.sendOk("You don't have enough mesos to buy a coupon!");
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,14 +2,22 @@
|
||||
NPC Name: Shati
|
||||
Map(s): The Burning Road: Ariant(2600000000)
|
||||
Description: Assistant Hairdresser
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var mhair = Array(30250, 30350, 30270, 30150, 30300, 30600, 30160, 30700, 30720, 30420);
|
||||
var fhair = Array(31040, 31250, 31310, 31220, 31300, 31680, 31160, 31030, 31230, 31690, 31210, 31170, 31450);
|
||||
var mhair_r = Array(30150, 30170, 30180, 30320, 30330, 30410, 30460, 30680, 30800, 30820, 30900);
|
||||
var fhair_r = Array(31090, 31190, 31330, 31340, 31400, 31420, 31520, 31620, 31650, 31660, 34000);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -29,31 +37,31 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Hey there! I'm Shatti, and I'm Mazra's apprentice. If you have #bAriant hair style coupon(REG)#k or #bAriant hair color coupon(REG)#k with you, how about allowing me to work on your hair? \r\n#L0##bChange Hairstyle (Reg Coupon) \r\n#L1##bDye Hair(Reg. coupon)");
|
||||
cm.sendSimple("Hey there! I'm Shatti, and I'm Mazra's apprentice. If you have #bAriant hair style coupon(REG)#k or #bAriant hair color coupon(REG)#k with you, how about allowing me to work on your hair? \r\n#L0#Haircut: #i5150026##t5150026##l\r\n#L1#Dye your hair: #i5151021##t5151021##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 0) {
|
||||
beauty = 1;
|
||||
hairnew = Array();
|
||||
if (cm.getChar().getGender() == 0) {
|
||||
for(var i = 0; i < mhair.length; i++) {
|
||||
hairnew.push(mhair[i] + parseInt(cm.getChar().getHair()
|
||||
for(var i = 0; i < mhair_r.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_r[i] + parseInt(cm.getChar().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
if (cm.getChar().getGender() == 1) {
|
||||
for(var i = 0; i < fhair.length; i++) {
|
||||
hairnew.push(fhair[i] + parseInt(cm.getChar().getHair()
|
||||
for(var i = 0; i < fhair_r.length; i++) {
|
||||
pushIfItemExists(hairnew, fhair_r[i] + parseInt(cm.getChar().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
cm.sendYesNo("If you use the Reg. coupon, your hairstyle will be changed to a random new look. You'll also have access to new hairstyles I worked on that's not available for VIP coupons. Would you like to use #bAriant hair style coupon(REG)#k for a fabulous new look?");
|
||||
cm.sendYesNo("If you use the REG coupon, your hairstyle will be changed to a random new look. You'll also have access to new hairstyles I worked on that's not available for VIP coupons. Would you like to use #bAriant hair style coupon(REG)#k for a fabulous new look?");
|
||||
} else if (selection == 1) {
|
||||
beauty = 2;
|
||||
haircolor = Array();
|
||||
var current = parseInt(cm.getChar().getHair()
|
||||
/10)*10;
|
||||
for(var i = 0; i < 8; i++) {
|
||||
haircolor.push(current + i);
|
||||
pushIfItemExists(haircolor, current + i);
|
||||
}
|
||||
cm.sendYesNo("If you use the regular coupon, your hair color will change to a random new color. Are you sure you want to use #b#t5151021##k and randomly change your hair color?");
|
||||
}
|
||||
|
||||
@@ -2,15 +2,21 @@
|
||||
NPC Name: Mazra
|
||||
Map(s): The Burning Road: Ariant(2600000000)
|
||||
Description: Hair Salon Owner
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var mhair = Array(30030, 30020, 30000, 30130, 30350, 30190, 30110, 30180, 30050, 30040, 30160);
|
||||
var fhair = Array(31050, 31040, 31000, 31060, 31090, 31020, 31130, 31120, 31140, 31330, 31010);
|
||||
var mhair_v = Array(30150, 30170, 30180, 30320, 30330, 30410, 30460, 30820, 30900);
|
||||
var fhair_v = Array(31040, 31090, 31190, 31330, 31340, 31400, 31420, 31620, 31660);
|
||||
var hairnew = Array();
|
||||
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
@@ -30,20 +36,20 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Hahaha... it takes a lot of style and flair for someone to pay attention to his or her hairsyle in a desert. Someone like you...If you have #bAriant hair style coupon(VIP)#k or #bAriant hair color coupon(VIP)#k, I'll give your hair a fresh new look. \r\n#L0##bChange Hairstyle(VIP Coupon)#k#l \r\n#L1##bDye Hair(VIP Coupon)#k#l");
|
||||
cm.sendSimple("Hahaha... it takes a lot of style and flair for someone to pay attention to his or her hairsyle in a desert. Someone like you...If you have #bAriant hair style coupon(VIP)#k or #bAriant hair color coupon(VIP)#k, I'll give your hair a fresh new look. \r\n#L0#Haircut: #i5150027##t5150027##l\r\n#L1#Dye your hair: #i5151022##t5151022##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 0) {
|
||||
beauty = 1;
|
||||
hairnew = Array();
|
||||
if (cm.getChar().getGender() == 0) {
|
||||
for(var i = 0; i < mhair.length; i++) {
|
||||
hairnew.push(mhair[i] + parseInt(cm.getChar().getHair()
|
||||
for(var i = 0; i < mhair_v.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_v[i] + parseInt(cm.getChar().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
if (cm.getChar().getGender() == 1) {
|
||||
for(var i = 0; i < fhair.length; i++) {
|
||||
hairnew.push(fhair[i] + parseInt(cm.getChar().getHair()
|
||||
for(var i = 0; i < fhair_v.length; i++) {
|
||||
pushIfItemExists(hairnew, fhair_v[i] + parseInt(cm.getChar().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
@@ -54,7 +60,7 @@ function action(mode, type, selection) {
|
||||
var current = parseInt(cm.getChar().getHair()
|
||||
/10)*10;
|
||||
for(var i = 0; i < 8; i++) {
|
||||
haircolor.push(current + i);
|
||||
pushIfItemExists(haircolor, current + i);
|
||||
}
|
||||
cm.sendStyle("Every once in a while, it doesn't hurt to change up your hair color... it's fun. Allow me, the great Mazra, to dye your hair, so you just bring me #bAriant hair color coupon(VIP)#k, and choose your new hair color.", haircolor);
|
||||
}
|
||||
|
||||
@@ -1,15 +1,33 @@
|
||||
/* Author: aaroncsn <MapleSea Like>
|
||||
NPC Name: Badr
|
||||
NPC Name: Vard
|
||||
Map(s): The Burning Road: Ariant(2600000000)
|
||||
Description: Ariant Plastic Surgery
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var mface = Array(20000, 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20012, 20014);
|
||||
var fface = Array(21000, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008, 21012, 21014);
|
||||
var mface_v = Array(20000, 20004, 20005, 20012, 20013, 20031);
|
||||
var fface_v = Array(21000, 21003, 21006, 21009, 21012, 21024);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function pushIfItemsExists(array, itemidList) {
|
||||
for (var i = 0; i < itemidList.length; i++) {
|
||||
var itemid = itemidList[i];
|
||||
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -27,33 +45,99 @@ function action(mode, type, selection) {
|
||||
status++;
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
facenew = Array();
|
||||
if (cm.getChar().getGender() == 0) {
|
||||
for(var i = 0; i < mface.length; i++) {
|
||||
facenew.push(mface[i] + cm.getChar().getFace()
|
||||
% 1000 - (cm.getChar().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
if (cm.getChar().getGender() == 1) {
|
||||
for(var i = 0; i < fface.length; i++) {
|
||||
facenew.push(fface[i] + cm.getChar().getFace()
|
||||
% 1000 - (cm.getChar().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
cm.sendStyle("Hmmm... Face of beauty glows even under cover and burning desert. With #bAriant face coupon(VIP)#k, I can make your face so much better. Choose the face you want, and I will pull out my outstanding skill for the great make over.", facenew);
|
||||
}
|
||||
else if (status == 1){
|
||||
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Ah, welcome to the Ariant Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152030##k or a #b#t5152047##k, I can make your face so much better!\r\n#L1#Plastic Surgery: #i5152030##t5152030##l\r\n#L2#Cosmetic Lens: #i5152047##t5152047##l\r\n#L3#One-time Cosmetic Lenses: #i5152101# (any color)#l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
beauty = 0;
|
||||
|
||||
facenew = Array();
|
||||
if (cm.getChar().getGender() == 0) {
|
||||
for(var i = 0; i < mface_v.length; i++) {
|
||||
pushIfItemExists(facenew, mface_v[i] + cm.getChar().getFace()
|
||||
% 1000 - (cm.getChar().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
if (cm.getChar().getGender() == 1) {
|
||||
for(var i = 0; i < fface.length; i++) {
|
||||
pushIfItemExists(facenew, fface[i] + cm.getChar().getFace()
|
||||
% 1000 - (cm.getChar().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
cm.sendStyle("Hmmm... Face of beauty glows even under cover and burning desert. Choose the face you want, and I will pull out my outstanding skill for the great make over.", facenew);
|
||||
} else if (selection == 2) {
|
||||
beauty = 1;
|
||||
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
colors = Array();
|
||||
pushIfItemsExists(colors, [current , current + 100, current + 300, current + 600, current + 700]);
|
||||
cm.sendStyle("With the utmost finesse matching that of the sparkling sands of the desert that gleefully embraces the rooftop of the Palace, we will make your eyes shine even brighter with the new lenses. Select the one you want to use...", colors);
|
||||
} else if (selection == 3) {
|
||||
beauty = 3;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
|
||||
colors = Array();
|
||||
for (var i = 0; i < 8; i++) {
|
||||
if (cm.haveItem(5152100 + i)) {
|
||||
pushIfItemExists(colors, current + 100 * i);
|
||||
}
|
||||
}
|
||||
|
||||
if (colors.length == 0) {
|
||||
cm.sendOk("You don't have any One-Time Cosmetic Lens to use.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
cm.sendStyle("What kind of lens would you like to wear? Please choose the style of your liking.", colors);
|
||||
}
|
||||
} else if (status == 2){
|
||||
cm.dispose();
|
||||
if (cm.haveItem(5152030) == true){
|
||||
cm.gainItem(5152030, -1);
|
||||
cm.setFace(facenew[selection]);
|
||||
cm.sendOk("Enjoy your new and improved face!");
|
||||
} else {
|
||||
cm.sendNext("Erm... You don't seem to have the exclusive coupon for this hospital. Without the coupon, I'm afraid I can't do it for you.");
|
||||
}
|
||||
|
||||
if (beauty == 0) {
|
||||
if (cm.haveItem(5152030) == true){
|
||||
cm.gainItem(5152030, -1);
|
||||
cm.setFace(facenew[selection]);
|
||||
cm.sendOk("Enjoy your new and improved face!");
|
||||
} else {
|
||||
cm.sendNext("Erm... You don't seem to have the exclusive coupon for this hospital. Without the coupon, I'm afraid I can't do it for you.");
|
||||
}
|
||||
} else if (beauty == 1) {
|
||||
if (cm.haveItem(5152047) == true){
|
||||
cm.gainItem(5152047, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("Hmm ... it looks like you don't have the coupon specifically for this place. Sorry to say this, but without the coupon, there's no plastic surgery for you...");
|
||||
}
|
||||
} else if (beauty == 3){
|
||||
var color = (colors[selection] / 100) % 100 | 0;
|
||||
|
||||
if (cm.haveItem(5152100 + color)){
|
||||
cm.gainItem(5152100 + color, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,14 +2,32 @@
|
||||
NPC Name: Aldin
|
||||
Map(s): The Burning Road: Ariant(2600000000)
|
||||
Description: Ariant Plastic Surgery
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var mface = Array(20000, 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20012, 20014);
|
||||
var fface = Array(21000, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21008, 21012, 21014);
|
||||
var mface_r = Array(20001, 20003, 20009, 20010, 20025, 20031);
|
||||
var fface_r = Array(21002, 21009, 21011, 21013, 21016, 21029, 21030);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function pushIfItemsExists(array, itemidList) {
|
||||
for (var i = 0; i < itemidList.length; i++) {
|
||||
var itemid = itemidList[i];
|
||||
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -28,33 +46,63 @@ function action(mode, type, selection) {
|
||||
status++;
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
facenew = Array();
|
||||
if (cm.getChar().getGender() == 0) {
|
||||
for(var i = 0; i < mface.length; i++) {
|
||||
facenew.push(mface[i] + cm.getChar().getFace()
|
||||
% 1000 - (cm.getChar().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
if (cm.getChar().getGender() == 1) {
|
||||
for(var i = 0; i < fface.length; i++) {
|
||||
facenew.push(fface[i] + cm.getChar().getFace()
|
||||
% 1000 - (cm.getChar().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
cm.sendYesNo("If you use the regular coupon, your face may transform into a random new look...do you still want to do it using #b#t5152029##k?");
|
||||
}
|
||||
else if (status == 1){
|
||||
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Hi, I'm the face surgery assistant doctor from around here. With a #b#t5152029##k or a #b#t5152048##k, I can make it kick in just nice, trust me. Ah, don't forget, what comes next after the operation will be random! Then, what are you going for?\r\n#L1#Plastic Surgery: #i5152029##t5152029##l\r\n#L2#Cosmetic Lens: #i5152048##t5152048##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
beauty = 0;
|
||||
|
||||
facenew = Array();
|
||||
if (cm.getChar().getGender() == 0) {
|
||||
for(var i = 0; i < mface_r.length; i++) {
|
||||
pushIfItemExists(facenew, mface_r[i] + cm.getChar().getFace()
|
||||
% 1000 - (cm.getChar().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
if (cm.getChar().getGender() == 1) {
|
||||
for(var i = 0; i < fface_r.length; i++) {
|
||||
pushIfItemExists(facenew, fface_r[i] + cm.getChar().getFace()
|
||||
% 1000 - (cm.getChar().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
cm.sendYesNo("If you use the regular coupon, your face may transform into a random new look...do you still want to do it using #b#t5152029##k?");
|
||||
} else if (selection == 2) {
|
||||
beauty = 1;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
colors = Array();
|
||||
pushIfItemsExists(colors, [current , current + 100, current + 300, current + 600, current + 700]);
|
||||
cm.sendYesNo("If you use the regular coupon, you'll be awarded a random pair of cosmetic lenses. Are you going to use a #b#t5152048##k and really make the change to your eyes?");
|
||||
}
|
||||
} else if (status == 2){
|
||||
cm.dispose();
|
||||
if (cm.haveItem(5152029) == true){
|
||||
cm.gainItem(5152029, -1);
|
||||
cm.setFace(facenew[Math.floor(Math.random() * facenew.length)]);
|
||||
cm.sendOk("Enjoy your new and improved face!");
|
||||
} else {
|
||||
cm.sendNext("Um ... it looks like you don't have the coupon specifically for this place...sorry to say this, but without the coupon, there's no plastic surgery for you.");
|
||||
}
|
||||
|
||||
if (beauty == 0) {
|
||||
if (cm.haveItem(5152029) == true){
|
||||
cm.gainItem(5152029, -1);
|
||||
cm.setFace(facenew[Math.floor(Math.random() * facenew.length)]);
|
||||
cm.sendOk("Enjoy your new and improved face!");
|
||||
} else {
|
||||
cm.sendNext("Um ... it looks like you don't have the coupon specifically for this place...sorry to say this, but without the coupon, there's no plastic surgery for you.");
|
||||
}
|
||||
} else if (beauty == 1) {
|
||||
if (cm.haveItem(5152048)){
|
||||
cm.gainItem(5152048, -1);
|
||||
cm.setFace(colors[Math.floor(Math.random() * colors.length)]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("Hmm ... it looks like you don't have the coupon specifically for this place. Sorry to say this, but without the coupon, there's no plastic surgery for you...");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,15 +21,23 @@
|
||||
|
||||
/* Tepei
|
||||
Showa VIP Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30230, 30030, 30260, 30280, 30240, 30290, 30020, 30270, 30340, 30710, 30810);
|
||||
var fhair = Array(31310, 31300, 31050, 31040, 31160, 31100, 31410, 31030, 31790, 31550);
|
||||
var mhair_v = Array(30260, 30280, 30340, 30710, 30780, 30800, 30810, 30820, 30920);
|
||||
var fhair_v = Array(31000, 31030, 31100, 31350, 31460, 31550, 31770, 31790, 31850);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -54,13 +62,13 @@ 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));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
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 totally change up your hairstyle and make it look so good. Why don't you change it up a bit? With #b#t5150009##k, I'll take care of the rest for you. Choose the style of your liking!", hairnew);
|
||||
@@ -69,7 +77,7 @@ function action(mode, type, selection) {
|
||||
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 totally change your haircolor and make it look so good. Why don't you change it up a bit? With #b#t5151009##k, I'll take care of the rest. Choose the color of your liking!", haircolor);
|
||||
}
|
||||
|
||||
@@ -19,17 +19,25 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* Unkown
|
||||
Showa Town VIP Hair/Hair Color Change.
|
||||
/* Midori
|
||||
Showa Random Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30000, 30120, 30140, 30190, 30210, 30360, 30220, 30370, 30400, 30440, 30790, 30800, 30810, 30770, 30760);
|
||||
var fhair = Array(31030, 31050, 31000, 31070, 31100, 31120, 31130, 31250, 31340, 31680, 31350, 31400, 31650, 31550, 31800);
|
||||
var mhair_r = Array(30260, 30280, 30340, 30360, 30710, 30780, 30790, 30800, 30810, 30820, 30920);
|
||||
var fhair_r = Array(31350, 31410, 31460, 31540, 31550, 31710, 31720, 31770, 31790, 31800, 31850, 34000);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -48,63 +56,58 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("I'm the head of Showa hair salon. If you have a #b#t5150009##k or a #b#t5151009##k allow me to take care of your hairdo. Please choose the one you want.\r\n#L1#Haircut: #i5150009##t5150009##l\r\n#L2#Dye your hair: #i5151009##t5151009##l");
|
||||
cm.sendSimple("Hi, I'm the assistant here. Don't worry, I'm plenty good enough for this. If you have #b#t5150008##k or #b#t5151008##k by any chance, then allow me to take care of the rest, alright?\r\n#L1#Haircut: #i5150008##t5150008##l\r\n#L2#Dye your hair: #i5151008##t5151008##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
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_r.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair.length; i++) {
|
||||
hairnew.push(fhair[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
for(var i = 0; i < fhair_r.length; i++) {
|
||||
pushIfItemExists(hairnew, fhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
}
|
||||
}
|
||||
cm.sendStyle("I can totally change up your hairstyle and make it look so good. Why don't you change it up a bit? If you have #b#t5150009##k I'll change it for you. Choose the one to your liking~.", hairnew);
|
||||
cm.sendYesNo("If you use the REG coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that I came up with. Are you going to use #b#t5150008##k and really change your hairstyle?");
|
||||
} else if (selection == 2) {
|
||||
beauty = 2;
|
||||
haircolor = Array();
|
||||
var current = parseInt(cm.getPlayer().getHair()
|
||||
/10)*10;
|
||||
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 totally change your haircolor and make it look so good. Why don't you change it up a bit? With #b#t51051009##k I'll change it for you. Choose the one to your liking.", haircolor);
|
||||
cm.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5151008##k and change it up?");
|
||||
}
|
||||
}
|
||||
else if (status == 2){
|
||||
cm.dispose();
|
||||
if (beauty == 1){
|
||||
if (cm.haveItem(5150009)){
|
||||
cm.gainItem(5150009, -1);
|
||||
cm.setHair(hairnew[selection]);
|
||||
if (cm.haveItem(5150008)){
|
||||
cm.gainItem(5150008, -1);
|
||||
cm.setHair(hairnew[Math.floor(Math.random() * hairnew.length)]);
|
||||
cm.sendOk("Enjoy your new and improved hairstyle!");
|
||||
} else {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
||||
}
|
||||
}
|
||||
if (beauty == 2){
|
||||
if (cm.haveItem(5151009)){
|
||||
cm.gainItem(5151009, -1);
|
||||
cm.setHair(haircolor[selection]);
|
||||
} else if (beauty == 2){
|
||||
if (cm.haveItem(5151008)){
|
||||
cm.gainItem(5151008, -1);
|
||||
cm.setHair(haircolor[Math.floor(Math.random() * haircolor.length)]);
|
||||
cm.sendOk("Enjoy your new and improved haircolor!");
|
||||
} else {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't dye your hair without it. I'm sorry...");
|
||||
}
|
||||
}
|
||||
if (beauty == 0){
|
||||
} else if (beauty == 0){
|
||||
if (selection == 0 && cm.getMeso() >= hairprice) {
|
||||
cm.gainMeso(-hairprice);
|
||||
cm.gainItem(5150009, 1);
|
||||
cm.gainItem(5150008, 1);
|
||||
cm.sendOk("Enjoy!");
|
||||
} else if (selection == 1 && cm.getMeso() >= haircolorprice) {
|
||||
cm.gainMeso(-haircolorprice);
|
||||
cm.gainItem(5151009, 1);
|
||||
cm.gainItem(5151008, 1);
|
||||
cm.sendOk("Enjoy!");
|
||||
} else {
|
||||
cm.sendOk("You don't have enough mesos to buy a coupon!");
|
||||
|
||||
163
scripts/npc/9120102.js
Normal file
163
scripts/npc/9120102.js
Normal file
@@ -0,0 +1,163 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
Copyleft (L) 2016 - 2018 RonanLana (HeavenMS)
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* Hikekuro the Owner
|
||||
Showa VIP Face & Eye Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var price = 1000000;
|
||||
var mface_v = Array(20000, 20004, 20005, 20012, 20020, 20031);
|
||||
var fface_v = Array(21000, 21003, 21006, 21012, 21021, 21024);
|
||||
var facenew = Array();
|
||||
var colors = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function pushIfItemsExists(array, itemidList) {
|
||||
for (var i = 0; i < itemidList.length; i++) {
|
||||
var itemid = itemidList[i];
|
||||
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == -1) {
|
||||
cm.dispose();
|
||||
} else {
|
||||
if (mode == 0 && status == 0) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
if (mode == 1)
|
||||
status++;
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Well well well, welcome to the Showa Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152009##k or a #b#t5152045##k, you can let us take care of the rest and have the face you've always wanted~!\r\n#L1#Plastic Surgery: #i5152009##t5152009##l\r\n#L2#Cosmetic Lens: #i5152045##t5152045##l\r\n#L3#One-time Cosmetic Lenses: #i5152102# (any color)#l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
beauty = 0;
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mface_v.length; i++) {
|
||||
pushIfItemExists(facenew, mface_v[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fface_v.length; i++) {
|
||||
pushIfItemExists(facenew, fface_v[i] + cm.getPlayer().getFace()
|
||||
% 1000 - (cm.getPlayer().getFace()
|
||||
% 100));
|
||||
}
|
||||
}
|
||||
cm.sendStyle("I can totally transform your face into something new... how about giving us a try? For #b#t5152009##k, you can get the face of your liking...take your time in choosing the face of your preference.", facenew);
|
||||
} else if (selection == 2) {
|
||||
beauty = 1;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
colors = Array();
|
||||
pushIfItemsExists(colors, [current , current + 100, current + 200, current + 300, current +400, current + 500, current + 700]);
|
||||
cm.sendStyle("With our new computer program, you can see yourself after the treatment in advance. What kind of lens would you like to wear? Please choose the style of your liking.", colors);
|
||||
} else if (selection == 3) {
|
||||
beauty = 3;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
|
||||
colors = Array();
|
||||
for (var i = 0; i < 8; i++) {
|
||||
if (cm.haveItem(5152100 + i)) {
|
||||
pushIfItemExists(colors, current + 100 * i);
|
||||
}
|
||||
}
|
||||
|
||||
if (colors.length == 0) {
|
||||
cm.sendOk("You don't have any One-Time Cosmetic Lens to use.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
cm.sendStyle("What kind of lens would you like to wear? Please choose the style of your liking.", colors);
|
||||
}
|
||||
}
|
||||
else if (status == 2){
|
||||
cm.dispose();
|
||||
|
||||
if (beauty == 0) {
|
||||
if (cm.haveItem(5152009) == true){
|
||||
cm.gainItem(5152009, -1);
|
||||
cm.setFace(facenew[selection]);
|
||||
cm.sendOk("Enjoy your new and improved face!");
|
||||
} else {
|
||||
cm.sendOk("Hmm ... it looks like you don't have the coupon specifically for this place. Sorry to say this, but without the coupon, there's no plastic surgery for you...");
|
||||
}
|
||||
} else if (beauty == 1) {
|
||||
if (cm.haveItem(5152045) == true){
|
||||
cm.gainItem(5152045, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("Hmm ... it looks like you don't have the coupon specifically for this place. Sorry to say this, but without the coupon, there's no plastic surgery for you...");
|
||||
}
|
||||
} else if (beauty == 3){
|
||||
var color = (colors[selection] / 100) % 100 | 0;
|
||||
|
||||
if (cm.haveItem(5152100 + color)){
|
||||
cm.gainItem(5152100 + color, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
110
scripts/npc/9120103.js
Normal file
110
scripts/npc/9120103.js
Normal file
@@ -0,0 +1,110 @@
|
||||
/*
|
||||
This file is part of the OdinMS Maple Story Server
|
||||
Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
|
||||
Matthias Butz <matze@odinms.de>
|
||||
Jan Christian Meyer <vimes@odinms.de>
|
||||
|
||||
Copyleft (L) 2016 - 2018 RonanLana (HeavenMS)
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License version 3
|
||||
as published by the Free Software Foundation. You may not use, modify
|
||||
or distribute this program under any other version of the
|
||||
GNU Affero General Public License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* Saeko the Assistant
|
||||
Showa Random Face & Eye Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var price = 1000000;
|
||||
var mface_r = Array(20000, 20016, 20019, 20020, 20021, 20024, 20026);
|
||||
var fface_r = Array(21000, 21002, 21009, 21016, 21022, 21025, 21027);
|
||||
var facenew = Array();
|
||||
var colors = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function pushIfItemsExists(array, itemidList) {
|
||||
for (var i = 0; i < itemidList.length; i++) {
|
||||
var itemid = itemidList[i];
|
||||
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
cm.sendSimple("Hi, I pretty much shouldn't be doing this, but with a #b#t5152008##k or a #b#t5152046##k, I will do it anyways for you. But don't forget, it will be random!\r\n#L1#Plastic Surgery: #i5152008##t5152008##l\r\n#L2#Cosmetic Lens: #i5152046##t5152046##l");
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode < 1) {
|
||||
cm.dispose();
|
||||
} else {
|
||||
status++;
|
||||
if (status == 1) {
|
||||
if (selection == 1) {
|
||||
beauty = 0;
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0)
|
||||
for (var i = 0; i < mface_r.length; i++)
|
||||
pushIfItemExists(facenew, mface_r[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
else
|
||||
for (var i = 0; i < fface_r.length; i++)
|
||||
pushIfItemExists(facenew, fface_r[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
cm.sendYesNo("If you use the regular coupon, your face may transform into a random new look...do you still want to do it using #b#t5152008##k?");
|
||||
} else if (selection == 2) {
|
||||
beauty = 1;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
colors = Array();
|
||||
pushIfItemsExists(colors, [current , current + 100, current + 200, current + 300, current +400, current + 500, current + 700]);
|
||||
cm.sendYesNo("If you use the regular coupon, you'll be awarded a random pair of cosmetic lenses. Are you going to use a #b#t5152046##k and really make the change to your eyes?");
|
||||
}
|
||||
}
|
||||
else if (status == 2){
|
||||
if (beauty == 0) {
|
||||
if (cm.haveItem(5152008)){
|
||||
cm.gainItem(5152008, -1);
|
||||
cm.setFace(facenew[Math.floor(Math.random() * facenew.length)]);
|
||||
cm.sendOk("Enjoy your new and improved face!");
|
||||
} else {
|
||||
cm.sendOk("Hmm ... it looks like you don't have the coupon specifically for this place. Sorry to say this, but without the coupon, there's no plastic surgery for you...");
|
||||
}
|
||||
} else if (beauty == 1) {
|
||||
if (cm.haveItem(5152046)){
|
||||
cm.gainItem(5152046, -1);
|
||||
cm.setFace(colors[Math.floor(Math.random() * colors.length)]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("Hmm ... it looks like you don't have the coupon specifically for this place. Sorry to say this, but without the coupon, there's no plastic surgery for you...");
|
||||
}
|
||||
}
|
||||
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,22 @@ var regprice = 1000000;
|
||||
var vipprice = 1000000;
|
||||
var colors = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function pushIfItemsExists(array, itemidList) {
|
||||
for (var i = 0; i < itemidList.length; i++) {
|
||||
var itemid = itemidList[i];
|
||||
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -44,7 +60,7 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0)
|
||||
cm.sendSimple("Hi, there~! I'm Dr. Lenu, in charge of the cosmetic lenses here at the Henesys Plastic Surgery Shop! With #b#t5152010##k or #b#t5152013##k, you can let us take care of the rest and have the kind of beautiful look you've always craved~! Remember, the first thing everyone notices about you is the eyes, and we can help you find the cosmetic lens that most fits you! Now, what would you like to use?\r\n#L1#Cosmetic Lenses: #i5152010##t5152010##l\r\n#L2#Cosmetic Lenses: #i5152013##t5152013##l");
|
||||
cm.sendSimple("Hi, there~! I'm Dr. Lenu, in charge of the cosmetic lenses here at the Henesys Plastic Surgery Shop! With #b#t5152010##k or #b#t5152013##k, you can let us take care of the rest and have the kind of beautiful look you've always craved~! Remember, the first thing everyone notices about you is the eyes, and we can help you find the cosmetic lens that most fits you! Now, what would you like to use?\r\n#L1#Cosmetic Lenses: #i5152010##t5152010##l\r\n#L2#Cosmetic Lenses: #i5152013##t5152013##l\r\n#L3#One-time Cosmetic Lenses: #i5152103# (any color)#l");
|
||||
else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
beauty = 1;
|
||||
@@ -53,7 +69,7 @@ function action(mode, type, selection) {
|
||||
if (cm.getPlayer().getGender() == 1)
|
||||
var current = cm.getPlayer().getFace()% 100 + 21000;
|
||||
colors = Array();
|
||||
colors = Array(current , current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700);
|
||||
pushIfItemsExists(colors, [current , current + 100, current + 200, current +400, current + 600, current + 700]);
|
||||
cm.sendYesNo("If you use the regular coupon, you'll be awarded a random pair of cosmetic lenses. Are you going to use a #b#t5152010##k and really make the change to your eyes?");
|
||||
} else if (selection == 2) {
|
||||
beauty = 2;
|
||||
@@ -62,8 +78,33 @@ function action(mode, type, selection) {
|
||||
if (cm.getPlayer().getGender() == 1)
|
||||
var current = cm.getPlayer().getFace() % 100 + 21000;
|
||||
colors = Array();
|
||||
colors = Array(current , current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700);
|
||||
pushIfItemsExists(colors, [current , current + 100, current + 200, current +400, current + 600, current + 700]);
|
||||
cm.sendStyle("With our specialized machine, you can see yourself after the treatment in advance. What kind of lens would you like to wear? Choose the style of your liking.", colors);
|
||||
} else if (selection == 3) {
|
||||
beauty = 3;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
|
||||
colors = Array();
|
||||
for (var i = 0; i < 8; i++) {
|
||||
if (cm.haveItem(5152100 + i)) {
|
||||
pushIfItemExists(colors, current + 100 * i);
|
||||
}
|
||||
}
|
||||
|
||||
if (colors.length == 0) {
|
||||
cm.sendOk("You don't have any One-Time Cosmetic Lens to use.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
cm.sendStyle("What kind of lens would you like to wear? Please choose the style of your liking.", colors);
|
||||
}
|
||||
}
|
||||
else if (status == 2){
|
||||
@@ -75,16 +116,24 @@ function action(mode, type, selection) {
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
if (beauty == 2){
|
||||
} else if (beauty == 2){
|
||||
if (cm.haveItem(5152013) == true){
|
||||
cm.gainItem(5152013, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
if (beauty == 0){
|
||||
} else if (beauty == 3){
|
||||
var color = (colors[selection] / 100) % 100 | 0;
|
||||
|
||||
if (cm.haveItem(5152100 + color)){
|
||||
cm.gainItem(5152100 + color, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
} else if (beauty == 0){
|
||||
if (selection == 0 && cm.getMeso() >= regprice) {
|
||||
cm.gainMeso(-regprice);
|
||||
cm.gainItem(5152010, 1);
|
||||
|
||||
@@ -28,6 +28,22 @@ var regprice = 1000000;
|
||||
var vipprice = 1000000;
|
||||
var colors = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function pushIfItemsExists(array, itemidList) {
|
||||
for (var i = 0; i < itemidList.length; i++) {
|
||||
var itemid = itemidList[i];
|
||||
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -46,7 +62,7 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Hello, I'm Dr. Rhomes, head of the cosmetic lens department here at the Orbis Plastic Surgery Shop.\r\nMy goal here is to add personality to everyone's eyes through the wonders of cosmetic lenses, and with #b#t5152011##k or #b#t5152014##k, I can do the same for you, too! Now, what would you like to use?\r\n#L1#Cosmetic Lenses: #i5152011##t5152011##l\r\n#L2#Cosmetic Lenses: #i5152014##t5152014##l");
|
||||
cm.sendSimple("Hello, I'm Dr. Rhomes, head of the cosmetic lens department here at the Orbis Plastic Surgery Shop.\r\nMy goal here is to add personality to everyone's eyes through the wonders of cosmetic lenses, and with #b#t5152011##k or #b#t5152014##k, I can do the same for you, too! Now, what would you like to use?\r\n#L1#Cosmetic Lenses: #i5152011##t5152011##l\r\n#L2#Cosmetic Lenses: #i5152014##t5152014##l\r\n#L3#One-time Cosmetic Lenses: #i5152104# (any color)#l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
beauty = 1;
|
||||
@@ -59,7 +75,7 @@ function action(mode, type, selection) {
|
||||
% 100 + 21000;
|
||||
}
|
||||
colors = Array();
|
||||
colors = Array(current , current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700);
|
||||
pushIfItemsExists(colors, [current + 100, current + 300, current +400, current + 700]);
|
||||
cm.sendYesNo("If you use the regular coupon, you'll be awarded a random pair of cosmetic lenses. Are you going to use a #b#t5152011##k and really make the change to your eyes?");
|
||||
} else if (selection == 2) {
|
||||
beauty = 2;
|
||||
@@ -72,8 +88,33 @@ function action(mode, type, selection) {
|
||||
% 100 + 21000;
|
||||
}
|
||||
colors = Array();
|
||||
colors = Array(current , current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700);
|
||||
pushIfItemsExists(colors, [current + 100, current + 300, current +400, current + 700]);
|
||||
cm.sendStyle("With our new computer program, you can see yourself after the treatment in advance. What kind of lens would you like to wear? Please choose the style of your liking.", colors);
|
||||
} else if (selection == 3) {
|
||||
beauty = 3;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
|
||||
colors = Array();
|
||||
for (var i = 0; i < 8; i++) {
|
||||
if (cm.haveItem(5152100 + i)) {
|
||||
pushIfItemExists(colors, current + 100 * i);
|
||||
}
|
||||
}
|
||||
|
||||
if (colors.length == 0) {
|
||||
cm.sendOk("You don't have any One-Time Cosmetic Lens to use.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
cm.sendStyle("What kind of lens would you like to wear? Please choose the style of your liking.", colors);
|
||||
}
|
||||
}
|
||||
else if (status == 2){
|
||||
@@ -86,8 +127,7 @@ function action(mode, type, selection) {
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
}
|
||||
if (beauty == 2){
|
||||
} else if (beauty == 2){
|
||||
if (cm.haveItem(5152014)){
|
||||
cm.gainItem(5152014, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
@@ -95,8 +135,17 @@ function action(mode, type, selection) {
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
}
|
||||
if (beauty == 0){
|
||||
} else if (beauty == 3){
|
||||
var color = (colors[selection] / 100) % 100 | 0;
|
||||
|
||||
if (cm.haveItem(5152100 + color)){
|
||||
cm.gainItem(5152100 + color, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
} else if (beauty == 0){
|
||||
if (selection == 0 && cm.getMeso() >= regprice) {
|
||||
cm.gainMeso(-regprice);
|
||||
cm.gainItem(5152011, 1);
|
||||
|
||||
@@ -28,6 +28,22 @@ var regprice = 1000000;
|
||||
var vipprice = 1000000;
|
||||
var colors = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function pushIfItemsExists(array, itemidList) {
|
||||
for (var i = 0; i < itemidList.length; i++) {
|
||||
var itemid = itemidList[i];
|
||||
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -46,7 +62,7 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Um... hi, I'm Dr. Bosch, and I am a cosmetic lens expert here at the Ludibrium Plastic Surgery Shop. I believe your eyes are the most important feature in your body, and with #b#t5152012##k or #b#t5152015##k, I can prescribe the right kind of cosmetic lenses for you. Now, what would you like to use?\r\n#L1#Cosmetic Lenses: #i5152012##t5152012##l\r\n#L2#Cosmetic Lenses: #i5152015##t5152015##l");
|
||||
cm.sendSimple("Um... hi, I'm Dr. Bosch, and I am a cosmetic lens expert here at the Ludibrium Plastic Surgery Shop. I believe your eyes are the most important feature in your body, and with #b#t5152012##k or #b#t5152015##k, I can prescribe the right kind of cosmetic lenses for you. Now, what would you like to use?\r\n#L1#Cosmetic Lenses: #i5152012##t5152012##l\r\n#L2#Cosmetic Lenses: #i5152015##t5152015##l\r\n#L3#One-time Cosmetic Lenses: #i5152105# (any color)#l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
beauty = 1;
|
||||
@@ -57,7 +73,7 @@ function action(mode, type, selection) {
|
||||
var current = cm.getPlayer().getFace() % 100 + 21000;
|
||||
}
|
||||
colors = Array();
|
||||
colors = Array(current , current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700);
|
||||
pushIfItemsExists(colors, [current + 200, current + 300, current +400, current + 500, current + 700]);
|
||||
cm.sendYesNo("If you use the regular coupon, you'll be awarded a random pair of cosmetic lenses. Are you going to use a #b#t5152012##k and really make the change to your eyes?");
|
||||
} else if (selection == 2) {
|
||||
beauty = 2;
|
||||
@@ -68,8 +84,33 @@ function action(mode, type, selection) {
|
||||
var current = cm.getPlayer().getFace() % 100 + 21000;
|
||||
}
|
||||
colors = Array();
|
||||
colors = Array(current , current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700);
|
||||
pushIfItemsExists(colors, [current + 200, current + 300, current +400, current + 500, current + 700]);
|
||||
cm.sendStyle("With our new computer program, you can see yourself after the treatment in advance. What kind of lens would you like to wear? Please choose the style of your liking.", colors);
|
||||
} else if (selection == 3) {
|
||||
beauty = 3;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
|
||||
colors = Array();
|
||||
for (var i = 0; i < 8; i++) {
|
||||
if (cm.haveItem(5152100 + i)) {
|
||||
pushIfItemExists(colors, current + 100 * i);
|
||||
}
|
||||
}
|
||||
|
||||
if (colors.length == 0) {
|
||||
cm.sendOk("You don't have any One-Time Cosmetic Lens to use.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
cm.sendStyle("What kind of lens would you like to wear? Please choose the style of your liking.", colors);
|
||||
}
|
||||
}
|
||||
else if (status == 2){
|
||||
@@ -83,8 +124,7 @@ function action(mode, type, selection) {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
if (beauty == 2){
|
||||
} else if (beauty == 2){
|
||||
if (cm.haveItem(5152015) == true){
|
||||
cm.gainItem(5152015, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
@@ -94,8 +134,17 @@ function action(mode, type, selection) {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
if (beauty == 0){
|
||||
} else if (beauty == 3){
|
||||
var color = (colors[selection] / 100) % 100 | 0;
|
||||
|
||||
if (cm.haveItem(5152100 + color)){
|
||||
cm.gainItem(5152100 + color, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
} else if (beauty == 0){
|
||||
if (selection == 0 && cm.getMeso() >= regprice) {
|
||||
cm.gainMeso(-regprice);
|
||||
cm.gainItem(5152012, 1);
|
||||
|
||||
@@ -21,15 +21,23 @@
|
||||
|
||||
/* Julius Styleman
|
||||
Amoria VIP Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30580, 30590, 30280, 30670, 30410, 30200, 30050, 30230, 30290, 30300, 30250);
|
||||
var fhair = Array(31580, 31590, 31310, 31200, 31150, 31160, 31020, 31260, 31230, 31220, 31110);
|
||||
var mhair_v = Array(30050, 30300, 30410, 30450, 30510, 30570, 30580, 30590, 30660, 30910);
|
||||
var fhair_v = Array(31150, 31220, 31260, 31310, 31420, 31480, 31490, 31580, 31590, 31610, 31630);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -54,14 +62,14 @@ 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()
|
||||
for(var i = 0; i < mhair_v.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_v[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair.length; i++) {
|
||||
hairnew.push(fhair[i] + parseInt(cm.getPlayer().getHair()
|
||||
for(var i = 0; i < fhair_v.length; i++) {
|
||||
pushIfItemExists(hairnew, fhair_v[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
@@ -72,7 +80,7 @@ function action(mode, type, selection) {
|
||||
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 totally change your haircolor and make it look so good. Why don't you change it up a bit? With #b#t5151017##k, I'll take care of the rest. Choose the color of your liking!", haircolor);
|
||||
}
|
||||
|
||||
@@ -21,15 +21,23 @@
|
||||
*/
|
||||
/* Salon Seamus
|
||||
Amoria Random Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30570, 30690, 30250, 30230, 30050, 30280, 30410, 30290, 30300, 30580, 30590, 30200, 30450);
|
||||
var fhair = Array(31490, 31570, 31150, 31590, 31310, 31220, 31260, 31020, 31160, 31110, 31230, 31580, 31480);
|
||||
var mhair_e = Array(30000, 30020, 30110, 30130, 30160, 30190, 30240, 30270, 30430);
|
||||
var fhair_e = Array(31000, 31030, 31050, 31070, 31090, 31150, 31310, 31910, 34010);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -54,14 +62,14 @@ 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()
|
||||
for(var i = 0; i < mhair_e.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_e[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair.length; i++) {
|
||||
hairnew.push(fhair[i] + parseInt(cm.getPlayer().getHair()
|
||||
for(var i = 0; i < fhair_e.length; i++) {
|
||||
pushIfItemExists(hairnew, fhair_e[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
@@ -72,9 +80,9 @@ function action(mode, type, selection) {
|
||||
var current = parseInt(cm.getPlayer().getHair()
|
||||
/10)*10;
|
||||
for(var i = 0; i < 8; i++) {
|
||||
haircolor.push(current + i);
|
||||
pushIfItemExists(haircolor, current + i);
|
||||
}
|
||||
cm.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5150019##k and change it up?");
|
||||
cm.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5150016##k and change it up?");
|
||||
}
|
||||
}
|
||||
else if (status == 2){
|
||||
@@ -112,98 +120,4 @@ function action(mode, type, selection) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* Salon Seamus
|
||||
Amoria Random Hair/Hair Color Change.
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30570, 30690, 30250, 30230, 30050, 30280, 30410, 30290, 30300, 30580, 30590, 30200, 30450);
|
||||
var fhair = Array(31490, 31570, 31150, 31590, 31310, 31220, 31260, 31020, 31160, 31110, 31230, 31580, 31480);
|
||||
var hairnew = Array();
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
if (mode == -1) {
|
||||
cm.dispose();
|
||||
} else {
|
||||
if (mode == 0 && status == 0) {
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
if (mode == 1)
|
||||
status++;
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("I'm Salon Seamus. If you have #b#t5150019##k or #b#t5151016##k by any chance, then how about letting me change your hairdo?\r\n#L1#Haircut: #i5150019##t5150019##l\r\n#L2#Dye your hair: #i5151016##t5151016##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
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));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair.length; i++) {
|
||||
hairnew.push(fhair[i] + parseInt(cm.getPlayer().getHair()
|
||||
% 10));
|
||||
}
|
||||
}
|
||||
cm.sendYesNo("If you use the EXP coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that even you didn't think was possible. Are you going to use #b#t5150019##k and really change your hairstyle?");
|
||||
} 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);
|
||||
}
|
||||
cm.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5151016##k and change it up?");
|
||||
}
|
||||
}
|
||||
else if (status == 2){
|
||||
cm.dispose();
|
||||
if (beauty == 1){
|
||||
if (cm.haveItem(5150019) == true){
|
||||
cm.gainItem(5150019, -1);
|
||||
cm.setHair(hairnew[Math.floor(Math.random() * hairnew.length)]);
|
||||
cm.sendOk("Enjoy your new and improved hairstyle!");
|
||||
} else {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't give you a haircut without it. I'm sorry...");
|
||||
}
|
||||
}
|
||||
if (beauty == 2){
|
||||
if (cm.haveItem(5151016) == true){
|
||||
cm.gainItem(5151016, -1);
|
||||
cm.setHair(haircolor[Math.floor(Math.random() * haircolor.length)]);
|
||||
cm.sendOk("Enjoy your new and improved haircolor!");
|
||||
} else {
|
||||
cm.sendOk("Hmmm...it looks like you don't have our designated coupon...I'm afraid I can't dye your hair without it. I'm sorry...");
|
||||
}
|
||||
}
|
||||
if (beauty == 0){
|
||||
if (selection == 0 && cm.getMeso() >= hairprice) {
|
||||
cm.gainMeso(-hairprice);
|
||||
cm.gainItem(5150019, 1);
|
||||
cm.sendOk("Enjoy!");
|
||||
} else if (selection == 1 && cm.getMeso() >= haircolorprice) {
|
||||
cm.gainMeso(-haircolorprice);
|
||||
cm.gainItem(5151016, 1);
|
||||
cm.sendOk("Enjoy!");
|
||||
} else {
|
||||
cm.sendOk("You don't have enough mesos to buy a coupon!");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -28,6 +28,22 @@ var regprice = 1000000;
|
||||
var vipprice = 1000000;
|
||||
var colors = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function pushIfItemsExists(array, itemidList) {
|
||||
for (var i = 0; i < itemidList.length; i++) {
|
||||
var itemid = itemidList[i];
|
||||
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -46,7 +62,7 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Hi, there~! I'm Dr.Roberts, in charge of the cosmetic lenses here at the Amoria Plastic Surgery Shop! With #b#t5152025##k or #b#t5152026##k, you can let us take care of the rest and have the kind of beautiful look you've always craved~! Remember, the first thing everyone notices about you is the eyes, and we can help you find the cosmetic lens that most fits you! Now, what would you like to use?\r\n#L1#Cosmetic Lenses: #i5152025##t5152025##l\r\n#L2#Cosmetic Lenses: #i5152026##t5152026##l");
|
||||
cm.sendSimple("Hi, there~! I'm Dr.Roberts, in charge of the cosmetic lenses here at the Amoria Plastic Surgery Shop! With #b#t5152025##k or #b#t5152026##k, you can let us take care of the rest and have the kind of beautiful look you've always craved~! Remember, the first thing everyone notices about you is the eyes, and we can help you find the cosmetic lens that most fits you! Now, what would you like to use?\r\n#L1#Cosmetic Lenses: #i5152025##t5152025##l\r\n#L2#Cosmetic Lenses: #i5152026##t5152026##l\r\n#L3#One-time Cosmetic Lenses: #i5152106# (any color)#l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 1) {
|
||||
beauty = 1;
|
||||
@@ -57,7 +73,7 @@ function action(mode, type, selection) {
|
||||
var current = cm.getPlayer().getFace() % 100 + 21000;
|
||||
}
|
||||
colors = Array();
|
||||
colors = Array(current , current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700);
|
||||
pushIfItemsExists(colors, [current , current + 100, current + 300, current +400, current + 500, current + 700]);
|
||||
cm.sendYesNo("If you use the regular coupon, you'll be awarded a random pair of cosmetic lenses. Are you going to use a #b#t5152025##k and really make the change to your eyes?");
|
||||
} else if (selection == 2) {
|
||||
beauty = 2;
|
||||
@@ -68,8 +84,33 @@ function action(mode, type, selection) {
|
||||
var current = cm.getPlayer().getFace() % 100 + 21000;
|
||||
}
|
||||
colors = Array();
|
||||
colors = Array(current , current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700);
|
||||
pushIfItemsExists(colors, [current , current + 100, current + 300, current +400, current + 500, current + 700]);
|
||||
cm.sendStyle("With our specialized machine, you can see yourself after the treatment in advance. What kind of lens would you like to wear? Choose the style of your liking.", colors);
|
||||
} else if (selection == 3) {
|
||||
beauty = 3;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
|
||||
colors = Array();
|
||||
for (var i = 0; i < 8; i++) {
|
||||
if (cm.haveItem(5152100 + i)) {
|
||||
pushIfItemExists(colors, current + 100 * i);
|
||||
}
|
||||
}
|
||||
|
||||
if (colors.length == 0) {
|
||||
cm.sendOk("You don't have any One-Time Cosmetic Lens to use.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
cm.sendStyle("What kind of lens would you like to wear? Please choose the style of your liking.", colors);
|
||||
}
|
||||
}
|
||||
else if (status == 2){
|
||||
@@ -82,8 +123,7 @@ function action(mode, type, selection) {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
if (beauty == 2){
|
||||
} else if (beauty == 2){
|
||||
if (cm.haveItem(5152026)){
|
||||
cm.gainItem(5152026, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
@@ -92,8 +132,17 @@ function action(mode, type, selection) {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
cm.dispose();
|
||||
}
|
||||
}
|
||||
if (beauty == 0){
|
||||
} else if (beauty == 3){
|
||||
var color = (colors[selection] / 100) % 100 | 0;
|
||||
|
||||
if (cm.haveItem(5152100 + color)){
|
||||
cm.gainItem(5152100 + color, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
} else if (beauty == 0){
|
||||
if (selection == 0 && cm.getMeso() >= regprice) {
|
||||
cm.gainMeso(-regprice);
|
||||
cm.gainItem(5152025, 1);
|
||||
|
||||
@@ -21,14 +21,22 @@
|
||||
*/
|
||||
/* Dr. 90212
|
||||
Amoria VIP Eye Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var price = 1000000;
|
||||
var mface = Array(20000, 20001, 20003, 20004, 20005, 20006, 20007, 20008, 20018, 20019);
|
||||
var fface = Array(21018, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21012, 21019);
|
||||
var mface_v = Array(20000, 20001, 20003, 20004, 20005, 20006, 20007, 20008, 20018, 20019);
|
||||
var fface_v = Array(21001, 21002, 21003, 21004, 21005, 21006, 21007, 21012, 21018, 21019);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -47,18 +55,18 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Well, hello! Welcome to Amoria Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152022##k, you can let us take care of the rest and have the face you've always wanted~!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Well, hello! Welcome to Amoria Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152022##k, you can let us take care of the rest and have the face you've always wanted~!\r\n#L2#Plastic Surgery: #i5152022##t5152022##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 2) {
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mface.length; i++) {
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
for(var i = 0; i < mface_v.length; i++) {
|
||||
pushIfItemExists(facenew, mface_v[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fface.length; i++) {
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
for(var i = 0; i < fface_v.length; i++) {
|
||||
pushIfItemExists(facenew, fface_v[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
}
|
||||
}
|
||||
cm.sendStyle("Let's see... I can totally transform your face into something new. Don't you want to try it? For #b#t5152022##k, you can get the face of your liking. Take your time in choosing the face of your preference.", facenew);
|
||||
|
||||
@@ -21,14 +21,22 @@
|
||||
*/
|
||||
/* Intern Shakihands
|
||||
Amoria Random Eye Change
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var price = 1000000;
|
||||
var mface = Array(20000, 20001, 20003, 20004, 20005, 20006, 20007, 20008, 20018, 20019);
|
||||
var fface = Array(21018, 21001, 21002, 21003, 21004, 21005, 21006, 21007, 21012, 21019);
|
||||
var mface_r = Array(20002, 20005, 20007, 20011, 20014, 20027, 20029);
|
||||
var fface_r = Array(21001, 21005, 21007, 21017, 21018, 21020, 21022);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -47,18 +55,18 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Hi, I pretty much shouldn't be doing this, but with a #b#t5152021##k, I will do it anyways for you. But don't forget, it will be random!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Hi, I pretty much shouldn't be doing this, but with a #b#t5152021##k, I will do it anyways for you. But don't forget, it will be random!\r\n#L2#Plastic Surgery: #i5152021##t5152021##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 2) {
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mface.length; i++) {
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
for(var i = 0; i < mface_r.length; i++) {
|
||||
pushIfItemExists(facenew, mface_r[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fface.length; i++) {
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
for(var i = 0; i < fface_r.length; i++) {
|
||||
pushIfItemExists(facenew, fface_r[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
}
|
||||
}
|
||||
cm.sendYesNo("If you use the regular coupon, your face may transform into a random new look...do you still want to do it using #b#t5152021##k?");
|
||||
|
||||
@@ -19,11 +19,24 @@
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* Claudia
|
||||
Amoria Quest Hair Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
|
||||
var status = 0;
|
||||
var mhair = Array(30270, 30240, 30020, 30000, 30132, 30192, 30032, 30112, 30162);
|
||||
var fhair = Array(31150, 31250, 31310, 31050, 31050, 31030, 31070, 31091, 31001);
|
||||
var mhair_q = Array(30270, 30240, 30020, 30000, 30132, 30192, 30032, 30112, 30162);
|
||||
var fhair_q = Array(31150, 31250, 31310, 31050, 31050, 31030, 31070, 31091, 31001);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
if (cm.isQuestCompleted(8860) && !cm.haveItem(4031528)) {
|
||||
cm.sendNext("I've already done your hair once as a trade-for-services, sport. You'll have to snag an EXP Hair coupon from the Cash Shop if you want to change it again!");
|
||||
@@ -44,11 +57,11 @@ function action(mode, type, selection) {
|
||||
if (status == 1) {
|
||||
hairnew = Array();
|
||||
if (cm.getPlayer().getGender() == 0)
|
||||
for(var i = 0; i < mhair.length; i++)
|
||||
hairnew.push(mhair[i]);
|
||||
for(var i = 0; i < mhair_q.length; i++)
|
||||
pushIfItemExists(hairnew, mhair_q[i]);
|
||||
else
|
||||
for(var j = 0; j < fhair.length; j++)
|
||||
hairnew.push(fhair[j]);
|
||||
for(var j = 0; j < fhair_q.length; j++)
|
||||
pushIfItemExists(hairnew, fhair_q[j]);
|
||||
cm.sendNext("Here we go!");
|
||||
} else {
|
||||
if (cm.haveItem(4031528)) {
|
||||
|
||||
@@ -26,6 +26,16 @@ var status = 0;
|
||||
var price = 1000000;
|
||||
var colors = Array();
|
||||
|
||||
function pushIfItemsExists(array, itemidList) {
|
||||
for (var i = 0; i < itemidList.length; i++) {
|
||||
var itemid = itemidList[i];
|
||||
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -44,7 +54,7 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Hi, there~! I'm Bomack. If you have a #b#t5152035##k, I can prescribe the right kind of cosmetic lenses for you. Now, what would you like to do?\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Hi, there~! I'm Bomack. If you have a #b#t5152035##k, I can prescribe the right kind of cosmetic lenses for you. Now, what would you like to do?\r\n#L2#Cosmetic Lens: #i5152035##t5152035##l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 2) {
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
@@ -54,7 +64,7 @@ function action(mode, type, selection) {
|
||||
var current = cm.getPlayer().getFace() % 100 + 21000;
|
||||
}
|
||||
colors = Array();
|
||||
colors = Array(current , current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700);
|
||||
pushIfItemsExists(colors, [current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700]);
|
||||
cm.sendYesNo("If you use the regular coupon, you'll be awarded a random pair of cosmetic lenses. Are you going to use #b#t5152035##k and really make the change to your eyes?");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,9 +23,26 @@
|
||||
NLC VIP Eye Color Change.
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var price = 1000000;
|
||||
var colors = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function pushIfItemsExists(array, itemidList) {
|
||||
for (var i = 0; i < itemidList.length; i++) {
|
||||
var itemid = itemidList[i];
|
||||
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -44,7 +61,7 @@ function action(mode, type, selection) {
|
||||
else
|
||||
status--;
|
||||
if (status == 0) {
|
||||
cm.sendSimple("Hey, there~! I'm J.J.! I'm in charge of the cosmetic lenses here at NLC Shop! If you have a #b#t5152036##k, I can get you the best cosmetic lenses you have ever had! Now, what would you like to do?\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Hey, there~! I'm J.J.! I'm in charge of the cosmetic lenses here at NLC Shop! If you have a #b#t5152036##k, I can get you the best cosmetic lenses you have ever had! Now, what would you like to do?\r\n#L2#Cosmetic Lenses: #i5152036##t5152036##l\r\n#L3#One-time Cosmetic Lenses: #i5152107# (any color)#l");
|
||||
} else if (status == 1) {
|
||||
if (selection == 2) {
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
@@ -54,18 +71,54 @@ function action(mode, type, selection) {
|
||||
var current = cm.getPlayer().getFace() % 100 + 21000;
|
||||
}
|
||||
colors = Array();
|
||||
colors = Array(current , current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700);
|
||||
pushIfItemsExists(colors, [current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700]);
|
||||
cm.sendStyle("With our specialized machine, you can see yourself after the treatment in advance. What kind of lens would you like to wear? Choose the style of your liking.", colors);
|
||||
} else if (selection == 3) {
|
||||
beauty = 3;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
|
||||
colors = Array();
|
||||
for (var i = 0; i < 8; i++) {
|
||||
if (cm.haveItem(5152100 + i)) {
|
||||
pushIfItemExists(colors, current + 100 * i);
|
||||
}
|
||||
}
|
||||
|
||||
if (colors.length == 0) {
|
||||
cm.sendOk("You don't have any One-Time Cosmetic Lens to use.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
cm.sendStyle("What kind of lens would you like to wear? Please choose the style of your liking.", colors);
|
||||
}
|
||||
}
|
||||
else if (status == 2){
|
||||
} else if (status == 2){
|
||||
cm.dispose();
|
||||
if (cm.haveItem(5152036) == true){
|
||||
cm.gainItem(5152036, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
if (beauty == 0) {
|
||||
if (cm.haveItem(5152036) == true){
|
||||
cm.gainItem(5152036, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
} else if (beauty == 3){
|
||||
var color = (colors[selection] / 100) % 100 | 0;
|
||||
|
||||
if (cm.haveItem(5152100 + color)){
|
||||
cm.gainItem(5152100 + color, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,15 +21,23 @@
|
||||
*/
|
||||
/* Ari
|
||||
NLC Random Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30250, 30110, 30230, 30050, 30280, 30410, 30730, 30160, 30200, 30440, 30360, 30740, 30400);
|
||||
var fhair = Array(31150, 31310, 31220, 31300, 31260, 31160, 31730, 31410, 31410, 31720, 31560, 31450);
|
||||
var mhair_e = Array(30250, 30400, 30430, 30440, 30490, 30730, 30830, 30870, 30880, 33100);
|
||||
var fhair_e = Array(31320, 31450, 31560, 31570, 31690, 31720, 31730, 31830, 34010);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -54,13 +62,13 @@ 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_e.length; i++) {
|
||||
pushIfItemExists(hairnew, mhair_e[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
}
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fhair.length; i++) {
|
||||
hairnew.push(fhair[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
for(var i = 0; i < fhair_e.length; i++) {
|
||||
pushIfItemExists(hairnew, fhair_e[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
}
|
||||
}
|
||||
cm.sendYesNo("If you use the EXP coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that I came up with. Are you going to use #b#t5150030##k and really change your hairstyle?");
|
||||
@@ -69,7 +77,7 @@ function action(mode, type, selection) {
|
||||
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.sendYesNo("If you use a regular coupon your hair will change RANDOMLY. Do you still want to use #b#t5151025##k and change it up?");
|
||||
}
|
||||
|
||||
@@ -20,16 +20,24 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/* Mani
|
||||
NLC VIP Hair/Hair Color Change.
|
||||
NLC VIP Hair/Hair Color Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var hairprice = 1000000;
|
||||
var haircolorprice = 1000000;
|
||||
var mhair = Array(30250, 30110, 30230, 30050, 30280, 30410, 30730, 30160, 30200);
|
||||
var fhair = Array(31150, 31310, 31220, 31300, 31260, 31160, 31730, 31410, 31410);
|
||||
var mhair_v = Array(30250, 30490, 30730, 30870, 30880, 33100);
|
||||
var fhair_v = Array(31320, 31450, 31560, 31730, 31830);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
cm.sendSimple("I'm the head of this hair salon Mani. If you have a #b#t5150031##k or a #b#t5151026##k, allow me to take care of your hairdo. Please choose the one you want.\r\n#L1#Haircut: #i5150031##t5150031##l\r\n#L2#Dye your hair: #i5151026##t5151026##l");
|
||||
}
|
||||
@@ -51,18 +59,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));
|
||||
if (cm.getPlayer().getGender() == 1)
|
||||
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 totally change up your hairstyle and make it look so good. Why don't you change it up a bit? With #b#t5150031##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 totally change your haircolor and make it look so good. Why don't you change it up a bit? With #b#t5151026##k, I'll take care of the rest. Choose the color of your liking!", haircolor);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ var price = 1000000;
|
||||
var skin = Array(0, 1, 2, 3, 4);
|
||||
|
||||
function start() {
|
||||
cm.sendSimple("Well, hello! Welcome to the NLC Skin-Care! Would you like to have a firm, tight, healthy looking skin like mine? With #b#t5153009##k, you can let us take care of the rest and have the kind of skin you've always wanted~!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Well, hello! Welcome to the NLC Skin-Care! Would you like to have a firm, tight, healthy looking skin like mine? With #b#t5153009##k, you can let us take care of the rest and have the kind of skin you've always wanted~!\r\n#L2#Skin Care: #i5153009##t5153009##l");
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
|
||||
@@ -21,16 +21,24 @@
|
||||
*/
|
||||
/* V. Isage
|
||||
NLC VIP Eye Change.
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var price = 1000000;
|
||||
var mface = Array(20000, 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20012);
|
||||
var fface = Array(21001, 21002, 21003, 21004, 21005, 21006, 21008, 21012, 21014, 21016);
|
||||
var mface_v = Array(20000, 20001, 20003, 20004, 20005, 20006, 20008, 20012, 20031);
|
||||
var fface_v = Array(21001, 21002, 21003, 21004, 21005, 21006, 21008, 21012, 21016);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
cm.sendSimple("Well, hello! Welcome to the New Leaf City Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152034##k, you can let us take care of the rest and have the face you've always wanted~!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Well, hello! Welcome to the New Leaf City Plastic Surgery! Would you like to transform your face into something new? With a #b#t5152034##k, you can let us take care of the rest and have the face you've always wanted~!\r\n#L2#Plastic Surgery: #i5152034##t5152034##l");
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
@@ -49,11 +57,11 @@ function action(mode, type, selection) {
|
||||
if (selection == 2) {
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0)
|
||||
for(var i = 0; i < mface.length; i++)
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace()% 100));
|
||||
for(var i = 0; i < mface_v.length; i++)
|
||||
pushIfItemExists(facenew, mface_v[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace()% 100));
|
||||
if (cm.getPlayer().getGender() == 1)
|
||||
for(var i = 0; i < fface.length; i++)
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
for(var i = 0; i < fface_v.length; i++)
|
||||
pushIfItemExists(facenew, fface_v[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
cm.sendStyle("Let's see... I can totally transform your face into something new. Don't you want to try it? For #b#t5152034##k, you can get the face of your liking. Take your time in choosing the face of your preference.", facenew);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,17 +21,24 @@
|
||||
*/
|
||||
/* Nerbit
|
||||
NLC Random Eye Change.
|
||||
@TODO: Make this not sell tickets like in GMS
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var price = 1000000;
|
||||
var mface = Array(20000, 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20012);
|
||||
var fface = Array(21001, 21002, 21003, 21004, 21005, 21006, 21008, 21012, 21014, 21016);
|
||||
var mface_r = Array(20001, 20008, 20011, 20013, 20024, 20029, 20032);
|
||||
var fface_r = Array(21000, 21007, 21011, 21012, 21017, 21020, 21022);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
cm.sendSimple("Hi, I pretty much shouldn't be doing this, but with a #b#t5152033##k, I will do it anyways for you. But don't forget, it will be random!\r\n#L2#I already have a Coupon!#l");
|
||||
cm.sendSimple("Hi, I pretty much shouldn't be doing this, but with a #b#t5152033##k, I will do it anyways for you. But don't forget, it will be random!\r\n#L2#Plastic Surgery: #i5152033##t5152033##l");
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
@@ -50,11 +57,11 @@ function action(mode, type, selection) {
|
||||
if (selection == 2) {
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0)
|
||||
for(var i = 0; i < mface.length; i++)
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
for(var i = 0; i < mface_r.length; i++)
|
||||
pushIfItemExists(facenew, mface_r[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
if (cm.getPlayer().getGender() == 1)
|
||||
for(var i = 0; i < fface.length; i++)
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
for(var i = 0; i < fface_r.length; i++)
|
||||
pushIfItemExists(facenew, fface_r[i] + cm.getPlayer().getFace() % 1000 - (cm.getPlayer().getFace() % 100));
|
||||
cm.sendYesNo("If you use the regular coupon, your face may transform into a random new look...do you still want to do it using #b#t5152033##k?");
|
||||
}
|
||||
} else if (status == 2){
|
||||
|
||||
@@ -23,13 +23,21 @@
|
||||
Singapore Random Face Changer
|
||||
@Author AAron (aaroncsn), Cody
|
||||
Side note by aaron [If there is something wrong PM me on fMS]
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var mface = Array(20000, 20001, 20002, 20003, 20004, 20005, 20006, 20007, 20008, 20012);
|
||||
var fface = Array(21001, 21002, 21003, 21004, 21005, 21006, 21008, 21012, 21014, 21016);
|
||||
var mface_r = Array(20002, 20005, 20006, 20013, 20017, 20021, 20024);
|
||||
var fface_r = Array(21002, 21003, 21014, 21016, 21017, 21021, 21027);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
cm.sendSimple("If you use this regular coupon, your face may transform into a random new look...do you still want to do it using #b#t5152037##k, I will do it anyways for you. But don't forget, it will be random!\r\n\#L2#OK! (Uses #i5152037# #t5152037#)#l");
|
||||
}
|
||||
@@ -57,11 +65,11 @@ function action(mode, type, selection) {
|
||||
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0)
|
||||
for(var i = 0; i < mface.length; i++)
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace()% 1000 - (cm.getPlayer().getFace()% 100));
|
||||
for(var i = 0; i < mface_r.length; i++)
|
||||
pushIfItemExists(facenew, mface_r[i] + cm.getPlayer().getFace()% 1000 - (cm.getPlayer().getFace()% 100));
|
||||
if (cm.getPlayer().getGender() == 1)
|
||||
for(var i = 0; i < fface.length; i++)
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace()% 1000 - (cm.getPlayer().getFace()% 100));
|
||||
for(var i = 0; i < fface_r.length; i++)
|
||||
pushIfItemExists(facenew, fface_r[i] + cm.getPlayer().getFace()% 1000 - (cm.getPlayer().getFace()% 100));
|
||||
cm.sendYesNo("If you use the regular coupon, your face may transform into a random new look...do you still want to do it using #b#t5152037##k?");
|
||||
} else if (status == 2){
|
||||
cm.gainItem(5152037 , -1);
|
||||
|
||||
@@ -22,13 +22,21 @@
|
||||
/* Kelvin
|
||||
SingaPore VIP Face changer
|
||||
@Author AAron (aaroncsn), Cody
|
||||
|
||||
GMS-like revised by Ronan. Contents found thanks to Mitsune (GamerBewbs), Waltzing, AyumiLove
|
||||
*/
|
||||
var status = 0;
|
||||
var beauty = 0;
|
||||
var mface = Array(20109, 20110, 20106, 20108, 20112, 20013);
|
||||
var fface = Array(21021, 21009, 21010, 21006, 21008, 21012);
|
||||
var mface_v = Array(20005, 20012, 20013, 20020, 20021, 20026);
|
||||
var fface_v = Array(21006, 21009, 21011, 21012, 21021, 21025);
|
||||
var facenew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
status = -1;
|
||||
action(1, 0, 0);
|
||||
@@ -58,12 +66,12 @@ function action(mode, type, selection) {
|
||||
|
||||
facenew = Array();
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
for(var i = 0; i < mface.length; i++)
|
||||
facenew.push(mface[i] + cm.getPlayer().getFace()% 1000 - (cm.getPlayer().getFace()% 100));
|
||||
for(var i = 0; i < mface_v.length; i++)
|
||||
pushIfItemExists(facenew, mface_v[i] + cm.getPlayer().getFace()% 1000 - (cm.getPlayer().getFace()% 100));
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
for(var i = 0; i < fface.length; i++) {
|
||||
facenew.push(fface[i] + cm.getPlayer().getFace()% 1000 - (cm.getPlayer().getFace()% 100));
|
||||
for(var i = 0; i < fface_v.length; i++) {
|
||||
pushIfItemExists(facenew, fface_v[i] + cm.getPlayer().getFace()% 1000 - (cm.getPlayer().getFace()% 100));
|
||||
}
|
||||
}
|
||||
cm.sendStyle("Let's see... I can totally transform your face into something new. Don't you want to try it? For #b#t5152038##k, you can get the face of your liking. Take your time in choosing the face of your preference...", facenew);
|
||||
|
||||
@@ -27,8 +27,24 @@ var status = 0;
|
||||
var beauty = 0;
|
||||
var colors = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function pushIfItemsExists(array, itemidList) {
|
||||
for (var i = 0; i < itemidList.length; i++) {
|
||||
var itemid = itemidList[i];
|
||||
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
cm.sendSimple("Hi, there! I'm Sixx, in charge of Da Yan Jing Lens Shop here at CBD! With #b#t5152039##k or #b#t5152040##k, you can let us take care of the rest and have the kind of beautiful look you've always craved! Remember, the first thing everyone notices about you are the eyes, and we can help you find the cosmetic lens that most fits you! Now, what would you like to use?\r\n#L1#Cosmetic Lenses: #i5152039##t5152039##l\r\n#L2#Cosmetic Lenses: #i5152040##t5152040##l");
|
||||
cm.sendSimple("Hi, there! I'm Sixx, in charge of Da Yan Jing Lens Shop here at CBD! With #b#t5152039##k or #b#t5152040##k, you can let us take care of the rest and have the kind of beautiful look you've always craved! Remember, the first thing everyone notices about you are the eyes, and we can help you find the cosmetic lens that most fits you! Now, what would you like to use?\r\n#L1#Cosmetic Lenses: #i5152039##t5152039##l\r\n#L2#Cosmetic Lenses: #i5152040##t5152040##l\r\n#L3#One-time Cosmetic Lenses: #i5152107# (any color)#l");
|
||||
}
|
||||
|
||||
function action(mode, type, selection) {
|
||||
@@ -41,11 +57,36 @@ function action(mode, type, selection) {
|
||||
beauty = 1;
|
||||
var current = cm.getPlayer().getFace()% 100 + 20000 + cm.getPlayer().getGender() * 1000;
|
||||
cm.sendYesNo("If you use the regular coupon, you'll be awarded a random pair of cosmetic lenses. Are you going to use a #b#t5152039##k and really make the change to your eyes?");
|
||||
} else {
|
||||
} else if (selection == 2) {
|
||||
beauty = 2;
|
||||
var current = cm.getPlayer().getFace()% 100 + 20000 + cm.getPlayer().getGender() * 1000;
|
||||
colors = [current , current + 100, current + 200, current + 300, current +400, current + 500, current + 600, current + 700];
|
||||
pushIfItemsExists(colors, [current + 200, current + 300, current +400, current + 700]);
|
||||
cm.sendStyle("With our specialized machine, you can see yourself after the treatment in advance. What kind of lens would you like to wear? Choose the style of your liking.", colors);
|
||||
} else if (selection == 3) {
|
||||
beauty = 3;
|
||||
if (cm.getPlayer().getGender() == 0) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 20000;
|
||||
}
|
||||
if (cm.getPlayer().getGender() == 1) {
|
||||
var current = cm.getPlayer().getFace()
|
||||
% 100 + 21000;
|
||||
}
|
||||
|
||||
colors = Array();
|
||||
for (var i = 0; i < 8; i++) {
|
||||
if (cm.haveItem(5152100 + i)) {
|
||||
pushIfItemExists(colors, current + 100 * i);
|
||||
}
|
||||
}
|
||||
|
||||
if (colors.length == 0) {
|
||||
cm.sendOk("You don't have any One-Time Cosmetic Lens to use.");
|
||||
cm.dispose();
|
||||
return;
|
||||
}
|
||||
|
||||
cm.sendStyle("What kind of lens would you like to wear? Please choose the style of your liking.", colors);
|
||||
}
|
||||
}
|
||||
else if (status == 2) {
|
||||
@@ -63,6 +104,16 @@ function action(mode, type, selection) {
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
} else if (beauty == 3){
|
||||
var color = (colors[selection] / 100) % 100 | 0;
|
||||
|
||||
if (cm.haveItem(5152100 + color)){
|
||||
cm.gainItem(5152100 + color, -1);
|
||||
cm.setFace(colors[selection]);
|
||||
cm.sendOk("Enjoy your new and improved cosmetic lenses!");
|
||||
} else {
|
||||
cm.sendOk("I'm sorry, but I don't think you have our cosmetic lens coupon with you right now. Without the coupon, I'm afraid I can't do it for you..");
|
||||
}
|
||||
}
|
||||
cm.dispose();
|
||||
}
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -20,16 +20,24 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/* Jimmy
|
||||
Singa Random Hair/Color Changer
|
||||
Singapore Random Hair/Color Changer
|
||||
@Author Cody (FlowsionMS)
|
||||
@Author AAron (FlowsionMS)
|
||||
|
||||
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_r = Array(30110, 30180, 30260, 30290, 30300, 30350, 30470, 30720, 30840);
|
||||
var fhair_r = Array(31110, 31200, 31250, 31280, 31600, 31640, 31670, 31810, 34020);
|
||||
var hairnew = Array();
|
||||
|
||||
function pushIfItemExists(array, itemid) {
|
||||
if ((itemid = cm.getCosmeticItem(itemid)) != -1 && !cm.isCosmeticEquipped(itemid)) {
|
||||
array.push(itemid);
|
||||
}
|
||||
}
|
||||
|
||||
function start() {
|
||||
cm.sendSimple("Hi, I'm the assistant here. Dont worry, I'm plenty good enough for this. If you have #b#t5150032##k or #b#t5151027##k by any chance, then allow me to take care of the rest?\r\n#L1#Haircut: #i5150032##t5150032##l\r\n#L2#Dye your hair: #i5151027##t5151027##l");
|
||||
}
|
||||
@@ -42,15 +50,15 @@ function action(mode, type, selection) {
|
||||
if (selection == 1) {
|
||||
beauty = 1;
|
||||
hairnew = Array();
|
||||
for (var id = 0; id < cm.getPlayer().getGender() == 0 ? mhair.length : fhair.length; id++)
|
||||
hairnew.push(cm.getPlayer().getGender == 0 ? mhair[i] : fhair[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
for (var id = 0; id < cm.getPlayer().getGender() == 0 ? mhair_r.length : fhair_r.length; id++)
|
||||
pushIfItemExists(hairnew, cm.getPlayer().getGender == 0 ? mhair_r[i] : fhair_r[i] + parseInt(cm.getPlayer().getHair() % 10));
|
||||
cm.sendYesNo("If you use the REG coupon your hair will change RANDOMLY with a chance to obtain a new experimental style that I came up with. Are you going to use #b#t5150032##k and really change your hairstyle?");
|
||||
} 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.sendYesNo("If you use the REG coupon your hair will change RANDOMLY. Do you still want to use #b#t5151027##k and change it up?");
|
||||
} else if (status == 2) {
|
||||
if (beauty == 1){
|
||||
|
||||
@@ -27,7 +27,7 @@ var status = 0;
|
||||
function start() {
|
||||
if (cm.haveItem(5451000)) {
|
||||
cm.gainItem(5451000, -1);
|
||||
cm.processGachapon(ids, true);
|
||||
cm.doGachapon();
|
||||
cm.dispose();
|
||||
} else if (cm.haveItem(5220000))
|
||||
cm.sendYesNo("You may use Gachapon. Would you like to use your Gachapon ticket?");
|
||||
@@ -38,7 +38,7 @@ function start() {
|
||||
|
||||
function action(mode, type, selection){
|
||||
if (mode == 1 && cm.haveItem(5220000)) {
|
||||
cm.processGachapon(ids, false);
|
||||
cm.doGachapon();
|
||||
cm.dispose();
|
||||
} else {
|
||||
if (mode > 0) {
|
||||
|
||||
@@ -100,6 +100,8 @@ function writeFeatureTab_CashItems() {
|
||||
addFeature("Close-quarters evaluation mode for items.");
|
||||
addFeature("Reviewed Karma scissors & Untradeable items.");
|
||||
addFeature("Reviewed an pet position issue within CASH inventory.");
|
||||
addFeature("Reviewed fashion-related contents, almost GMS-like.");
|
||||
addFeature("Plastic surgeons/stylists no longer stuck characters.");
|
||||
addFeature("Scroll for Spikes on Shoes.");
|
||||
addFeature("Scroll for Cold Protection.");
|
||||
addFeature("Vega's spell.");
|
||||
@@ -109,6 +111,7 @@ function writeFeatureTab_CashItems() {
|
||||
addFeature("Kite.");
|
||||
addFeature("Cash Shop surprise.");
|
||||
addFeature("Maple Life.");
|
||||
addFeature("EXP Increase.");
|
||||
}
|
||||
|
||||
function writeFeatureTab_MonstersMapsReactors() {
|
||||
@@ -120,7 +123,7 @@ function writeFeatureTab_MonstersMapsReactors() {
|
||||
addFeature("Mobs only drop items collectable by the player/party.");
|
||||
addFeature("Mobs shouldn't fall from foothold too often now.");
|
||||
addFeature("Properly applying MP cost on non-skill mob moves.");
|
||||
addFeature("Implemented banish mob skill move.");
|
||||
addFeature("Implemented mob banish by touch & skill move.");
|
||||
addFeature("Redesigned HT mechanics: assemble & dmg taken.");
|
||||
addFeature("Implemented Zombify disease status.");
|
||||
addFeature("Dmg Reflect mobskill icons no longer lags to display.");
|
||||
@@ -247,6 +250,7 @@ function writeFeatureTab_Project() {
|
||||
addFeature("Usage of HikariCP to improve DB connection calls.");
|
||||
addFeature("Usage of Java Threadpool to improve runnable calls.");
|
||||
addFeature("Developed many survey tools for content profiling.");
|
||||
addFeature("Removed dangling item name throughout game files.");
|
||||
addFeature("ThreadTracker: runtime tool for deadlock detection.");
|
||||
addFeature("Channel, World and Server-wide timer management.");
|
||||
addFeature("Thoroughly reviewed encapsulation for player stats.");
|
||||
|
||||
@@ -48,7 +48,7 @@ function action(mode, type, selection){
|
||||
} else if (mode == 1 && cm.haveItem(ticketId)) {
|
||||
if(cm.canHold(1302000) && cm.canHold(2000000) && cm.canHold(3010001) && cm.canHold(4000000)) { // One free slot in every inventory.
|
||||
cm.gainItem(ticketId, -1);
|
||||
cm.doGachapon(cm.getNpc());
|
||||
cm.doGachapon();
|
||||
} else {
|
||||
cm.sendOk("Please have at least one slot in your #rEQUIP, USE, SET-UP, #kand #bETC#k inventories free.");
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ public enum MapleBuffStat {
|
||||
PICKPOCKET(0x800000000000000L),
|
||||
PUPPET(0x800000000000000L),
|
||||
MESOGUARD(0x1000000000000000L),
|
||||
//0x2000000000000000L
|
||||
EXP_INCREASE(0x2000000000000000L),
|
||||
WEAKEN(0x4000000000000000L),
|
||||
//THAT GAP
|
||||
|
||||
|
||||
@@ -1243,9 +1243,11 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
|
||||
int banSp = this.getMap().findClosestPlayerSpawnpoint(this.getPosition()).getId();
|
||||
long banTime = System.currentTimeMillis();
|
||||
|
||||
dropMessage(5, msg);
|
||||
if (msg != null) dropMessage(5, msg);
|
||||
|
||||
MapleMap map_ = getWarpMap(mapid);
|
||||
changeMap(map_, map_.getPortal(portal));
|
||||
MaplePortal portal_ = map_.getPortal(portal);
|
||||
changeMap(map_, portal_ != null ? portal_ : map_.getRandomPlayerSpawnpoint());
|
||||
|
||||
setBanishPlayerData(banMap, banSp, banTime);
|
||||
}
|
||||
@@ -2123,7 +2125,7 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
try (PreparedStatement ps2 = con.prepareStatement("DELETE FROM inventoryequipment WHERE inventoryitemid = ?")) {
|
||||
ps2.setInt(1, inventoryitemid);
|
||||
ps2.executeUpdate();
|
||||
@@ -2897,7 +2899,7 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
|
||||
gainExpInternal(-loss, 0, 0, show, inChat, white);
|
||||
}
|
||||
|
||||
private void gainExpInternal(long gain, int equip, int party, boolean show, boolean inChat, boolean white) {
|
||||
private synchronized void gainExpInternal(long gain, int equip, int party, boolean show, boolean inChat, boolean white) { // need of method synchonization here detected thanks to MedicOP
|
||||
long total = Math.max(gain, -exp.get());
|
||||
|
||||
if (level < getMaxLevel()) {
|
||||
@@ -5161,7 +5163,7 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
|
||||
return rankMove;
|
||||
}
|
||||
|
||||
private void clearSavedLocation(SavedLocationType type) {
|
||||
public void clearSavedLocation(SavedLocationType type) {
|
||||
savedLocations[type.ordinal()] = null;
|
||||
}
|
||||
|
||||
@@ -7441,6 +7443,17 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
|
||||
}
|
||||
}
|
||||
|
||||
public void saveLocationOnWarp() { // suggestion to remember the map before warp command thanks to Lei
|
||||
MaplePortal closest = map.findClosestPortal(getPosition());
|
||||
int curMapid = getMapId();
|
||||
|
||||
for (int i = 0; i < savedLocations.length; i++) {
|
||||
if (savedLocations[i] == null) {
|
||||
savedLocations[i] = new SavedLocation(curMapid, closest != null ? closest.getId() : 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void saveLocation(String type) {
|
||||
MaplePortal closest = map.findClosestPortal(getPosition());
|
||||
savedLocations[SavedLocationType.fromString(type).ordinal()] = new SavedLocation(getMapId(), closest != null ? closest.getId() : 0);
|
||||
@@ -8612,8 +8625,8 @@ public class MapleCharacter extends AbstractMapleCharacterObject {
|
||||
}
|
||||
|
||||
/*
|
||||
for (Entry<StatUpgrade, Float> e : statups.entrySet()) {
|
||||
System.out.println(e);
|
||||
for (Entry<StatUpgrade, Float> es : statups.entrySet()) {
|
||||
System.out.println(es);
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
@@ -216,6 +216,7 @@ public class CommandsExecutor {
|
||||
addCommand("dc", 2, DcCommand.class);
|
||||
addCommand("cleardrops", 2, ClearDropsCommand.class);
|
||||
addCommand("clearslot", 2, ClearSlotCommand.class);
|
||||
addCommand("clearsavelocs", 2, ClearSavedLocationsCommand.class);
|
||||
addCommand("warp", 2, WarpCommand.class);
|
||||
addCommand(new String[]{"warphere", "summon"}, 2, SummonCommand.class);
|
||||
addCommand(new String[]{"warpto", "reach", "follow"}, 2, ReachCommand.class);
|
||||
@@ -229,7 +230,6 @@ public class CommandsExecutor {
|
||||
addCommand("maxstat", 2, MaxStatCommand.class);
|
||||
addCommand("maxskill", 2, MaxSkillCommand.class);
|
||||
addCommand("resetskill", 2, ResetSkillCommand.class);
|
||||
addCommand("mesos", 2, MesosCommand.class);
|
||||
addCommand("search", 2, SearchCommand.class);
|
||||
addCommand("jail", 2, JailCommand.class);
|
||||
addCommand("unjail", 2, UnJailCommand.class);
|
||||
|
||||
@@ -49,6 +49,7 @@ public class JoinEventCommand extends Command {
|
||||
|
||||
event.minusLimit();
|
||||
|
||||
player.saveLocationOnWarp();
|
||||
player.changeMap(event.getMapId());
|
||||
} else {
|
||||
player.dropMessage(5, "The limit of players for the event has already been reached.");
|
||||
|
||||
@@ -46,6 +46,7 @@ public class LeaveEventCommand extends Command {
|
||||
player.setFitness(null);
|
||||
}
|
||||
|
||||
player.saveLocationOnWarp();
|
||||
player.changeMap(returnMap);
|
||||
if(c.getChannelServer().getEvent() != null) {
|
||||
c.getChannelServer().getEvent().addLimit();
|
||||
|
||||
@@ -51,6 +51,7 @@ public class GotoCommand extends Command {
|
||||
|
||||
// expedition issue with this command detected thanks to Masterrulax
|
||||
MaplePortal targetPortal = target.getRandomPlayerSpawnpoint();
|
||||
player.saveLocationOnWarp();
|
||||
player.changeMap(target, targetPortal);
|
||||
} else {
|
||||
player.dropMessage(5, "Area '" + params[0] + "' is not registered.");
|
||||
|
||||
@@ -26,17 +26,31 @@ package client.command.commands.gm2;
|
||||
import client.command.Command;
|
||||
import client.MapleClient;
|
||||
import client.MapleCharacter;
|
||||
import server.maps.SavedLocationType;
|
||||
|
||||
public class MesosCommand extends Command {
|
||||
public class ClearSavedLocationsCommand extends Command {
|
||||
{
|
||||
setDescription("");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void execute(MapleClient c, String[] params) {
|
||||
MapleCharacter player = c.getPlayer();
|
||||
if (params.length >= 1) {
|
||||
player.gainMeso(Integer.parseInt(params[0]), true);
|
||||
MapleCharacter player = c.getPlayer(), victim;
|
||||
|
||||
if (params.length > 0) {
|
||||
victim = c.getChannelServer().getPlayerStorage().getCharacterByName(params[0]);
|
||||
if (victim == null) {
|
||||
player.message("Player '" + params[0] + "' could not be found on this channel.");
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
victim = c.getPlayer();
|
||||
}
|
||||
|
||||
for (SavedLocationType type : SavedLocationType.values()) {
|
||||
victim.clearSavedLocation(type);
|
||||
}
|
||||
|
||||
player.message("Cleared " + params[0] + "'s saved locations.");
|
||||
}
|
||||
}
|
||||
@@ -60,6 +60,7 @@ public class JailCommand extends Command {
|
||||
if (victim.getMapId() != mapid) { // those gone to jail won't be changing map anyway
|
||||
MapleMap target = c.getChannelServer().getMapFactory().getMap(mapid);
|
||||
MaplePortal targetPortal = target.getPortal(0);
|
||||
victim.saveLocationOnWarp();
|
||||
victim.changeMap(target, targetPortal);
|
||||
player.message(victim.getName() + " was jailed for " + minutesJailed + " minutes.");
|
||||
} else {
|
||||
|
||||
@@ -47,6 +47,7 @@ public class ReachCommand extends Command {
|
||||
player.dropMessage(5, "Player '" + victim.getName() + "' is at channel " + victim.getClient().getChannel() + ".");
|
||||
} else {
|
||||
MapleMap map = victim.getMap();
|
||||
player.saveLocationOnWarp();
|
||||
player.forceChangeMap(map, map.findClosestPortal(victim.getPosition()));
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
*/
|
||||
package client.command.commands.gm2;
|
||||
|
||||
import client.MapleStat;
|
||||
import client.command.Command;
|
||||
import client.MapleClient;
|
||||
import client.MapleCharacter;
|
||||
@@ -45,7 +44,7 @@ public class SetStatCommand extends Command {
|
||||
int x = Integer.parseInt(params[0]);
|
||||
|
||||
if (x > Short.MAX_VALUE) x = Short.MAX_VALUE;
|
||||
else if (x < 0) x = 0;
|
||||
else if (x < 4) x = 4; // thanks Vcoc for pointing the minimal allowed stat value here
|
||||
|
||||
player.updateStrDexIntLuk(x);
|
||||
} catch (NumberFormatException nfe) {}
|
||||
|
||||
@@ -68,11 +68,13 @@ public class SummonCommand extends Command {
|
||||
if (player.getEventInstance() != null && changingEvent) {
|
||||
if (player.getClient().getChannel() == victim.getClient().getChannel()) {
|
||||
player.getEventInstance().registerPlayer(victim);
|
||||
victim.saveLocationOnWarp();
|
||||
victim.changeMap(player.getEventInstance().getMapInstance(player.getMapId()), player.getMap().findClosestPortal(player.getPosition()));
|
||||
} else {
|
||||
player.dropMessage("Target isn't on your channel, not able to warp into event instance.");
|
||||
}
|
||||
} else {//If victim isn't in an event instance or is in the same event instance as the one the caller is, just warp them.
|
||||
victim.saveLocationOnWarp();
|
||||
victim.changeMap(player.getMapId(), player.getMap().findClosestPortal(player.getPosition()));
|
||||
}
|
||||
if (player.getClient().getChannel() != victim.getClient().getChannel()) {//And then change channel if needed.
|
||||
|
||||
@@ -49,6 +49,7 @@ public class WarpCommand extends Command {
|
||||
}
|
||||
|
||||
// expedition issue with this command detected thanks to Masterrulax
|
||||
player.saveLocationOnWarp();
|
||||
player.changeMap(target, target.getRandomPlayerSpawnpoint());
|
||||
} catch (Exception ex) {
|
||||
player.yellowMessage("Map ID " + params[0] + " is invalid.");
|
||||
|
||||
@@ -41,6 +41,7 @@ public class ReloadMapCommand extends Command {
|
||||
int callerid = c.getPlayer().getId();
|
||||
|
||||
for (MapleCharacter chr : oldMap.getCharacters()) {
|
||||
chr.saveLocationOnWarp();
|
||||
chr.changeMap(newMap);
|
||||
if (chr.getId() != callerid)
|
||||
chr.dropMessage("You have been relocated due to map reloading. Sorry for the inconvenience.");
|
||||
|
||||
@@ -40,6 +40,7 @@ public class WarpSnowBallCommand extends Command {
|
||||
MapleCharacter player = c.getPlayer();
|
||||
List<MapleCharacter> chars = new ArrayList<>(player.getMap().getCharacters());
|
||||
for (MapleCharacter chr : chars) {
|
||||
chr.saveLocationOnWarp();
|
||||
chr.changeMap(109060000, chr.getTeam());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -216,6 +216,7 @@ public final class PacketProcessor {
|
||||
registerHandler(RecvOpcode.TOUCH_MONSTER_ATTACK, new TouchMonsterDamageHandler());
|
||||
registerHandler(RecvOpcode.TROCK_ADD_MAP, new TrockAddMapHandler());
|
||||
registerHandler(RecvOpcode.HIRED_MERCHANT_REQUEST, new HiredMerchantRequest());
|
||||
registerHandler(RecvOpcode.MOB_BANISH_PLAYER, new MobBanishPlayerHandler());
|
||||
registerHandler(RecvOpcode.MOB_DAMAGE_MOB, new MobDamageMobHandler());
|
||||
registerHandler(RecvOpcode.REPORT, new ReportHandler());
|
||||
registerHandler(RecvOpcode.MONSTER_BOOK_COVER, new MonsterBookCoverHandler());
|
||||
|
||||
@@ -69,6 +69,7 @@ public enum RecvOpcode {
|
||||
FACE_EXPRESSION(0x33),
|
||||
USE_ITEMEFFECT(0x34),
|
||||
USE_DEATHITEM(0x35),
|
||||
MOB_BANISH_PLAYER(0x38),
|
||||
MONSTER_BOOK_COVER(0x39),
|
||||
NPC_TALK(0x3A),
|
||||
REMOTE_STORE(0x3B),
|
||||
|
||||
@@ -39,6 +39,7 @@ import server.CashShop.CashItem;
|
||||
import server.CashShop.CashItemFactory;
|
||||
import client.inventory.manipulator.MapleInventoryManipulator;
|
||||
import constants.ServerConstants;
|
||||
import server.MapleItemInformationProvider;
|
||||
import tools.FilePrinter;
|
||||
import tools.MaplePacketCreator;
|
||||
import tools.Pair;
|
||||
@@ -62,7 +63,7 @@ public final class CashOperationHandler extends AbstractMaplePacketHandler {
|
||||
final int useNX = slea.readInt();
|
||||
final int snCS = slea.readInt();
|
||||
CashItem cItem = CashItemFactory.getItem(snCS);
|
||||
if (!canBuy(cItem, cs.getCash(useNX))) {
|
||||
if (!canBuy(chr, cItem, cs.getCash(useNX))) {
|
||||
FilePrinter.printError(FilePrinter.ITEM, "Denied to sell cash item with SN " + snCS); // preventing NPE here thanks to MedicOP
|
||||
c.enableCSActions();
|
||||
return;
|
||||
@@ -98,7 +99,7 @@ public final class CashOperationHandler extends AbstractMaplePacketHandler {
|
||||
CashItem cItem = CashItemFactory.getItem(slea.readInt());
|
||||
Map<String, String> recipient = MapleCharacter.getCharacterFromDatabase(slea.readMapleAsciiString());
|
||||
String message = slea.readMapleAsciiString();
|
||||
if (!canBuy(cItem, cs.getCash(4)) || message.length() < 1 || message.length() > 73) {
|
||||
if (!canBuy(chr, cItem, cs.getCash(4)) || message.length() < 1 || message.length() > 73) {
|
||||
c.enableCSActions();
|
||||
return;
|
||||
}
|
||||
@@ -151,7 +152,7 @@ public final class CashOperationHandler extends AbstractMaplePacketHandler {
|
||||
} else {
|
||||
CashItem cItem = CashItemFactory.getItem(slea.readInt());
|
||||
int type = (cItem.getItemId() - 9110000) / 1000;
|
||||
if (!canBuy(cItem, cs.getCash(cash))) {
|
||||
if (!canBuy(chr, cItem, cs.getCash(cash))) {
|
||||
c.enableCSActions();
|
||||
return;
|
||||
}
|
||||
@@ -181,7 +182,7 @@ public final class CashOperationHandler extends AbstractMaplePacketHandler {
|
||||
} else {
|
||||
CashItem cItem = CashItemFactory.getItem(slea.readInt());
|
||||
|
||||
if (!canBuy(cItem, cs.getCash(cash))) {
|
||||
if (!canBuy(chr, cItem, cs.getCash(cash))) {
|
||||
c.enableCSActions();
|
||||
return;
|
||||
}
|
||||
@@ -199,7 +200,7 @@ public final class CashOperationHandler extends AbstractMaplePacketHandler {
|
||||
int cash = slea.readInt();
|
||||
CashItem cItem = CashItemFactory.getItem(slea.readInt());
|
||||
|
||||
if (!canBuy(cItem, cs.getCash(cash))) {
|
||||
if (!canBuy(chr, cItem, cs.getCash(cash))) {
|
||||
c.enableCSActions();
|
||||
return;
|
||||
}
|
||||
@@ -380,7 +381,12 @@ public final class CashOperationHandler extends AbstractMaplePacketHandler {
|
||||
return c.checkBirthDate(cal);
|
||||
}
|
||||
|
||||
private static boolean canBuy(CashItem item, int cash) {
|
||||
return item != null && item.isOnSale() && item.getPrice() <= cash;
|
||||
private static boolean canBuy(MapleCharacter chr, CashItem item, int cash) {
|
||||
if (item != null && item.isOnSale() && item.getPrice() <= cash) {
|
||||
FilePrinter.print(FilePrinter.CASHITEM_BOUGHT, chr + " bought " + MapleItemInformationProvider.getInstance().getName(item.getItemId()) + " (SN " + item.getSN() + ") for " + item.getPrice());
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,7 +45,10 @@ public final class ItemRewardHandler extends AbstractMaplePacketHandler {
|
||||
public final void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
|
||||
byte slot = (byte) slea.readShort();
|
||||
int itemId = slea.readInt(); // will load from xml I don't care.
|
||||
if (c.getPlayer().getInventory(MapleInventoryType.USE).getItem(slot).getItemId() != itemId || c.getPlayer().getInventory(MapleInventoryType.USE).countById(itemId) < 1) return;
|
||||
|
||||
Item it = c.getPlayer().getInventory(MapleInventoryType.USE).getItem(slot); // null check here thanks to Thora
|
||||
if (it == null || it.getItemId() != itemId || c.getPlayer().getInventory(MapleInventoryType.USE).countById(itemId) < 1) return;
|
||||
|
||||
MapleItemInformationProvider ii = MapleItemInformationProvider.getInstance();
|
||||
Pair<Integer, List<RewardItem>> rewards = ii.getItemReward(itemId);
|
||||
for (RewardItem reward : rewards.getRight()) {
|
||||
|
||||
45
src/net/server/channel/handlers/MobBanishPlayerHandler.java
Normal file
45
src/net/server/channel/handlers/MobBanishPlayerHandler.java
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
This file is part of the HeavenMS MapleStory Server
|
||||
Copyleft (L) 2016 - 2018 RonanLana
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation version 3 as published by
|
||||
the Free Software Foundation. You may not use, modify or distribute
|
||||
this program under any other version of the GNU Affero General Public
|
||||
License.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package net.server.channel.handlers;
|
||||
|
||||
import client.MapleCharacter;
|
||||
import client.MapleClient;
|
||||
import server.life.MapleMonster;
|
||||
import server.life.MapleLifeFactory.BanishInfo;
|
||||
import net.AbstractMaplePacketHandler;
|
||||
import tools.data.input.SeekableLittleEndianAccessor;
|
||||
|
||||
public final class MobBanishPlayerHandler extends AbstractMaplePacketHandler {
|
||||
|
||||
@Override
|
||||
public final void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
|
||||
int mobid = slea.readInt(); // mob banish handling detected thanks to MedicOP
|
||||
|
||||
MapleCharacter chr = c.getPlayer();
|
||||
MapleMonster mob = chr.getMap().getMonsterById(mobid);
|
||||
|
||||
if (mob != null) {
|
||||
BanishInfo banishInfo = mob.getBanish();
|
||||
if (banishInfo != null) {
|
||||
chr.changeMapBanish(banishInfo.getMap(), banishInfo.getPortal(), banishInfo.getMsg());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1333,7 +1333,7 @@ public class World {
|
||||
activePetsLock.lock();
|
||||
try {
|
||||
petUpdate = Server.getInstance().getCurrentTime();
|
||||
deployedPets = Collections.unmodifiableMap(activePets);
|
||||
deployedPets = new HashMap<>(activePets); // exception here found thanks to MedicOP
|
||||
} finally {
|
||||
activePetsLock.unlock();
|
||||
}
|
||||
@@ -1391,7 +1391,7 @@ public class World {
|
||||
activeMountsLock.lock();
|
||||
try {
|
||||
mountUpdate = Server.getInstance().getCurrentTime();
|
||||
deployedMounts = Collections.unmodifiableMap(activeMounts);
|
||||
deployedMounts = new HashMap<>(activeMounts);
|
||||
} finally {
|
||||
activeMountsLock.unlock();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ public class XMLWZFile implements MapleDataProvider {
|
||||
}
|
||||
|
||||
@Override
|
||||
public MapleData getData(String path) {
|
||||
public synchronized MapleData getData(String path) {
|
||||
File dataFile = new File(root, path + ".xml");
|
||||
File imageDataDir = new File(root, path);
|
||||
if (!dataFile.exists()) {
|
||||
|
||||
@@ -531,6 +531,35 @@ public class NPCConversationManager extends AbstractPlayerInteraction {
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean itemExists(int itemid) {
|
||||
return MapleItemInformationProvider.getInstance().getName(itemid) != null;
|
||||
}
|
||||
|
||||
public int getCosmeticItem(int itemid) {
|
||||
if (itemExists(itemid)) return itemid;
|
||||
|
||||
int baseid;
|
||||
if (itemid < 30000) {
|
||||
baseid = (itemid / 1000) * 1000 + (itemid % 100);
|
||||
} else {
|
||||
baseid = (itemid / 10) * 10;
|
||||
}
|
||||
|
||||
return itemid != baseid && itemExists(baseid) ? baseid : -1;
|
||||
}
|
||||
|
||||
private int getEquippedItemid(int itemid) {
|
||||
if (itemid < 30000) {
|
||||
return getPlayer().getFace();
|
||||
} else {
|
||||
return getPlayer().getHair();
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isCosmeticEquipped(int itemid) {
|
||||
return getEquippedItemid(itemid) == itemid;
|
||||
}
|
||||
|
||||
public boolean isUsingOldPqNpcStyle() {
|
||||
return ServerConstants.USE_OLD_GMS_STYLED_PQ_NPCS && this.getPlayer().getParty() != null;
|
||||
}
|
||||
|
||||
@@ -110,7 +110,8 @@ public class MapleItemInformationProvider {
|
||||
protected Map<Integer, Boolean> pickupRestrictionCache = new HashMap<>();
|
||||
protected Map<Integer, Integer> getMesoCache = new HashMap<>();
|
||||
protected Map<Integer, Integer> monsterBookID = new HashMap<>();
|
||||
protected Map<Integer, Boolean> onEquipUntradableCache = new HashMap<>();
|
||||
protected Map<Integer, Boolean> untradeableCache = new HashMap<>();
|
||||
protected Map<Integer, Boolean> onEquipUntradeableCache = new HashMap<>();
|
||||
protected Map<Integer, scriptedItem> scriptedItemCache = new HashMap<>();
|
||||
protected Map<Integer, Boolean> karmaCache = new HashMap<>();
|
||||
protected Map<Integer, Integer> triggerItemCache = new HashMap<>();
|
||||
@@ -942,7 +943,7 @@ public class MapleItemInformationProvider {
|
||||
|
||||
public boolean canUseCleanSlate(Equip nEquip) {
|
||||
Map<String, Integer> eqstats = this.getEquipStats(nEquip.getItemId());
|
||||
return ServerConstants.USE_ENHANCED_CLNSLATE || nEquip.getLevel() + nEquip.getUpgradeSlots() < eqstats.get("tuc");
|
||||
return ServerConstants.USE_ENHANCED_CLNSLATE || nEquip.getUpgradeSlots() < eqstats.get("tuc"); // issue with clean slate found thanks to Masterrulax
|
||||
}
|
||||
|
||||
public Item scrollEquipWithId(Item equip, int scrollId, boolean usingWhiteScroll, int vegaItemId, boolean isGM) {
|
||||
@@ -1102,7 +1103,7 @@ public class MapleItemInformationProvider {
|
||||
nEquip.setMp((short) stat.getValue().intValue());
|
||||
} else if (stat.getKey().equals("tuc")) {
|
||||
nEquip.setUpgradeSlots((byte) stat.getValue().intValue());
|
||||
} else if (isDropRestricted(equipId)) {
|
||||
} else if (isUntradeableRestricted(equipId)) { // thanks Hyun & Thora for showing an issue with more than only "Untradeable" items being flagged as such here
|
||||
byte flag = nEquip.getFlag();
|
||||
flag |= ItemConstants.UNTRADEABLE;
|
||||
nEquip.setFlag(flag);
|
||||
@@ -1230,6 +1231,23 @@ public class MapleItemInformationProvider {
|
||||
return ret;
|
||||
}
|
||||
|
||||
public boolean isUntradeableRestricted(int itemId) {
|
||||
if (untradeableCache.containsKey(itemId)) {
|
||||
return untradeableCache.get(itemId);
|
||||
}
|
||||
|
||||
boolean bRestricted = false;
|
||||
if(itemId != 0) {
|
||||
MapleData data = getItemData(itemId);
|
||||
if (data != null) {
|
||||
bRestricted = MapleDataTool.getIntConvert("info/tradeBlock", data, 0) == 1;
|
||||
}
|
||||
}
|
||||
|
||||
untradeableCache.put(itemId, bRestricted);
|
||||
return bRestricted;
|
||||
}
|
||||
|
||||
public boolean isLootRestricted(int itemId) {
|
||||
if (dropRestrictionCache.containsKey(itemId)) {
|
||||
return dropRestrictionCache.get(itemId);
|
||||
@@ -1421,12 +1439,12 @@ public class MapleItemInformationProvider {
|
||||
}
|
||||
|
||||
public boolean isUntradeableOnEquip(int itemId) {
|
||||
if (onEquipUntradableCache.containsKey(itemId)) {
|
||||
return onEquipUntradableCache.get(itemId);
|
||||
if (onEquipUntradeableCache.containsKey(itemId)) {
|
||||
return onEquipUntradeableCache.get(itemId);
|
||||
}
|
||||
boolean untradableOnEquip = MapleDataTool.getIntConvert("info/equipTradeBlock", getItemData(itemId), 0) > 0;
|
||||
onEquipUntradableCache.put(itemId, untradableOnEquip);
|
||||
return untradableOnEquip;
|
||||
boolean untradeableOnEquip = MapleDataTool.getIntConvert("info/equipTradeBlock", getItemData(itemId), 0) > 0;
|
||||
onEquipUntradeableCache.put(itemId, untradeableOnEquip);
|
||||
return untradeableOnEquip;
|
||||
}
|
||||
|
||||
public scriptedItem getScriptedItemInfo(int itemId) {
|
||||
|
||||
@@ -257,6 +257,8 @@ public class MapleStatEffect {
|
||||
addBuffStatPairToListIfNotZero(statups, MapleBuffStat.COUPON_DRP3, 1);
|
||||
break;
|
||||
}
|
||||
} else if(isExpIncrease(sourceid)) {
|
||||
addBuffStatPairToListIfNotZero(statups, MapleBuffStat.EXP_INCREASE, MapleDataTool.getInt("expinc", source, 0));
|
||||
}
|
||||
} else {
|
||||
if(isMapChair(sourceid)) {
|
||||
@@ -1366,6 +1368,10 @@ public class MapleStatEffect {
|
||||
return itemType == 5211 || itemType == 5360;
|
||||
}
|
||||
|
||||
public static boolean isExpIncrease(int sourceid) {
|
||||
return sourceid >= 2022450 && sourceid <= 2022452;
|
||||
}
|
||||
|
||||
private boolean isDs() {
|
||||
return skill && (sourceid == Rogue.DARK_SIGHT || sourceid == NightWalker.DARK_SIGHT);
|
||||
}
|
||||
|
||||
@@ -544,8 +544,13 @@ public class MapleMonster extends AbstractLoadedMapleLife {
|
||||
int partyExp = 0;
|
||||
if (attacker.getHp() > 0) {
|
||||
exp *= attacker.getExpRate();
|
||||
|
||||
Integer expBonus = attacker.getBuffedValue(MapleBuffStat.EXP_INCREASE);
|
||||
if (expBonus != null) { // exp increase buff found thanks to HighKey21
|
||||
exp += expBonus;
|
||||
}
|
||||
|
||||
int personalExp = (int) exp;
|
||||
|
||||
if (exp <= Integer.MAX_VALUE) { // assuming no negative xp here
|
||||
if (partyModifier > 0.0f) {
|
||||
partyExp = (int) (personalExp * partyModifier * ServerConstants.PARTY_BONUS_EXP_RATE);
|
||||
|
||||
@@ -384,6 +384,8 @@ public class MapleMap {
|
||||
}
|
||||
|
||||
private void spawnAndAddRangedMapObject(MapleMapObject mapobject, DelayedPacketCreation packetbakery, SpawnCondition condition) {
|
||||
List<MapleCharacter> inRangeCharacters = new LinkedList<>();
|
||||
|
||||
chrRLock.lock();
|
||||
objectWLock.lock();
|
||||
try {
|
||||
@@ -393,7 +395,7 @@ public class MapleMap {
|
||||
for (MapleCharacter chr : characters) {
|
||||
if (condition == null || condition.canSpawn(chr)) {
|
||||
if (chr.getPosition().distanceSq(mapobject.getPosition()) <= getRangedDistance()) {
|
||||
packetbakery.sendPackets(chr.getClient());
|
||||
inRangeCharacters.add(chr);
|
||||
chr.addVisibleMapObject(mapobject);
|
||||
}
|
||||
}
|
||||
@@ -402,9 +404,15 @@ public class MapleMap {
|
||||
objectWLock.unlock();
|
||||
chrRLock.unlock();
|
||||
}
|
||||
|
||||
for (MapleCharacter chr : inRangeCharacters) {
|
||||
packetbakery.sendPackets(chr.getClient());
|
||||
}
|
||||
}
|
||||
|
||||
private void spawnRangedMapObject(MapleMapObject mapobject, DelayedPacketCreation packetbakery, SpawnCondition condition) {
|
||||
List<MapleCharacter> inRangeCharacters = new LinkedList<>();
|
||||
|
||||
chrRLock.lock();
|
||||
try {
|
||||
int curOID = getUsableOID();
|
||||
@@ -412,7 +420,7 @@ public class MapleMap {
|
||||
for (MapleCharacter chr : characters) {
|
||||
if (condition == null || condition.canSpawn(chr)) {
|
||||
if (chr.getPosition().distanceSq(mapobject.getPosition()) <= getRangedDistance()) {
|
||||
packetbakery.sendPackets(chr.getClient());
|
||||
inRangeCharacters.add(chr);
|
||||
chr.addVisibleMapObject(mapobject);
|
||||
}
|
||||
}
|
||||
@@ -420,6 +428,10 @@ public class MapleMap {
|
||||
} finally {
|
||||
chrRLock.unlock();
|
||||
}
|
||||
|
||||
for (MapleCharacter chr : inRangeCharacters) {
|
||||
packetbakery.sendPackets(chr.getClient());
|
||||
}
|
||||
}
|
||||
|
||||
private int getUsableOID() {
|
||||
|
||||
@@ -100,7 +100,7 @@ public class MapleMapFactory {
|
||||
}
|
||||
|
||||
String mapName = getMapName(mapid);
|
||||
MapleData mapData = source.getData(mapName);
|
||||
MapleData mapData = source.getData(mapName); // source.getData issue with giving nulls in rare ocasions found thanks to MedicOP
|
||||
MapleData infoData = mapData.getChildByPath("info");
|
||||
|
||||
String link = MapleDataTool.getString(infoData.getChildByPath("link"), "");
|
||||
|
||||
@@ -18,6 +18,7 @@ public class FilePrinter {
|
||||
MAPLE_MAP = "mapleMap.txt",
|
||||
ERROR38 = "error38.txt",
|
||||
PACKET_LOG = "log.txt",
|
||||
CASHITEM_BOUGHT = "cashlog.txt",
|
||||
EXCEPTION = "exceptions.txt",
|
||||
SQL_EXCEPTION = "sqlexceptions.txt",
|
||||
PACKET_HANDLER = "PacketHandler/",
|
||||
|
||||
73
tools/MapleCashCosmeticsChecker/build.xml
Normal file
73
tools/MapleCashCosmeticsChecker/build.xml
Normal file
@@ -0,0 +1,73 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- You may freely edit this file. See commented blocks below for -->
|
||||
<!-- some examples of how to customize the build. -->
|
||||
<!-- (If you delete it and reopen the project it will be recreated.) -->
|
||||
<!-- By default, only the Clean and Build commands use this build script. -->
|
||||
<!-- Commands such as Run, Debug, and Test only use this build script if -->
|
||||
<!-- the Compile on Save feature is turned off for the project. -->
|
||||
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
|
||||
<!-- in the project's Project Properties dialog box.-->
|
||||
<project name="MapleCashCosmeticsChecker" default="default" basedir=".">
|
||||
<description>Builds, tests, and runs the project MapleCashCosmeticsChecker.</description>
|
||||
<import file="nbproject/build-impl.xml"/>
|
||||
<!--
|
||||
|
||||
There exist several targets which are by default empty and which can be
|
||||
used for execution of your tasks. These targets are usually executed
|
||||
before and after some main targets. They are:
|
||||
|
||||
-pre-init: called before initialization of project properties
|
||||
-post-init: called after initialization of project properties
|
||||
-pre-compile: called before javac compilation
|
||||
-post-compile: called after javac compilation
|
||||
-pre-compile-single: called before javac compilation of single file
|
||||
-post-compile-single: called after javac compilation of single file
|
||||
-pre-compile-test: called before javac compilation of JUnit tests
|
||||
-post-compile-test: called after javac compilation of JUnit tests
|
||||
-pre-compile-test-single: called before javac compilation of single JUnit test
|
||||
-post-compile-test-single: called after javac compilation of single JUunit test
|
||||
-pre-jar: called before JAR building
|
||||
-post-jar: called after JAR building
|
||||
-post-clean: called after cleaning build products
|
||||
|
||||
(Targets beginning with '-' are not intended to be called on their own.)
|
||||
|
||||
Example of inserting an obfuscator after compilation could look like this:
|
||||
|
||||
<target name="-post-compile">
|
||||
<obfuscate>
|
||||
<fileset dir="${build.classes.dir}"/>
|
||||
</obfuscate>
|
||||
</target>
|
||||
|
||||
For list of available properties check the imported
|
||||
nbproject/build-impl.xml file.
|
||||
|
||||
|
||||
Another way to customize the build is by overriding existing main targets.
|
||||
The targets of interest are:
|
||||
|
||||
-init-macrodef-javac: defines macro for javac compilation
|
||||
-init-macrodef-junit: defines macro for junit execution
|
||||
-init-macrodef-debug: defines macro for class debugging
|
||||
-init-macrodef-java: defines macro for class execution
|
||||
-do-jar: JAR building
|
||||
run: execution of project
|
||||
-javadoc-build: Javadoc generation
|
||||
test-report: JUnit report generation
|
||||
|
||||
An example of overriding the target for project execution could look like this:
|
||||
|
||||
<target name="run" depends="MapleCashCosmeticsChecker-impl.jar">
|
||||
<exec dir="bin" executable="launcher.exe">
|
||||
<arg file="${dist.jar}"/>
|
||||
</exec>
|
||||
</target>
|
||||
|
||||
Notice that the overridden target depends on the jar target and not only on
|
||||
the compile target as the regular run target does. Again, for a list of available
|
||||
properties which you can use, check the target you are overriding in the
|
||||
nbproject/build-impl.xml file.
|
||||
|
||||
-->
|
||||
</project>
|
||||
4
tools/MapleCashCosmeticsChecker/lib/care/amoria/face.txt
Normal file
4
tools/MapleCashCosmeticsChecker/lib/care/amoria/face.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Male VIP: Champion Focus, Irritable Face, Motivated Look, Perplexed Stare, Dramatic Face, Rebel's Fire, Alert Face, Babyface Pout, Sad Innocence, Worrisome Glare
|
||||
Male REG: Pensive Look, Shade of Cool, Alert Face, Cool Guy Gaze, Leisure Look, Sad Innocence, Look of Wonder
|
||||
Female VIP: Athena's Grace, Hera's Radiance, Fearful Stare, Leisure Look, Strong Stare, Angel Glow, Babyface Pout, Pucker Up Face, Dollface Look, Soul's Window
|
||||
Female REG: Glitzy Face, Demure Poise Eyes, Fearful Stare, Babyface Pout, Dollface Look, Gentle Glow, Athena's Grace
|
||||
4
tools/MapleCashCosmeticsChecker/lib/care/amoria/hair.txt
Normal file
4
tools/MapleCashCosmeticsChecker/lib/care/amoria/hair.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Male VIP: Casanova, Eternal Elegance, Fuzz, Jun Pyo Hair, Metro, Natural, Rockie, Romance, Saturday Special, Super Suave, Windy Hair
|
||||
Male EXP: Antagonist, Explosion, w/ Bald Spot, Bowl Cut, Trip Scratch, Rebel, Fireball, Toben, Monkey, Head
|
||||
Female VIP: Angelica, Ballroom Classic, Carla, Caspia, Daisy Do, The Honeybun, Victorian Wrap, Darling Diva, Cecelia Twist, Classy Sass, Lana
|
||||
Female EXP: Connie, Bridget, Sammy, Carla, Stella, Angelica, Polly, Housewife, Rollered Hair
|
||||
4
tools/MapleCashCosmeticsChecker/lib/care/ariant/face.txt
Normal file
4
tools/MapleCashCosmeticsChecker/lib/care/ariant/face.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Male VIP: Insomniac Daze, Motivated Look, Fearful Glance, Rebel's Fire, Alert Face, Curious Dog
|
||||
Male REG: Edge of Emotion, Fearful Glance, Anger's Blaze, Dramatic Face, Smart Aleck, Perplexed Stare
|
||||
Female VIP: Look of Death, Motivated Look, Keen Look, Strong Stare, Pucker Up Face, Soul's Window
|
||||
Female REG: Kitty Cat, Poker Face, Look of Death, Wide-eyed Girl, Beauty Stare, Hypnotized Look, Leisure Look
|
||||
4
tools/MapleCashCosmeticsChecker/lib/care/ariant/hair.txt
Normal file
4
tools/MapleCashCosmeticsChecker/lib/care/ariant/hair.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Male VIP: Afro (small), Cabana Boy, Dreadlocks, Kravitz Locks, Line Scratch, Mane, Matinee Idol, Natural, Tornade Hair
|
||||
Male REG: Afro (small), Cabana Boy, Dreadlocks, Dreamcatcher, Hobo, Kravitz Locks, Line Scratch, Mane, Matinee Idol, Natural, Tornade Hair
|
||||
Female VIP: Bridget, Celeb, Edgy, Lana, Penelope, Rae, Boyish, Desert Flower, Tighty Bun
|
||||
Female REG: Boyish, Bridget, Celeb, Curly Stream, Dashing Damsel, Desert Flower, Lana, Oh So Windy, Palm Tree Hair, Penelope, Rae, Tighty Bun
|
||||
4
tools/MapleCashCosmeticsChecker/lib/care/cbd/face.txt
Normal file
4
tools/MapleCashCosmeticsChecker/lib/care/cbd/face.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Male VIP: Fierce Edge, Insomniac Daze, Overjoyed Smile, Shuteye, Alert Face, Curious Dog
|
||||
Male REG: Intense Stare, Demure Poise, Leisure Look, Insomniac Daze, Alert Face, Babyface Pout, Overjoyed Smile
|
||||
Female VIP: Compassion Look, Hypnotized Look, Look of Death, Shuteye, Pucker Up Face, Soul's Window
|
||||
Female REG: Glamorous Edge, Demure Poise Eyes, Leisure Look, Strong Stare, Curious Look, Beauty Stare, Compassion Look
|
||||
4
tools/MapleCashCosmeticsChecker/lib/care/cbd/hair.txt
Normal file
4
tools/MapleCashCosmeticsChecker/lib/care/cbd/hair.txt
Normal file
@@ -0,0 +1,4 @@
|
||||
Male VIP: Acorn, w/ Bald Spot, Fireball, Julian Hair, Old Man 'Do, Preppy Spike, Rebel, Toben, Vincent
|
||||
Male REG: Astro, Fireball, Julian Hair, Mane, Metrosexual, Old Man 'Do, Romance, Slick Dean, Exotica
|
||||
Female VIP: Apple Hair, Bowlcut, Connie, Disheveled, Ellie, Grandma ma', Miru, Monica, Veronica
|
||||
Female REG: Apple Hair, Bowlcut, Ellie, Grandma ma', Holla' Back Do, Monica, Oh So Windy, Sonara Wave, Tall Bun, School Girl Hair
|
||||
@@ -0,0 +1,4 @@
|
||||
Male VIP: Motivated Look, Perplexed Stare, Fearful Glance, Dramatic Face, Rebel's Fire, Alert Face, Babyface Pout, Sad Innocence, Worrisome Glare, Curious Dog, Look of Wonder, Eye of the Lion, Child's Play, Sarcastic Face
|
||||
Male REG: Ghostface Stare, Undecided Face, Worrisome Glare, Curious Dog, Motivated Look, Child's Play, Alert Face
|
||||
Female VIP: Motivated Look, Fearful Stare, Leisure Look, Strong Stare, Angel Glow, Babyface Pout, Pucker Up Face, Dollface Look, Hopeless Gaze, Soul's Window, Curious Look, Wide-eyed Girl, Innocent Look, Tender Love
|
||||
Female REG: Gentle Glow, Kitty Cat, Motivated Look, Hopeless Gaze, Keen Look, Leisure Look, Curious Look
|
||||
@@ -0,0 +1,6 @@
|
||||
Male VIP: Aran Cut, Catalyst, Acorn, Topknot, Wind, Shaggy Wax, The Coco
|
||||
Male REG: Aran Cut, Catalyst, Evan Hair (M), Acorn, Shaggy Wax, The Coco, The Mo Rawk, Topknot, Wind
|
||||
Male EXP: Aran Cut, Acorn, Shaggy Wax, The Coco, The Mo Rawk, Topknot, Wind, Buzz
|
||||
Female VIP: Angelica, Aran Hair, Chantelle, Crazy Medusa, Fourtail Braids, Frizzle Dizzle, Full Bangs
|
||||
Female REG: Angelica, Aran Hair, Chantelle, Crazy Medusa, Evan Hair (F), Fourtail Braids, Full Bangs, Rainbow, Stella
|
||||
Female EXP: Angelica, Aran Hair, Chantelle, Crazy Medusa, Fourtail Braids, Full Bangs, Stella, Head
|
||||
@@ -0,0 +1,4 @@
|
||||
Male VIP:
|
||||
Male REG:
|
||||
Female VIP:
|
||||
Female REG:
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user