Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/05/22 in all areas

  1. @lLoydxxfirst of all I've spend a lot of time to optimize the Ceffenia script u've attached. My language knowledge u used in the script is equals to zero? Portuguese I think. I haven't the time to correct the other scripts yet but if no one else will done it I will come back later and fix it. Optimizations U've added the if statement (gettime) on top of the script. This will only triggerd when the script starts. The event OnClock2357 triggers every day at the same time and without any check. U need to add the if statement on this label. The day u want to start-1. I've removed the sleep timer cause a 24 hours sleep isn't a good idea. I've added an announcement if the day is the 5th or 20th to announce the event will stop in x minutes(3,2,1) and that's what I mean with my portuguese knowledge. I hope I've write the correctly sentence? U need another event OnClock0000 and then check if it's the 5th or 20th of a month and enable the npc. Of course if it is the 6th or 21th warp players out of map. Do the announcement and disable the npc. I've added a check OnInit if it is the 5th or 20th of a month to enable or disable the event. Cuz' if the server crashes or u need to perform a reloadscript the event will stop. It's stupid if the event should enabled 24hrs and the server crash after 2hrs as example. I corrected a lot of the formatting cuz' it's know much better to read and understand. I've replaced the menu with switch(select()) it's much easier to read and u don't need the thousands of labels. Just cases for each menu point. Also removed the next; on each label and put it before select. Monsters, Mapflags or Warp Portals should be on the bottom of a script not in the middle. //the script should be do what u want. I'm not able to test it cuz' I'm on mobile and a few hundred miles from my home. As I already said at beginning I'll change and optimize the other scripts later if now one already done it. Please let me know if everything works. cheffenia changed.txt Rynbef~
    1 point
  2. [SOLVED] thanks @Daegaladh ? For those of us who use PRE-RENEWAL, it is possible to disable that "warning" in conf/battle/feature.conf
    1 point
  3. Here, forgot to add check if player is lower than lvl 99. Tick solve and upvote if I helped you, Thanks. // by pajodex // Optimized by AnnieRuru prontera,150,150,0 script Race-To-99 100,{ if (BaseLevel < 99) { npctalk "Sorry, Only Lvl 99 can claim the reward!"; end; } if ($ItemGive == 100) { npctalk "Sorry, all rewards has been taken!"; end; } if (getreward) { npctalk "Sorry, Nothing for you!"; end; } announce "Congratulations! "+strcharinfo(0)+" has claimed his reward for Race to 99 Event", bc_all; getitem 501, 100; ++$ItemGive; getreward = 1; sleep 2000; announce "There are "+(100 - $ItemGive)+" rewards left to give!", bc_all; end; }
    1 point
  4. // = Script made by RIKIMARU on rathena.org // = Profile Link : // = http://rathena.org/board/user/434-rikimaru/ // = ENJOY THIS SCRIPT! //=================================================================================== // //=====// /==/ /==/ /==/ // // // /==/ /==/ /=/ /==/ // //=====// /==/ /=/ /==============/ /========/ /==//===/ /==/ /==/ // //=////// /==/ /==//=/ /==/ /==/==/==/==/==/ / / / /==/ /==/ /==/ // // == /==/ /==//=/ /==/ /==/ /==/ /==/ ======/ / /==/ /==/ /==/ // // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ / /===/ / /==/ /==/ /==/ // // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ / /===/ / /==/ /==/=====/==/ // // == /==/ /==/ /=/ /==/ /==/ /==/ /==/ /========/ /==/ /==///////==/ // ================ rAthena Script ================================================== // ============== Information ======================================================= // = Rock,Paper,Scissors Game // = Made by : // = Rikimaru //===== Current Version: =============================================== //= 1.0 //===== Compatible With: =============================================== //= any rAthena SVN //===== Description: =================================================== //= Rock,Paper,Scissors game with a chance of 10 Prizes //===== Additional Comments: =========================================== //= 1.0 Finished Scripting the NPC [Rikimaru] //====================================================================== //= DO NOT REMOVE MY CREDITS AND CLAIM MY WORK AS YOURS //====================================================================== prontera,192,154,3 script Rock,Paper,Scissors 100,{ // ================ Settings ================================== set .@n$,"^0000FF[ Rock,Paper,Scissors ]^000000"; set .cost,1000; set .@player1$,"Rock"; set .@player2$,"Paper"; set .@player3$,"Scissors"; // ============== End of Settings ============================= OnMenu: mes .@n$; set .@delay, gettimetick(2)-rpsgame; if (.@delay < 3600) { mes "You have to wait for "+ callfunc("Time2Str",.@delay); close; } mes "Hello,do you want to play"; mes "some Rounds of Rock,Paper,"; mes "Scissors?It just costs "+.cost+" Zenny."; next; switch(select("Yes:Cancel")) { case 1: mes .@n$; if(Zeny < .cost) goto l_nozeny; set Zeny, Zeny - .cost; mes "Okay,get ready."; set $@ran, rand(1,3); if ($@ran == 3) set .@npcpick$,"Rock"; if ($@ran == 2) set .@npcpick$,"Paper"; if ($@ran == 1) set .@npcpick$,"Scissors"; next; mes .@n$; mes "What do you want to use?"; next; set rpsgame,gettimetick(2); switch(select("Rock:Paper:Scissors")) { case 1: mes .@n$; mes "Okay you've picked Rock"; mes "and I've picked "+.@npcpick$+"!"; next; if(.@npcpick$ == .@player3$) goto l_win; if(.@npcpick$ == .@player2$) goto l_loose; if(.@npcpick$ == .@player1$) goto l_draw; close; case 2: mes .@n$; mes "Okay you've picked Paper"; mes "and I've picked "+.@npcpick$+"!"; next; if(.@npcpick$ == .@player3$) goto l_loose; if(.@npcpick$ == .@player2$) goto l_draw; if(.@npcpick$ == .@player1$) goto l_win; close; case 3: mes .@n$; mes "Okay you've picked Scissors"; mes "and I've picked "+.@npcpick$+"!"; next; if(.@npcpick$ == .@player3$) goto l_draw; if(.@npcpick$ == .@player2$) goto l_win; if(.@npcpick$ == .@player1$) goto l_loose; close; } case 2: close; } l_win: mes .@n$; mes "Congrats you won!"; set rpswin, rpswin+1; if (rpswin>=10) { set rpswin,0; mes "You got the Grand Prize because you have won 10 times in a row!"; announce ""+strcharinfo(0)+" has won the Grand Prize from Rock Paper Scissors Game!",bc_npc|bc_area; getitem 501,10; } set $@ran2, rand(1,10); if ($@ran2 == 10) set @prize,7451 ; if ($@ran2 == 9) set @prize,12103; if ($@ran2 == 8) set @prize,969; if ($@ran2 == 7) set @prize,4001; if ($@ran2 == 6) set @prize,909; if ($@ran2 == 5) set @prize,501; if ($@ran2 == 4) set @prize,502; if ($@ran2 == 3) set @prize,503; if ($@ran2 == 2) set @prize,504; if ($@ran2 == 1) set @prize,505; set $@ran3, rand(1,3); if ($@ran3 == 3) set @amount,5; if ($@ran3 == 2) set @amount,3; if ($@ran3 == 1) set @amount,1; next; mes .@n$; mes "Take this Prize!"; getitem @prize,@amount; goto OnMenu; close; l_loose: mes .@n$; set rpswin,0; mes "You lost!Let's play another round!"; goto OnMenu; close; l_draw: mes .@n$; mes "This was a draw,you'll get your money back!"; mes "but let's play another Round!"; set Zeny, Zeny + .cost; goto OnMenu; l_nozeny: mes "Hey,are you kidding me?You need more Money!"; close; } The win count will reset to 0 again if you lose the game
    1 point
  5. try http://upaste.me/raw/8e547a *Next time please make sure you give an informative topic title..
    1 point
×
×
  • Create New...