Newbie Spellweaver
- Joined
- Mar 29, 2014
- Messages
- 5
- Reaction score
- 2
Actually i have the problem that i cant add the Coords of "new" added shops. I have done every single step right, the function for the shop i added is ingame "extreme shop" but for any reason i cant edit the coords for the shop and thats kinda annoying.
Thats what i have done in the src to get the shop ingame:
Server>data>items>UnpackedShops.txt
Server>src>com>rs>net>decoders>handlers>NpcHandler.java
Server>src>com>rs>game>npc>NPC.java
Server>src>data>npcs>unpackedSpawnsList.txt
Can someone pls explain me what i have done false, the function works perfect. If i'm spawning the npc "653" on my server i'm able to use the shop. But the only thing is the spawn, btw it say's i need to delete the "packedspawn" folder if i change the unpacked spawns. The problem is if i'm deleting the folder and i compile and run the src there will be no npc anymore...
Greetings
PkskilleR
Thats what i have done in the src to get the shop ingame:
Server>data>items>UnpackedShops.txt
111 995 false - Extreme shop - 16711 10 17259 10 16689 10 16293 10 16359 10
Server>src>com>rs>net>decoders>handlers>NpcHandler.java
if (player.isExtremeDonator() == true) {
ShopsHandler.openShop(player, 111);
}else{
player.sendMessage("You need to be Extreme Donator to open that shop.");
}
}
ShopsHandler.openShop(player, 111);
}else{
player.sendMessage("You need to be Extreme Donator to open that shop.");
}
}
Server>src>com>rs>game>npc>NPC.java
else if (id == 653) {
setName("Extreme Shop");
}
|| id == 653 ||
setName("Extreme Shop");
}
|| id == 653 ||
Server>src>data>npcs>unpackedSpawnsList.txt
-Id----Coords----Shop Name
653 - 2804 5166 0 //Extreme Shop
653 - 2804 5166 0 //Extreme Shop
Can someone pls explain me what i have done false, the function works perfect. If i'm spawning the npc "653" on my server i'm able to use the shop. But the only thing is the spawn, btw it say's i need to delete the "packedspawn" folder if i change the unpacked spawns. The problem is if i'm deleting the folder and i compile and run the src there will be no npc anymore...
Greetings
PkskilleR