NPC Scripts




Alles über unseren server

NPC Scripts

Beitragvon Toby » Sa 21. Mär 2009, 00:37

SQI Final

Code: Alles auswählen
//===== Custom Headgears Script =======================================
//= Custom Headgears and Donations
//===== By ===================================================
//= Toby
//===== Version ==============================================
//=1.0
//============================================================


yuno.gat,157,123,4   script   Super Quest Item   965,{

mes "[^FF0066King Joe^000000]";
mes "You look very strong!";
mes " ";
mes "I can make you every SQI Weapon you like.";
next;
mes "[^FF0066King Joe^000000]";
mes "Choose your SQI Weapon Class.";
next;
menu "Knight",kn,"Crusader",crus,"Priest",pri,"Monk",monk,"Alchemist",alch,"Blacksmith",bs,"Assassin",assa,"Rogue",rog,"Hunter",hunt,"Bard/Dancer",bada,"Wizzard",wiz,"Sage",sag,"Nothing.",endi;

kn:
mes "[^FF0066King Joe^000000]";
mes "You need the following itemes for that SQI:";
mes "1 Tirfing";
mes "1 Gungnir";
mes "1 Longinus's Spear";
mes "1 Lance";
mes "9 Bathory Card";
mes "2 Loki's Whispers";
mes "1,000 Evil Horn";
mes "240,000,000z";
next;
if(countitem(1139) < 1 || countitem(1418) < 1 || countitem(1469) < 1 || countitem(1410) < 1 || countitem(4119) < 9 || countitem(7019) < 2 || countitem(923) < 1000) goto NoItems;
if(Zeny < 240000000) goto NoItems;
delitem 1139,1;
delitem 1418,1;
delitem 1469,1;
delitem 1410,1;
delitem 4119,9;
delitem 7019,2;
delitem 923,1000;
set Zeny, Zeny - 240000000;
getitem 20508,1;
mes "[^FF0066King Joe^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;


crus:
mes "[^FF0066King Joe^000000]";
mes "You need the following itemes for that SQI:";
mes "1 Sacred Mission";
mes "1 Mirror Shield";
mes "1 Rosary";
mes "1 Safety Ring";
mes "5 Ambernite Card";
mes "5 Medusa Card";
mes "30 Orc Warrior Card";
mes "1 Emperium Anvil";
mes "12 Emperium";
mes "200 Piece of Shield";
mes "1,000 Destroyed Armor";
mes "250,000,000z";
next;
if(countitem(2128) < 1 || countitem(2107) < 1 || countitem(2626) < 1 || countitem(2615) < 1 || countitem(4032) < 5 || countitem(4124) < 5 || countitem(4066) < 30 || countitem(989) < 1 || countitem(714) < 12 || countitem(7108) < 200 || countitem(7069) < 1000) goto NoItems;
if(Zeny < 250000000) goto NoItems;
delitem 2128,1;
delitem 2107,1;
delitem 2626,1;
delitem 2615,1;
delitem 4032,5;
delitem 4124,5;
delitem 4066,30;
delitem 989,1;
delitem 714,12;
delitem 7108,200;
delitem 7069,1000;
set Zeny, Zeny - 250000000;
getitem 20500,1;
mes "[^FF0066King Joe^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;


pri:
mes "[^FF0066King Joe^000000]";
mes "You need the following itemes for that SQI:";
mes "1 Coif";
mes "1 Holy Robe";
mes "15 Plankton Card";
mes "100 Crystal Blue";
mes "150 Fang of Hatii";
mes "1,200 Ice Cubic";
mes "250,000,000z";
next;
if(countitem(5092) < 1 || countitem(2327) < 1 || countitem(4024) < 15 || countitem(991) < 100 || countitem(7036) < 150 || countitem(7066) < 1200) goto NoItems;
if(Zeny < 250000000) goto NoItems;
delitem 5092,1;
delitem 2327,1;
delitem 4024,15;
delitem 991,100;
delitem 7036,150;
delitem 7066,1200;
set Zeny, Zeny - 250000000;
getitem 20505,1;
mes "[^FF0066King Joe^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;


monk:
mes "[^FF0066King Joe^000000]";
mes "You need the following itemes for that SQI:";
mes "1 Berserk";
mes "1 Waghnak";
mes "15 Executioner's Mitten";
mes "10 Marine Sphere Card";
mes "3 Caramel Card";
mes "20 Poison Bottle";
mes "20 Broken Liquor Jar";
mes "200 Bee Sting";
mes "200 Giant Butterfly Wing";
mes "200 Alcohol";
mes "200 Mystic Frozen";
mes "185,000,000z";
next;
if(countitem(1814) < 1 || countitem(1801) < 1 || countitem(7017) < 15 || countitem(4084) < 10 || countitem(4063) < 3 || countitem(678) < 20 || countitem(7158) < 20 || countitem(939) < 200 || countitem(7168) < 200 || countitem(970) < 200 || countitem(995) < 200) goto NoItems;
if(Zeny < 185000000) goto NoItems;
delitem 1814,1;
delitem 1801,1;
delitem 7017,15;
delitem 4084,10;
delitem 4063,3;
delitem 678,20;
delitem 7158,20;
delitem 939,200;
delitem 7168,200;
delitem 970,200;
delitem 995,200;
set Zeny, Zeny - 185000000;
getitem 20510,1;
mes "[^FF0066King Joe^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;


alch:
mes "[^FF0066King Joe^000000]";
mes "You need the following itemes for that SQI:";
mes "5 Orcish Axe";
mes "5 War Axe";
mes "300 Great Nature";
mes "2,000 Old Pick";
mes "80 Sandman Card";
mes "10 Green Petite Egg";
mes "280,000,000z";
next;
if(countitem(1304) < 5 || countitem(1306) < 5 || countitem(997) < 300 || countitem(7318) < 2000 || countitem(4101) < 80 || countitem(9022) < 10) goto NoItems;
if(Zeny < 280000000) goto NoItems;
delitem 1304,5;
delitem 1306,5;
delitem 997,300;
delitem 7318,2000;
delitem 4101,80;
delitem 9022,10;
set Zeny, Zeny - 280000000;
getitem 20504,1;
mes "[^FF0066King Joe^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;


bs:
mes "[^FF0066King Joe^000000]";
mes "You need the following itemes for that SQI:";
mes "1 Iron Driver";
mes "500 Rough Wind";
mes "2000 Elder Pixie Mutsache";
mes "100 Golem Card";
mes "10 Gold Bullion";
mes "350,000,000z";
next;
if(countitem(1529) < 1 || countitem(996) < 500 || countitem(1040) < 2000 || countitem(4072) < 100 || countitem(7228) < 10) goto NoItems;
if(Zeny < 350000000) goto NoItems;
delitem 1529,1;
delitem 996,500;
delitem 1040,2000;
delitem 4072,100;
delitem 7228,10;
set Zeny, Zeny - 350000000;
getitem 20507,1;
mes "[^FF0066King Joe^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;


assa:
mes "[^FF0066King Joe^000000]";
mes "You need the following itemes for that SQI:";
mes "1 Infiltrator";
mes "1 Grimtooth";
mes "1 Assassin Mask";
mes "100 Hydra Card";
mes "1,000 Broken Shuriken";
mes "100 Elunium";
mes "400 Blade of Darkness";
mes "50 Oridecon";
mes "300,000,000z";
next;
if(countitem(1261) < 1 || countitem(1237) < 1 || countitem(5054) < 1 || countitem(4035) < 100 || countitem(7156) < 1000 || countitem(985) < 100 || countitem(7023) < 400 || countitem(984) < 50) goto NoItems;
if(Zeny < 300000000) goto NoItems;
delitem 1261,1;
delitem 1237,1;
delitem 5054,1;
delitem 4035,100;
delitem 7156,1000;
delitem 985,100;
delitem 7023,400;
delitem 984,50;
set Zeny, Zeny - 300000000;
getitem 20512,1;
mes "[^FF0066King Joe^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;


rog:
mes "[^FF0066King Joe^000000]";
mes "You need the following itemes for that SQI:";
mes "1 Rougemaster's Bow";
mes "1 Arbalest";
mes "40 Whisper Card";
mes "20 Young Twig";
mes "500 Barren Trunk";
mes "500 Fine-grained Trunk";
mes "500 Solid Trunk";
mes "300 Thin Trunk";
mes "100 Peridot";
mes "300,000,000z";
next;
if(countitem(1719) < 1 || countitem(1713) < 1 || countitem(4102) < 4 || countitem(7018) < 20 || countitem(1068) < 500 || countitem(1066) < 500 || countitem(1067) < 500 || countitem(7186) < 300 || countitem(7289) < 100) goto NoItems;
if(Zeny < 300000000) goto NoItems;
delitem 1719,1;
delitem 1713,1;
delitem 4102,40;
delitem 1068,500;
delitem 1066,500;
delitem 1067,500;
delitem 7186,300;
delitem 7289,100;
set Zeny, Zeny - 300000000;
getitem 20509,1;
mes "[^FF0066King Joe^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;


hunt:
mes "[^FF0066King Joe^000000]";
mes "You need the following itemes for that SQI:";
mes "5 Ballista";
mes "5 Rudra Bow";
mes "5 Bow Thimble";
mes "5000 Arrow of Counter Evil";
mes "2,000 False Angel Wing";
mes "450,000,000z";
next;
if(countitem(1727) < 5 || countitem(1720) < 5 || countitem(2619) < 5 || countitem(1766) < 5000 || countitem(7104) < 2000) goto NoItems;
if(Zeny < 450000000) goto NoItems;
delitem 1727,5;
delitem 1720,5;
delitem 2619,5;
delitem 1766,5000;
delitem 7104,200;
set Zeny, Zeny - 450000000;
getitem 20501,1;
mes "[^FF0066King Joe^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;


bada:
mes "[^FF0066King Joe^000000]";
mes "You need the following itemes for that SQI:";
mes "1 Chemeti Whip";
mes "1 Rope";
mes "90 Pest Card";
mes "50 Vadon Card";
mes "5 Eye of Dullahan";
mes "1500 Frozen Arrow";
mes "1,000 Mute Arrow";
mes "100 Flame Heart";
mes "180,000,000z";
next;
if(countitem(1964) < 1 || countitem(1950) < 1 || countitem(4315) < 90 || countitem(4049) < 50 || countitem(2614) < 5 || countitem(1759) < 1500 || countitem(1769) < 1000 || countitem(994) < 100) goto NoItems;
if(Zeny < 180000000) goto NoItems;
delitem 1964,1;
delitem 1950,1;
delitem 4315,90;
delitem 4049,50;
delitem 2614,5;
delitem 1759,1500;
delitem 1769,1000;
delitem 994,100;
set Zeny, Zeny - 180000000;
if (Sex == 0) goto dangy;
getitem 20503,1;
mes "[^FF0066King Joe^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;

dangy:
getitem 20502,1;
mes "[^FF0066King Joe^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;

wiz:
mes "[^FF0066King Joe^000000]";
mes "You need the following itemes for that SQI:";
mes "1 Mighty Staff";
mes "1 Soul Staff";
mes "1 Wizardry Staff";
mes "20 Necklace of Wisdom";
mes "5 Morroc Solution";
mes "5 Payon Solution";
mes "200 Red Blood";
mes "45 Jakk Card";
mes "650 Cats Eye's";
mes "300,000,000z";
next;
if(countitem(1613) < 1 || countitem(1472) < 1 || countitem(1473) < 1 || countitem(1007) < 20 || countitem(1088) < 5 || countitem(1089) < 5 || countitem(990) < 200 || countitem(4109) < 45 || countitem(7263) < 650) goto NoItems;
if(Zeny < 300000000) goto NoItems;
delitem 1613,1;
delitem 1472,1;
delitem 1473,1;
delitem 1007,20;
delitem 1088,5;
delitem 1089,5;
delitem 990,200;
delitem 4109,45;
delitem 7263,650;
set Zeny, Zeny - 300000000;
getitem 20506,1;
mes "[^FF0066King Joe^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;


sag:
mes "[^FF0066King Joe^000000]";
mes "You need the following itemes for that SQI:";
mes "1 Book of Billows";
mes "1 Book of Gust of Wind";
mes "1 Book of Mother Earth";
mes "1 Book of Blazing Sun";
mes "1 Book of the Apokalypse";
mes "1 Tablet";
mes "1 Memory Book";
mes "20 Pencil Case";
mes "5 Old Magicbook";
mes "870 Oil Paper";
mes "250 Slick Paper";
mes "75 Worn-out Page";
mes "300,000,000z";
next;
if(countitem(1553) < 1 || countitem(1556) < 1 || countitem(1554) < 1 || countitem(1555) < 1 || countitem(1557) < 1 || countitem(1552) < 1 || countitem(2121) < 1 || countitem(738) < 20 || countitem(1006) < 5 || countitem(7151) < 870 || countitem(7111) < 250 || countitem(1097) < 75) goto NoItems;
if(Zeny < 300000000) goto NoItems;
delitem 1553,1;
delitem 1556,1;
delitem 1554,1;
delitem 1555,1;
delitem 1557,1;
delitem 1552,1;
delitem 2121,1;
delitem 738,20;
delitem 1006,5;
delitem 7151,870;
delitem 7111,250;
delitem 1097,75;
set Zeny, Zeny - 300000000;
getitem 20511,1;
mes "[^FF0066King Joe^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;


NoItems:
mes "[^FF0066King Joe^000000]";
mes "I'm sorry, you don't have all Items!.";
mes " ";
mes "Have a nice day.";
close;

endi:
close;
}
Benutzeravatar
Toby
Administrator
 
