-
1 Attachment(s)
Full Cash shops in 1 npc!![Working]
I found this in the hiddensin repack and edit it a little bit.
Credits:
90% to Ruezu
10% to me for make a tut and edit it a little bit.
Paste in includes from TeleportNPCs.cpp:
PHP Code:
#include "shops.h"
Now Add this code to your TeleportNPCs.cpp:
PHP Code:
void NPCsScripts::npc_9300013(NPC* npc){ // Cash Shop FM
Player* player = npc->getPlayer();
int state = npc->getState();
int type = npc->getSelected();
if(state == 0){
npc->addText("Welcome to the Exclusive Cune-MS Cash Shop.\r\n");
npc->addText("You can buy a various amount of items here.\r\n");
npc->addText("If we don't have something you want feel free to request for it on our website.\r\n");
npc->addText("Please select the item you would like to buy.");
npc->sendNext();
}
if(state == 1){
npc->addText("Please select what kind of Cash Shop item you would like to buy:\r\n");
npc->addText("\r\n#L0#Capes#l\r\n#L1#Pants#l\r\n#L2#Gloves#l\r\n#L3#Shields#l");
npc->addText("\r\n#L4#Shoes#l\r\n#L5#Coats#l\r\n#L6#Rings#l\r\n#L7#Hats#l");
npc->addText("\r\n#L8#Hats 2#l\r\n#L9#Effects & Faces#l\r\n#L10#Overall#l\r\n#L11#Weapons#l");
npc->addText("\r\n#L12#Earings#l\r\n#L13#Style Coupons and Megaphones#l\r\n#L14#Eyes Accessories#l");
npc->sendSimple();
}
if(state == 2){
npc->setVariable("type", type);
if(type == 0){
{
Shops::showShop(player, 9300000);
npc->end();
}
}
else if(type == 1){
{
Shops::showShop(player, 9300001);
npc->end();
}
}
else if(type == 2){
{
Shops::showShop(player, 9300002);
npc->end();
}
}
else if(type == 3){
{
Shops::showShop(player, 9300003);
npc->end();
}
}
else if(type == 4){
{
Shops::showShop(player, 9300004);
npc->end();
}
}
else if(type == 5){
{
Shops::showShop(player, 9300005);
npc->end();
}
}
else if(type == 6){
{
Shops::showShop(player, 9300006);
npc->end();
}
}
else if(type == 7){
{
Shops::showShop(player, 9300007);
npc->end();
}
}
else if(type == 8){
{
Shops::showShop(player, 9300008);
npc->end();
}
}
else if(type == 9){
{
Shops::showShop(player, 9300009);
npc->end();
}
}
else if(type == 10){
{
Shops::showShop(player, 9300010);
npc->end();
}
}
else if(type == 11){
{
Shops::showShop(player, 9300011);
npc->end();
}
}
else if(type == 12){
{
Shops::showShop(player, 9300012);
npc->end();
}
}
else if(type == 13){
{
Shops::showShop(player, 9310010);
npc->end();
}
}
else if(type == 14){
{
Shops::showShop(player, 9300014);
npc->end();
}
}
}
}
Add this code to your NPCScripts.h
To your case's:
PHP Code:
case 9300000: shop(npc); break; //CS SHOP
case 9300001: shop(npc); break; //CS SHOP
case 9300002: shop(npc); break; //CS SHOP
case 9300003: shop(npc); break; //CS SHOP
case 9300004: shop(npc); break; //CS SHOP
case 9300005: shop(npc); break; //CS SHOP
case 9300006: shop(npc); break; //CS SHOP
case 9300007: shop(npc); break; //CS SHOP
case 9300008: shop(npc); break; //CS SHOP
case 9300009: shop(npc); break; //CS SHOP
case 9300010: shop(npc); break; //CS SHOP
case 9300011: shop(npc); break; //CS SHOP
case 9300012: shop(npc); break; //CS SHOP
case 9300013: npc_9300013(npc); break; //CS SHOP
case 9300014: shop(npc); break; //CS SHOP
case 9310010: shop(npc); break; //CS SHOP
This to your static voids:
PHP Code:
static void npc_9300013(NPC* npc);
Download the xml's Paste the map to your map folder and the shop's to your shop folder.
Screens:
http://img391.imageshack.us/img391/5724/cashhi5.png
-
Re: [Release]All Cash shops in 1 npc!![Working]
Thx...Going to test this
EDIT:Working!!!
-
Re: [Release]All Cash shops in 1 npc!![Working]
Amazing, thanks ~
EDIT:
By the way, people who are already using those codes of NPC they must delete the old ones first or it will be duplicated..
-
Re: [Release]All Cash shops in 1 npc!![Working]
-
Re: [Release]All Cash shops in 1 npc!![Working]
Quote:
Originally Posted by
purekotor
can i get 1 for odin pls
make it yourself...
-
Re: [Release]All Cash shops in 1 npc!![Working]
Should try taking the PvP code and adapting it to Vana.
:P
-
Re: [Release]All Cash shops in 1 npc!![Working]
Thanks!
that's freaking awesome. :D
edit-
Errr,I dont have the 'TeleportNpcS.cpp' or w/e file.
-
Re: [Release]All Cash shops in 1 npc!![Working]
Quote:
Originally Posted by
DUfire
Should try taking the PvP code and adapting it to Vana.
:P
you act as if its some simple task to make a real pvp not that shitty pvp rezu made. pvp = player vs player not player hit monster vs player hit monster -.-
he did not make pvp he made a cheap knock off i have been working on real pvp and it is extremely difficult ok.
-
Re: [Release]All Cash shops in 1 npc!![Working]
Quote:
Originally Posted by
chrisrogers
you act as if its some simple task to make a real pvp not that shitty pvp rezu made. pvp = player vs player not player hit monster vs player hit monster -.-
he did not make pvp he made a cheap knock off i have been working on real pvp and it is extremely difficult ok.
O_O furious geez . . .
-
Re: [Release]All Cash shops in 1 npc!![Working]
YOu just change that bunny girl to that guy... whatever, nice release for those that don't use RealityMS
-
Re: [Release]All Cash shops in 1 npc!![Working]
help me plz i did all you said i got the npc but when i click on him npings hepen
-
Re: [Release]All Cash shops in 1 npc!![Working]
wo this is awesome its help me !
-
Re: [Release]All Cash shops in 1 npc!![Working]
I got a problem umm the npc comes there but when i click on him nothing happens ?:S
-
Re: [Release]All Cash shops in 1 npc!![Working]
Hi there. I got the same problem like many do. When I click that NPC, nothing happens.
Help would be greatly appreciated. Thanks <3
-
Re: [Release]All Cash shops in 1 npc!![Working]
if you are using doyos databese, this wont work in your server
-
Re: [Release]All Cash shops in 1 npc!![Working]
-
Re: [Release]All Cash shops in 1 npc!![Working]
This works for 09 titnams?
I'm using K-Repack 11.4
-
Re: [Release]All Cash shops in 1 npc!![Working]
it's works also with K-Repack
-
Re: [Release]All Cash shops in 1 npc!![Working]
-
Re: [Release]All Cash shops in 1 npc!![Working]
LoL Really Awesome thanks AloT
-
Re: [Release]All Cash shops in 1 npc!![Working]
-
Re: [Release]All Cash shops in 1 npc!![Working]
I'm on krytical's 9.2 so will it work?
-
Re: [Release]All Cash shops in 1 npc!![Working]
-
Re: [Release]All Cash shops in 1 npc!![Working]
Quote:
Originally Posted by
Thijme94
Question: Wich XML's ?
in the Attached Files
-
Re: [Release]All Cash shops in 1 npc!![Working]
Um...I'm using hiddensin...And I don't know where the xmls are