-
Posts
12 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Charlemagne19
-
-
4 hours ago, Racaae said:
EXAMPLE
Open a text editor program and paste the whole card seller script.
Click the save option, save it in your server folder /npc/ and name it carloscardseller.txt
Now on npc/scripts_custom, add a empty new line at the end of the file and add:If you are using rAthena:
npc: npc/carloscardseller.txt
Just like this, if you are using Hercules:
// Custom "npc/custom/support_me.txt", "npc/carloscardseller.txt",
All NPCs in the server comes from txt files. Each line is a different file. So you're adding your file with your NPC so the server knows where it is, simple.
-
17 hours ago, Racaae said:
Hi. From rAthena wiki:
New scripts must be saved as a text file first. The file may be located anywhere in the rAthena directory, but is in the npc folder by default.
So create a .txt file and paste the script in it.
For an NPC to be loaded, it needs to be added to a .conf file. This is typically npc/scripts_custom.conf. Add a line, and enter your NPC file in the following format:npc: npc/path/to/your_card_seller_script.txt
After adding the script, it must be loaded before the script contents take effect in game. There are a few ways to do this.
- The map server can be rebooted. This is generally the safest route though not the most convenient for active servers.
- The GM command @reloadscript maybe used in game, though this may cause monster spawn bugs.
Spoiler//================= Hercules Configuration ================================
//= _ _ _
//= | | | | | |
//= | |_| | ___ _ __ ___ _ _| | ___ ___
//= | _ |/ _ \ '__/ __| | | | |/ _ \/ __|
//= | | | | __/ | | (__| |_| | | __/\__ \
//= \_| |_/\___|_| \___|\__,_|_|\___||___/
//================= License ===============================================
//= This file is part of Hercules.
//= http://herc.ws - http://github.com/HerculesWS/Hercules
//=
//= Copyright (C) 2012-2021 Hercules Dev Team
//= Copyright (C) Athena Dev Teams
//=
//= Hercules is free software: you can redistribute it and/or modify
//= it under the terms of the GNU General Public License as published by
//= the Free Software Foundation, either version 3 of the License, or
//= (at your option) any later version.
//=
//= This program is distributed in the hope that it will be useful,
//= but WITHOUT ANY WARRANTY; without even the implied warranty of
//= MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
//= GNU General Public License for more details.
//=
//= You should have received a copy of the GNU General Public License
//= along with this program. If not, see <http://www.gnu.org/licenses/>.
//=========================================================================
//= Custom Scripts
//=========================================================================
// Note: The scripts listed in this file are not maintained by the Hercules
// dev team and may be outdated or incompatible with the current
// version of the emulator, or cause security or stability issues.
//=========================================================================// All the custom scripts, remove the '//' to enable...
// Place your scripts here!//"npc/location/to/script.txt",
//================= Basic Scripts =========================================
"npc/custom/itembind.txt",
"npc/custom/warper.txt",
"npc/custom/jobmaster.txt",
"npc/custom/platinum_skills.txt",
"npc/custom/healer.txt",
"npc/custom/breeder.txt",
"npc/custom/itemmall.txt",
// Remove '//' to enable item mall npc
"npc/custom/stylist.txt",
"npc/custom/resetnpc.txt",
"npc/custom/card_remover.txt",
"npc/custom/item_signer.txt",
"npc/custom/woe_controller.txt",
"npc/custom/bartershop.txt",
"npc/custom/expandedbartershop.txt",
"npc/custom/zeroui.txt",
"npc/custom/dialogalign.txt",//================= Other Scripts =========================================
// -- MVP Arena
//"npc/custom/etc/mvp_arena.txt",
// -- Penal Servitude (Jails Quest)
//"npc/custom/etc/penal_servitude.txt",
// -- Banks
//"npc/custom/etc/bank_kafra.txt",
//"npc/custom/etc/bank.txt",
// -- Lottery (very flexible)
//"npc/custom/etc/lottery.txt",
// -- Stock Market (Play on it, earn money, very flexible)
//"npc/custom/etc/stock_market.txt",
// -- Russian Roulette + Rock Scissors Paper (warning! contains OBB/OVB/OCA/etc. prizes!)
//"npc/custom/etc/rpsroulette.txt",
// -- Black Jack
//"npc/custom/etc/blackjack.txt",
// -- Hire ninja squads to assassinate an enemy!
//"npc/custom/etc/shifty_assassin.txt",
// -- Train your monsters to fight against other players' monsters
//"npc/custom/etc/monster_arena.txt",
// -- Raceway mini-game
//"npc/custom/etc/morroc_raceway.txt",
// -- Random change of Drop/Exp rates 1x ~ 1.5x every 6 hours on your server
//"npc/custom/etc/floating_rates.txt",
// -- Wedding script that supports same-sex marriages
//"npc/custom/etc/marriage.txt",
// -- Warper that works only after locations are unlocked
//"npc/custom/etc/quest_warper.txt",//================= Quest Scripts =========================================
// -- Dynamic Quest Scripts
//"npc/custom/quests/hunting_missions.txt",
//"npc/custom/quests/quest_shop.txt",
//"npc/custom/quests/questboard.txt",
// -- Treasure Hunters Guild Quests (40 Quests + Special Guild Shop)
//"npc/custom/quests/thq/THQS_ChatingNPC.txt",
//"npc/custom/quests/thq/THQS_GuildNPC.txt",
//"npc/custom/quests/thq/THQS_QuestNPC.txt",
//"npc/custom/quests/thq/THQS_Quests.txt",
//"npc/custom/quests/thq/THQS_TTShop.txt",
// -- Equipment Quests
//"npc/custom/quests/elvenear.txt",
//"npc/custom/quests/sunglasses.txt",
//"npc/custom/quests/bandit_beard.txt",
//"npc/custom/quests/event_6_new_hats.txt",
//"npc/custom/quests/may_hats.txt",
//"npc/custom/quests/kings_items.txt",
// -- Misc Item Quests
//"npc/custom/quests/dead_branch.txt",
//"npc/custom/quests/berzebub.txt",
//"npc/custom/quests/jewel_case.txt",
// -- Godly Equipment Quests (be careful!)
//"npc/custom/quests/valhallen.txt",
//"npc/custom/quests/kaho_balmung.txt",
//"npc/custom/quests/kahohorn.txt",//================= Event Scripts =========================================
// -- Daily Events
//"npc/custom/events/disguise.txt",
//"npc/custom/events/mushroom_event.txt",
//"npc/custom/events/cluckers.txt",
// -- Holiday Events
//"npc/custom/events/xmas_rings_event.txt",
//"npc/custom/events/valentinesdayexp.txt",
//"npc/custom/events/hallow06.txt",
//"npc/custom/events/uneasy_cemetery.txt",//================= Unofficial Scripts ====================================
// -- Unofficial Airplane script
//"npc/custom/etc/airplane.txt",
// -- Thanatos Tower Statues Quest
//"npc/custom/quests/tha_statues.txt",
// -- Custom quests from official Umbalian Quests
//"npc/custom/quests/sphinx_mask.txt",
//"npc/custom/quests/umbalian_language.txt",
// -- Unofficial Battlegrounds
//"npc/custom/battleground/bg_common.txt",
//"npc/custom/battleground/bg_tierra_01.txt",
//"npc/custom/battleground/bg_tierra_02.txt",
//"npc/custom/battleground/bg_flavius_01.txt",
//"npc/custom/battleground/bg_flavius_02.txt",
//"npc/custom/battleground/bg_kvm01.txt",
//"npc/custom/battleground/bg_kvm02.txt",
//"npc/custom/battleground/bg_kvm03.txt",// Custom
"npc/custom/support_me.txt",
SIR THIS IS MY WHOLE NPC SCRIPT_CUSTOM... WHere should i put the new script? Sorry for this stupid question but i don't know. I can't understand how scripts work but i am trying to figure this out... can you help me make this easy please??? -
On 7/27/2012 at 3:44 AM, Virtue said:
//===== rAthena Script ======================================= //= Shop Street //===== By: ================================================== //= Masao(Shopstreet) - Original Mall Script //= Virtue(All in 1 Mall NPC) //===== Current Version: ===================================== //= 1.0 [Masao] //===== Compatible With: ===================================== //= rAthena SVN //===== Description: ========================================= //Street Mall in One NPC //Change "Your Server Name" to your Server Name or whhat ever you desire" //============================================================
//===== rAthena Script ======================================= //= Shop Street //===== By: ================================================== //= Masao(Shopstreet) - Original Mall Script //= Virtue(All in 1 Mall NPC) //===== Current Version: ===================================== //= 1.0 [Masao] //===== Compatible With: ===================================== //= rAthena SVN //= Judas SVN //===== Description: ========================================= //Street Mall in One NPC //Change "Your Server Name" to your Server Name or whhat ever you desire" //============================================================ prontera,146,167,5 script Mall Npc 706,{ mes "[Quick Mall]"; mes "Welcome to ^FF0000Your Server Name^000000 ^000088Quick Mall^000000."; mes "Hello there ^FF0000" + strcharinfo(0) + "^000000."; mes "Please select what you want"; next; switch(select("Armors:Weapons:Etc:Nothing")) { close2; case 1: switch(select("Armor:Shield:Footgear:Garments:Lower Headgears:Middle Headgears:Upper Headgears:Accessories")) { case 1: callshop "Armor", 0; end; case 2: callshop "Shield", 0; end; case 3: callshop "Footgear", 0; end; case 4: callshop "Garments", 0; end; case 5: callshop "LowerH", 0; end; case 6: callshop "MiddleH", 0; end; case 7: callshop "UpperH", 0; end; case 8: callshop "Accessories", 0; end; } case 2: switch(select("Katars:Mace:Knuckle:Whips:Instruments:Books:Guns:Fuuma:One-Handed Swords:Two-Handed Swords:Spears:Dagger:Axes:Bows:Staffs")) { case 1: callshop "Katars", 0; end; case 2: callshop "Mace", 0; end; case 3: callshop "Knuckle", 0; end; case 4: callshop "Whips", 0; end; case 5: callshop "Instruments", 0; end; case 6: callshop "Books", 0; end; case 7: callshop "Guns", 0; end; case 8: callshop "Fuuma", 0; end; case 9: callshop "OneSwords", 0; end; case 10: callshop "TwoSwords", 0; end; case 11: callshop "Spears", 0; end; case 12: callshop "Dagger", 0; end; case 13: callshop "Axes", 0; end; case 14: callshop "Bows", 0; end; case 15: callshop "Staffs", 0; end; } case 3: switch(select("Ammunition:Alchemist:Streets")){ case 1: callshop "Ammunition", 0; end; case 2: callshop "AlchemistS", 0; end; case 3: callshop "StreetDealer", 0; end; } end; case 4: mes "[ Quick Mall ]"; mes "Okay,come back when you need me."; close; } } //shops - shop Armor -,2304:10000,2306:20000,2308:20000,2310:50000,2311:50000,2313:50000,2315:75000,2317:100000,2322:20000,2326:60000,2331:75000,2342:100000,2353:75000,2364:150000,2367:100000,2399:50000 - shop Shield -,2102:10000,2106:60000,2108:60000,2110:85000,2114:30000,2116:30000,2123:50000,2124:50000 - shop Footgear -,2404:10000,2406:20000,2409:30000,2412:50000,2417:50000,2418:50000,2424:50000,2425:20000 - shop Mace -,1502:10000,1505:20000,1511:20000,1514:-1,1517:-1,1520:50000,1522:100000,1523:25000,1528:50000,1529:50000,1531:50000 - shop Knuckle -,1802:20000,1804:50000,1806:60000,1808:75000,1810:70000,1812:60000,1813:100000,1814:100000,1822:150000 - shop Whips -,1951:10000,1953:20000,1955:30000,1962:20000,1963:50000,1972:10000,1974:10000,1976:50000 - shop Instruments -,1902:10000,1904:20000,1906:-1,1908:50000,1913:50000,1914:50000,1915:50000,1916:50000,1917:50000 - shop Books -,1550:30000,1551:60000,1552:51000,1559:25000,1561:75000,1564:25000,1568:70000,1569:70000,1570:70000,1571:70000,1572:50000 - shop Guns -,13103:60000,13105:100000,13106:200000,13101:10000,13150:6000,13152:30000,13153:50000,13155:60000,13156:100000,13154:30000,13159:250000,13157:150000,13161:300000,13162:500000 - shop Fuuma -,7522:500,7521:500,7523:500 - shop OneSwords -,1108:10000,1117:10000,1120:100000,1124:50000,1130:100000,1131:50000,1133:50000,1138:200000,1139:200000,1145:-1,1149:50000 - shop TwoSwords -,1155:50000,1158:90000,1163:120000,1164:50000,1165:50000,1166:75000,1168:50000,1169:500000,1172:200000,1175:75000 - shop Spears -,1405:20000,1408:50000,1415:100000,1417:75000,1421:75000,1422:25000 - shop Dagger -,1208:20000,1211:20000,1217:20000,1223:50000,1231:75000,1235:75000,1236:75000,1237:75000 - shop Axes -,1302:10000,1306:20000,1307:45000,1309:75000,1352:20000,1355:30000,1358:75000,1363:50000,1364:50000,1365:50000,1366:50000,1371:100000 - shop Accessories -,2621:-1,2622:-1,2624:30000,2618:10000,2625:30000,2626:30000,2674:10000,2648:50000,2649:50000,2627:-1,2701:75000 - shop Bows -,1702:20000,1705:50000,1708:20000,1720:50000,1723:75000,1724:75000,1725:75000 - shop Staffs -,1602:20000,1605:20000,1608:20000,1611:45000,1618:85000,1620:85000,1622:50000,1624:50000,1625:50000,1626:50000 - shop Garments -,2504:10000,2506:40000,2507:82000,2508:56000,2514:50000,2518:60000,2519:60000,2528:85000,2531:10000,2553:10000 - shop Katars -,1251:50000,1253:100000,1255:75000,1261:125000,1262:20000,1263:20000,1265:100000,1275:100000,1276:100000,1277:100000,1278:100000 - shop LowerH -,2218:10000,5054:30000,2267:5000,5107:100000,2265:5000,2266:50000,2269:50000,2270:50000 - shop MiddleH -,2201:5000,2203:4000,2205:3500,2212:5000,2225:10000,2229:50000,2231:50000,2234:50000,2235:50000,2281:25000,2292:50000,2296:50000 - shop UpperH -,2210:1000,2211:1000,2213:10000,2214:20000,2217:10000,2221:5000,2223:10000,2246:75000,2256:75000,2264:100000,2280:20000,2299:30000 - shop Headgear1 -,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 - shop Headgear2 -,5059:100000,5235:75000,5236:75000,5237:75000,5293:150000,5303:35000,5304:65000,5312:65000,5315:45000,5317:45000,5319:75000,5320:120000,5323:588888,5336:50000,5337:50000,5338:50000,5339:50000,5346:50000 - shop Headgear3 -,5181:300000,5102:500000,5016:75000,5349:150000,5013:700000,5022:500000,5171:1250000,5135:500000,5029:50000,5033:65000,5040:100000,5047:35000,5065:65000,5068:50000,5074:50000,5084:75000,5086:150000,5108:350000,5121:100000,5133:50000,5137:100000,5138:150000,5140:55000,5146:75000,5151:75000,5152:150000,5170:150000,5173:75000,5174:75000,5175:75000,5184:50000,5185:45000,5187:75000,5188:50000,5191:25000,5192:25000,5193:25000,5194:25000,5195:25000,5196:25000,5197:25000 - shop Headgear4 -,5200:75000,5205:100000,5211:75000,5226:50000,5238:75000,5239:75000,5240:75000,5241:75000,5242:75000,5243:50000,5325:75000,5254:100000,5255:65000,5257:50000,5297:100000,2202:45000,5258:35000,5298:50000,5276:50000,5273:50000,5275:50000,5274:50000,5259:50000,5271:250000,5272:50000,5284:50000,5286:75000,5288:50000,5289:50000,5291:55000,5292:55000,5294:55000,5352:50000,5324:100000,5359:50000,5360:50000 - shop Headgear5 -,5340:50000,5341:50000,5342:50000,5343:50000,5344:50000,5345:50000,5354:50000,5355:50000,5361:65000,5365:50000,5373:75000,5374:350000,5379:50000,5383:60000,5384:88888,5390:88888,5388:50000,5411:50000,5393:75000,5397:35000,5399:50000,5800:175000,5801:300000,5802:150000 - shop Ammunition -,1766:50,1755:20,1750:10,1754:20,1761:20,1752:20,1760:20,1759:20,1772:100,1757:30,1770:20,1769:30,1765:40,1763:30,1762:30,1767:30,1764:30,1751:20,1768:30,1753:30,1756:30,1758:30,1771:1000,13200:50,13202:100,13201:300,13206:500,13203:500,13207:500,13204:500,13205:500,13252:50,13254:500,13251:100,13253:300,13250:50,13256:50,13259:50,13258:50,13255:50,13257:50 - shop AlchemistS -,715:600,716:600,717:600,1025:200,7136:500,7135:500,7136:500,7137:500,7138:500,7139:500 - shop StreetDealer -,678:5000,505:-1,506:40,610:4000,545:150,546:600,547:1650
All Mall Shops in 1 NPC - Pastebin
All Mall Shops in 1 NPC - mediafire
Credits to @Masao for the Street Shops NPC
Where should i look for and edit the scripts for this to work?
-
On 8/19/2014 at 12:09 AM, alvinjade said:
prontera,155,177,5 script Card Seller 100,{ mes "Welcome to card seller ... meh lazy to say"; next; if ( select ( "Normal Cards", "Mini-boss Cards", "MVP Cards" ) == 1 ) { .@s = select( .alphabet_menu$ ) -1; close2; callshop "card_mob#"+ .alphabet$[.@s], 1; end; } close2; callshop "card_mob#"+( ( @menu == 2 )? "miniboss":"MVP" ), 1; end; OnInit: freeloop 1; .@total = query_sql("select distinct left( name_japanese, 1 ) as aaa from item_db right join mob_db on item_db.id = mob_db.dropcardid where ~mode & 32 and type = 6 group by name_japanese order by aaa", .alphabet$ ); for ( .@i = 0; .@i < .@total; .@i++ ) { .alphabet_menu$ = .alphabet_menu$ + .alphabet$[.@i] +" Cards:"; .@nb = query_sql( "select item_db.id from item_db right join mob_db on item_db.id = mob_db.dropcardid where ~mode & 32 and type = 6 and left( name_japanese, 1 ) = '"+ .alphabet$[.@i] +"' group by name_japanese order by name_japanese limit 128", .@id ); npcshopdelitem "card_mob#"+ .alphabet$[.@i], 501; for ( .@j = 0; .@j < .@nb; .@j++ ) npcshopadditem "card_mob#"+ .alphabet$[.@i], .@id[.@j], 1000000; } freeloop 0; end; } - shop card_mob#A -1,501:1000 - shop card_mob#B -1,501:1000 - shop card_mob#C -1,501:1000 - shop card_mob#D -1,501:1000 - shop card_mob#E -1,501:1000 - shop card_mob#F -1,501:1000 - shop card_mob#G -1,501:1000 - shop card_mob#H -1,501:1000 - shop card_mob#I -1,501:1000 - shop card_mob#J -1,501:1000 - shop card_mob#K -1,501:1000 - shop card_mob#L -1,501:1000 - shop card_mob#M -1,501:1000 - shop card_mob#N -1,501:1000 - shop card_mob#O -1,501:1000 - shop card_mob#P -1,501:1000 - shop card_mob#Q -1,501:1000 - shop card_mob#R -1,501:1000 - shop card_mob#S -1,501:1000 - shop card_mob#T -1,501:1000 - shop card_mob#U -1,501:1000 - shop card_mob#V -1,501:1000 - shop card_mob#W -1,501:1000 - shop card_mob#X -1,501:1000 - shop card_mob#Y -1,501:1000 - shop card_mob#Z -1,501:1000 - shop card_mob#miniboss -1,4054:1000000,4241:1000000,4391:1000000,4428:1000000,4426:1000000,4290:1000000,4300:1000000,4392:1000000,4171:1000000,4397:1000000,4174:1000000,4398:1000000,4179:1000000,4266:1000000,4451:1000000,4250:1000000,4423:1000000,4354:1000000,4047:1000000,4163:1000000,4384:1000000,4431:1000000,4394:1000000,4395:1000000,4197:1000000,4198:1000000,4393:1000000,4203:1000000,4207:1000000,4440:1000000,4396:1000000,4254:1000000,4238:1000000,4237:1000000,4429:1000000,4406:1000000,4427:1000000,4306:1000000,4183:1000000 - shop card_mob#MVP -1,4236:1000000,4359:1000000,4425:1000000,4145:1000000,4168:1000000,4386:1000000,4142:1000000,4134:1000000,4137:1000000,4123:1000000,4330:1000000,4441:1000000,4352:1000000,4408:1000000,4128:1000000,4324:1000000,4363:1000000,4365:1000000,4430:1000000,4403:1000000,4419:1000000,4376:1000000,4357:1000000,4276:1000000,4361:1000000,4146:1000000,4399:1000000,4132:1000000,4131:1000000,4143:1000000,4135:1000000,4144:1000000,4148:1000000,4121:1000000,4407:1000000,4342:1000000,4263:1000000,4367:1000000,4318:1000000,4302:1000000,4305:1000000,4374:1000000,4372:1000000
Hi, this post is long ago but still if someone can answer please.
Where can I paste this script?
This is my first time doing this.
I just love this game and i want to customize it. please answer -
May I know how to apply this?
- 1
-
15 hours ago, Hyoru said:
Open your phpmyadmin,
1. ragnarok database > inventory,
search for the line that has the C_Angel_Fluttering ID and delete it.
*im sure that you dont want to fix the item problem… you just wanna play for fun.
correct me if im wrong.
Yeah... I want to play for fun... Thank you for helping me my Lord.
-
3 hours ago, Mirmo_ said:
add the missing sprites
as much as I would love to do that, I don't know how to add a particular sprite to solve this issue. Can you guide me?
3 hours ago, Emistry said:you should fix your missing item act/spr file, ensure you are using the valid act/spr files that exists in your data folder or grf
patching database is only a temporary fix unless you remove the item from the server permanently.
Hmmm... If I remove the item permanently, would it also be removed in my character costume slot?
-
WHere can I find Mysql sir? I just have PHPMYADMIN.
my problem is C_Angel_Fluttering... After I equip the costume, error occured and I can't play my character nor login my other character on the account...
-
Requesting Card Seller Script
in Script Requests
Posted
LIKE THIS SIR?