Beiträge: 16
Registriert: Di 17. Mär 2009, 23:23
Wohnort: Stuttgart

von Anzeige » Sa 21. Mär 2009, 00:37

Anzeige
 

Re: NPC Scripts

Beitragvon Toby » Sa 21. Mär 2009, 00:37

Shops

Code: Alles auswählen
//===== Shop Script =======================================
//= Custom Shops everywhere
//===== By ===================================================
//= Toby
//===== Version ==============================================
//=1.0
//============================================================


prontera,167,229,1   shop   Blacksmith Shop   726,612:-1,613:-1,614:-1,615:-1

prontera,170,226,1   shop   Alchemist Shop   805,1051:-1,713:-1,1093:-1,1092:-1,1059:-1,950:-1,518:-1,929:-1,1032:-1,7134:-1,952:-1,1017:-1,1061:-1,7033:-1,911:-1,905:-1,1050:-1,1044:-1,7140:-1,7141:-1,7143:-1


// SM
louyang,212,64,3   shop   Mace   746,1505:2500,1520:21000,1514:35000,1517:50000,1522:85000,1523:100000,1524:125000,1525:125000,1526:130000,1527:145000,1528:150000
louyang,212,62,3   shop   Dagger   118,1208:2500,1220:37000,1224:35000,1225:35000,1226:42000,1227:39000,1228:45000,1229:45000,1231:45000,1232:52000,1233:55000,1235:55000,1237:1500000
louyang,212,60,3   shop   Axe   813,1352:6000,1355:13000,1361:47000,1363:35000,1364:35000,1367:60000,1368:61000,1369:70000
louyang,212,58,3   shop   One/Two-HandSword   733,1117:2500,1125:20000,1155:21000,1162:55000,1130:25000,1131:250000,1132:250000,1133:250000,1134:300000,1135:350000,1136:500000,1137:650000,1138:650000,1139:700000,1140:850000,1141:950000,1162:200000,1163:250000,1164:375000,1165:375000,1166:650000,1167:750000,1168:300000,1170:975000,1169:1000000
louyang,212,56,3   shop   Rods   735,1602:2500,1608:10000,1611:39000,1613:50000,1614:55000,1615:75000
louyang,212,54,3   shop   Katar   725,1251:17000,1253:34000,1255:35000,1256:54000,1257:54000,1258:54000,1259:54000,1260:56000,1261:90000
louyang,212,64,3   shop   Books   743,1550:38000,1551:51000,1552:47000,1553:44000,1554:44000,1555:44000,1556:44000,1557:50000,1558:51000
louyang,223,52,3   shop   Spear   825,1408:7500,1461:44000,1464:45000,1413:23000,1415:27000,1416:30000,1467:54000,1469:65000
louyang,223,54,3   shop   Robe,Shoes,Shield,Armor   752,2306:2500,2339:3000,2311:43000,2331:61000,2336:63000,2337:5000,2326:46000,2327:47000,2315:72000,2317:77000,2102:26000,2104:34000,2106:48000,2108:50000,2402:9500,2404:35000,2406:39000,2407:9000,2408:13000,2409:15000,2502:25000,2504:39000,2506:46000,2507:87000,2508:59000
louyang,223,56,3   shop   Whips,Knuckles   741,1950:-1,1952:-1,1954:-1,1956:-1,1958:-1,1960:-1,1801:-1,1803:-1,1805:-1,1811:-1,1809:-1,1901:-1,1903:-1,1905:-1,1909:-1,1911:-1,1907:-1
louyang,223,58,3   shop   Bow,Arrow,Trap   732,1705:2600,1711:20000,1716:45000,1719:50000,1720:100,1750:1,1751:5,1752:5,1753:5,1754:5,1755:5,1756:5,1766:100,1065:100,13200:100,13201:100
louyang,223,60,3   shop   Etc.   84,714:100000,715:1200,716:1200,717:1200,730:11000,731:21000,732:50000,733:1000,984:15000,985:25000,990:1000,991:1000,992:1000,993:1000,1010:500,1011:1000,998:1000,999:1500,1000:5000,1001:1500,1002:350,1003:950,1005:9500,612:11000,615:11000,989:5000000
louyang,223,62,3   shop   Headgears 1   893,2201:5000,2202:500000,2203:4000,2205:70000,2206:40000,2207:20000,2208:10000,2209:180000,2210:15000,2211:16000,2212:11000,2213:35000,2214:54000,2215:54000,2216:11000,2217:200000,2218:5000,2220:3000,2222:15000,2224:30000,2226:34000,2228:95000,2230:154000,2232:189000,2237:50000,2239:32000,2240:16000,2242:30000,2243:19000,2244:21000,2245:21000,2247:21000,2248:21000,2249:99000,2250:21000
louyang,216,69,3   shop   Assecories   790,2601:31000,2602:34000,2603:36000,2604:38000,2605:39000,2607:75000,2608:50000,2610:55000,2611:51000,2613:56000,2615:66000,2616:70000,2617:45000,2618:46000,2619:80000,2620:81000,2621:650000,2622:35000,2623:45000,2624:51000,2625:52000,2626:55000,2627:35000,2628:45000
louyang,218,69,3   shop   Headgears 2   904,2251:30000,2252:32000,2253:35000,2254:45000,2255:45000,2256:50000,2257:32000,2258:34000,2259:33000,2260:32000,2261:42000,2262:20000,2263:22000,2264:32000,2265:34000,2266:42000,2267:42000,2268:18000,2269:36000,2270:36000,2271:46000,2272:12000,2273:15000,2274:16000,2275:65000,2276:50000,2277:26000,2278:6000,2279:14000,2280:32000,2281:36000,2282:19000,2283:35000,2284:22000,2285:80000,2286:25000,2287:23000,2288:8000,2289:85000,2290:25000,2291:32000,2292:24000,2293:15000,2294:42000,2295:89000,2296:87000,2297:16000,2298:16000,2299:26000
louyang,220,69,3   shop   Special Tools   803,501:2000,502:2100,503:2100,504:21000,505:5000,506:200,512:50,514:700,517:2200,518:2500,523:2500,526:6000,528:800,529:600,530:800,536:2000,539:5000,601:200,610:4500
Benutzeravatar
Toby
Administrator
 
