Jump to content

Patskie

Members
  • Posts

    1702
  • Joined

  • Last visited

  • Days Won

    19

Everything posted by Patskie

  1. Change : OnTimer60000: to : OnTimer60000: if ( checkidle() >= 5 ) end;
  2. Lol. I thought of that too. /me me exaggerated on script . It can be done with or without attachrid
  3. Refer to Basic_Scripting - <TAB> script <TAB> Sample <TAB> -1,{ OnPCKillEvent: if ( strcharinfo(3) == "your map" ) { if ( attachrid( getcharid( 3, strcharinfo( 0 ) ) ) ) { if ( Hp && ( Hp != MaxHp ) ) percentheal 100,100; } } }
  4. - <TAB> script <TAB> Sample <TAB> -1,{
  5. Try : - script Sample -1,{ OnPCKillEvent: if ( strcharinfo(3) == "your map" ) { if (attachrid(getcharid(3, strcharinfo(0)))) { if ( Hp && ( Hp != MaxHp ) ) percentheal 100,100; } } }
  6. You can try http://rathena.org/board/files/file/2959-xynvaroth-array/ or try to increase the size of array here ( src/map/script.c#L176 )
  7. Maybe you are using a script that announce everytime a certain guild change their guild master?
  8. This topic violated the rules and regulation of rAthena. Please translate the description into english. Otherwise this topic will be hidden.
  9. Array in rAthena has a limitation of 128 contents
  10. Is this solved? I wonder the topic starter didn't told that his/her problem is already solved. I will remove topic prefix
  11. Set all cards on the .Cards array and the npc will randomly get one card every 2 hrs.
  12. I don't see any problem with your waitingroom. Try : waitingroom "PvP Top "+$@LadderLength+"",0; // Look on the configuration! Change to : delwaitingroom strnpcinfo(1); waitingroom "PvP Top "+$@LadderLength+"",0; // Look on the configuration!
  13. Change this part on your script configuration : set $@LadderLength, 30; //Set the length of the Ladder [!Not higher than 128!] (Default: 30) Off topic : Next time please post your topic in the proper section i just notice that you have posted your recent topics in the wrong section. There is a difference between script request and script support section PS : Move to script support section
  14. I don't have my laptop now for testing. So i suggest that you test this first before deployment on your server if any : prontera,150,150,0 script Sample 100,{ OnMinute00: if ( ( gettime(3) % 2 ) > 0 ) end; set .index, rand( getarraysize( .Cards ) ); set .random_card, .Cards[ .index ]; set .random_reward, .Rewards[ .index ]; announce "I need " +getitemname(.random_card)+ " card for " +.random_reward+ " premium points.",0; sleep 2000; announce "Talk to me at prontera 150 150 if you have one!",0; set .start, 1; end; if ( !.start ) { mes .npc$; mes "The event has not been initiated by any Game Master."; close; } mes .npc$; mes "So, " +strcharinfo(0)+ " do you have " +getitemname(.random_card)+ "?"; next; if ( select( "Yes:No" ) - 1 ) end; getinventorylist; for ( set .@i, 0; .@i < @inventorylist_count; set .@i, .@i + 1 ) if ( @inventorylist_id[.@i] == .random_card ) set .count, @inventorylist_amount[.@i]; if ( !.count ) end; mes .npc$; mes "Alright then. You have " +.count+ "x " +getitemname(.random_card); next; mes .npc$: mes "Here is your reward!"; delitem .random_card, .count; set #PREMIUMPOINTS, #PREMIUMPOINTS + ( .random_reward * .count ); dispbottom "You now have " +#PREMIUMPOINTS+ " premium points."; set .start, 0; close; OnInit: setarray .Cards[0],4001; setarray .Rewards[0],20; set .npc$, strnpcinfo(1); end; } The configuration part : setarray .Cards[0],4001; setarray .Rewards[0],20; Meaning item id 4001 corresponds to 20 premium points. You can put cards and rewards as many as you want with the limitation of 128 array content only. Make sure also that the both array have the same size. Meaning if you add a card id in the .Cards array then it is mandatory to put a corresponding prize to it. Set the prize on the .Rewards array
  15. Some issues might be your custom theme is not compatible with the flux you are using. Can you provide some screenshots of your registration page when it is in default theme as well as it is in your custom theme for further assistance
  16. Try : {},{ atcommand "@disguise 1511"; },{ atcommand "@undisguise"; }
  17. This : - script Sample -1,{ OnPCLoginEvent: if ( !#FreeStats ) { StatusPoint += 1000; set #FreeStats, 1; } end; }
  18. Try : - script Sample -1,{ OnPCLoginEvent: if ( !#FreeStats ) { statusup2 bStr, 1000; statusup2 bAgi, 1000; statusup2 bVit, 1000; statusup2 bInt, 1000; statusup2 bDex, 1000; statusup2 bLuk, 1000; set #FreeStats, 1; } end; } Note that this command will add a specific amount of stats of the invoking character permanently. For more information refer to Statusup2
  19. I don't think it's possible with the current script commands
  20. Name: @Patskie Badge: Support Badge Reason: I have provided numerous support to the community ( esp. script section )
  21. Change : if( @seconds_ap%3600==0 ){ getitem 671, 5; dispbottom "You get 5 Golds every 1 hr online"; } //EVERY 30 MINS if( @seconds_ap%1800==0 ){ getitem 671, 1; dispbottom "You get 1 Gold every 30 mins online"; } to : if( @seconds_ap%3600==0 ){ #CASHPOINTS += 5; dispbottom "You get 5 cashpoints every 1 hr online"; } //EVERY 30 MINS if( @seconds_ap%1800==0 ){ #CASHPOINTS++; dispbottom "You get 1 cashpoint every 30 mins online"; } For shop, I suggest you use @Emistry multi currency shop ( here : http://rathena.org/board/files/file/2504-multi-currency-shop/ ) PS : Moved to script support section
  22. Patskie

    own points

    Sample : prontera,150,150,0 script Sample 100,{ set #OWNPOINTS, #OWNPOINTS + 5; dispbottom "You now have " +#OWNPOINTS+ " own points."; end; } Every time people click on this npc. They will have additional 5 #OWNPOINTS credited on their accounts. The dispbottom command will show how many own points a certain player has. If you want items to be bought by your own custom points then i suggest you use @Emistry multi currency shop ( http://rathena.org/board/files/file/2504-multi-currency-shop/ ). It's easy to configure.
  23. You miss a semi colon here : set breaker_tcg, breaker_tcg + .@reward should be : set breaker_tcg, breaker_tcg + .@reward;
  24. Show your current script
×
×
  • Create New...