like the title says how would I go around making one?
sorry if this is the wrong section..
Printable View
like the title says how would I go around making one?
sorry if this is the wrong section..
once someone clicks a selection, gainitem().
http://forum.ragezone.com/f427/add-s...e-shop-737636/
Which bits would i need to cut out here, I pretty much have the bits I want right now..
Not the all in one (aka the magnifying and pot scrolls)
AIOPHP Code:var status = 0;
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("Welcome to FlashMS Shop! How may I be of service? \r\n\
#L0#Magnifying Glasses\r\n\
#L1051#Advanced Potential");
} else if (status == 1) {
what would I need to change?PHP Code:var status = 0;
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("Welcome to the All In One Shop. \r\n\
What would you like to buy?\r\n\
#L0#Weapons\r\n\
#L1051#Overalls\r\n\
#L1082#Gloves\r\n\
#L1002#Hats\r\n\
#L1092#Shields\r\n\
#L1041#Tops\r\n\
#L1061#Bottoms\r\n\
#L1012#Face Accessories\r\n\
#L1032#Earrings\r\n\
#L1#Scrolls\r\n\
#L2002#Potions (Page 1)\r\n\
#L2050#Potions (Page 2)\r\n\
#L2060#Bow Arrows\r\n\
#L2061#CrossBow Arrows\r\n\
#L2070#Stars");
} else if (status == 1){
if (selection == 0){
cm.sendSimple("#L1302#One Handed Sword\r\n\
#L1312#One Handed Axe\r\n\
#L1322#One Handed Blunt Weapon\r\n\
#L1402#Two Handed Sword\r\n\
#L1412#Two Handed Axe\r\n\
#L1422#Two handed Blunt Weapon\r\n\
#L1432#Spear\r\n\
#L1442#Polearm\r\n\
#L1332#Dagger\r\n\
#L1372#Wand\r\n\
#L1382#Staff\r\n\
#L1452#Bow\r\n\
#L1462#CrossBow\r\n\
#L1472#Claw\r\n\
#L1482#Knuckle\r\n\
#L1492#Gun")
}else if (selection == 1){
cm.sendSimple("#L2040#Scrolls for Clothing (Page 1)\r\n\
#L2041#Scrolls for Clothing (Page 2)\r\n\
#L2043#Scrolls for Weapons (Page 1)\r\n\
#L2044#Scrolls for Weapons (Page 2)\r\n\
#L2048#Scrolls for Pet items\r\n\
#L2049#Other Scrolls");
}else{
cm.openShopById(selection);
cm.dispose();
}
}else if (status == 2){
cm.openShopById(selection);
cm.dispose();
}
}
}
Not possible because All-In-One shops call on then openShopByID function which reads the SQL for the Shop ID.
It's not complicated at all. Make an array variable that contains all the ids of the items you want to sell and make an array variable that contains the price of each. The NPC will give a selection (cm.sendSimple) and if he chooses X he get X for his price.
If you want me to script the NPC for you, just give me the ID's and and price of each.
:)