Beiträge: 16
Registriert: Di 17. Mär 2009, 23:23
Wohnort: Stuttgart

Re: NPC Scripts

Beitragvon Toby » Sa 21. Mär 2009, 00:38

Stats Seller

Code: Alles auswählen
//===== eAthena Script =======================================
//= Stats Seller Script
//= Created with Windows XP Editor
//===== By: ==================================================
//= Tome
//===== Current Version: =====================================
//= 1.0
//===== Description: =========================================
//= You can buy Status Points with this NPC
//============================================================
prontera.gat,154,285,0   script   Stats Seller   110,{
   set $stpkurs,10000;
   mes "[Stats Seller]";
   mes "Hello,";
   mes "I can sell you some status points.";
   mes "Statuspoint = "+ $stpkurs +" Zeny";
   mes "You want to buy some?";
   mes "Remember, you can't have more than 65535 Status Points!!!";
   menu "Buy.",sbuy,"Cya later.",go_ende;

// Buy
sbuy:
   next;
   mes "[Stats Seller]";
   mes "How many Status Points you wanna buy?";
   input @sbuyst;
   set @sbuyal,@sbuyst*$stpkurs;
   if (Zeny < @sbuyal) goto nozeny;
   if (@sbuyst > 32000) goto maxk;
next;
   mes "[Stats Seller]";
   mes "Ok,";
   mes "So... "+ @sbuyst +" Status Points is ...";
   mes "Hm..."+ @sbuyal + " Zeny!";
   mes "You want buy it?";
   menu "Yes",lstep,"No",go_ende;

lstep:
next;
   mes "[Stats Seller]";
   mes "Here you are";
   mes "Have a nice Day.";
set StatusPoint,StatusPoint+@sbuyst;
set Zeny,Zeny-@sbuyal;
close;

nozeny:
next;
   mes "[Stats Seller]";
   mes "You don't have enough Zeny....";
   close;


go_ende:
   next;
   mes "[Stats Seller]";
   mes "Ok.";
   mes "Have a nice Day.";

close;
}
Benutzeravatar
Toby
Administrator
 
