Jump to content

Millenium

Members
  • Posts

    131
  • Joined

  • Last visited

Everything posted by Millenium

  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 .@Items[0],714,25,1061,100,1095,200,618,10,1551,2,1614,1,727,20; set .@n$,"[Custom Items]"; mes .@n$; mes "I believe the item is called a ^FF0000God Item^000000. It makes you have invincibility skill!"; next; mes .@n$; mes "I need all of the following items:"; for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2) { mes " ~ "+.@Items[.@i+1]+"x "+getitemname(.@Items[.@i]); if (countitem(.@Items[.@i]) < .@Items[.@i+1]) set .@nr next; if(select("I have all of that!:I'll get those ASAP")==2) goto M_Leave; mes .@n$; if (.@nr) { mes "You lie! Get out of here and get those items, you sorry excuse for a rock star."; close; } for(set .@i,0; .@i<getarraysize(.@Items); set .@i,.@i+2) delitem .@Items[.@i], .@Items[.@i+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 .@n$; 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"+@s,1; npcshopattach "MSHOP"+@s; end; OnBuyItem: set .@i,0; while (.@i < getarraysize(@bought_nameid)) { set .@j, 0; while (.@j < getarraysize(getd(".Shop"+@s))) { if(getd(".Shop"+@s+"["+.@j+"]") == @bought_nameid[.@i]) { set @itemcost, (getd(".Shop"+@s+"["+(.@j+1)+"]") * @bought_quantity[.@i]); set @totalcost, @totalcost + @itemcost; break; } set .@j, .@j+2; } set .@i, .@i+1; } if (@totalcost > countitem(.Currency[@s])) dispbottom "You don't have enough "+getitemname(.Currency[@s])+"."; else { set .@i,0; while (.@i < getarraysize(@bought_nameid)) { getitem @bought_nameid[.@i], @bought_quantity[.@i]; dispbottom "Purchased "+@bought_quantity[.@i]+"x "+getitemname(@bought_nameid[.@i])+"."; set .@i, .@i+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 .@i,1; while (.@i <= getarraysize(.Currency)) { set .@j,0; while (.@j < getarraysize(getd(".Shop"+.@i))) { npcshopdelitem "MSHOP"+.@i,512; npcshopadditem "MSHOP"+.@i, getd(".Shop"+.@i+"["+.@j+"]"), getd(".Shop"+.@i+"["+(.@j+1)+"]"); set .@j, .@j+2; } set .@i, .@i+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"+@s,1; npcshopattach "MSHOP"+@s; end; OnBuyItem: set .@i,0; while (.@i < getarraysize(@bought_nameid)) { set .@j, 0; while (.@j < getarraysize(getd(".Shop"+@s))) { if(getd(".Shop"+@s+"["+.@j+"]") == @bought_nameid[.@i]) { set @itemcost, (getd(".Shop"+@s+"["+(.@j+1)+"]") * @bought_quantity[.@i]); set @totalcost, @totalcost + @itemcost; break; } set .@j, .@j+2; } set .@i, .@i+1; } if (@totalcost > countitem(.Currency[@s])) dispbottom "You don't have enough "+getitemname(.Currency[@s])+"."; else { set .@i,0; while (.@i < getarraysize(@bought_nameid)) { getitem @bought_nameid[.@i], @bought_quantity[.@i]; dispbottom "Purchased "+@bought_quantity[.@i]+"x "+getitemname(@bought_nameid[.@i])+"."; set .@i, .@i+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 .@i,1; while (.@i <= getarraysize(.Currency)) { set .@j,0; while (.@j < getarraysize(getd(".Shop"+.@i))) { npcshopdelitem "MSHOP"+.@i,512; npcshopadditem "MSHOP"+.@i, getd(".Shop"+.@i+"["+.@j+"]"), getd(".Shop"+.@i+"["+(.@j+1)+"]"); set .@j, .@j+2; } set .@i, .@i+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");
  15. Once again, thank you Is it easy to figure out?
  16. So many questions, I'm sorry Ex. Your currency you use Poring Coin ID(7539) how to change the original item mall to your currency instead of zeny? shop Headgear 01 832,5380:40000,5382:40000,2269:5000,2270:5000,5107:15000,5110:15000,2247:30000:5206:10000,2245:30000,2286:35000,2296:15000,2258:45000,5161:200000,5104:40000,2295:20000,5026:30000,5032:100000,5038:30000,5229:65000,5227:65000,5228:65000,5198:50000,5058:300000,5253:80000,5252:60000,5296:100000,5231:300000,5232:300000,5233:300000,5230:300000,5234:300000,5076:50000
  17. Same way you would add a npc anywhere. custommap,x,y,d<tab>script<tab>Name<tab>id,} What would I add that to? Lol, sorry @noobquestion.. Extremely tired That would be your script header, mate. o-o; Lol, still in the npc folder? lmfao Found it!! Thank you!
  18. Same way you would add a npc anywhere. custommap,x,y,d<tab>script<tab>Name<tab>id,} What would I add that to? Lol, sorry @noobquestion.. Extremely tired
  19. How would I add an npc to my custom map I implemented? What files I change and add to?
  20. What's the 2,5, mean? Mine says 1,1? Here: https://rathena.svn....pt_commands.txt Warps don't show up? D:
  21. Do you mean warp portals, or NPC's that warp you? Warp portals, sorry about that
  22. I didn't enable a custom NPC yet, I'm trying to disable the npc's in turbotrack? Oh I see! Okay, well you can remove the entire line from the scripts_athena than. ;D Remove all these? // -------------------- Turbo Track Arena ----------------------- //npc: npc/re/other/turbotrack/Turbo_Track.txt // Normal Courses (Non-PVP) //npc: npc/re/other/turbotrack/Normal_Solo.txt //npc: npc/re/other/turbotrack/Normal_4.txt //npc: npc/re/other/turbotrack/Normal_8.txt //npc: npc/re/other/turbotrack/Normal_16.txt // Expert Courses (PVP) //npc: npc/re/other/turbotrack/Expert_4.txt //npc: npc/re/other/turbotrack/Expert_8.txt //npc: npc/re/other/turbotrack/Expert_16.txt Do I change any of these? // turbo_room,110,135,3 script Expert mode - 4 person 124,{ end; OnInit: waitingroom "Expert mode - 4 person",60,"Expert mode - 4 person::OnStartArena",4,1000,10,99; enablewaitingroomevent "Expert mode - 4 person"; end; OnEnable: enablenpc "Expert mode - 4 person"; enablewaitingroomevent "Expert mode - 4 person"; end; OnStartArena: warpwaitingpc "turbo_e_4",298,161; donpcevent "Broadcast#e4::OnEnable"; disablewaitingroomevent "Expert mode - 4 person"; end; } If you don't need them, remove them all. ^^, I removed them all, how to add my own NPC/warp into the map? I have the warp locations? warps/customs/cities/turboroomin.txt crystilia,67,91,0 warp Mall 1,1,turbo_room,100,100 scripts_warps.conf npc: npc/re/warps/custom/cities/turboroomin.txt npc: npc/re/warps/custom/cities/turboroomout.txt
  23. I didn't enable a custom NPC yet, I'm trying to disable the npc's in turbotrack? Oh I see! Okay, well you can remove the entire line from the scripts_athena than. ;D Remove all these? // -------------------- Turbo Track Arena ----------------------- //npc: npc/re/other/turbotrack/Turbo_Track.txt // Normal Courses (Non-PVP) //npc: npc/re/other/turbotrack/Normal_Solo.txt //npc: npc/re/other/turbotrack/Normal_4.txt //npc: npc/re/other/turbotrack/Normal_8.txt //npc: npc/re/other/turbotrack/Normal_16.txt // Expert Courses (PVP) //npc: npc/re/other/turbotrack/Expert_4.txt //npc: npc/re/other/turbotrack/Expert_8.txt //npc: npc/re/other/turbotrack/Expert_16.txt Do I change any of these? // turbo_room,110,135,3 script Expert mode - 4 person 124,{ end; OnInit: waitingroom "Expert mode - 4 person",60,"Expert mode - 4 person::OnStartArena",4,1000,10,99; enablewaitingroomevent "Expert mode - 4 person"; end; OnEnable: enablenpc "Expert mode - 4 person"; enablewaitingroomevent "Expert mode - 4 person"; end; OnStartArena: warpwaitingpc "turbo_e_4",298,161; donpcevent "Broadcast#e4::OnEnable"; disablewaitingroomevent "Expert mode - 4 person"; end; }
  24. I didn't enable a custom NPC yet, I'm trying to disable the npc's in turbotrack?
×
×
  • Create New...