Jump to content

Radian

Members
  • Posts

    1546
  • Joined

  • Last visited

  • Days Won

    19

Community Answers

  1. Radian's post in PVP ROOM [pvp off when you enter] was marked as the answer   
    You mean when you enter the room " pvp is off " ?
     
    if yes, just add this
    mapname<tab>mapflag<tab>pvp //Duplicates
  2. Radian's post in HELP! NPC Script Error was marked as the answer   
    here's the fixed script http://pastebin.com/rbi6T7MT
  3. Radian's post in Guild MSG problem was marked as the answer   
    I think this can answer your question
    // When to re-display the guild notice // Upon teleporting (regardless of changing maps): 2 (official) // Upon changing maps: 1 // Do not re-display: 0 (disabled) guild_notice_changemap: 2 which you can see it here https://github.com/rathena/rathena/blob/master/conf/battle/guild.conf
  4. Radian's post in PVP NPC with Ladder(ranking) NPC was marked as the answer   
    How about this http://rathena.org/board/topic/58222-ghosts-scripts-latest-ghosts-pvp-system-v13/it has a pvp ladder and pvp announcement features
     
    now you want to use pvp_n_5-5 & pvp_y_1-2 map only right? on the script find this one
    setarray .PvPMap$[0], "All"; //List all pvp maps here (Index 0:"All" to enable all maps) and replace it with this
    setarray .PvPMap$[0], "pvp_n_5-5", "pvp_y_1-2"; //List all pvp maps here (Index 0:"All" to enable all maps) and for the top 20 Ladder you want. look for this
    //PvP Ladder set .Top, 10; //What is the length of the list? and change it to this
    //PvP Ladder set .Top, 20; //What is the length of the list? here's the links credits to Ghost!
     
    http://pastebin.com/xSNqYtJm[ script ] 
    http://pastebin.com/dEqrkczy[ Sql Table ] required !
  5. Radian's post in Vote points npc edit was marked as the answer   
    You mean the NPC will show some information first before it will open the Shop?
     
    try this http://pastebin.com/acEvpgZm
  6. Radian's post in Problem: Making New Char No Background was marked as the answer   
    try to put this one on your texture/..../login_interface
     
    win_make2.rar
     
  7. Radian's post in PvP Ladder Script with Broadcast Rank Change was marked as the answer   
    I think this is what you are looking for.
    http://rathena.org/board/topic/58222-ghosts-scripts-latest-ghosts-pvp-system-v13/
  8. Radian's post in Freebies NPC was marked as the answer   
    Please show a map-server error so it will be easy.
  9. Radian's post in Question.. was marked as the answer   
    Changing this #sorry into your desired variable. it will give another freebies. example #sorryy
  10. Radian's post in Custom Points Shop was marked as the answer   
    Use Emistry Multi Currency shop
    // Settings : // - Only required to edit the ShopSetting() Function // Notes : You may also add / remove Menu ( If any ) // - Shop Currency can be either ItemID or Variable Name, but must write within Quotation Marks ( "" ) // Ex. of Variable. -> Zeny , #CASHPOINTS , #KAFRAPOINTS , CustomVariable , #CustomVariable // - ERROR Message are used to show Invalid Settings in your NPC. // Leave this alone... - shop Emistry_Shop -1,512:100 prontera,155,181,5 script Sample 757,{ function ShopSettings; function ValidateCost; function CurrencyInfo; function ClearData; function ValueConvert; function ErrorNotice; mes "Each Shop from the Menu may purchase using ^FF0000Different Currency^000000."; mes "^00FF00____________________________^000000"; mes "So,Which shop you would like to look at it"; next; // Menu Selection select("Shop 1","Shop 2","Shop 3"); ClearData(); ShopSettings( @menu ); npcshopitem "Emistry_Shop",512,100; npcshopdelitem "Emistry_Shop",512; for(set .@i,0; .@i < getarraysize( @ItemLists ); set .@i,.@i+1) npcshopadditem "Emistry_Shop",@ItemLists[.@i],@ItemCost[.@i]; mes "Okay...wait awhile"; mes "^00FF00____________________________^000000"; CurrencyInfo( @Currency$ ); mes "^00FF00____________________________^000000"; callshop "Emistry_Shop",1; npcshopattach "Emistry_Shop"; end; function ShopSettings { switch( getarg(0) ){ Case 1: // Currency [ Item ID / Variable Name ] set @Currency$,"7179"; // Item ID Lists setarray @ItemLists[0],6153,7227; // Item Price setarray @ItemCost[0],100,1; break; Case 2: // Currency [ Item ID / Variable Name ] set @Currency$,"7227"; // Item ID Lists setarray @ItemLists[0],2306,2302,2303,2304,2305,2301; // Item Price setarray @ItemCost[0],2,2,3,4,5,6; break; Case 3: // Currency [ Item ID / Variable Name ] set @Currency$,"#CASHPOINTS"; // Item ID Lists setarray @ItemLists[0],2306,2302,2303,2304,2305,2301; // Item Price setarray @ItemCost[0],20,22,34,445,52,641; break; // Case 4,5,6.....etc... default: ErrorNotice( "Invalid Menu Selection for Menu "+@menu+"." ); close; } if( @Currency$ == "" ) ErrorNotice( "Invalid Currency Setting in Menu "+@menu+" ." ); if( getarraysize( @ItemCost ) != getarraysize( @ItemLists ) || getarraysize( @ItemLists ) != getarraysize( @ItemCost ) ) ErrorNotice( "Missing or Extra Value of Item or Cost Settings in Menu "+@menu+" ." ); return; } function ErrorNotice { mes "^FF0000ERROR^000000 - "+getarg(0); mes "^00FF00____________________________^000000"; mes "Inform this Message to ^0000FFGame Staffs^000000 immediately !"; close; } function CurrencyInfo { if( getitemname( atoi( getarg(0) ) ) != "null" ){ mes "Item Currency : ^FF0000"+getitemname( atoi( getarg(0) ) )+"^000000"; mes "Available Amount : ^0000FF"+ValueConvert( countitem( atoi( getarg(0) ) ) )+"^000000"; }else if( getitemname( atoi( getarg(0) ) ) == "null" ){ mes "Variable Currency : ^FF0000"+getarg(0)+"^000000"; mes "Available Amount : ^0000FF"+ValueConvert( getd( getarg(0) ) )+"^000000"; } return; } function ValidateCost { if( getitemname( atoi( getarg(0) ) ) != "null" ){ if( countitem( atoi( getarg(0) ) ) < getarg(1) ) return 1; }else{ if( getd( getarg(0) ) < getarg(1) ) return 1; } return 0; } function ClearData { set @Currency$,""; set @TotalCost,0; deletearray @bought_nameid[0],getarraysize( @bought_nameid ); deletearray @bought_quantity[0],getarraysize( @bought_quantity ); deletearray @ItemLists[0],getarraysize( @ItemLists ); deletearray @ItemCost[0],getarraysize( @ItemCost ); return; } function ValueConvert { set .@num, atoi(""+getarg(0)); if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0); set .@l, getstrlen(""+.@num); for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) { set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$; if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$; } return .@num$; } OnBuyItem: ShopSettings( @menu ); for(set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1) for(set @j,0; @j < getarraysize( @ItemLists ); set @j,@j+1) if( @ItemLists[@j] == @bought_nameid[@i] ) set @TotalCost,@TotalCost + ( @ItemCost[@j] * @bought_quantity[@i] ); mes "^FF0000 BILLING LIST^000000"; mes "^00FF00____________________________^000000"; for( set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1 ) mes "^FF0000"+@bought_quantity[@i]+" x ^0000FF"+getitemname( @bought_nameid[@i] )+"^000000"; mes "^00FF00____________________________^000000"; if( getitemname( atoi( @Currency$ ) ) != "null" ) mes "Total Cost : ^0000FF"+ValueConvert( @TotalCost )+" x "+getitemname( atoi( @Currency$ ) )+"^000000"; else if( getitemname( atoi( @Currency$ ) ) == "null" ){ mes "Total Cost : ^0000FF"+ValueConvert( @TotalCost )+" "+@Currency$+"^000000"; } mes "^00FF00____________________________^000000"; if( ValidateCost( @Currency$,@TotalCost ) ){ if( getitemname( atoi( @Currency$ ) ) != "null" ) mes "[ ^FF0000X^000000 ] Insufficient ^0000FF"+getitemname( atoi( @Currency$ ) )+"^000000"; else{ mes "[ ^FF0000X^000000 ] Insufficient ^0000FF"+@Currency$+"^000000"; } }else{ if( select( "^0000FFPurchase^000000:Cancel" ) == 1 ){ if( getitemname( atoi( @Currency$ ) ) != "null" ) delitem atoi( @Currency$ ),@TotalCost; else{ set getd( @Currency$ ),getd( @Currency$ ) - @TotalCost; } for(set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1) getitem @bought_nameid[@i],@bought_quantity[@i]; message strcharinfo(0),"Purchased "+getarraysize( @bought_nameid )+" Items."; mes "Thank you for shopping."; } } ClearData(); close; } just edit this 
    set @Currency$,"#CASHPOINTS"; into your custom variable or it should look like this
    set @Currency$,"#monster_point";
  11. Radian's post in Change renewal to pre-renewal... Doubt! was marked as the answer   
    by uncommenting this line
    //#define PRERE  all renewal mechanics will be set to pre renewal
     
     
    Yes it will change, since you setup the npc & warps on renewal setting and then you change it into pre renewal everything will change from renewal to pre renewal setup.
     
    there are renewal database / pre renewal database, all you need to do is look for the pre renewal or which system you are using then enable those npc.
  12. Radian's post in Antibot script was marked as the answer   
    I think removing this will be the answer. im not 100% sure
    OnNPCKillEvent: set Kill,Kill+1; if( Kill >= rand( 50,100 ) ){
  13. Radian's post in SOCKET #2 CODE 10060 was marked as the answer   
    try to use 127.0.0.1 if you are running on your pc/localhost
     
    on this lines
    char_athena.conf login_ip: 127.0.0.1 char_ip: 127.0.0.1 map_athena.conf char_ip: 127.0.0.1 map_ip: 127.0.0.1
×
×
  • Create New...