Beiträge: 16
Registriert: Di 17. Mär 2009, 23:23
Wohnort: Stuttgart

Re: NPC Scripts

Beitragvon Toby » Sa 21. Mär 2009, 00:38

Wings

Code: Alles auswählen
//===== Custom Headgears Script =======================================
//= Custom Headgears and Donations
//===== By ===================================================
//= Toby
//===== Version ==============================================
//=1.0
//============================================================


prontera.gat,234,65,4   script   Wings NPC   105,{

mes "[^5533FFWings NPC^000000]";
mes "Welcome to Prontera, I am the Wing Quest NPC in charge of the royal quest.";
mes "There are Quests please chose the one you most like.";
next;
menu "Gods Angel Wings",godswing,"Pink Wings",pinkwing,"Demon Wings",demwig,"Devil Wings",dvwings,"Fire Dragon Wings",fdwings,"Dragon Wings",dragwings,"Nothing",ende;

godswing:
mes "[^5533FFWings NPC^000000]";
mes "The Gods Angel Wing quest consists of the next items:";
mes "100 Feather of Birds";
mes "100 Fluffs";
mes "1 Angel Wings";
mes "50 Holy Water";
mes "100 Rough Wind";
mes "100 Flame Heart";
mes "100 Mystic Frozen";
mes "100 Great Nature";
mes "1,000,000z";
next;
if(countitem(916) < 100 || countitem(914) < 100 || countitem(2254) < 1 || countitem(523) < 50 || countitem(996) < 100 || countitem(994) < 100 || countitem(995) < 100 || countitem(997) < 100) goto NoItems;
if(Zeny < 1000000) goto NoItems;
delitem 916,100;
delitem 914,100;
delitem 2254,1;
delitem 523,50;
delitem 996,100;
delitem 994,100;
delitem 995,100;
delitem 997,100;
set Zeny, Zeny - 1000000;
getitem 20006,1;
mes "[^5533FFWings NPC^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;

pinkwing:
mes "[^5533FFWings NPC^000000]";
mes "The Pink Wings quest consists of the next items:";
mes "1 Gods Angel Wing";
mes "20 Scarlet Dyestuff";
mes "30 White Dyestuff";
mes "1 Elven Ears";
mes "150 Feather";
mes "10,000,000z";
next;
if(countitem(20006) < 1 || countitem(975) < 20 || countitem(982) < 30 || countitem(2286) < 1 || countitem(949) < 150) goto NoItems;
if(Zeny < 10000000) goto NoItems;
delitem 20006,1;
delitem 975,20;
delitem 982,30;
delitem 2286,1;
delitem 949,150;
set Zeny, Zeny - 10000000;
getitem 20803,1;
mes "[^5533FFWings NPC^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;

demwig:
mes "[^5533FFWings NPC^000000]";
mes "The Demon Wings quest consists of the next items:";
mes "200 Demon Horn";
mes "10 Black Dyestuff";
mes "20,000,000z";
next;
if(countitem(20516) < 200 || countitem(983) < 10) goto NoItems;
if(Zeny < 20000000) goto NoItems;
delitem 20516,200;
delitem 983,10;
set Zeny, Zeny - 20000000;
getitem 20804,1;
mes "[^5533FFWings NPC^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;

dvwings:
mes "[^5533FFWings NPC^000000]";
mes "The Devil Wing quest consists of the next items:";
mes "1500 Little Evil Horn";
mes "200 Little Evil Wing";
mes "5 Evil Wing";
mes "50 Black Dyestuff";
mes "50 Cracked Diamonds";
mes "1 Gods Angel Wing";
mes "500,000,000z";
next;
if(countitem(1038) < 200 || countitem(1039) < 1500 || countitem(2255) < 5 || countitem(983) < 50 || countitem(733) < 50 || countitem(20006) < 1) goto NoItems;
if(Zeny < 500000000) goto NoItems;
delitem 1038,200;
delitem 1039,1500;
delitem 2255,5;
delitem 983,50;
delitem 733,50;
delitem 20006,1;
set Zeny, Zeny - 500000000;
getitem 20805,1;
mes "[^5533FFWings NPC^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;


fdwings:
mes "[^5533FFWings NPC^000000]";
mes "The Fire Dragon Wings quest consists of the next items:";
mes "1 Dragon Wings";
mes "50 Three-Headed Dragon's Head";
mes "100 Fire Dragon Scale";
mes "500,000,000z";
next;
if(countitem(20802) < 1 || countitem(7443) < 50 || countitem(7451) < 100) goto NoItems;
if(Zeny < 500000000) goto NoItems;
delitem 20802,1;
delitem 7443,50;
delitem 7451,100;
set Zeny, Zeny - 500000000;
getitem 20801,1;
mes "[^5533FFWings NPC^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;

dragwings:
mes "[^5533FFWings NPC^000000]";
mes "The Dragon Wings quest consists of the next items:";
mes "100 Fire Dragon Scale";
mes "10 Three-Headed Dragon's Head";
mes "50 Holy Water";
mes "50 Dragon Horn";
mes "1 Gods Angel Wing";
mes "100 Dragon Skin";
mes "100 Dragon Scale";
mes "10,000,000z";
next;
if(countitem(7451) < 100 || countitem(7443) < 10 || countitem(523) < 50 || countitem(7265) < 50 || countitem(20006) < 1 || countitem(7123) < 100 || countitem(1036) < 100) goto NoItems;
if(Zeny < 10000000) goto NoItems;
delitem 7451,100;
delitem 7443,10;
delitem 523,50;
delitem 7265,50;
delitem 20006,1;
delitem 7123,100;
delitem 1036,100;
set Zeny, Zeny - 10000000;
getitem 20802,1;
mes "[^5533FFWings NPC^000000]";
mes "Here you are. Take it.";
mes " ";
mes "Have a nice day.";
close;

NoItems:
mes "[^5533FFWings NPC^000000]";
mes "Sorry you don't have all the items or zeny I need.";
mes "Come back when you have them all.";
close;

ende:
mes "[^5533FFWings NPC^000000]";
mes "Have a nice day.";
close;

}
Benutzeravatar
Toby
Administrator
 
