Jump to content

DeadlySilence

Members
  • Posts

    181
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by DeadlySilence

  1. Sure, just find ".timeString$" in the config part (below the actual script) and change it like this: .timeString$ = "%h:%i %p";
  2. Some programs distinguish between localhost and 127.0.0.1. The MySQL client on Linux systems, for example: it uses sockets rather than TCP/IP to connect to "localhost", but it tries to establish a TCP/IP connection for "127.0.0.1".
  3. Probably your packet_db does not have the correct values. I had the same problem some time ago and after updating my packet database, guilds worked fine.
  4. ALTER TABLE `inventory` ADD COLUMN `durability` INT NULL;
  5. Is there any specific reason a variable is initialized for only one use? Wouldn't function script F_RandMes { return getarg(rand(0, (getargcount() - 1))); } be better?
  6. UPDATE `char` SET `zeny` = 0 WHERE `char_id` >= 150200;
  7. eAthena doesn't support assigning values to variables like this: .@i = 0; You have to use this: set .@i, 0;
  8. This will most likely produce errors. You use an else if without an if. if (skill == AS_SONICBLOW) pc_stop_attack(sd); //Special case, Sonic Blow autospell should stop the player attacking. else if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding. type = CAST_GROUND; to if (skill == PF_SPIDERWEB) //Special case, due to its nature of coding. type = CAST_GROUND; could work.
  9. It's not very hard, I'll show you an example. You open the file you want to modify (monsters are located unter npc/(pre-)re/mobs). In my example it'll be the Beach Dungeon. //===== rAthena Script ======================================= //= Beach Dungeon Monster Spawn Script //===== By: ================================================== //= Athena (1.0) //===== Current Version: ===================================== //= 1.4 //===== Compatible With: ===================================== //= Any Athena Version //===== Additional Comments: ================================= //= 1.1 Official kRO 10.1 spawns [Playtester] //= 1.2 Small 11.1 spawn update [Playtester] //= 1.3 More accurate spawns [Playtester] //= 1.4 Corrected MVP spawn variance. [L0ne_W0lf] //============================================================ //================================================== // beach_dun - Karu, the West cave //================================================== beach_dun,0,0,0,0 monster Medusa 1148,60,5000,0,0 beach_dun,0,0,0,0 monster Nereid 1255,20,5000,0,0 beach_dun,0,0,0,0 monster Pest 1256,20,5000,0,0 beach_dun,0,0,0,0 monster Merman 1264,3,5000,0,0 beach_dun,0,0,0,0 boss_monster Tao Gunka 1583,1,18000000,600000,0 //================================================== // beach_dun2 - Ruande the northern cave //================================================== beach_dun2,0,0,0,0 monster Stalactic Golem 1278,65,5000,0,0 beach_dun2,0,0,0,0 monster Tri Joint 1279,20,5000,0,0 beach_dun2,0,0,0,0 monster Megalith 1274,15,5000,0,0 beach_dun2,0,0,0,0 monster Hydra 1068,10,5000,0,0 beach_dun2,0,0,0,0 monster Nereid 1255,3,5000,0,0 //================================================== // beach_dun3 - Mao, the East Cave //================================================== beach_dun3,0,0,0,0 monster Thara Frog 1034,50,5000,0,0 beach_dun3,0,0,0,0 monster Megalodon 1064,30,5000,0,0 beach_dun3,0,0,0,0 monster Hydra 1068,30,5000,0,0 beach_dun3,0,0,0,0 monster Nereid 1255,1,5000,0,0 Search for the line where the MVP is located. beach_dun,0,0,0,0 boss_monster Tao Gunka 1583,1,18000000,600000,0 There you can modify the monster spawn. To change the size you have to modify the 13th property, which does not exist in this example, so you add it. The result will be this: beach_dun,0,0,0,0 boss_monster Tao Gunka 1583,1,18000000,600000,0,2 Reload the scripts (@reloadscript) and the Tao Gunka inside the Beach Dungeon should be big.
  10. Yomigaeru already posted the solution. Size can be 0 (medium), 1 (small), or 2 (big).
  11. You have use the normal rAthena SVN URL (http://svn.code.sf.net/p/rathena/svn/trunk/) and you have to write the revision number there:
  12. Changing the IP probably won't help with the error shown. Make sure you have imported all *.sql files from sql-files in the main directory of rAthena.
  13. It's not b4bit, its 64bit. However, it is enabled by default, at least that's what I can see at the configure file. # # 64bit # # Check whether --enable-64bit was given. if test "${enable_64bit+set}" = set; then : enableval=$enable_64bit; enable_64bit="$enableval" case $enableval in "no");; "yes");; *) as_fn_error $? "invalid argument --enable-64bit=$enableval... stopping" "$LINENO" 5;; esac else enable_64bit="yes" fi Basically 2834 was right, you have to do the following steps: make sure your configure file is executable (chmod +x configure) write ./configure --enable-packetver=YYYYMMDD so if you use the 20120410 client, write ./configure --enable-packetver=20120410 verify there was no error in that process (it will tell you if there was any error) write make wait for it to finish and verify there were no errors again try to run every server manually to see if they work with ./login-server_sql, hit Ctrl+c to kill the process if it worked, and repeat for char-server_sql and map-server_sql
  14. If you are not going to use mine which shows the actualy time left you should at least put an information there so your users know how long they have to wait between entering the map.
  15. Could you show your whole script again? I tried to copy&paste mine again and it still works...
  16. Which emulator and revision are you using? I just tested this script: caspen,153,236,5 script Bossnia Member::Bossnia 908,{ mes "[Riss]"; mes "Hey..."; mes "I have seen a lot of beautiful places"; mes "while traveling all around the world"; mes "in my adventures."; mes "Haha!"; next; mes "[Riss]"; mes "Wha-? I'm from..."; mes "'Bossnia Team'! No, no..."; mes "my name doesn't matter."; mes "Sometimes, you gotta live and let live."; mes "Small things like that,"; mes "they aren't worth worrying about."; next; mes "[Riss]"; mes "Hm, back to the topic..."; mes "During all my travels,"; mes "I have found a horrible place."; next; mes "[Riss]"; mes "In majority, inside the dungeons and underground prisons"; mes "there is always a fearsome monster."; mes "Isn't that right?"; next; mes "[Riss]"; mes "But, but... Ali..."; mes "There are a lot of monsters, all them so strong..."; mes "It was frightening."; next; mes "[Riss]"; mes "If I lingered few seconds..."; mes "I could have died in there."; next; mes "[Riss]"; mes "Wha-?"; mes "Do you want to go there?"; mes "Oh, gosh, you didn't get me."; mes "Inside......"; mes "DONT FORGET TO BRING A yGGLEAF or PRIEST."; next; mes "[Riss]"; mes "!?!... you already know?"; mes "Even understanding it, do you still want to go there."; mes "Aight, I will take you there."; mes "But, once you're there, "; mes "don't be mad at me."; next; .@delayTime = #BossniaDelay - gettimetick(2); if(.@delayTime > 0) { mes "[Riss]"; mes "You can only go there every 5 hours."; .@hours = .@delayTime / 60 / 60; .@minutes = (.@delayTime % (60 * 60)) / 60; .@seconds = .@delayTime % 60; mes "Please come back in " + sprintf("%02d:%02d:%02d", .@hours, .@minutes, .@seconds) + " hours." ; close; } if (zeny < 50000000) { mes "[Riss]"; mes "You don't have enough money..."; mes "Come back when you get at least 50,000,000 zeny."; close; } mes "[Riss]"; mes "Are you going to face this challenge?"; mes "Right. Then choose your destination."; next; select("First:Second:Third:Fourth"); set .@choice,@menu; mes "[Riss]"; mes "Be careful, young boy."; mes "Don't be mad at me."; close2; set #BossniaDelay, gettimetick(2) + (5 * 60 *60); set zeny,zeny-50000000; warp "bossnia_0" + .@choice,202,204; end; } and changed the location, and it worked perfectly fine. Are there any errors in your map server?
  17. Die aktuellen Diffpatcher sind doch viel einfacher in der Anwendung als die Alten Im Prinzip kann man den 20120410 Client nehmen und fast alles so lassen, wie bei dem Patcher vorausgewählt ist (vorausgesetzt man nimmt Shin's Diff Patcher, keine Ahnung ob es bei anderen auch Vorauswahlen gibt)
  18. //===== rAthena Script ======================================= //= Whisper Tool dealer //===== By: ================================================== //= Poseidon //===== Current Version: ===================================== //= 1.0 //===== Compatible With: ===================================== //= rAthena //===== Description: ========================================= //= Whisper Tool dealer //===== Additional Comments: ================================= //============================================================ - script Shop -1,{ OnInit: bindatcmd "sell", strnpcinfo(0)+"::OnAtcommand"; end; OnAtcommand: callshop "ToolDealer", 0; end; } - shop ToolDealer -,611:-1,1750:-1,501:-1,502:-1,503:-1,504:-1,506:-1,645:-1,656:-1,601:-1,602:-1,1065:-1,2239:-1 This should do it.
  19. There are two easy ways you can use. You can either use gettimetick to create an account variable with the delay time, or you could make a quest with a time limit of 5 hours and check if the time limit has exceeded (official way to do this, like Endless Tower, or Buwaya Cave). Anyway, here's the script with the gettimetick version since I'm at work and can't do very much without neglecting my work //===== Script ======================================= //= Bossnia Event. //===== By: ================================================== //= DeePee //= Muad_Dib [Aegis script] //===== Current Version: ===================================== //= 1.00 //===== Additional Comments: ================================= //= 1.00 First release (Aegis conversion). [DeePee] //============================================================ //--------------- Main NPC ---------------------------------// caspen,153,236,5 script Bossnia Member::Bossnia 908,{ mes "[Riss]"; mes "Hey..."; mes "I have seen a lot of beautiful places"; mes "while traveling all around the world"; mes "in my adventures."; mes "Haha!"; next; mes "[Riss]"; mes "Wha-? I'm from..."; mes "'Bossnia Team'! No, no..."; mes "my name doesn't matter."; mes "Sometimes, you gotta live and let live."; mes "Small things like that,"; mes "they aren't worth worrying about."; next; mes "[Riss]"; mes "Hm, back to the topic..."; mes "During all my travels,"; mes "I have found a horrible place."; next; mes "[Riss]"; mes "In majority, inside the dungeons and underground prisons"; mes "there is always a fearsome monster."; mes "Isn't that right?"; next; mes "[Riss]"; mes "But, but... Ali..."; mes "There are a lot of monsters, all them so strong..."; mes "It was frightening."; next; mes "[Riss]"; mes "If I lingered few seconds..."; mes "I could have died in there."; next; mes "[Riss]"; mes "Wha-?"; mes "Do you want to go there?"; mes "Oh, gosh, you didn't get me."; mes "Inside......"; mes "DONT FORGET TO BRING A yGGLEAF or PRIEST."; next; mes "[Riss]"; mes "!?!... you already know?"; mes "Even understanding it, do you still want to go there."; mes "Aight, I will take you there."; mes "But, once you're there, "; mes "don't be mad at me."; next; .@delayTime = #BossniaDelay - gettimetick(2); if(.@delayTime > 0) { mes "[Riss]"; mes "You can only go there every 5 hours."; .@minutes = .@delayTime / 60; .@seconds = .@delayTime - (.@minutes * 60); mes "Please come back in " + sprintf("%02d:%02d", .@minutes, .@seconds) + " minutes." ; close; } if (zeny < 50000000) { mes "[Riss]"; mes "You don't have enough money..."; mes "Come back when you get at least 50,000,000 zeny."; close; } mes "[Riss]"; mes "Are you going to face this challenge?"; mes "Right. Then choose your destination."; next; select("First:Second:Third:Fourth"); set .@choice,@menu; mes "[Riss]"; mes "Be careful, young boy."; mes "Don't be mad at me."; close2; set #BossniaDelay, gettimetick(2) + (5 * 60 *60); set zeny,zeny-50000000; warp "bossnia_0" + .@choice,202,204; end; } //--------------- Duplicates -------------------------------// //geffen,124,169,4 duplicate(Bossnia) Bossnia Member#2 908 //payon,165,150,4 duplicate(Bossnia) Bossnia Member#3 908 //morocc,142,100,4 duplicate(Bossnia) Bossnia Member#4 908 //lighthalzen,203,140,4 duplicate(Bossnia) Bossnia Member#5 908 //rachel,132,144,4 duplicate(Bossnia) Bossnia Member#6 908 //--------------- Mapflags ---------------------------------// bossnia_01 mapflag nomemo bossnia_01 mapflag nobranch bossnia_01 mapflag nosave bossnia_01 mapflag noexppenalty bossnia_02 mapflag nomemo bossnia_02 mapflag nobranch bossnia_02 mapflag nosave bossnia_02 mapflag noexppenalty bossnia_03 mapflag nomemo bossnia_03 mapflag nobranch bossnia_03 mapflag nosave bossnia_03 mapflag noexppenalty bossnia_04 mapflag nomemo bossnia_04 mapflag nobranch bossnia_04 mapflag nosave bossnia_04 mapflag noexppenalty //--------------- Mob Spawns -------------------------------// //bossnia_01 bossnia_01,0,0,0,0 boss_monster Garm 1252,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Gloom Under Night 1768,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Dark Lord 1272,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Doppelganger 1046,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Dracula 1389,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Drake 1112,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Detale 1719,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Maya 1147,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Mistress 1059,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Baphomet 1039,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Egnigem Cenia 1658,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Amon Ra 1511,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Atroce 1785,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Hell Apocalypse 1978,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Eddga 1115,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Osiris 1038,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Orc Lord 1190,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Orc Hero 1087,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Incantation Samurai 1492,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Moonlight Flower 1150,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Lord of Death 1373,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Ktullanux 1779,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Kiel D-01 1734,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Thanatos 1708,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Lady Tanee 1688,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Tao Gunka 1583,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Turtle General 1312,10,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Pharaoh 1157,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Stormy Knight 1251,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Fallen Bishop Hibram 1871,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Phreeoni 1159,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Golden Thief Bug 1086,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Evil Snake Lord 1418,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster RSX-0806 1623,1,43200000,0,0 bossnia_01,0,0,0,0 boss_monster Assassin Cross Eremes 1647,1,0,0,0 bossnia_01,137,118,1,1 boss_monster Whitesmith Howard 1648,1,0,0,0 bossnia_01,122,195,1,1 boss_monster Beelzebub 1873,1,0,0,0 bossnia_01,45,118,1,1 boss_monster Beelzebub 1873,1,0,0,0 bossnia_01,196,122,1,1 boss_monster Valkyrie Randgris 1751,1,0,0,0 bossnia_01,142,61,1,1 boss_monster Ifrit 1832,1,0,0,0 //bossnia_02 bossnia_02,0,0,0,0 boss_monster Garm 1252,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Gloom Under Night 1768,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Dark Lord 1272,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Doppelganger 1046,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Dracula 1389,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Drake 1112,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Detale 1719,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Maya 1147,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Mistress 1059,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Baphomet 1039,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Egnigem Cenia 1658,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Amon Ra 1511,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Atroce 1785,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Hell Apocalypse 1978,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Eddga 1115,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Osiris 1038,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Orc Lord 1190,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Orc Hero 1087,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Incantation Samurai 1492,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Moonlight Flower 1150,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Lord of Death 1373,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Ktullanux 1779,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Kiel D-01 1734,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Thanatos 1708,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Lady Tanee 1688,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Tao Gunka 1583,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Turtle General 1312,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Pharaoh 1157,2,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Stormy Knight 1251,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Fallen Bishop Hibram 1871,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Phreeoni 1159,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Golden Thief Bug 1086,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Evil Snake Lord 1418,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster RSX-0806 1623,1,43200000,0,0 bossnia_02,0,0,0,0 boss_monster Assassin Cross Eremes 1647,1,0,0,0 bossnia_02,137,118,1,1 boss_monster Whitesmith Howard 1648,1,0,0,0 bossnia_02,122,195,1,1 boss_monster Beelzebub 1873,1,0,0,0 bossnia_02,45,118,1,1 boss_monster Beelzebub 1873,1,0,0,0 bossnia_02,196,122,1,1 boss_monster Valkyrie Randgris 1751,1,0,0,0 bossnia_02,142,61,1,1 boss_monster Ifrit 1832,1,0,0,0 //bossnia_03 bossnia_03,0,0,0,0 boss_monster Garm 1252,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Gloom Under Night 1768,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Dark Lord 1272,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Doppelganger 1046,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Dracula 1389,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Drake 1112,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Detale 1719,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Maya 1147,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Mistress 1059,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Baphomet 1039,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Egnigem Cenia 1658,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Amon Ra 1511,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Atroce 1785,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Hell Apocalypse 1978,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Eddga 1115,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Osiris 1038,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Orc Lord 1190,10,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Orc Hero 1087,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Incantation Samurai 1492,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Moonlight Flower 1150,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Lord of Death 1373,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Ktullanux 1779,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Kiel D-01 1734,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Lady Tanee 1688,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Tao Gunka 1583,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Turtle General 1312,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Pharaoh 1157,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Stormy Knight 1251,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Fallen Bishop Hibram 1871,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Phreeoni 1159,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Golden Thief Bug 1086,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster Evil Snake Lord 1418,1,43200000,0,0 bossnia_03,0,0,0,0 boss_monster RSX-0806 1623,1,43200000,0,0 bossnia_03,196,122,1,1 boss_monster Valkyrie Randgris 1751,3,0,0,0 bossnia_03,142,61,1,1 boss_monster Ifrit 1832,1,0,0,0 //bossnia_04 bossnia_04,0,0,0,0 boss_monster Garm 1252,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Gloom Under Night 1768,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Dark Lord 1272,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Doppelganger 1046,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Dracula 1389,3,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Drake 1112,3,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Detale 1719,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Maya 1147,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Mistress 1059,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Baphomet 1039,2,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Egnigem Cenia 1658,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Amon Ra 1511,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Atroce 1785,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Hell Apocalypse 1978,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Eddga 1115,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Osiris 1038,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Orc Lord 1190,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Orc Hero 1087,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Incantation Samurai 1492,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Moonlight Flower 1150,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Lord of Death 1373,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Ktullanux 1779,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Kiel D-01 1734,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Lady Tanee 1688,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Tao Gunka 1583,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Turtle General 1312,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Pharaoh 1157,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Stormy Knight 1251,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Fallen Bishop Hibram 1871,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Phreeoni 1159,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Golden Thief Bug 1086,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster Evil Snake Lord 1418,1,43200000,0,0 bossnia_04,0,0,0,0 boss_monster RSX-0806 1623,1,43200000,0,0 bossnia_04,196,122,1,1 boss_monster Valkyrie Randgris 1751,2,7200000,0,0 bossnia_04,142,61,1,1 boss_monster Ifrit 1832,1,7200000,0,0 // mapflags bossnia_04 mapflag nowarpto bossnia_04 mapflag nowarp bossnia_04 mapflag nomemo bossnia_04 mapflag nosave SavePoint bossnia_04 mapflag nobranch bossnia_04 mapflag noicewall bossnia_04 mapflag nopenalty bossnia_04 mapflag nobranch bossnia_04 mapflag noexp bossnia_04 mapflag noreturn bossnia_01 mapflag nowarpto bossnia_01 mapflag nowarp bossnia_01 mapflag nomemo bossnia_01 mapflag nosave SavePoint bossnia_01 mapflag nobranch bossnia_01 mapflag noicewall bossnia_01 mapflag nopenalty bossnia_01 mapflag nobranch bossnia_01 mapflag noexp bossnia_01 mapflag noreturn bossnia_02 mapflag nowarpto bossnia_02 mapflag nowarp bossnia_02 mapflag nomemo bossnia_02 mapflag nosave SavePoint bossnia_02 mapflag nobranch bossnia_02 mapflag noicewall bossnia_02 mapflag nopenalty bossnia_02 mapflag nobranch bossnia_02 mapflag noexp bossnia_02 mapflag noreturn bossnia_03 mapflag nowarpto bossnia_03 mapflag nowarp bossnia_03 mapflag nomemo bossnia_03 mapflag nosave SavePoint bossnia_03 mapflag nobranch bossnia_03 mapflag noicewall bossnia_03 mapflag nopenalty bossnia_03 mapflag nobranch bossnia_03 mapflag noexp bossnia_03 mapflag noreturn
  20. You can search the npc folder with a (built-in) search function of your operating system that supports searching text in files. That's the normal search for Windows or grep -n "search string" npc/* for Linux.
  21. Because rAthena scripts support only integers, I had to write the chances this way. It's correct: 1 = 0.01%, 10 = 0.1%, 100 = 1%, 1000 = 10%, 10000 = 100%.
  22. Should the player get only one item from the list or are multiple items possible? If only one, it wouldn't make sense to put there an item with a chance of 100%. This should work as you wanted. prontera,150,105,4 script Items 98,{ mes "[Gambler]"; mes "Hello, I'm the gambler."; mes "If you bring me some items you can gamble for some pretty nice rewards."; switch(select("Gamble:Which items?:Which rewards?")) { next; case 1: for (.@i = 0; .@i < getarraysize(.required); .@i++) { if (countitem(.required[.@i]) >= .reqAmnt[.@i]) { .@enoughItems++; } } if (.@enoughItems != getarraysize(.required)) { mes "[Gambler]"; mes "You don't have all the items I need."; mes "Please come back when you have everything."; close; } mes "[Gambler]"; mes "So, you have everything."; mes "Are you sure you want to bet the items I want for one attempt to win a price?"; if (select("Yes:No") == 2) { next; mes "[Gambler]"; mes "Come back when you are ready."; close; } close2; for (.@i = 0; .@i < getarraysize(.required); .@i++) { delitem .required[.@i], .reqAmnt[.@i]; } for (.@i = 0; .@i < getarraysize(.items); .@i++) { if (rand(1, 10000) <= .chances[.@i]) { if (.chances[.@i] <= .announceAt) { announce strcharinfo(0) + " has won " + .qnt[.@i] + "x " + getitemname(.items[.@i]) + "!",bc_all; } dispbottom "You have won " + .qnt[.@i] + "x " + getitemname(.items[.@i]) + "!"; getitem .items[.@i], .qnt[.@i]; } } end; case 2: mes "[Gambler]"; mes "The items I need are those:"; for (.@i = 0; .@i < getarraysize(.required); .@i++) { mes .reqAmnt[.@i] + "x " + getitemname(.required[.@i]) + " (ID: " + .required[.@i] + ")"; } close; case 3: mes "[Gambler]"; mes "The rewards can be a one or more of these:"; for (.@i = 0; .@i < getarraysize(.items); .@i++) { mes .qnt[.@i] + "x " + getitemname(.items[.@i]) + " (ID: " + .items[.@i] + ")"; } close; } next; OnInit: // announce if chance was lower or equal to ... .announceAt = 100; // Arrays for the rewards setarray .items, 607, 608, 609, 610, 611, 612; setarray .qnt, 10, 10, 15, 15, 20, 20; setarray .chances, 1, 10, 20, 50, 100, 10000; // Arrays for the required items setarray .required, 6040, 6075, 6080, 6095, 713; setarray .reqAmnt, 100, 50, 50, 50, 1; }
  23. There is a semicolon missing. prontera,150,150,0 script Freebies 100,{ if ( #Freebies ) end; mes .npc$; mes "Welcome to Our Ragnarok Online!"; next; mes .npc$; mes "Here is your freebies, " +strcharinfo(0); next; for ( set .@i, 0; .@i < getarraysize(.freebie_items); set .@i, .@i + 2 ) getitem .freebie_items[.@i], .freebie_items[.@i + 1]; set #CASHPOINTS, #CASHPOINTS + .cash_amount; dispbottom "You've gained " +.cash_amount+ " cash points."; set #Freebies, 1; end; OnInit: setarray .freebie_items[0], 7227,10,7179,10; // <item id>,<amount> set .cash_amount, 100; // cash points amount set .npc$, "[ " +strnpcinfo(1)+ " ]"; end; }
  24. You have to write the GMs account ID(s) in your clientinfo.xml. An overview about that file can be found here: http://rathena.org/wiki/Clientinfo.xml
  25. prontera,150,185,5 script Test 100,{ query_sql("SELECT `c`.`name`, `c`.`class`, `c`.`base_level`, `c`.`job_level`, `c`.`zeny`, `g`.`name` FROM `char` c LEFT JOIN (`guild` g) ON (`c`.`guild_id` = `g`.`guild_id`) ORDER BY `c`.`zeny` DESC LIMIT 10", .@name$, .@class, .@blvl, .@jlvl, .@zeny, .@guild$); for (.@i = 0; .@i < getarraysize(.@name$); .@i++) { .@menu$ = (("" == .@menu$) ? "Top " + (.@i + 1) + " - " + .@name$[.@i] : .@menu$ + ":Top " + (.@i + 1) + " - " + .@name$[.@i]); } mes "[Zeny Ranking]"; mes "Which character do you want to see details about?"; .@selected = select(.@menu$); next; mes "Name: " + .@name$[.@selected - 1]; mes "Class: " + jobname(.@class[.@selected - 1]); mes "Base level: " + .@blvl[.@selected - 1]; mes "Job level: " + .@jlvl[.@selected - 1]; mes "Guild: " + ((.@guild$[.@selected - 1]) ? .@guild$[.@selected - 1] : "none"); mes "Zeny: " + .@zeny[.@selected - 1]; close; }
×
×
  • Create New...