Jump to content

PiXLCAT

Members
  • Posts

    13
  • Joined

  • Last visited

Profile Information

  • Gender
    Female
  • Location
    Canada

PiXLCAT's Achievements

Poring

Poring (1/15)

0

Reputation

  1. Just how do you guys make codebox work? When I try it, it gives me all the text color codes. DX
  2. So, is the script working alright now?
  3. Sorry about that, having troubles with the forums for some reason and you had a small mistake in your script that I just fixed. XP And for your second question, here. Edit: Geebus! I wish the code or codebox was working, it would help me greatly to keep track of those {}. XD new_zone04,100,29,6 script Novice Master 743,{ if(JobLevel == 10) { mes "[ ^ff0000Novice Master^000000 ]"; mes "Wie ich sehe hast du dein Training absolviert."; next; mes "[ ^ff0000Novice Master^000000 ]"; mes "M?chtest du nun nach loltownwhatever gehen?"; switch(select("Ja:Nein")) { case 1: Save "anymap", 38, 21; warp "lol",38,22; close; case 2: next; mes "[ ^ff0000Novice Master^000000 ]"; mes "Komm wieder wenn du bereit bist in die Stadt zu gehen."; close; } else { mes "[ ^ff0000Novice Master^000000 ]"; mes "Not job level 10 text here."; close; } } }
  4. new_zone04,100,29,6 script Novice Master 743,{ if(JobLevel == 10) { mes "[ ^ff0000Novice Master^000000 ]"; mes "Wie ich sehe hast du dein Training absolviert."; next; mes "[ ^ff0000Novice Master^000000 ]"; mes "M?chtest du nun nach loltownwhatever gehen?"; switch(select("Ja:Nein")) { case 1: Save "anymap", 38, 21; warp "lol",38,22; close; case 2: next; mes "[ ^ff0000Novice Master^000000 ]"; mes "Komm wieder wenn du bereit bist in die Stadt zu gehen."; close; } } } Edit: For some reason codebox messes up my post.
  5. Hello, the problem recently popped out of nowhere and I can't seem to find what's wrong in my script. The mapindex_name2id error is with the map poring_c01 after killing a Lucky Chest. Somehow, it interferes with the areawarp part of the script, making it unable to warp the player out of the map. /*This script was made on the 25-07-2012. More mini-games will be added later on. For now, there is only the "Lucky Chest" mini-game. The mini-game is a tweaked script of my submission to the Dev. Team but the concept remains the same. Coordinates, OnClock, NPCs, etc. can be modified any time for updates and to suit the server's needs. -Hylian/PiXLCAT*/ /*A big thank you to the LRO Community for the clown names. Frankly, I suck at naming characters! Derp! -Hylian/PiXLCAT*/ /*@Lina: Since you're the one that tweak scripts, you can change whatever you deem necessary, especially NPC/Warp/Mob coordinates and OnClock times (those needs to be changed). Thanks a bunches! <3 -Hylian/PiXLCAT*/ //=====================NPC: JUGGLES======================= prontera,220,184,3 script Juggles::jug_welcm 715,{ mes "[Juggles]"; mes "Step right up!"; next; mes "[Juggles]"; mes "Step right up!"; mes "Don't be shy!"; next; mes "[Juggles]"; mes "Step right up!"; mes "Don't be shy!"; mes "Try out our mini-games!"; close; } //=====================NPC: BOBO========================== prontera,220,179,2 script Bobo::bo_welcm 715,{ mes "[bobo]"; mes "The mini-games that we have"; mes "currently are the followings..."; next; switch(select("Lucky Chest:I'm not interested.")) { case 1: mes "[bobo]"; mes "Destroy the chest of your"; mes "choice to win a prize."; next; mes "[bobo]"; mes "Each chest contains a"; mes "different prize inside and"; mes "you have a time limit of"; mes "1 minute, so choose wisely!"; close; case 2: mes "[bobo]"; mes "Oh! How sad!"; emotion e_sob; close; } } //=====================NPC: WARP POINT==================== prontera,219,181,0 warp gamewarp0 2,2,poring_w02,94,200 //Lucky Chest mini-game warp. //More to come once I have other game ideas. //=====================NPC: GAME WARP===================== prontera,219,181,0 script Game Warp::game_warp -1,{ end; OnInit: disablenpc "gamewarp0"; end; //Starting time(s), can add and/or change. OnClock1745: announce "The Lucky Chest mini-game has started! Have fun!",bc_all,0xFFFF00; enablenpc "gamewarp0"; end; //Ending time(s), can add and/or change. OnClock1755: announce "The Lucky Chest mini-game has ended! Thank you for playing!",bc_all,0xFFFF00; disablenpc "gamewarp0"; end; } //======================================================== //LUCKY CHEST MINI-GAME //======================================================== //=======================WAITING ROOM===================== poring_w02,96,200,5 script Bobo::lc_wait 715,{ end; OnInit: delwaitingroom "Lucky Chest"; waitingroom "Lucky Chest",8,"lc_wait::OnWarpToArea",1; end; OnWarpToArea: setmapflag "poring_c01",mf_nomobloot; setmapflag "poring_c01",mf_noskill; setmapflag "poring_c01",mf_nosave; warpwaitingpc "poring_c01",104,102; initnpctimer "lc_game"; end; } //====================NPC: LC GAME======================== poring_c01,104,102,0 script LC Game::lc_game -1,{ end; OnLCKill: setarray .@i[0],671,1,671,2,671,3,512,1,513,1,514,1,515,1; set .@j, rand(getarraysize(.@i)/2); getitem .@i[2*.@j], .@i[2*.@j+1]; /*671: Gold Coin 512: Apple 513: Banana 514: Grape 515: Carrot*/ set $LCAmount, $LCAmount - 1; if($LCAmount <= 8) { killmonsterall "poring_c01","lc_game::OnLCKill"; mapannounce "poring_C01","Come play again!",0; areawarp "poring_c01",97,115,119,95,"prontera",158,185; stopnpctimer "lc_game"; detachnpctimer "lc_game"; end; } OnTimer3000: mapannounce "poring_c01","You have 1 minute to destroy the treasure chest of your choice.",0; end; OnTimer8000: mapannounce "poring_c01","If lucky, you can get a pretty nice prize!",0; end; OnTimer13000: mapannounce "poring_c01","Are you ready? Get set! Go!",0; monster "poring_c01",100,102,"Lucky Chest",1348,1,"lc_game::OnLCKill"; monster "poring_c01",103,102,"Lucky Chest",1348,1,"lc_game::OnLCKill"; monster "poring_c01",106,102,"Lucky Chest",1348,1,"lc_game::OnLCKill"; monster "poring_c01",100,97,"Lucky Chest",1348,1,"lc_game::OnLCKill"; monster "poring_c01",103,97,"Lucky Chest",1348,1,"lc_game::OnLCKill"; monster "poring_c01",106,97,"Lucky Chest",1348,1,"lc_game::OnLCKill"; monster "poring_c01",100,92,"Lucky Chest",1348,1,"lc_game::OnLCKill"; monster "poring_c01",103,92,"Lucky Chest",1348,1,"lc_game::OnLCKill"; monster "poring_c01",106,92,"Lucky Chest",1348,1,"lc_game::OnLCKill"; end; OnTimer88600: mapannounce "poring_c01","Time's up! Come play again!",0; killmonsterall "poring_c01","lc_game::OnLCKill"; areawarp "poring_c01",97,115,119,95,"prontera",158,185; stopnpctimer "lc_game"; detachnpctimer "lc_game"; end; OnPCLogoutEvent: savepoint "prontera",158,185; if($LCAmount <= 9) { killmonster "poring_c01","lc_game::OnLCKill"; stopnpctimer"lc_game"; detachnpctimer "lc_game"; end; } } Bump. Thanks for the codebox edit Arcenciel.
  6. I... don't think I understand. ^^; Sorry, I'm a bit slow at times.
  7. @Euphy I'm still in a learning phase when it comes to arrays and this is very useful information. Thank you so much, your code taught me something valuable today. I will go try it out! Although I wonder: rand(getarraysize(.@i)/2) What is the /2 for?
  8. This is the last problem to my script project. I am trying for a treasure chest to drop random drops but here is my problem. I want them to drop a random Gold Coin (1,2,3) number or a random item such as an apple, carrot, banana, etc. I have a script right now but it doesn't seem to work well and I am not sure how to proceed anymore to get what I want. set .@r[0], 671; //Gold Coins setarray .@a, 0,1,2,3; //Amount(Random) getitem .@r[0], .@a[rand(getarraysize(.@a))]; set .@r[1], 512; //Apple getitem .@r[1], 1; set .@r[2], 513; //Banana getitem .@r[2], 1; set .@r[3], 514; //Grape getitem .@r[3], 1; set .@r[4], 515; //Carrot getitem .@r[4], 1; This script obviously does not work. Thank you for helping and sharing the knowledge with me.
  9. Well, I found another way of doing it. Here is the script: //=====================NPC: WARP POINT==================== prontera,219,181,0 warp gamewarp 2,2,prt_in,240,139 //===================NPC: SECRET WARP===================== prontera,219,181,0 script Secret Warp::secret_warp -1,{ end; OnInit: disablenpc "gamewarp"; end; OnClock1052: announce "The Lucky Chest mini-game has started! Have fun!",bc_all,0xFFFF00; enablenpc "gamewarp"; end; OnClock1054: announce "The Lucky Chest mini-game has ended! Thank you for playing!",bc_all,0xFFFF00; disablenpc "gamewarp"; end; } It works and does what I want but if someone knows that this sort of script might give me problems if for example, there's a server reboot, please let me know.
  10. Hello, I have a script in the works but I am stumped on how to make a warp appear/disappear depending on OnClock. I am trying to make the warp appear when the event start and vice versa. Can anyone lead me on the right track? Thanks a lot. ^^ PS: I know the script isn't much right now. DX prontera,219,181,0 script Secret Warp::secret_warp -1,{ end; OnClock1210: announce "The Lucky Chest mini-game has started! Have fun!",bc_all,0xFFFF00; end; OnClock1213: announce "The Lucky Chest mini-game has ended! Thank you for playing!",bc_all,0xFFFF00; end; }
  11. @ Mysterious Exactly what I was aiming for! Thank you for the help. I will try this out.
  12. Ah, yes, I haven't thought about that. Thanks, I will have a look.
  13. Hello, I am new to the rAthena forums and I have been scripting for 2-3 months. I am currently learning about arrays and I was wondering, is it possible to input the @nuke command somehow? I do not have a script prepared but here is the mini-game idea I have in mind. There are 9 bombrings in a single room and some of them, upon being killed, will either respawn or just @nuke the player, thus ending the game. I was also planning to make a counter that calculates the number of Bombrings killed so that the NPC can give the player a prize depending on the number. There is also a time limit of 1 minute but I have no problem when it comes to OnTimer. Thank you for the help!
×
×
  • Create New...