Beiträge: 16
Registriert: Di 17. Mär 2009, 23:23
Wohnort: Stuttgart

Re: NPC Scripts

Beitragvon Toby » Sa 21. Mär 2009, 00:39

Code: Alles auswählen
//===== eAthena Script ===============
//= Zeny Coins Script
//= Created with Windows XP Editor
//===== By: ========================
//= Tome [www.tomero.de]
//===== Current Version: ==============
//= 1.0
//===== Description: =================
//= You can buy Zeny Coins with that NPC
//=================================

prontera.gat,161,165,0   script   Coiner   940,{


set @npcname$,"[^996699Coiner^000000]";   //= NPC's Name

   mes @npcname$;
   mes "Hello,";
   mes "I'm Cho, the Coin Dealer.";
next;
   mes @npcname$;
   mes "I can trade your Zeny into Coins:";
   mes "1 Bronze Coin = 10m Zeny";
   mes "1 Silver Coin = 100m Zeny";
   mes "1 Mithril Coin = 1b Zeny";
next;
   mes @npcname$;
   mes "So wich Coins you want?";
   menu "Broze Coins",bc,"Silver Coins",sc,"Mithril Coin",mc;

bc:
next;
   mes @npcname$;
   mes "How many Bronze Coins you want?";
   input @quantity;
if (@quantity == 0) goto zero;
if (@quantity >= 101) goto high;
set @lose,@quantity*10000000;
set @coin,673;
if (Zeny < @lose) goto nozeny;
next;
   mes @npcname$;
   mes "So you want buy ^006633"+ @quantity +"^000000 Bronze Coins?";
   mes "That cost ^FF6600"+ @lose +"^000000 Zeny.";
next;
   menu "But it.",buy,"Stop! That's too expensive.",iend;


sc:
next;
   mes @npcname$;
   mes "How many Silver Coins you want?";
   input @quantity;
if (@quantity == 0) goto zero;
if (@quantity >= 11) goto high;
set @lose,@quantity*100000000;
set @coin,675;
if (Zeny < @lose) goto nozeny;
next;
   mes @npcname$;
   mes "So you want buy ^006633"+ @quantity +"^000000 Bronze Coins?";
   mes "That cost ^FF6600"+ @lose +"^000000 Zeny.";
next;
   menu "But it.",buy,"Stop! That's too expensive.",iend;

mc:
next;
   mes @npcname$;
   mes "So you want buy a Mithril Coin?";
set @quantity,1;
set @lose,@quantity*1000000000;
set @coin,674;
if (Zeny < @lose) goto nozeny;
next;
   mes @npcname$;
   mes "So you want buy ^006633"+ @quantity +"^000000 Bronze Coins?";
   mes "That cost ^FF6600"+ @lose +"^000000 Zeny.";
next;
   menu "But it.",buy,"Stop! That's too expensive.",iend;

buy:
next;
   mes @npcname$;
   mes "Here are your Coins";
set Zeny, Zeny - @lose;
getitem @coin,@quantity;
next;
   mes @npcname$;
   mes "Have a nice Day.";
close;

zero:
next;
   mes @npcname$;
   mes "Uhm.....";
   mes "Don't waste my time!";
close;

high:
next;
   mes @npcname$;
   mes "Haha, you can't buy that many Coins!";
   mes "";
   mes "Bye.";
close;

nozeny:
next;
   mes @npcname$;
   mes "You have no Zeny -.-";
   mes "Bye!";
close;

iend:
   mes @npcname$;
   mes "Uhm.....";
   mes "Don't waste my time!";
close;


}
Benutzeravatar
Toby
Administrator
 
