[Source] ShineMS | ShineSource v75

Re: [Release] | v75 | ShineMS | ShineSource 1.9

What you want to know about the PlayerNPCs?

I managed to change the name of Shine, and the hairdo, face, etc. But I'm stuck with the NPC's clothing. I wanted it to have a full Wizet suit. I wanna know about how to edit the position of the equips and also how to place the equips. I changed the item ID to the Wizet ones, but only the top is shown. Hat, bottom and weapon (the Wizet suitcase) aren't showing.

---------- Post added at 03:35 PM ---------- Previous post was at 03:34 PM ----------

How do i change the starting map equips for the players?

There's one mentioned by LastBreath at the top.
 
Re: [Release] | v75 | ShineMS | ShineSource 1.9

I managed to change the name of Shine, and the hairdo, face, etc. But I'm stuck with the NPC's clothing. I wanted it to have a full Wizet suit. I wanna know about how to edit the position of the equips and also how to place the equips. I changed the item ID to the Wizet ones, but only the top is shown. Hat, bottom and shoes aren't showing.
How about you just delete the playernpc from the table and get your character the clothes you like to. Then just use /playernpc with the id which is used for the npc you just deleted. It should work the same with a different character look.
 
Re: [Release] | v75 | ShineMS | ShineSource 1.9

How about you just delete the playernpc from the table and get your character the clothes you like to. Then just use /playernpc with the id which is used for the npc you just deleted. It should work the same with a different character look.

So if I type /playernpc with the ID, then it'll follow my character's looks? I'm new to PlayerNPC stuff.
 
Re: [Release] | v75 | ShineMS | ShineSource 1.9

So if I type /playernpc with the ID, then it'll follow my character's looks? I'm new to PlayerNPC stuff.
Ok I'll explain it stepwise so it couldn't be more easy to you.
In this example I'll replace the old clone npc (shine) with a new one.

1. Get some nice clothes you want your npc to have and wear them.
2. Go to your Playernpc table in mysql and delete the shine npc (edit,right click, delete rows, apply changes).
3. Go back ingame and use /playernpc [your character name] [npc id]
Shine NPC example: /playernpc LuckySage 9901003
4. Go back to your playernpc table in mysql and change the name to whatever you want to (edit, click, change name, apply changes).
5. Now restart your server and you've got a working PlayerNPC.
 
Last edited:
Re: [Release] | v75 | ShineMS | ShineSource 1.9

Ok I'll explain it stepwise so it couldn't be more easy to you.
In this example I'll replace the old clone npc (shine) with a new one.

1. Get some nice clothes you want your npc to have and wear them.
2. Go to your Playernpc table in mysql and delete the shine npc (edit,right click, delete rows, apply changes).
3. Go back ingame and use /playernpc [your character name] [npc id]
Shine NPC example: /playernpc LuckySage 9901003
4. Now restart your server and you've got a working PlayerNPC.

Ahh! Thanks, mate. Btw, how do I add !zakum for my other GMs? Cos when I copy and paste the Zakum code from /zakum's one, I get compile errors. When I remove it, I can compile.
 
Re: [Release] | v75 | ShineMS | ShineSource 1.9

Ahh! Thanks, mate. Btw, how do I add !zakum for my other GMs? Cos when I copy and paste the Zakum code from /zakum's one, I get compile errors. When I remove it, I can compile.
Make sure you also copied thhe right imports from the admincommands.java.

I guess this is the only one you will need:
Code:
import server.life.MapleLifeFactory;
 
Re: [Release] | v75 | ShineMS | ShineSource 1.9

Ok I'll explain it stepwise so it couldn't be more easy to you.
In this example I'll replace the old clone npc (shine) with a new one.

1. Get some nice clothes you want your npc to have and wear them.
2. Go to your Playernpc table in mysql and delete the shine npc (edit,right click, delete rows, apply changes).
3. Go back ingame and use /playernpc [your character name] [npc id]
Shine NPC example: /playernpc LuckySage 9901003
4. Go back to your playernpc table in mysql and change the name to whatever you want to (edit, click, change name, apply changes).
5. Now restart your server and you've got a working PlayerNPC.

Sorry about this, but after I've deleted the rows, and went back to my server, I typed "/playernpc Avarice 9901003" and nothing happened. After I shut down the server, I checked the MySQL database, there isn't any new records in the PlayerNPC table.
 
