Jump to content

Patskie

Members
  • Posts

    1702
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Patskie

  1. Give +3 strength when this hat is equipped 2221,Hat_,Hat,5,1000,,200,,2,,1,0xFFFFFFFF,63,2,256,,0,1,16,{ bonus bStr, 3; },{},{} You can find all item bonus for your scripts here trunk/doc/item_bonus.txt
  2. I think this can be done through script. This have been made 5 days ago by @Emistry. Would you give it a try? - script atcmd_example -1,{ OnInit: bindatcmd "item",strnpcinfo(3)+"::OnAtCommand"; setarray .item_restrict, 607, 7227; .item_restrict_size = getarraysize( .item_restrict ); end; OnAtCommand: .@gmlevel = getgmlevel(); if( .@gmlevel && .@atcmd_numparameters ){ .@itemid = atoi( .@atcmd_parameters$[0] ); .@quantity = atoi( .@atcmd_parameters$[1] ); if( .@gmlevel < 99 ){ for( .@i = 0; .@i < .item_restrict_size; .@i++ ) if( .@itemid == .item_restrict[.@i] ){ message strcharinfo(0),"Cant create this items."; end; } } if( getitemname( .@itemid ) != "null" && .@quantity ){ getitem .@itemid,.@quantity; } } end; } EDIT : Reference can be found here
  3. Even i give a guide here it will look the same as this guide there's no alternative for editing the max level of a certain server. So you should try and try until you fully understand that matter.
  4. Set dew_dun02 as nowarp mapflag. Try this one : prontera,150,150,0 script Mining Room 100,{ set .@npc$, "[ " + strnpcinfo(1) + " ]"; mes .@npc$; mes "Go to mining room requires you to have Mine Hat on your head and 10x Old Pick. So would you like to go?"; next; if ( select("Yes:No") - 1 ) { mes .@npc$; mes "Come back when you are ready"; close; } if ( countitem( 7318 ) < 10 || getequipid( EQI_HEAD_TOP ) != 5031 ) { mes .@npc$; mes "You do not follow my requirements"; close; } mes .@npc$; mes "Bye bye!"; close2; delitem 7318, 10; warp "dew_dun02",0,0; end; } - script Count -1,{ OnNPCKillEvent: if ( strcharinfo(3) != "dew_dun02") end; if ( Kills >= 20 ) { dispbottom "You have already killed 20 mobs"; warp "prontera",150,150; set Kills, 0; } else set Kills, Kills + 1; end; }
  5. Try this one : prontera,150,150,0 script Seyra 90,{ set .@n$, "[Seyra]"; set .@amount, 50; query_sql ("SELECT `last_ip` FROM `login` WHERE `account_id`=" + getcharid(3) + "", .@lip$); if ( getd("$" + .@lip$ + "_NG") > 0 || #NewbieGift > 0) { mes .@n$; mes "I'm sorry, the rewards are exclusively for new players."; close; } mes .@n$; mes "Welcome! Here are some free gifts"; mes "for newcomers:"; mes .@amount+ " cashpoints"; close2; set #NewbieGift, 1; setd "$" + .@lip$ + "_NG", getd("$" + .@lip$ + "_NG") + 1; set #CASHPOINTS, #CASHPOINTS + .@amount; dispbottom "You've gained " + .@amount + " cash points"; end; OnInit: waitingroom "Newbie Gift!",0; end; }
  6. Like this? mapname,x,y,z<TAB>shop<TAB>NPC Name<TAB>NPC Sprite,ITEM ID,AMOUNT,ITEM ID,AMOUNT..... market,64,101,5 shop Armor 99,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 market,64,103,5 shop Shield 99,2102:10000,2106:60000,2108:60000,2110:85000,2114:30000,2116:30000,2123:50000,2124:50000 market,64,105,5 shop Footgear 99,2404:10000,2406:20000,2409:30000,2412:50000,2417:50000,2418:50000,2424:50000,2425:20000 market,64,107,5 shop Mace 99,1502:10000,1505:20000,1511:20000,1514:-1,1517:-1,1520:50000,1522:100000,1523:25000,1528:50000,1529:50000,1531:50000 market,64,109,5 shop Knuckle 494,1802:20000,1804:50000,1806:60000,1808:75000,1810:70000,1812:60000,1813:100000,1814:100000,1822:150000 market,64,111,5 shop Whips 494,1951:10000,1953:20000,1955:30000,1962:20000,1963:50000,1972:10000,1974:10000,1976:50000 market,64,113,5 shop Instruments 494,1902:10000,1904:20000,1906:-1,1908:50000,1913:50000,1914:50000,1915:50000,1916:50000,1917:50000 market,64,115,5 shop Books 494,1550:30000,1551:60000,1552:51000,1559:25000,1561:75000,1564:25000,1568:70000,1569:70000,1570:70000,1571:70000,1572:50000 market,64,117,5 shop Guns 497,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 market,64,119,5 shop Fuuma Shuriken 497,7522:500,7521:500,7523:500 market,64,121,5 shop One-Handed Swords 497,1108:10000,1117:10000,1120:100000,1124:50000,1130:100000,1131:50000,1133:50000,1138:200000,1139:200000,1145:-1,1149:50000 market,89,147,4 shop Two-Handed Swords 497,1155:50000,1158:90000,1163:120000,1164:50000,1165:50000,1166:75000,1168:50000,1169:500000,1172:200000,1175:75000 market,91,147,4 shop Spears 731,1405:20000,1408:50000,1415:100000,1417:75000,1421:75000,1422:25000 market,93,147,4 shop Dagger 731,1208:20000,1211:20000,1217:20000,1223:50000,1231:75000,1235:75000,1236:75000,1237:75000 market,95,147,4 shop Axes 731,1302:10000,1306:20000,1307:45000,1309:75000,1352:20000,1355:30000,1358:75000,1363:50000,1364:50000,1365:50000,1366:50000,1371:100000 market,97,147,4 shop Accessories 731,2621:-1,2622:-1,2624:30000,2618:10000,2625:30000,2626:30000,2674:10000,2648:50000,2649:50000,2627:-1,2701:75000 market,99,147,4 shop Bows 731,1702:20000,1705:50000,1708:20000,1720:50000,1723:75000,1724:75000,1725:75000 market,101,147,4 shop Staffs / Rods 731,1602:20000,1605:20000,1608:20000,1611:45000,1618:85000,1620:85000,1622:50000,1624:50000,1625:50000,1626:50000 market,103,147,4 shop Garments 405,2504:10000,2506:40000,2507:82000,2508:56000,2514:50000,2518:60000,2519:60000,2528:85000,2531:10000,2553:10000 market,105,147,4 shop Katars 405,1264:100000,1251:50000,1253:100000,1255:75000,1261:125000,1262:20000,1263:20000,1265:100000,1275:100000,1276:100000,1277:100000,1278:100000 market,107,147,4 shop Lower Headgear 405,2218:10000,5054:30000,2267:5000,5107:100000,2265:5000,2266:50000,2269:50000,2270:50000 market,109,147,4 shop Middle Headgear 405,2201:5000,2203:4000,2205:3500,2212:5000,2225:10000,2229:50000,2231:50000,2234:50000,2235:50000,2281:25000,2292:50000,2296:50000 market,111,147,4 shop Upper Headgear 405,2210:1000,2211:1000,2213:10000,2214:20000,2217:10000,2221:5000,2223:10000,2246:75000,2256:75000,2264:100000,2280:20000,2299:30000 market,64,123,5 shop Ammunition 880,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 market,104,117,3 shop Alchemist Dealer 880,999:1000,20500:300000,20501:300000,20502:300000,20503:300000,20504:300000,20505:300000,20506:300000,20507:300000,20508:300000,20509:300000,20510:300000,20511:300000,20512:300000,20513:300000,20514:300000,12216:5000,12215:5000,715:600,1000:1000,716:600,717:600,1025:200,7136:500,7135:500,7136:500,7137:500,7138:500,7139:500,678:100000,984:5000,985:5000 market,94,116,5 shop Usable Item 891,606:1500,605:2000,609:100,662:1500,645:1000,656:3000,657:5000,14509:2000,14510:4000 market,94,107,6 shop Healing Item 886,12135:5000,575:20,521:360,512:20,513:20,515:20,514:300,531:20,532:20,534:20,533:500,510:100,511:20,507:30,508:50,509:200,505:5000,506:50,501:100,502:300,503:600,504:1200,577:200,553:300,580:150,590:300,591:300,548:2800,12101:20,545:150,547:1650,546:600,594:5000,596:5000,12257:25000,562:100,563:1200,581:40,574:20,540:2000,12234:10000,579:250,12022:500,12102:20,520:150,593:5000,518:500,536:150,552:100,583:7000,568:60,11502:3000,599:800,598:600,11501:2000,11500:1200,597:5000,680:10000,522:9000,12133:1000,517:50,519:25,554:100,528:60,595:5000,557:10,582:300,541:3000,679:5000,589:1200,12021:1000,516:15,576:540,535:15,544:20,587:880,564:100,556:10,550:10,669:500,526:7000,567:500,584:100,663:1000,588:100,592:5000,578:200,551:100,566:10000,555:100,565:580,549:180
  7. Read until you fully understand i think this is the most easiest one ( guide ) . Make sure you recompile your server for it to took effect
  8. Lol 1 rep for ya @Emistry . Why not make it simply F_Rand or even F_Random :3
  9. Ahh i forgot that it will start from 0 haha
  10. This will trigger if the event is on. ( && .start )
  11. Btw this will kill the player who brought item 607 and 608 on the map. You can change percentheal to any thing you like
  12. Try this one, i wonder why the array not working haha - script Sample -1,{ OnPCLoadMapEvent: getmapxy @map$,@x,@y,0; if ( @map$ == "ordeal_1-1" && .start && ( countitem(607) || countitem(608) ) ) { percentheal -100,0; } end; } ordeal_1-1 mapflag loadevent
  13. Anywhere, just make sure you add a map flag here : ordeal_1-1 mapflag nowarp ordeal_1-1 mapflag nowarpto ordeal_1-1 mapflag noteleport ordeal_1-1 mapflag nosave SavePoint ordeal_1-1 mapflag nomemo ordeal_1-1 mapflag nobranch ordeal_1-1 mapflag nopenalty ordeal_1-1 mapflag loadevent ordeal_1-1 mapflag noicewall setarray .restricted, 607,608; // ITEM ID set .size, getarraysize(.restricted); OnPCLoadMapEvent: while ( .@i < .size ) { if ( countitem( .restricted[.@i] && .start ) ) warp "SavePoint",0,0; set .@i, .@i + 1; }
  14. It should be : function script F_RandMes { set .@i, getargcount(); return getarg(rand(0,.@i)); } since the first argument will be remove ( number of arguments ) callfunc("F_RandMes",1129,1222,1163,1357,1360,1522,1811,1410);
  15. - script Sample -1,{ setarray .restricted, 607,608; // ITEM ID set .size, getarraysize(.restricted); OnPCLoadMapEvent: while ( .@i < .size ) { if ( countitem( .restricted[.@i] ) ) warp "SavePoint",0,0; set .@i, .@i + 1; } } ordeal_1-1 mapflag loadevent
  16. Like this : http://pastebin.com/raw.php?i=BtaXNYcU ? Adding NPC : http://www.youtube.com/watch?v=Az0C1k9AU_o
  17. Add your script ( .txt files ) on your npc/custom folder. Then trunk/npc/scripts_custom.conf to make your script work : npc: npc/custom/<filename>.txt Then load the script in-game using a GM with authority : @loadnpc npc/custom/<filename>.txt
  18. Change : if ( !getmonsterinfo(killedrid,22) ) end; to : if ( killedrid != 5001 || killedrid != 5002 || killedrid != 5003 || killedrid != 5004 || killedrid != 5005 ) end;
  19. She is requesting script.
  20. - script Sample -1,{ if ( strcharinfo(3) != "ordeal_2-2" ) end; if ( checkidle() >= 300 ) warp "prontera",150,150; end; }
  21. Yeap 2 trunk in one IP address. name them in any format you like
  22. Remove all code under OnPCLoginEvent
×
×
  • Create New...