Beiträge: 16
Registriert: Di 17. Mär 2009, 23:23
Wohnort: Stuttgart

Re: NPC Scripts

Beitragvon Toby » Sa 21. Mär 2009, 00:40

Code: Alles auswählen
guild_vs1-2,32,67,5   script   MVP Master#h1-1::MVP Master   766,{

mes "[MVP Master]";
mes "Select your MVP!";
next;
menu
//-------------Menüpunkte-----------
"Amon Ra", Amon,
"Baphomet", Bapho,
"Dark Lord",Dark,
"Doppelgänger",DG,
"Dracula",Drac,
"Drake",Drake,
"Eddga",Eddga,
"Evil Snake Lored",ESL,
"Golden Thief Bug",GTB,
"Garm",Garm,
"Incarnation Samurai",Samu,
"Stormy Knight",SK,
"Lord of Death",LoD,
"Maya",Maya,
"Mistress",Missy,
"Moonlight Flower",Moony,
"Orc Hero",Hero,
"Orc Lord",Lord,
"Osiris",Osiris,
"Pharaoh",Phara,
"Phreeoni", Phree,
"Tao Gunka",Tao,
"Turtle General",TG,
"Quit",mvp_CANCEL;

//--------------Gerufene Monster----------------------------------------

Amon: monster "guild_vs1-2.gat",-1,-1,"Amon Ra" ,1511,1;close;
Bapho: monster "guild_vs1-2.gat",-1,-1,"Baphomet" ,1039,1; close;
Dark: monster "guild_vs1-2.gat",-1,-1,"Dark Lord" ,1272,1; close;
DG: monster "guild_vs1-2.gat",-1,-1,"Doppelganger" ,1446,1;close;
Drac: monster "guild_vs1-2.gat",-1,-1,"Dracula" ,1389,1;close;
Drake: monster "guild_vs1-2.gat",-1,-1,"Drake" ,1112,1;close;
Eddga: monster "guild_vs1-2.gat",-1,-1,"Eddga" ,1115,1;close;
ESL: monster "guild_vs1-2.gat",-1,-1,"Evil Snake Lord" ,1418,1;close;
GTB: monster "guild_vs1-2.gat",-1,-1,"Golden Thief Bug" ,1086,1;close;
Garm: monster "guild_vs1-2.gat",-1,-1,"Garm" ,1252,1;close;
Samu: monster "guild_vs1-2.gat",-1,-1,"Incantation Samurai" ,1492,1;close;
SK: monster "pguild_vs1-2.gat",-1,-1,"Stormy Knight" ,1251,1;close;
LoD: monster "guild_vs1-2.gat",-1,-1,"Lord of Death" ,1373,1;close;
Maya: monster "guild_vs1-2.gat",-1,-1,"Maya" ,1147,1;close;
Missy: monster "guild_vs1-2.gat",-1,-1,"Mistress" ,1059,1;close;
Moony: monster "guild_vs1-2.gat",-1,-1,"Moonlight Flower" ,1150,1;close;
Hero: monster "guild_vs1-2.gat",-1,-1,"Orc Hero" ,1087,1;close;
Lord: monster "guild_vs1-2.gat",-1,-1,"Orc Lord" ,1190,1;close;
Osiris: monster "guild_vs1-2.gat",-1,-1,"Osiris" ,1038,1;close;
Phara: monster "guild_vs1-2.gat",-1,-1,"Pharaoh" ,1157,1;close;
Phree: monster "guild_vs1-2.gat",-1,-1,"Phreeoni" ,1159,1;close;
Tao: monster "guild_vs1-2.gat",-1,-1,"Tao Gunka" ,1583,1;close;
TG: monster "guild_vs1-2.gat",-1,-1,"Turtle General" ,1312,1;close;

mvp_CANCEL:
mes "[MvP Master]";
mes "Allright, as you wish...";
close;

}

guild_vs1-2,32,67,5   duplicate(MVP Master)   MVP Master#h1-2   766
guild_vs1-2,68,31,5   duplicate(MVP Master)   MVP Master#h1-3   766
guild_vs1-2,32,32,5   duplicate(MVP Master)   MVP Master#h1-4   766
Benutzeravatar
Toby
Administrator
 
Beiträge: 16
Registriert: Di 17. Mär 2009, 23:23
Wohnort: Stuttgart


TAGS

Zurück zu TomeRO

Wer ist online?

0 Mitglieder

cron