Jump to content

nanakiwurtz

Members
  • Posts

    1654
  • Joined

  • Last visited

  • Days Won

    66

Everything posted by nanakiwurtz

  1. pvp_y_room,53,85,5 script Izlude PvP 973,{ mes "[PvP Warper]"; if ((gettime(4) != 0) || (gettime(4) != 6)) {mes "I'm sorry, the room opens only on weekends."; close;} mes "PvP Effects."; next; sc_end SL_ASSASIN; skill 420,0,0; //break fall sc_end TK_DODGE; undisguise; if (getgmlevel() <= 3) npctalk ""+strcharinfo(0)+" has entered."; warp "pvp_y_8-3",0,0; close; end;
  2. You can use a floating NPC as header. -(TAB)script(TAB)Greet(TAB)-1,{ end; OnPCLoginEvent: if(Class == Job_Novice && !BaseExp){ announce " "+strcharinfo(0)+" joined server.",0; set BaseExp,1; } end; }
  3. You can find the npc at 'trunk\npc\merchants\enchan_arm.txt' The armor enchant will add random +1 ~ +3 orb to armor's 'hidden socket' The script will delete your chosen armor, and recreate a new one with this command: getitem2 .@itemid, 1, 1, 0, 0, 0, 0, 0, .@addpart;
  4. Reupdate your SVN from the trunk, and you'll be fine again https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/npc/re/jobs/novice/novice.txt
  5. It's already in the SVN
  6. prontera,155,181,5(TAB)script(TAB)Sample(TAB)757,{
  7. Search for the file in your GRF and remove it.
  8. I have changed the theme to Unlimited but nothing happened, then I click the paint brush under the search box but it just change the outer border, the main background is still bright white. I'm using Opera and there's a preference to use a custom css, if you're using another browser, you could use Stylish to apply the custom css.
  9. splendide,219,152,5 script My Custom Event 456,{ if ( getgmlevel() < 1 ) end; select( "Turn event "+(.onoff?"Off":"On") ); mes "Event "+(.onoff?"Off":"On")+"."; if ( .onoff = !.onoff ) { initnpctimer; announce "The Poring event has been started at "+.mp$,0; monster .mp$,0,0,"RIGHT PORING",1002,10,"My Custom Event::OnRightKill"; monster .mp$,0,0,"WRONG MONSTER",1002,90,"My Custom Event::OnWrongKill"; .poringvar = 10; } else donpcevent strnpcinfo(0)+"::OnTimer300000"; close; OnRightKill: if ( playerattached() ) { mapannounce strcharinfo(3),strcharinfo(0)+" killed 1 right poring, "+ (.poringvar--?.poringvar:"No") +" more left",bc_map,"0x00CCFF",FW_NORMAL,12; getitem 909,1; if ( .poringvar ) end; } OnTimer300000: killmonster .mp$,"All"; stopnpctimer; .onoff = 0; mapannounce .mp$,"End of event.",bc_map,"0x00CCFF",FW_NORMAL,12; sleep 2000; mapwarp .mp$,"prontera",0,0; end; OnWrongKill: dispbottom "You have killed a wrong Poring, please try again!"; end; OnInit: set .poringvar, 10; .mp$ = "pvp_n_1-2"; end; } pvp_n_1-2 mapflag nomobloot Maybe like this, if you kill a right poring, you will get an item. But if you kill a wrong one, you'll get a message on the chat window.
  10. This forum is a great place to read and learn, but I have one complaint about it. That is the white background color is too bright for my eyes, I can't even focus after staring for about 10~15 mins. So I'd like to ask anyone who is willing to help me to reduce my eye strain, by creating a darker custom css for this forum. As long as the brightness could be reduced, it will be very helpful for me... Thank you!
  11. force_1-3,100,180,6 script Mr. Banker 56,{ mes "[banker]"; mes "Congrats. You've won."; next; announce "neRO Manager: We have a winner! well done "+strcharinfo(0)+".",0; getitem 30004,100; dispbottom "You have won 100 event coupons."; mes "You will return now"; warp "poring_w02",99,72; disablenpc "Mr. Banker"; close; end;
  12. First of all, if you are using rAthena, please upgrade the script to the latest one (v 1.6) Then just add the following line into your script, just follow the example that Euphy gave in the default script. Add(1,7227,1,5,100,909,10); It means, add a quest to Shop #1, that will give TCG (7227) 1 ea. It requires 5 zeny + 100 #Cashpoints + 10 Jellopy (909).
  13. prontera,154,194,5 script Devil Square Guardian 979,{ mes "[Devil Square Guardian]"; mes "Welcome to the entrance door to ^FF0000Devil Square^000000"; mes "If you failed or die, the door will be closed and you have to wait until it start to open again"; next; menu "Enter",-,"Info",L_info,"Cancel",L_cancel; if ( $@DS_entry == 0 ) goto L_error; if ( Baselevel < 70 || Zeny < 20000 ) goto L_req; if ( getmapusers("ordeal_1-1") >= 10 ) goto L_toomany; set Zeny,Zeny - 20000; announce strcharinfo(0)+" has entered the Devil Square",8; percentheal 100,100; warp "ordeal_1-1",183,182; end; L_error: mes "[Devil Square Guardian]"; mes "Devil Square is now closed"; mes "It'll be open again at:"; mes "15:00 and 23:00."; close; L_req: mes "[Devil Square Guardian]"; mes "Minimum base level to enter is 70"; mes "The registration fee is 20,000z"; close; L_toomany: mes "[Devil Square Guardian]"; mes "I'm sorry but the Devil Square is FULL"; mes "Maximum users to enter is 10 players"; close; L_info: mes "[Devil Square Guardian]"; mes "There are 3 level monster you'll encounter"; mes "Each level the enemies will grow stronger"; mes "If you succeded to win all 3 level monster, you'll get the opportunity to open 10 Treasure Box with items, equips, and rare cards inside!!"; close; L_cancel: mes "[Devil Square Guardian]"; mes "See ya"; close; } ordeal_1-1,0,0,0 script DS_HiddenNpc -1,{ OnHour15: OnHour23: set $@DS_complete,0; disablenpc "Exit#DS"; mapannounce "ordeal_1-1","Devil Square is now closed",0; killmonsterall "ordeal_1-1"; announce "Devil Square is OPENED NOW!! 5 Minutes until it starts..!!",0; set $@DS_entry,1; sleep 60000; announce "Devil Square will begin in 4 minutes..!!",0; sleep 60000; announce "Devil Square will begin in 3 minutes..!!",0; sleep 60000; announce "Devil Square will begin in 2 minutes..!!",0; sleep 60000; announce "Devil Square will begin in 1 minutes..!!",0; sleep 60000; announce "Devil Square is STARTED NOW !!",0; initnpctimer; set $@DS_entry,0; set $@mob,75; areamonster "ordeal_1-1",183,182,246,244,"[DS] SOLDIER SKELETON",1028,10,"DS_HiddenNpc::Ondevildead"; areamonster "ordeal_1-1",183,182,246,244,"[DS] ORC ARCHER",1189,15,"DS_HiddenNpc::Ondevildead"; areamonster "ordeal_1-1",183,182,246,244,"[DS] SANDMAN",1165,10,"DS_HiddenNpc::Ondevildead"; areamonster "ordeal_1-1",183,182,246,244,"[DS] ARCHER SKELETON",1016,15,"DS_HiddenNpc::Ondevildead"; areamonster "ordeal_1-1",183,182,246,244,"[DS] MINOROUS",1149,15,"DS_HiddenNpc::Ondevildead"; areamonster "ordeal_1-1",183,182,246,244,"[DS] REQUIEM",1164,10,"DS_HiddenNpc::Ondevildead"; end; Ondevildead: set $@mob,$@mob - 1; if($@mob == 25) mapannounce "ordeal_1-1","Devil Square : 25 mobs to enter the 2nd round",0; if($@mob == 5) mapannounce "ordeal_1-1","Devil Square : 5 mobs to enter 2nd round",0; if($@mob == 0) { mapannounce "ordeal_1-1","Devil Square will enter to 2nd round",0; goto Ondevil2; } end; Ondevil2: atcommand "@cleanmap"; set $@mob,70; areamonster "ordeal_1-1",183,182,246,244,"[DS] GARGOYLE",1253,15,"DS_HiddenNpc::Ondevildead2"; areamonster "ordeal_1-1",183,182,246,244,"[DS] ALARM",1193,10,"DS_HiddenNpc::Ondevildead2"; areamonster "ordeal_1-1",183,182,246,244,"[DS] HIGH ORC",1213,10,"DS_HiddenNpc::Ondevildead2"; areamonster "ordeal_1-1",183,182,246,244,"[DS] INJUSTICE",1257,10,"DS_HiddenNpc::Ondevildead2"; areamonster "ordeal_1-1",183,182,246,244,"[DS] MIMIC",1191,15,"DS_HiddenNpc::Ondevildead2"; areamonster "ordeal_1-1",183,182,246,244,"[DS] WRAITH",1192,10,"DS_HiddenNpc::Ondevildead2"; end; Ondevildead2: set $@mob,$@mob - 1; if($@mob == 25) mapannounce "ordeal_1-1","Devil Square : 25 mobs left to enter the 3rd round",0; if($@mob == 5) mapannounce "ordeal_1-1","Devil Square : 5 mobs left to enter the 3rd round",0; if($@mob == 0) { mapannounce "ordeal_1-1","Devil Square will enter to 3rd round",0; goto Ondevil3; } end; Ondevil3: atcommand "@cleanmap"; set $@mob,58; areamonster "ordeal_1-1",183,182,246,244,"[DS] ANOLIAN",1206,15,"DS_HiddenNpc::Ondevildead3"; areamonster "ordeal_1-1",183,182,246,244,"[DS] WANDERER",1208,15,"DS_HiddenNpc::Ondevildead3"; areamonster "ordeal_1-1",183,182,246,244,"[DS] DEVIRUCHI",1109,10,"DS_HiddenNpc::Ondevildead3"; areamonster "ordeal_1-1",183,182,246,244,"[DS] JOKER",1131,15,"DS_HiddenNpc::Ondevildead3"; areamonster "ordeal_1-1",183,182,246,244,"[DS] MOONLIGHT",1150,2,"DS_HiddenNpc::Ondevildead3"; areamonster "ordeal_1-1",183,182,246,244,"[DS] DARK ILLUSION",1302,1,"DS_HiddenNpc::Ondevildead3"; end; Ondevildead3: set $@mob,$@mob - 1; if($@mob == 25) mapannounce "ordeal_1-1","Devil Square : 25 mobs left to VICTORY",0; if($@mob == 5) mapannounce "ordeal_1-1","Devil Square : 5 mobs left to VICTORY",0; if($@mob == 0) { mapannounce "ordeal_1-1","Devil Square : CONGRATULATION - 10 Treasure Boxs will be yours now",0; goto Ondevil4; } end; Ondevil4: atcommand "@cleanmap"; set $@DS_complete,1; set $@mob,10; monster "ordeal_1-1",231,250,"Treasure Box",1324,1,"DS_HiddenNpc::Onboxdead"; monster "ordeal_1-1",234,247,"Treasure Box",1328,1,"DS_HiddenNpc::Onboxdead"; monster "ordeal_1-1",237,244,"Treasure Box",1332,1,"DS_HiddenNpc::Onboxdead"; monster "ordeal_1-1",240,241,"Treasure Box",1336,1,"DS_HiddenNpc::Onboxdead"; monster "ordeal_1-1",243,238,"Treasure Box",1340,1,"DS_HiddenNpc::Onboxdead"; monster "ordeal_1-1",246,235,"Treasure Box",1344,1,"DS_HiddenNpc::Onboxdead"; monster "ordeal_1-1",249,232,"Treasure Box",1348,1,"DS_HiddenNpc::Onboxdead"; monster "ordeal_1-1",252,229,"Treasure Box",1352,1,"DS_HiddenNpc::Onboxdead"; monster "ordeal_1-1",249,241,"Treasure Box",1356,1,"DS_HiddenNpc::Onboxdead"; monster "ordeal_1-1",240,249,"Treasure Box",1360,1,"DS_HiddenNpc::Onboxdead"; end; Onboxdead: set $@mob, $@mob - 1; announce "Devil Square : "+ strcharinfo(0) +" has opened the treasure box at Devil Square",0; if ($@mob == 0) enablenpc "Exit#DS"; end; OnTimer30000: if ( $@DS_complete == 1 ) { stopnpctimer; end; } else if (getmapusers("ordeal_1-1") == 0) { announce "All players failed to survive at Devil Square",0; killmonsterall "ordeal_1-1"; stopnpctimer; end; } else { mapannounce "ordeal_1-1",getmapusers("ordeal_1-1") +" players is still survive at Devil Square",0; initnpctimer; end; } } // -- Mapflags 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,246,245,7 script Exit#DS 51,{ mes "[Exit]"; mes "I'll give you 50 Million zeny and 1 Poring Coin as a prize."; mes "See ya"; zeny += 50000000; getitem 7539; next; warp "SavePoint",0,0; close; } Untested
  14. ++ Learning how to make scripts to run more efficiently ++

  15. Have you add the script to scripts_custom.conf ?
  16. Use propper tabbing. turbo_room,90,114,3(tab)script(tab)Berry Trader#h1-1::Berry Trader(tab)843,{
  17. For number 1-5 you can use the search feature, located on top right of this page. For number 6, I don't have any idea. For number 7 there's '3 vs 3' script in the Script Release section.
  18. What if: OnBuyItem: set @currentprice,0; for(set @i, 0; @i < getarraysize(@bought_nameid); set @i, @i + 1) { set @currentprice,@currentprice + (getiteminfo(@bought_nameid[@i],0) * @bought_quantity[@i]); } if(countitem(12618) < (@bought_quantity*@currentprice)) { mes @npc$; mes "You do not have enough Misc Points."; close; } delitem 12618,(-@bought_quantity*@currentprice); for(set @i, 0; @i < getarraysize(@bought_nameid); set @i, @i + 1){ getitem @bought_nameid[@i],@bought_quantity[@i]; } mes @npc$; mes "That's that, then! Come again!"; deletearray @bought_quantity, getarraysize(@bought_quantity); deletearray @bought_nameid, getarraysize(@bought_nameid); close; } }
  19. Thanks for the image ossi0110 This one is slightly edited, added background win_make2.bmp
  20. Simpler way to create your own quests --> http://rathena.org/board/files/file/2495-chain-quest/
  21. Update your client data, you could use either kRO or Miruku client.
  22. I'm sorry, but I don't know this Sign Quest looks like, perhaps you could paste the code here...
×
×
  • Create New...