Jump to content

Hurtsky

Members
  • Posts

    118
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by Hurtsky

  1. On 1/30/2018 at 11:33 AM, Tassadar said:

    good evening. Could you put some option for me to summon the monster in full size? I can do this to invoke via npc / mobs. I want to be able to do this on your NPC.

    Thank you very much in advance.

    what you means by full size?

  2. 1 hour ago, guhx said:

    Hi, I use gepard on my server, and I wanted to block the same person from accessing the same map with two accounts. I tried to change the last_ip to last_unique_id, but it blocks all people from accessing the map if there is already a person in it.

     

    
    -	script	dualclientkicker	-1,{
    OnPCLoadMapEvent:
    	set .@charmap$, strcharinfo(3);
    	query_sql("SELECT FIND_IN_SET('"+.@charmap$+"', '"+.maps$+"');",.@q);
    	if(.@charmap$!=.tmp$[(.@q-1)]) end;
    	set .@len, query_sql("SELECT DISTINCT `account_id` FROM `char` WHERE `account_id` IN (SELECT `account_id` FROM `login` WHERE `last_ip` = (SELECT `last_ip` FROM `login` WHERE `account_id`="+getcharid(3)+")) AND `online` <> 0;",.@a);
    	if(.@len-1) {
    		for(set(.@d,0);.@d<.@len;set(.@d,.@d+1)) {
    			getmapxy(.@map$,.@x,.@y,0,rid2name(.@a[.@d]));
    			if(.tmp$[(.@q-1)]==.@map$&&rid2name(.@a[.@d])!=strcharinfo(0)) {
    				dispbottom "Duel accounts not allowed in WOE.";
    				atcommand "@kick "+strcharinfo(0);
    			}
    		}
    	}
    	end;
    	
    OnInit:
    	set        .maps$  ,	"aldeg_cas01,gefg_cas01,payg_cas01,prtg_cas01";
    	explode(   .tmp$   ,    .maps$, ",")                                  ;
    	set        .lens   ,	getarraysize(.tmp$)                           ;
    	for(set .a,0;.a<.lens;set .a,.a+1)
    		setmapflag .tmp$[.a],	mf_loadevent ;
    }

     

    here you go, please tick it as answer and upvote it :)

    -	script	dualclientkicker	-1,{
    	end;
    OnPCLoadMapEvent:
    	//debugmes "map loaded";
    	query_sql "SELECT `char`.`name` FROM `char` LEFT JOIN login ON `char`.account_id = login.account_id WHERE last_ip = ( SELECT last_ip FROM login WHERE account_id = " + playerattached() + " ) AND online AND `char`.account_id != " + playerattached() , .@name$;
    	for ( .@i = 0; .@i < getarraysize ( .@name$ ); .@i = .@i++ ) {
    		getmapxy .@map$, .@x, .@y, 0, .@name$[.@i];
    		if ( .@map$ == .current_maps$ ) {
    			dispbottom "Duel accounts not allowed in this map.";
    			warp "SavePoint" , 0 , 0;
    			end;
    		}
    	}
    	end;
    	
    OnInit:
    	setarray .current_maps$[0] , "prontera" , "geffen", "gef_fild00";
    	.size_maps = getarraysize ( .current_maps$ );
    	for ( .i = 0; .i < .size_maps; .i++)
    		setmapflag .current_maps$[.i],	mf_loadevent ;
    	end;
    }

     

    • Upvote 1
  3. 7 hours ago, pajodex said:

    Also for attack. But only monsters if possible. Evil clones are the ones who attacks players, right? 

    here you go

    -	script	Clone NPC	-1,{
    
    	if ( slave == 0 ) {
    		getmapxy ( .@map$ , .@x , .@y , UNITTYPE_PC );
    		.@slaveID = clone ( .@map$, .@x , .@y , "" , getcharid(0), getcharid(0), 0x1089 );
    		if ( SEX == SEX_MALE )
    			.@sex = SEX_FEMALE; 
    		else
    			.@sex = SEX_MALE; 
    		setunitdata .@slaveID, UMOB_SEX, .@sex;
    		slave = 1;
    	}
    	end;
    
    OnPCDieEvent:
    	slave = 0;
    	end;
    }
    prontera,170,195,4	duplicate(Clone NPC)	Clone NPC#pron	894

     

    • Upvote 1
  4. 51 minutes ago, Pink Guy said:

    Yep. Exactly what you said.

    here the fixed one

    prontera,100,200,3	script	VIPBuffer	78,{
    
    	specialeffect2 EF_HEAL2; percentheal 100,100;
    	specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,600000,10;
    	specialeffect2 EF_BLESSING; sc_start SC_BLESSING,600000,10;
    	
    	if ( countitem ( .VIP_item ) ) {
    		specialeffect2 EF_ANGELUS; sc_start SC_ANGELUS,600000,10;
    		specialeffect2 EF_SUFFRAGIUM; sc_start SC_SUFFRAGIUM,600000,3;
    		specialeffect2 EF_IMPOSITIO; sc_start SC_IMPOSITIO,600000,5;
    		specialeffect2 EF_GLORIA; sc_start SC_GLORIA,600000,5;
    		specialeffect2 EF_MAGNIFICAT; sc_start SC_MAGNIFICAT,600000,5;
    		specialeffect2 EF_CHEMICALPROTECTIOn; sc_start SC_CP_WEAPON,600000,5;
    		sc_start SC_CP_ARMOR,600000,5;
    		sc_start SC_CP_SHIELD,600000,5;
    		sc_start SC_CP_HELM,600000,5;
    		specialeffect2 EF_ASSUMPTIO; sc_start SC_ASSUMPTIO,600000,5;
    		sc_start SC_ADRENALINE2,600000,1;
    		specialeffect2 EF_MAXPOWER; sc_start SC_MAXIMIZEPOWER,600000,5;
    		specialeffect2 EF_PERFECTION; sc_start SC_WEAPONPERFECTION,600000,5;
    		specialeffect2 EF_ENDURE; sc_start SC_ENDURE,600000,10;
    		sc_start SC_KAUPE,600000,3;
    		sc_start SC_KAITE,600000,7;
    		sc_start SC_STRFOOD,600000,5;
    		sc_start SC_AGIFOOD,600000,5;
    		sc_start SC_VITFOOD,600000,5;
    		sc_start SC_INTFOOD,600000,5;
    		sc_start SC_DEXFOOD,600000,5;
    		sc_start SC_LUKFOOD,600000,5;
    
    		switch ( CLASS ) {
    			case 18:
    			case 4019:
    			case 4071:
    			case 4078:
    				skilleffect "SL_ALCHEMIST",0;
    				sc_start4 SC_SPIRIT,9999999,5,455,0,0;
    				break;
    			case 15:
    			case 4016:
    			case 4070:
    			case 4077:
    				skilleffect "SL_MONK",0;
    				sc_start4 SC_SPIRIT,9999999,5,447,0,0;
    				break;
    			case 4047:
    				skilleffect "SL_STAR",0;
    				sc_start4 SC_SPIRIT,9999999,5,448,0,0;
    				break;
    			case 16:
    			case 4017:
    			case 4067:
    			case 4074:
    				skilleffect "SL_SAGE",0;
    				sc_start4 SC_SPIRIT,9999999,5,449,0,0;
    				break;
    			case 14:
    			case 4015:
    			case 4066:
    			case 4073:
    				skilleffect "SL_CRUSADER",0;
    				sc_start4 SC_SPIRIT,9999999,5,450,0,0;
    				break;
    			case 23:
    			case 4190:
    				skilleffect "SL_SUPERNOVICE",0;
    				sc_start4 SC_SPIRIT,9999999,5,451,0,0;
    				break;
    			case 7:
    			case 4008:
    			case 4054:
    			case 4060:
    				skilleffect "SL_KNIGHT",0;
    				sc_start4 SC_SPIRIT,9999999,5,452,0,0; 
    				break;
    			case 9:
    			case 4010:
    			case 4055:
    			case 4061:
    				skilleffect "SL_WIZARD",0;
    				sc_start4 SC_SPIRIT,9999999,5,453,0,0;
    				break;
    			case 8:
    			case 4009:
    			case 4057:
    			case 4063:
    				skilleffect "SL_PRIEST",0;
    				sc_start4 SC_SPIRIT,9999999,5,454,0,0;
    				break;
    			case 19:
    			case 20:
    			case 4020:
    			case 4021:
    			case 4068:
    			case 4069:
    			case 4075:
    			case 4076:
    				skilleffect "SL_BARDDANCER",0;
    				sc_start4 SC_SPIRIT,9999999,5,455,0,0;
    				break;
    			case 17:
    			case 4018:
    			case 4072:
    			case 4079:
    				skilleffect "SL_ROGUE",0;
    				sc_start4 SC_SPIRIT,9999999,5,456,0,0;
    				break;
    			case 12:
    			case 4013:
    			case 4059:
    			case 4065:
    				skilleffect "SL_ASSASIN",0;
    				sc_start4 SC_SPIRIT,9999999,5,457,0,0;
    				break;
    			case 10:
    			case 4011:
    				skilleffect "SL_BLACKSMITH",0;
    				sc_start4 SC_SPIRIT,9999999,5,458,0,0;
    				break;
    			case 11:
    			case 4012:
    			case 4056:
    			case 4062:
    				skilleffect "SL_HUNTER",0;
    				sc_start4 SC_SPIRIT,9999999,5,460,0,0;
    				break;
    			case 4049:
    				skilleffect "SL_SOULLINKER",0;
    				sc_start4 SC_SPIRIT,9999999,5,461,0,0;
    				break;
    			default:
    				break;
    		}
    	}
    	end;
    	
    OnInit:
    	.VIP_item = 3000; //itemId
    	end;
    }

     

    • Upvote 2
  5. you haven't tick my last answer as answer and upvote it  , btw here the modified script

    -	script	WorldBoss	-1 {
    
    OnClock0800:
    OnNPCKillEvent:
    	.@map$ = .townMap$[rand ( getarraysize ( .townMap$ ) - 1 )];
    	.@mins = .sleep / 60000;
    	announce "[World Boss] A World Boss will appeared in " + .@mins + " minutes";
    	sleep .sleep;
    	areamonster .@map$, 0, 0, 250, 250, "--ja--", .wBossId, 1, strnpcinfo(3) + "::OnWBossDied";
    	announce "[World Boss] A World Boss appeared in " + .@map$ + " to avenge all those dead monsters adventurers killed!", bc_all, 0xFF0000;
    	end;
    	
    OnWBossDied:
    	announce "[World Boss] " + strcharinfo(0) + " killed the World Boss! Congratulations!", bc_all, 0xFF0000;
    	getitem .rewardId, .rewardCount;
    	end;
    	
    OnInit:
    	setarray .townMap$[0],"prontera","geffen","morocc","payon","izlude","alberta","aldebaran","brasilis","dewata"; //to fill
    	.wBossId = 1931;		// monsterID
    	.rewardId = 512;		// reward ID
    	.rewardCount = 50;		// how many rewards
    	.sleep = 60000; 		// 60000ms = 1min
    	end;
    }

     

    • Upvote 1
  6. here you go

     

    prontera,100,200,3	script	VIPBuffer	78,{
    
    	specialeffect2 EF_HEAL2; percentheal 100,100;
    	specialeffect2 EF_INCAGILITY; sc_start SC_INCREASEAGI,600000,10;
    	specialeffect2 EF_BLESSING; sc_start SC_BLESSING,600000,10;
    	
    	if ( vip_status ( VIP_STATUS_ACTIVE ) ) {
    		if ( countitem ( .VIP_item ) ) {
    			specialeffect2 EF_ANGELUS; sc_start SC_ANGELUS,600000,10;
    			specialeffect2 EF_SUFFRAGIUM; sc_start SC_SUFFRAGIUM,600000,3;
    			specialeffect2 EF_IMPOSITIO; sc_start SC_IMPOSITIO,600000,5;
    			specialeffect2 EF_GLORIA; sc_start SC_GLORIA,600000,5;
    			specialeffect2 EF_MAGNIFICAT; sc_start SC_MAGNIFICAT,600000,5;
    			specialeffect2 EF_CHEMICALPROTECTIOn; sc_start SC_CP_WEAPON,600000,5;
    				sc_start SC_CP_ARMOR,600000,5;
    				sc_start SC_CP_SHIELD,600000,5;
    				sc_start SC_CP_HELM,600000,5;
    			specialeffect2 EF_ASSUMPTIO; sc_start SC_ASSUMPTIO,600000,5;
    				sc_start SC_ADRENALINE2,600000,1;
    			specialeffect2 EF_MAXPOWER; sc_start SC_MAXIMIZEPOWER,600000,5;
    			specialeffect2 EF_PERFECTION; sc_start SC_WEAPONPERFECTION,600000,5;
    			specialeffect2 EF_ENDURE; sc_start SC_ENDURE,600000,10;
    				sc_start SC_KAUPE,600000,3;
    				sc_start SC_KAITE,600000,7;
    				sc_start SC_STRFOOD,600000,5;
    				sc_start SC_AGIFOOD,600000,5;
    				sc_start SC_VITFOOD,600000,5;
    				sc_start SC_INTFOOD,600000,5;
    				sc_start SC_DEXFOOD,600000,5;
    				sc_start SC_LUKFOOD,600000,5;
    
    			switch (Class) {
    
    			case 18:
    			case 4019:
    			case 4071:
    			case 4078:
    				skilleffect "SL_ALCHEMIST",0;
    				sc_start4 SC_SPIRIT,9999999,5,455,0,0;
    				break;
    			case 15:
    			case 4016:
    			case 4070:
    			case 4077:
    				skilleffect "SL_MONK",0;
    				sc_start4 SC_SPIRIT,9999999,5,447,0,0;
    				break;
    			case 4047:
    				skilleffect "SL_STAR",0;
    				sc_start4 SC_SPIRIT,9999999,5,448,0,0;
    				break;
    			case 16:
    			case 4017:
    			case 4067:
    			case 4074:
    				skilleffect "SL_SAGE",0;
    				sc_start4 SC_SPIRIT,9999999,5,449,0,0;
    				break;
    			case 14:
    			case 4015:
    			case 4066:
    			case 4073:
    				skilleffect "SL_CRUSADER",0;
    				sc_start4 SC_SPIRIT,9999999,5,450,0,0;
    				break;
    			case 23:
    			case 4190:
    				skilleffect "SL_SUPERNOVICE",0;
    				sc_start4 SC_SPIRIT,9999999,5,451,0,0;
    				break;
    			case 7:
    			case 4008:
    			case 4054:
    			case 4060:
    				skilleffect "SL_KNIGHT",0;
    				sc_start4 SC_SPIRIT,9999999,5,452,0,0; 
    				break;
    			case 9:
    			case 4010:
    			case 4055:
    			case 4061:
    				skilleffect "SL_WIZARD",0;
    				sc_start4 SC_SPIRIT,9999999,5,453,0,0;
    				break;
    			case 8:
    			case 4009:
    			case 4057:
    			case 4063:
    				skilleffect "SL_PRIEST",0;
    				sc_start4 SC_SPIRIT,9999999,5,454,0,0;
    				break;
    			case 19:
    			case 20:
    			case 4020:
    			case 4021:
    			case 4068:
    			case 4069:
    			case 4075:
    			case 4076:
    				skilleffect "SL_BARDDANCER",0;
    				sc_start4 SC_SPIRIT,9999999,5,455,0,0;
    				break;
    			case 17:
    			case 4018:
    			case 4072:
    			case 4079:
    				skilleffect "SL_ROGUE",0;
    				sc_start4 SC_SPIRIT,9999999,5,456,0,0;
    				break;
    			case 12:
    			case 4013:
    			case 4059:
    			case 4065:
    				skilleffect "SL_ASSASIN",0;
    				sc_start4 SC_SPIRIT,9999999,5,457,0,0;
    				break;
    			case 10:
    			case 4011:
    				skilleffect "SL_BLACKSMITH",0;
    				sc_start4 SC_SPIRIT,9999999,5,458,0,0;
    				break;
    			case 11:
    			case 4012:
    			case 4056:
    			case 4062:
    				skilleffect "SL_HUNTER",0;
    				sc_start4 SC_SPIRIT,9999999,5,460,0,0;
    				break;
    			case 4049:
    				skilleffect "SL_SOULLINKER",0;
    				sc_start4 SC_SPIRIT,9999999,5,461,0,0;
    				break;
    			default:
    				break;
    			}
    		}
    	}
    	end;
    	
    OnInit:
    	.VIP_item = 3000; //itemId
    	end;
    }

     

    • Upvote 1
  7. 10 hours ago, frankcastle11 said:

    Now this is what I'm talking about! It works perfectly so far! Resets everything clean! I'm gonna test this out extensively though. But so far it is perfect! Thank you!

    just tick that reply as answer and upvote it. thats will help another user also :)

  8. 7 hours ago, frankcastle11 said:

    Thanks! It works save for skill_point can't be set to 0. I mean it resets status and skill points but skill points need to be set to 0 if you're starting out as a level 1 Novice otherwise you'd have left over skill points and won't be able to change jobs. I tried it with this:

    
    query_sql "UPDATE `char` SET `skill_point` = 0 WHERE `char_id` = "+ getcharid(0);

    It works when you try it straight on the database but not in game on an active character. The base_level and status_point doesn't rollback to level 1 and 25 status points but I was told it's fine as long the status points are reset and can be realocated and it wouldn't be an issue changing jobs.

    i see, then just use this, it will reset your stats and skills point to what novice at first time creation

    prontera,160,186,6	script	Reset	998,{
    	// change to novice
    	jobchange 0;
    	//  reset all
    	resetlvl 1;
    	atcommand "@reset";
    	end;
    }

     

    • Upvote 1
  9. 10 hours ago, Jey said:

    "Please check total character numbers?" Did you increase the character slots, or do you have more character db entries than character slots? I'm using the same client, and didn't run into that issue yet.

     

    Edit: But I also haven't tried to create a character using _M/_F. Try to create the account directly in the database

    fixed, by just changing the 

    #if PACKETVER > 20170517

    just like @sader1992 said. thank you :)

  10. Hello guys, 

    I'm testing client 20170517, and getting this message

    Spoiler

    Capture.PNG.300458624913b359cbfed17e67ee7464.PNG

     

    even after i get this message i still able to login the game (locally) and play like having no problem, but i still curious why i get this message

    here my local server setting:

    #ifndef _CONFIG_PACKETS_H_
    #define _CONFIG_PACKETS_H_
    
    /**
     * rAthena configuration file (http://rathena.org)
     * For detailed guidance on these check http://rathena.org/wiki/SRC/config/
     **/
    
    #ifndef PACKETVER
        #define PACKETVER 20170517
    #endif
    
    #ifndef PACKETVER_RE
        /// From this point on only kRO RE clients are supported
        #if PACKETVER > 20170517
            #define PACKETVER_RE
        #endif
    #endif
    
    #if PACKETVER >= 20110817
        /// Comment to disable the official packet obfuscation support.
        /// This requires PACKETVER 2011-08-17 or newer.
        #ifndef PACKET_OBFUSCATION
            #define PACKET_OBFUSCATION
    
            // Define these inside src/custom/defines_pre.h or src/custom/defines_post.h
            //#define PACKET_OBFUSCATION_KEY1 <key1>
            //#define PACKET_OBFUSCATION_KEY2 <key2>
            //#define PACKET_OBFUSCATION_KEY3 <key3>
    
            /// Comment this to disable warnings for missing client side encryption
            #define PACKET_OBFUSCATION_WARN
        #endif
    #else
        #if defined(PACKET_OBFUSCATION)
            #error You enabled packet obfuscation for a version which is too old. Minimum supported client is 2011-08-17.
        #endif
    #endif

    i createad the ID using _F/_M, 

    and diff the client using @secret Modified Nemo as like suggested in 

    my rathena hash is 114bebac68df32e3d9eda3452abff1cd2b75500a

    thank you for your any help..

     

  11. 52 minutes ago, melv0 said:

    okay i use RAM 512mb and my server Pre renewal, so why map-server awlays auto close ?

    just upgrade to 1gb RAM, it will solve your problem.. 512MB is MINIMUM, you still have another process that using the memory..like mysql, background process and others.

  12. 15 minutes ago, iAmGnome said:

    Already asked godaddy about it and they stand firm with their answer that they wont open such ports.

    i believe you're asked them in wrong question, one of my friends able to request to open port for his fluxcp, you can try asking to open port for only outgoing/outbond port (not incoming), and tell them in details that open port just for checking the another server online.

    if you cant, just request for refund, and buy from another provider.. godaddy kinda expensive

    • Upvote 1
  13. this might not your answer that youre looking for, but mostly shared hosting will only open specific outgoing port only, i believe you can try request.. they normally will open the port for you.

×
×
  • Create New...