Jump to content

Millenium

Members
  • Posts

    131
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling
  • Location
    My chair

Millenium's Achievements

Poring

Poring (1/15)

0

Reputation

  1. How are you going to make a server when you can't even figure out how to fix a script.. Asking people, figuring out what they added & working from there? Trial and error buddy
  2. Map_serv has same error again ):
  3. Don't question this right now, I'm just experimenting.. I get error "Missing 1 right curlys at file customitem.txt, line '49'." //===== rAthena Script ======================================= //= Custom Item Quest //===== By: ================================================== //= jabs //===== Current Version: ===================================== //= 1.1 //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //= Quest to get the Custom Item //===== Additional Comments: ================================= //= 1.1 Fixed ingredients. Was too exploitable [Lupus] //= 1.2 Optimized. [Euphy] //============================================================ prontera,165,178,8 script Old Woman 103,{ setarray [email protected][0],714,25,1061,100,1095,200,618,10,1551,2,1614,1,727,20; set [email protected]$,"[Custom Items]"; mes [email protected]$; mes "I believe the item is called a ^FF0000God Item^000000. It makes you have invincibility skill!"; next; mes [email protected]$; mes "I need all of the following items:"; for(set [email protected],0; [email protected]<getarraysize([email protected]); set [email protected],[email protected]+2) { mes " ~ "[email protected][[email protected]+1]+"x "+getitemname([email protected][[email protected]]); if (countitem([email protected][[email protected]]) < [email protected][[email protected]+1]) set [email protected] next; if(select("I have all of that!:I'll get those ASAP")==2) goto M_Leave; mes [email protected]$; if ([email protected]) { mes "You lie! Get out of here and get those items, you sorry excuse for a rock star."; close; } for(set [email protected],0; [email protected]<getarraysize([email protected]); set [email protected],[email protected]+2) delitem [email protected][[email protected]], [email protected][[email protected]+1]; getitem 4145,1; set BerzQuest, 1; mes "Congratulations! You have all the items. Here is your ^FF0000God Item^000000, as promised."; emotion e_grat; close; M_Leave: mes [email protected]$; mes "Such a great item I have right here..."; close; } }
  4. Sorry, this my last topic. ): These all right? setarray .Currency[1],7539,7539,7539,7539,7539,7539,7539,7539; setarray .Weapons[0],1202,5,1229,20; setarray .Headgears[0],19806,15; setarray .Armors[0],2302,2,2348,30; setarray .Garments[0],2502,2,2513,15,2523,15; setarray .Shoes[0],2441,15; setarray .Shields[0],2199,32768; setarray .Cards[0],4051,3,4285,6; setarray .Accessory[0],513,1,532,2,634,4;
  5. When I click on NPC and click any Armor/Weapons,etc It says "This shop only accepts Poring Coin" "You have 1 Poring coin." Then stops me from moving or clicking? //===== eAthena Script ======================================= //= Custom-Currency Multi-Shop //===== By: ================================================== //= Euphy //===== Current Version: ===================================== //= 1.2 //===== Description: ========================================= //= Allows for better organization in a single shop call. //= Note that there are two configuration areas. //============================================================ // -------------------- Config 1 -------------------- // For each shop added, copy this MSHOPX dummy data. // Write your shop names in the select() function. - shop WEAPONS 1,512:1 - shop HEADGEARS -1,:-1 - shop ARMORS -1,:-1 - shop GARMENTS -1,512:-1 - shop SHOES -1,:-1 - shop SHIELDS -1,:-1 - shop CARDS -1,:-1 - shop ACCESSORY -1,512:-1 crystilia,71,86,4 script A Shop 984,{ set @s, select("Weapons:Headgears:Armors:Garments:Shoes:Shields:Cards:Accessory"); // -------------------------------------------------- message strcharinfo(0),"This shop only accepts "+getitemname(.Currency[@s])+"."; dispbottom "You have "+countitem(.Currency[@s])+" "+getitemname(.Currency[@s])+"."; callshop "MSHOP"[email protected],1; npcshopattach "MSHOP"[email protected]; end; OnBuyItem: set [email protected],0; while ([email protected] < getarraysize(@bought_nameid)) { set [email protected], 0; while ([email protected] < getarraysize(getd(".Shop"[email protected]))) { if(getd(".Shop"[email protected]+"["[email protected]+"]") == @bought_nameid[[email protected]]) { set @itemcost, (getd(".Shop"[email protected]+"["+([email protected]+1)+"]") * @bought_quantity[[email protected]]); set @totalcost, @totalcost + @itemcost; break; } set [email protected], [email protected]+2; } set [email protected], [email protected]+1; } if (@totalcost > countitem(.Currency[@s])) dispbottom "You don't have enough "+getitemname(.Currency[@s])+"."; else { set [email protected],0; while ([email protected] < getarraysize(@bought_nameid)) { getitem @bought_nameid[[email protected]], @bought_quantity[[email protected]]; dispbottom "Purchased "[email protected]_quantity[[email protected]]+"x "+getitemname(@bought_nameid[[email protected]])+"."; set [email protected], [email protected]+1; } delitem .Currency[@s], @totalcost; } set @totalcost, 0; deletearray @bought_nameid[0], 128; deletearray @bought_quantity[0], 128; end; OnInit: // -------------------- Config 2 -------------------- // Currency: The ID of each shop currency, // in the same order as the shops. // Shop order follows that of the select() call, // and is formatted "ID1,Count1,ID2,Count2,..." setarray .Currency[1],7539,7539,7539,7539,7539,7539,7539,7539; setarray .Weapons[0],1202,5,1229,20; setarray .Headgears[0],19806,15; setarray .Armors[0],2302,2,2348,30; setarray .Garments[0],2502,2,2513,15,2523,15; setarray .Shoes[0],2441,15; setarray .Shields[0],2199,32768; setarray .Cards[0],4051,3,4285,6; setarray .Accessory[0],513,1,532,2,634,4; // -------------------------------------------------- set [email protected],1; while ([email protected] <= getarraysize(.Currency)) { set [email protected],0; while ([email protected] < getarraysize(getd(".Shop"[email protected]))) { npcshopdelitem "MSHOP"[email protected],512; npcshopadditem "MSHOP"[email protected], getd(".Shop"[email protected]+"["[email protected]+"]"), getd(".Shop"[email protected]+"["+([email protected]+1)+"]"); set [email protected], [email protected]+2; } set [email protected], [email protected]+1; } end; }
  6. Then there's something wrong to where you've loaded the NPC in the map.. check your coords again. I GOT IT!! I was using @reloadscript in game instead of restarting servers? What's the difference?
  7. Doesn't show the npc in game for me? You're gonna need to help us.. not always us help you . What does your map server say? Errors? Etc. Lol, There were no errors It says it loaded everything successful?
  8. How would I go about making a message box, like for a sign. Ex. Next to Warp portal to mall, put MALL message box? Would this script do anything? crystilia,67,91,1 script Mall 857,{ end; OnInit: waitingroom "MALL",1,"; end;
  9. Doesn't show the npc in game for me?
  10. I downloaded it, put it in trunk/npc/custom folder as currency.txt Added this line into scripts_custom.conf npc: npc/custom/currency.txt Don't let me see the NPC at coords? I have to config first or doesn't matter? //===== eAthena Script ======================================= //= Custom-Currency Multi-Shop //===== By: ================================================== //= Euphy //===== Current Version: ===================================== //= 1.2 //===== Description: ========================================= //= Allows for better organization in a single shop call. //= Note that there are two configuration areas. //============================================================ // -------------------- Config 1 -------------------- // For each shop added, copy this MSHOPX dummy data. // Write your shop names in the select() function. - shop Headgears -1,512:-1 - shop MSHOP2 -1,512:-1 - shop MSHOP3 -1,512:-1 - shop MSHOP4 -1,512:-1 - shop MSHOP5 -1,512:-1 - shop MSHOP6 -1,512:-1 - shop MSHOP7 -1,512:-1 - shop MSHOP8 -1,512:-1 crystilia,71,86,4 script A Shop 984,{ set @s, select("Weapons:Headgears:Armors:Garments:Shoes:Shields:Cards:Misc"); // -------------------------------------------------- message strcharinfo(0),"This shop only accepts "+getitemname(.Currency[@s])+"."; dispbottom "You have "+countitem(.Currency[@s])+" "+getitemname(.Currency[@s])+"."; callshop "MSHOP"[email protected],1; npcshopattach "MSHOP"[email protected]; end; OnBuyItem: set [email protected],0; while ([email protected] < getarraysize(@bought_nameid)) { set [email protected], 0; while ([email protected] < getarraysize(getd(".Shop"[email protected]))) { if(getd(".Shop"[email protected]+"["[email protected]+"]") == @bought_nameid[[email protected]]) { set @itemcost, (getd(".Shop"[email protected]+"["+([email protected]+1)+"]") * @bought_quantity[[email protected]]); set @totalcost, @totalcost + @itemcost; break; } set [email protected], [email protected]+2; } set [email protected], [email protected]+1; } if (@totalcost > countitem(.Currency[@s])) dispbottom "You don't have enough "+getitemname(.Currency[@s])+"."; else { set [email protected],0; while ([email protected] < getarraysize(@bought_nameid)) { getitem @bought_nameid[[email protected]], @bought_quantity[[email protected]]; dispbottom "Purchased "[email protected]_quantity[[email protected]]+"x "+getitemname(@bought_nameid[[email protected]])+"."; set [email protected], [email protected]+1; } delitem .Currency[@s], @totalcost; } set @totalcost, 0; deletearray @bought_nameid[0], 128; deletearray @bought_quantity[0], 128; end; OnInit: // -------------------- Config 2 -------------------- // Currency: The ID of each shop currency, // in the same order as the shops. // Shop order follows that of the select() call, // and is formatted "ID1,Count1,ID2,Count2,..." setarray .Currency[1],513,513,513,513,513,513,513,513; setarray .Headgears[1],1202,5,1229,20; setarray .Shop2[0],5116,15; setarray .Shop3[0],2302,2,2348,30; setarray .Shop4[0],2502,2,2513,15,2523,15; setarray .Shop5[0],2441,15; setarray .Shop6[0],2199,32768; setarray .Shop7[0],4051,3,4285,6; setarray .Shop8[0],513,1,532,2,634,4; // -------------------------------------------------- set [email protected],1; while ([email protected] <= getarraysize(.Currency)) { set [email protected],0; while ([email protected] < getarraysize(getd(".Shop"[email protected]))) { npcshopdelitem "MSHOP"[email protected],512; npcshopadditem "MSHOP"[email protected], getd(".Shop"[email protected]+"["[email protected]+"]"), getd(".Shop"[email protected]+"["+([email protected]+1)+"]"); set [email protected], [email protected]+2; } set [email protected], [email protected]+1; } end; }
  11. No errors, I download the file. Put it in the npc/custom folder as currency.txt added this in scripts_custom.conf // ----------------------- Basic Scripts ----------------------- npc: npc/custom/currency.txt Went on server, tried going to coords and it's not there?
  12. then what is this ?? I know, but it doesn't show for me in game? Do I have to config before it shows?
  13. Once again, thank you Is it easy to figure out? Yeah, it's easy to configure. Hmm, where do I set it's coords? It's not there? prontera,163,174,4 script A Shop 984,{ set @s, select("Weapons:Headgears:Armors:Garments:Shoes:Shields:Cards:Misc"); 163, 174 are the cords. Lol, I know it's not there? Is there an NPC for it?
  14. Once again, thank you Is it easy to figure out? Yeah, it's easy to configure. Hmm, where do I set it's coords? It's not there? prontera,163,174,4 script A Shop 984,{ set @s, select("Weapons:Headgears:Armors:Garments:Shoes:Shields:Cards:Misc");
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.