Re: [Release] | v75 | ShineMS | ShineSource 1.9

Make sure you also copied thhe right imports from the admincommands.java.

I guess this is the only one you will need:
Code:
import server.life.MapleLifeFactory;

I have that import and Horntail has been added for normal GM to !horntail.

I copied this code
Code:
} else if (splitted[0].equals("zakum")) {
            player.getMap().spawnFakeMonsterOnGroundBelow(MapleLifeFactory.getMonster(8800000), player.getPosition());
            for (int x = 8800003; x < 8800011; x++) {
                player.getMap().spawnMonsterOnGroudBelow(MapleLifeFactory.getMonster(x), player.getPosition());
            }

Now, I can compile well. Guess it's just some syntax or symbols being added wrongly in the file. Thanks!
 
Re: [Release] | v75 | ShineMS | ShineSource 1.9

There's a bug that when you are more than level 10, you can't do job with @cody. They will say "do job as null" and then if you try to type "!level 10" for GMs, it doesn't work. Log out and your character is still in-game. Had to restart server.

---------- Post added at 07:29 PM ---------- Previous post was at 07:07 PM ----------

Btw, does anyone know how can I let 9100000 (Kerning City Manekineko) to use a script? I want it to run the Max-Stat Items script, and have added a new .js file named 9100000.js in the scripts\npc path. It didn't work out.
 
Re: [Release] | v75 | ShineMS | ShineSource 1.9

There's a bug that when you are more than level 10, you can't do job with @cody. They will say "do job as null" and then if you try to type "!level 10" for GMs, it doesn't work. Log out and your character is still in-game. Had to restart server.

---------- Post added at 07:29 PM ---------- Previous post was at 07:07 PM ----------

Btw, does anyone know how can I let 9100000 (Kerning City Manekineko) to use a script? I want it to run the Max-Stat Items script, and have added a new .js file named 9100000.js in the scripts\npc path. It didn't work out.
MAke sure your characters GM lvl is 3 otherwise the commands starting with "/" won't work.
 
Re: [Release] | v75 | ShineMS | ShineSource 1.9

MAke sure your characters GM lvl is 3 otherwise the commands starting with "/" won't work.

Yep, they are level 3 and can do commands such as /horntail etc. The bug's with the @cody one. I was level 126, typed @cody and my job's beginner, it says what change job to NULL. Then I tried changing my level to 10 by typing !level 10, it didn't change my level. Then my character is stuck at the map. I tried this two times already.

Btw, for the playernpc code, I'm using the admin account, I typed /playernpc Avarice 9901003 but it didn't work. I've no PlayerNPCs in MySQL database now.

Edit: What's the NPC name and shop ID which is the all-in-one seller?
 
Last edited:
Re: [Release] | v75 | ShineMS | ShineSource 1.9

will there be all working pqs and monster carnival in the coming revision for this repack?
 
Re: [Release] | v75 | ShineMS | ShineSource 1.9

Monster carnival doesnt even take that long to add, when Jvlaple released like 95% of it, and all you need to do is update the packets. As the other pqs all have been released except the new ones like ElinForestPQ, CrismonKeepPQ, and MagatiaPQ

He coded it horribly though.
 
Re: [Release] | v75 | ShineMS | ShineSource 1.9

wait to use commands its not ! its /

Depends on what commands you're talking about. The actual player commands that exist in GMS are "/" but the ones used in private servers are "!" for GMs and "@" for players (I think? Haven't touched a source in almost a year)
 
Re: [Release] | v75 | ShineMS | ShineSource 1.9

Add this to your next revision:

To fix expfix:
in playercommands
Code:
else if (splitted[0].equals("expfix")) {
            if (player.getExp() < 0) {
            player.levelUp(true);
            player.setExp(0);
            player.updateSingleStat(MapleStat.EXP, player.getExp());
	player.message("You no longer have negative EXP.");
            } else {
            player.message("You do not have negative EXP.");
            }

To fix AutoAssign stats
in net.channel.handler.AutoAssignHandler.java
Code:
 chr.updateSingleStat(type, Math.min(newVal, 32767));
        if (newVal > 32767) {
            return newVal - 32767;
        }
 
Last edited:
Back