Jump to content

qtdan

Members
  • Posts

    196
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by qtdan

  1. Go to your grf clientinfo.xml <address>127.0.0.1</address> <port>6900</port> put correctly your server ip and port
  2. qtdan

    Hello!

    Welcome aboard
  3. bump, please someone update this to latest rathena git, THANKSSSSS
  4. i done it but, maintown,193,173,5 script Coin Trader 117,{ function int__; do{ callsub exchange_rate; [email protected] = select( "Zeny to Coin","Coin to Zeny","Close" ); switch( [email protected] ){ Case 1: mes "Convert Zeny to which Coins ?"; [email protected] = select( implode( .coin_name$,":" ) ) - 1; if( Zeny < .value[[email protected]] ){ mes "^FF0000[ERROR]^000000 You didnt have enough zeny."; }else{ [email protected] = Zeny / .value[[email protected]]; mes "You can get maximum of ^FF0000"+int__( [email protected] )+" x "+getitemname( .coin_id[[email protected]] )+"^000000"; if(getd("#wqeqwe1_" + gettime(DT_YYYYMMDD)) < .day_limit){ [email protected] = .day_limit - getd("#wqeqwe1_" + gettime(DT_YYYYMMDD)); input [email protected],0,[email protected]; if( [email protected] ) if( checkweight( .coin_id[[email protected]],[email protected] ) ){ [email protected] = ( [email protected] * .value[[email protected]] ); Zeny -= [email protected]; getitem .coin_id[[email protected]],[email protected]; setd("#wqeqwe1_" + gettime(DT_YYYYMMDD),getd("#wqeqwe1_" + gettime(DT_YYYYMMDD)) + [email protected]); message strcharinfo(0),"Exchanged "+int__( [email protected] )+" Zeny to "+int__( [email protected] )+" "+getitemname( .coin_id[[email protected]] )+"^000000"; } } else{ mes "^FF0000[ERROR]^000000 You cant take this much."; } } break; Case 2: mes "Convert which Coins to Zeny ?"; [email protected] = select( implode( .coin_name$,":" ) ) - 1; if( !countitem( .coin_id[[email protected]] ) ){ mes "^FF0000[ERROR]^000000 You didnt have any "+getitemname( .coin_id[[email protected]] )+"."; }else if( ( .max_zeny - Zeny ) < .value[[email protected]] ){ mes "^FF0000[ERROR]^000000 You cant exchange this Coin as it will exceed the Zeny limit."; }else{ [email protected] = (( .max_zeny - Zeny ) / .value[[email protected]] ); if( [email protected] > countitem( .coin_id[[email protected]] ) ) [email protected] = countitem( .coin_id[[email protected]] ); mes "You can exchange maximum of ^FF0000"+int__( [email protected] )+" x "+getitemname( .coin_id[[email protected]] )+"^000000 to zeny"; input [email protected],0,[email protected]; if( [email protected] ){ [email protected] = ( [email protected] * .value[[email protected]] ); Zeny += [email protected]; delitem .coin_id[[email protected]],[email protected]; message strcharinfo(0),"Exchanged "+int__( [email protected] )+" "+getitemname( .coin_id[[email protected]] )+" to "+int__( [email protected] )+" Zeny^000000"; } } break; default: break; } next; }while( [email protected] != 3 ); mes "Thank you."; close; exchange_rate: mes "Exchange Rate :"; for( [email protected] = 0; [email protected] < .coin_size; [email protected]++ ) mes "^777777 > "+.coin_name$[[email protected]]+" - "+int__( .value[[email protected]] )+" z^000000"; return; OnInit: // server max zeny .max_zeny = 1000000000; .day_limit = 50; // coin list + name + value setarray .coin_name$,"Platinum Coin"; setarray .coin_id,677; setarray .value,10000000; .coin_size = getarraysize( .coin_name$ ); end; // credits to annieruru function int__ { set [email protected], atoi(""+getarg(0)); if ( [email protected] == 0 || [email protected] >= 2147483647 ) return getarg(0); set [email protected], getstrlen(""[email protected]); for ( set [email protected],0; [email protected] < [email protected]; set [email protected], [email protected] + 1 ) { set [email protected]$, [email protected] % pow(10,[email protected]+1) / pow(10,[email protected]) + [email protected]$; if ( ([email protected]+1) % 3 == 0 && [email protected]+1 != [email protected] ) set [email protected]$, ","+ [email protected]$; } return [email protected]$; } } yeah it stops when i already exchange more than 50, the problem is if i change 1st time of the day by 49 i records 49 and again if i change again 50 total of 99 it still accepts it.
  5. Hello Guys is someone have a coin exchanger with limitation every day? Example players can change coin for only 50 every day, it will reset every 12:00am. 10,000,000z + 1 DAILY_POINTS = 1 Platinum Coin (677).
  6. can you give me example? - Id: 504 AegisName: White_Potion Name: White Potion Type: Healing Buy: 1200 Weight: 150 Script: | percentheal 20,0;
  7. @Emistry how to do it on latest item db? bump for this comment
  8. +1 to this, @Racaae can you add every card count? thanksss
  9. 25053,[email protected]_DEADLY_POISON,chase,361,5,10000,0,100000,yes,self,myhpltmaxrate,60,,,,,,, 25053,[email protected]_DEADLY_POISON,attack,361,5,10000,0,100000,yes,self,myhpltmaxrate,60,,,,,,, Try this.
  10. /conf/battle/guild.conf // Activate guild skills delay by relog? // Official setting is 5 minutes (300000 ms), otherwise allow guild leaders to relog to cancel the 5 minute delay. // Note: This was changed in renewal in favor of individual skill cooldown. guild_skill_relog_delay: 300000 did you set this to 0?
  11. please help me make this up to level 999? # - Level: 240 # Points: 6405 # - Level: 241 # Points: 6456 # - Level: 242 # Points: 6507 # - Level: 243 # Points: 6558 # - Level: 244 # Points: 6609 # - Level: 245 # Points: 6660 # - Level: 246 # Points: 6712 # - Level: 247 # Points: 6764 # - Level: 248 # Points: 6816 # - Level: 249 # Points: 6868 # - Level: 250 # Points: 6920 # - Level: 251 # Points: 6973 # - Level: 252 # Points: 7026 # - Level: 253 # Points: 7079 # - Level: 254 # Points: 7132 # - Level: 255 # Points: 7185
  12. prontera,155,181,5 script Sample 718,{ setarray .CoinID, 677; setarray .Zeny, 10000000; while( 1 ){ mes "What service you want ?"; next; switch( select("Zeny to Coin:Coin to Zeny") ){ Case 1: mes "What Coin you want ?"; set [email protected]$,""; for( set [email protected],0; [email protected] < getarraysize( .CoinID ); set [email protected],[email protected] + 1 ){ mes "^0000FF"+getitemname( .CoinID[[email protected]] )+" : ^FF0000"+.Zeny[[email protected]]+"^000000 Zeny"; set [email protected]$,[email protected]$ + getitemname( .CoinID[[email protected]] )+":"; } set [email protected],select( [email protected]$ ) - 1; next; mes "Selected : ^00FF00"+getitemname( .CoinID[[email protected]] )+"^000000"; if( Zeny < .Zeny[[email protected]] ){ mes "It seem like you didnt have Enough Zeny for this."; next; break; } mes "You can exchange to ^FF0000"+( Zeny / .Zeny[[email protected]] )+" ^0000FF"+getitemname( .CoinID[[email protected]] )+"^000000 ."; mes "How many ^0000FF"+getitemname( .CoinID[[email protected]] )+"^000000 do you want ?"; input @Amount,0,( Zeny / .Zeny[[email protected]] ); if( [email protected] ) close; mes "You gained "[email protected]+" ^0000FF"+getitemname( .CoinID[[email protected]] )+"^000000."; set Zeny,Zeny - ( @Amount * .Zeny[[email protected]] ); getitem .CoinID[[email protected]],@Amount; next; break; Case 2: mes "Which Coin ?"; set [email protected]$,""; for( set [email protected],0; [email protected] < getarraysize( .CoinID ); set [email protected],[email protected] + 1 ){ mes "^0000FF"+getitemname( .CoinID[[email protected]] )+" : ^FF0000"+countitem( .CoinID[[email protected]] )+"^000000 Available"; set [email protected]$,[email protected]$ + getitemname( .CoinID[[email protected]] )+":"; } do{ set [email protected],select( [email protected]$ ) - 1; }while( !countitem( .CoinID[[email protected]] ) ); next; mes "Selected : ^00FF00"+getitemname( .CoinID[[email protected]] )+"^000000"; mes "You can exchange ^0000FF"+countitem( .CoinID[[email protected]] )+" "+getitemname( .CoinID[[email protected]] )+"^000000 to ^FF0000"+( countitem( .CoinID[[email protected]] ) * .Zeny[[email protected]] )+"^000000 Zeny."; mes "How many ^0000FF"+getitemname( .CoinID[[email protected]] )+"^000000 do you want to change into Zeny ?"; input @Amount,0,( ( 1000000000 - Zeny ) / .Zeny[[email protected]] ); if( [email protected] ) close; mes "You gained "+( @Amount * .Zeny[[email protected]] )+" Zeny."; delitem .CoinID[[email protected]],@Amount; set Zeny,Zeny + ( @Amount * .Zeny[[email protected]] ); next; break; } } } i want to add limit here maximum 50 coins per day that resets every 12:00am and every 1 coin needs 1 of #questpoints and 10,000,000 zeny. but for coins to zeny doesn't need the #questpoints.
  13. i get this part You can add more title here data\luafiles514\lua files\datainfo\titletable.lub i want is example: npc title giver: when you talk to the NPC will give you a reward same as the achievement. i want to add a title to a character when he finishes my custom quest.
  14. is there a way that a script quest npc will give a character a title? Example : Break the Seal Quest upon finishing the quest the character will get a custom title.
  15. @Easycore I already added it manually and compile it without an error but the vending skill doesn't work fine the mana will consumed but the vending skill doesn't work.
  16. @Easycore is this normal when applying a git? sorry its my 1st time applying a git using command.
  17. and what if about that pvp on mvp insight will scale the mvp monster HP ( example x2 HP of the MVP when 2 person on his range ). sorry for my bad english but that was a good concept.
  18. mes "[ ^336699Coin Master^000000 ]"; mes "How many coins would you like?"; set @mamount,0; input @mamount; if (zeny < 0) goto L_No; if (zeny < (10000000* @mamount)) goto L_No; if (checkweight(677,@mamount) == 0 ) goto L_OW; set dcoins, @mamount; set dcoins2, (dcoins2 + (@mamount)); //<-------------------- This Line set Zeny,(zeny - (10000000* @mamount)); getitem 677,@mamount; goto L_Thanks; I want to limit the coin exchange of my server for only 50 per day, how can i reset the "set dcoins2" for every player every "OnClock0000:". - script CoinsReset -1,{ OnInit: OnClock0000: //12am set dcoins2, 0; } Already try this code but it doesn't work. TIA ♥
  19. Having an Error on Character Select when using the 3rd job -> Body Style 1.
  20. ########################################################################### # Mob Item Ratio Database ########################################################################### # # Mob Item Ratio Settings # ########################################################################### # - Item AegisName of item to adjust. # Ratio Drop rate. # List: List of monster(s) affected (format <Aegis monster name>: true/false). (Defaulted to all monsters) ########################################################################### Header: Type: MOB_ITEM_RATIO_DB Version: 1 Body: - Item: Thanatos_Card Ratio: 50000 Making the ratio more than 69999 are getting error it has a limit of 6.99% droprate. how to fix this i want to make it 10%.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.