Jump to content

Jniko

Members
  • Posts

    42
  • Joined

  • Last visited

Posts posted by Jniko

  1. 52 minutes ago, Vietlubu said:

    Make sure you already disable academy.txt and enable novice.txt in /npc/re/scripts_jobs.conf

    https://github.com/rathena/rathena/blob/6a2c1229d03ed6e18321ce22fc00c0018098e8cb/npc/re/scripts_jobs.conf#L33

    Good luck!

    good day sir I already put comment on academy.txt and delete the comment on novice.txt, one thing changed the warp portal is now enabled unlike when academy.txt is on the warp portal at the new_1-1 is disabled

  2. I finished following the steps of the tutorial in the rathena github, but when i tried to connect to the server it says "rejected from server" and after trying to login again it says " failed to connect to server"

    Im just using localhost (xampp) for the database. 

    these are the only errors i see on the rathena; 

    logserv

    [Notice]: Authentication accepted (account: username, id: 1, ip: 25.12.37.142)
    [Status]: Connection of the char-server 'ragnarok' accepted.
    [Status]: Request for connection of username (ip: 127.0.0.1)
    [Notice]: Authentication accepted (account: username, id: 1, ip: 127.0.0.1)
    [Status]: Connection of the account 'username' accepted.
    [Info]: Closed connection from '127.0.0.1'.
    [Status]: Char-server 'ragnarok': authentication of the account 1 REFUSED (ip: 25.12.37.142).

    charserv

    [Info]: request connect - account_id:1/login_id1:121053700/login_id2:1367114834

    mapserv

    [Status]: Attempting to connect to Char Server. Please wait.
    [Status]: Connecting to 25.12.37.142:6121
    [Status]: Logging in to char server...
    [Warning]: Connection to Char Server lost.

    rejected from server already solved!

    but had a new problem, after creating character, im disconnected from the server. 

    [Warning]: clif_parse: Received unsupported packet (packet 0x70ee, 19 bytes received), disconnecting session #3.
    [Info]: Closed connection from '25.12.37.142'.
    [Warning]: clif_parse: Received unsupported packet (packet 0x70ee, 19 bytes received), disconnecting session #3.
    [Info]: Closed connection from '25.12.37.142'.
    [Warning]: clif_parse: Received unsupported packet (packet 0x70ee, 19 bytes received), disconnecting session #3.
    [Info]: Closed connection from '25.12.37.142'.

  3. On 5/8/2017 at 3:02 AM, Cyro said:

    change 

    getitem to

    getitembound itemid,quantity,boundtype;

     

    Sir Cyro, the n it will be 

    - script sample 1,{
    OnPCLoginEvent:
    if(!#givenStartItems) {
    set #givenStartItems, 1;
     

    getitembound itemid,quantity,boundtype;


    }
    end;
    }

     

    or i need to change the "boundtype?"

  4. Good day guys!

    i wanted to add a feature with a freebie items but I wanted the items to be non tradable.

    currently i have this

    Quote

    - script sample 1,{
    OnPCLoginEvent:
    if(!#givenStartItems) {
    set #givenStartItems, 1;
    getitem <item_id>, <quantity>;
    }
    end;
    }

     

  5. Good day to all,

    I currently have this code from @Cyro. its working fine but i need to increase the conversion to 1 pod = 50 rok points.

    can anyone teachme how to change it?
     

    prontera,104,77,5     script    Meleis    97,{
    
    set .@coinid,7179;
    mes "[^0000FFMelies^000000]";
    mes "Hi ^ff8800"+strcharinfo(0)+"^000000,";
    mes "What can i do for you?";
    mes "The Exchange ratio is 1:1";
    mes "Your RoK Point: [^ff0000"+#ROK_POINTS+"^000000]";
    
    switch(select("Cancel:Proof Of Donation  to RoK points"))
    {
    
        case 1: break;
    
        case 2:
            next;
    
            mes "[^0000FFMelies^000000]";
            mes "Please input the amount of coins that you want to exchange.";
            mes "Note: Put ^0000ff0^000000 to exit.";
    
                L_inpcoin:
            input @hcoins;
            set @hhcoins,@hcoins;
            if(@hhcoins == 0) { break; }
            if(countitem(.@coinid) < @hhcoins) { mes "* ^ff0000Please input a valid amount^000000"; mes "(Put ^0000ff0^000000 to exit)."; goto L_inpcoin; }
            
            next;
    
            delitem .@coinid,@hhcoins;
            set #ROK_POINTS,#ROK_POINTS+@hhcoins;
            mes "[^0000FFMeleis^000000]";
            mes "You've exchanged (^ff0000"+@hhcoins+"^000000) "+getitemname(.@coinid)+"(s). Total RoK Points: [^0000ff"+#ROK_POINTS+"^000000]";
            dispbottom "[Meleis] You've exchanged ("+@hhcoins+") "+getitemname(.@coinid)+"(s). Total RoK Points: ["+#ROK_POINTS+"]";
            
            break;
    
    //I know they weight 0 but just in case you change its weight
    
    if (!checkweight(.@coinid,@hhcash)) { mes "* ^ff0000You're overweight please store some items.^000000"; dispbottom "[Meleis] You're overweight please store some items."; break; }
    next;
    set #ROK_POINTS,#ROK_POINTS - @hhcash;
    getitem .@coinid,@hhcash;
    mes "[^0000FFMeleis^000000]";
    mes "You've exchanged (^ff0000"+@hhcash+"^000000) RoK Points to "+getitemname(.@coinid)+"(s). Total RoK Points: [^0000ff"+#ROK_POINTS+"^000000]";
    dispbottom "[Meleis] You've exchanged ("+@hhcash+") RoK Points to "+getitemname(.@coinid)+"(s). Total RoK Points: ["+#ROK_POINTS+"]";
    break;
    }
    
    close;
    
    OnInit:
        waitingroom "Pods Converter",0;
        end;
    
    }


     

  6. On 4/24/2017 at 1:48 AM, Cyro said:
    
    prontera,155,181,5	script	Sample#vip	4_F_KAFRA1,{
    
    	OnTalk:
    		if ( vip_status(0) ) {
    			mes "You're VIP.";
    		}
    		else {
    			mes "Buy VIP ?";
    			
    			.@i = select( 
    				.vip_day[0] + " Days",
    				.vip_day[1] + " Days",
    				.vip_day[2] + " Days"
    			) - 1;
    			
    			mes "VIP "+.vip_day[.@i]+" Days";
    			mes "Cost: "+.vip_cashpoint[.@i]+" or "+.vip_pod[.@i]+"x "+getitemname( .pod_id );
    			if ( select( "Pay by CashPoint","Pay by "+getitemname( .pod_id ) ) == 1 ) {
    				if ( #CASHPOINTS < .vip_cashpoint[.@i] ) {
    					mes "Not enough cash point. You got only "+#CASHPOINTS;
    				}
    				else {
    					#CASHPOINTS -= .vip_cashpoint[.@i];
    					vip_time ( .vip_day[.@i] * 1440 );
    				}
    			}
    			else {
    				if ( countitem( .pod_id ) < .vip_pod[.@i] ) {
    					mes "Not enough "+getitemname( .pod_id )+". You got only "+countitem( .pod_id );
    				}
    				else {
    					delitem .pod_id,.vip_pod[.@i];
    					vip_time ( .vip_day[.@i] * 1440 );
    				}
    			}
    		}
    		close;
    		
    	OnCheck:
    		if (vip_status(0)) {
    			dispbottom "Expire Time : "+vip_status(3);
    		}
    		end;
    		
    	OnInit:
    		.pod_id = 7179;
    		
    		setarray .vip_day,1,7,30;
    		setarray .vip_cashpoint,4000,7000,10000;
    		setarray .vip_pod,1,2,3;
    		bindatcmd("vip", strnpcinfo(3)+"::OnTalk");
    		bindatcmd("vipstatus", strnpcinfo(3)+"::OnCheck");
    		end;
    }

    this script for 1,7,30 vip subscription, with commands @vip @vipstatus //credits to emistry 

    
    2617,auto_trade_voucher,Voucher of autotrade,2,10000,,200,,,,,0xFFFFFFFF,7,2,,,,,,{ atcommand "@autotrade"; },{},{}

    this is autotrade coupon 

    Thank you again Cyro will try this tomorrow

  7. On 8/21/2013 at 1:36 PM, chromus28 said:

    guys my premium npc from emistry is working fine but when im paying the 10 pod this is popping out

     

    [Warning]: script:op_2num: overflow detected op=C_MUL i1=1377061112 i2=1000
    [Debug]: Source (NPC): Premium NPC at prontera (151,185)
    [Warning]: script:op_2num: overflow detected op=C_MUL i1=1377061112 i2=1000
    [Debug]: Source (NPC): Premium NPC at prontera (151,185)
     
    here is my script
     
    
    prontera,151,185,6 script Premium NPC 435,{
    
    mes "Want to be full time Premium Users for 1 week ?";
    mes "Then give me "+10+" x "+getitemname(7179);
    if( countitem( 7179 ) >= 10 ){
    if( select("YES:NO") == 1 ){
    delitem 7179,10;
    set #PremiumUser,gettimetick(2) + ( .Day * 3600 * 24 );
    sc_start SC_ITEMBOOST,( #PremiumUser * 1000 ),200;
    sc_start SC_EXPBOOST,( #PremiumUser * 1000 ),200;
    mes "Done. enjoy your Premium Services for 1 Week.";
    }
    }
    close;
    
    OnPCLoginEvent:
    if( #PremiumUser > gettimetick(2) ){
    sc_start SC_ITEMBOOST,( ( #PremiumUser - gettimetick(2) ) * 1000 ),200;
    sc_start SC_EXPBOOST,( ( #PremiumUser - gettimetick(2) ) * 1000 ),200;
    }
    end;
    }

     

     

     

    problem solve by myself lol thanks for the great script

     

     

    is this the final code sir?

  8. Good day!

    Does anyone have any tutorials or knows how to setup a specific ragnarok episode? I wanted to set my server as Episode 11.3 but i do not know how. 

    Thanks in advance

     

  9. On 4/20/2017 at 11:34 PM, Cyro said:

    rok point shop

    
    prontera,155,181,5	pointshop	rok Point Shop	757,#ROK_POINT,909:1,607:1

    cashshop

    
    prontera,155,181,5	cashshop	cash Point Shop	757,909:1,607:1

     

    Cyro do you know how to remove this or change the #ROK_POINTS to Points?

    Capture.PNG

  10. 3 minutes ago, Cyro said:
    
    prt_in,38,107,7	script	Meleis	97,{
    
    set .@coinid,7179;
    mes "[^0000FFMelies^000000]";
    mes "Hi ^ff8800"+strcharinfo(0)+"^000000,";
    mes "What can i do for you?";
    mes "The Exchange ratio is 10:1";
    mes "Your RoK Point: [^ff0000"+#ROK_POINTS+"^000000]";
    switch(select("Cancel:Chaos coins to RoK points:RoK points to Chaos coins"))
    {
    
    case 1: break;
    case 2:
    next;
    mes "[^0000FFMelies^000000]";
    mes "Please input the amount of coins that you want to exchange.";
    mes "Note: Put ^0000ff0^000000 to exit.";
    
    L_inpcoin:
    input @hcoins;
    set @hhcoins,@hcoins;
    if(@hhcoins == 0) { break; }
    if(countitem(.@coinid) < @hhcoins) { mes "* ^ff0000Please input a valid amount^000000"; mes "(Put ^0000ff0^000000 to exit)."; goto L_inpcoin; }
    next;
    delitem .@coinid,@hhcoins;
    set #ROK_POINTS,#ROK_POINTS+@hhcoins;
    mes "[^0000FFMeleis^000000]";
    mes "You've exchanged (^ff0000"+@hhcoins+"^000000) "+getitemname(.@coinid)+"(s). Total RoK Points: [^0000ff"+#ROK_POINTS+"^000000]";
    dispbottom "[Meleis] You've exchanged ("+@hhcoins+") "+getitemname(.@coinid)+"(s). Total RoK Points: ["+#ROK_POINTS+"]";
    break;
    case 3:
    next;
    mes "[^0000FFMeleis^000000]";
    mes "Please input the amount of RoK that you want to exchange.";
    mes "Note: Put ^0000ff0^000000 to exit.";
    
    L_inpcash:
    input @hcash;
    set @hhcash,@hcash;
    if(@hhcash == 0) { break; }
    if(#ROK_POINTS < @hhcash) { mes "* ^ff0000Please input a valid amount^000000"; mes "(Put ^0000ff0^000000 to exit)."; goto L_inpcash; }
    
    //I know they weight 0 but just in case you change its weight
    if (!checkweight(.@coinid,@hhcash)) { mes "* ^ff0000You're overweight please store some items.^000000"; dispbottom "[Meleis] You're overweight please store some items."; break; }
    next;
    set #ROK_POINTS,#ROK_POINTS - @hhcash;
    getitem .@coinid,@hhcash;
    mes "[^0000FFMeleis^000000]";
    mes "You've exchanged (^ff0000"+@hhcash+"^000000) RoK Points to "+getitemname(.@coinid)+"(s). Total RoK Points: [^0000ff"+#ROK_POINTS+"^000000]";
    dispbottom "[Meleis] You've exchanged ("+@hhcash+") RoK Points to "+getitemname(.@coinid)+"(s). Total RoK Points: ["+#ROK_POINTS+"]";
    break;
    }
    
    close;
    
    OnInit:
    	waitingroom "RoK Exchanger",0;
    	end;
    
    }

    try this script

    It is working cyro but it is for coins, do have anything for proof of donation to rok or Cashpoint?

  11. On 4/20/2017 at 11:09 PM, crazyarashi said:

    Yes it is correct for a cashshop :)) but i personally think it's better to use a dynamic shop with #CASHPOINT Currency :))

    how can I use the dynamic shop? do you have any sample scripts?

×
×
  • Create New...