Jump to content

ThyroDree

Members
  • Content Count

    556
  • Joined

  • Last visited

Posts posted by ThyroDree


  1. how to add src code like @go and @warp delay 5s
     
    how to add this  HOW TO DIFF MANUALLY T_T
     

    Index: conf/battle.conf===================================================================--- conf/battle.conf	(revision 12062)+++ conf/battle.conf	(working copy)@@ -58,4 +58,4 @@ import: conf/battle/misc.conf  //Your custom config goes here.-import: conf/import/battle_conf.txt+import: conf/battle/custom.confIndex: conf/battle/custom.conf===================================================================--- conf/battle/custom.conf	(revision 0)+++ conf/battle/custom.conf	(working copy)@@ -0,0 +1,7 @@+//--------------------------------------------------------------+// Hercules Battle Configuration File+//--------------------------------------------------------------++// Warp and Go delay in miliseconds ( 5000 = 5 Seconds )+// Official is 0+gowarp_delay: 5000 No newline at end of fileIndex: src/map/atcommand.c===================================================================--- src/map/atcommand.c	(revision 12062)+++ src/map/atcommand.c	(working copy)@@ -426,6 +431,10 @@		 clif->message(fd, msg_txt(248));		 return false;	 }+	if( !pc->get_group_level(sd) && DIFF_TICK(iTimer->gettick(),sd->canlog_tick) < battle_config.gowarp_delay ) {+		clif->message(fd,"@warp cannot be issued since you were into battle recently");+		return false;+	}		 if (pc->setpos(sd, mapindex, x, y, CLR_TELEPORT) != 0) {		 clif->message(fd, msg_txt(1)); // Map not found.		 return false;@@ -1755,6 +1780,11 @@	 memset(map_name, '0', sizeof(map_name));	 memset(atcmd_output, '0', sizeof(atcmd_output));	 +	if( !pc->get_group_level(sd) && DIFF_TICK(iTimer->gettick(),sd->canlog_tick) < battle_config.gowarp_delay ) {+		clif->message(fd,"@go cannot be issued since you were into battle recently");+		return -1;+	}+	 // get the number	 town = atoi(message);	 Index: src/map/battle.c===================================================================--- src/map/battle.c	(revision 12062)+++ src/map/battle.c	(working copy)@@ -6486,6 +6527,7 @@	 { "gm_ignore_warpable_area",			&battle_config.gm_ignore_warpable_area,			0,		2,		100,			},	 { "packet_obfuscation",					&battle_config.packet_obfuscation,				1,		0,		3,				},	 { "client_accept_chatdori",             &battle_config.client_accept_chatdori,          0,      0,      INT_MAX,		},+	{ "gowarp_delay",                     	&battle_config.gowarp_delay,                 	 0,      0,      INT_MAX,        }, }; #ifndef STATS_OPT_OUT /**Index: src/map/battle.h===================================================================--- src/map/battle.h	(revision 12062)+++ src/map/battle.h	(working copy)@@ -453,7 +453,7 @@	 int gm_ignore_warpable_area;		  int client_accept_chatdori; // [Ai4rei/Mirei]-	+	int gowarp_delay; } battle_config;  Index: src/map/pc.c===================================================================--- src/map/pc.c	(revision 12062)+++ src/map/pc.c	(working copy)@@ -6630,6 +6648,8 @@		 elemental_set_target(sd,src);	  sd->canlog_tick = iTimer->gettick();+	if( src->type == BL_PC )+		((TBL_PC*)src)->canlog_tick = iTimer->gettick();	 }  /*==========================================

  2. Can you give me NPC Script of Soul linker but you must pay 300k Zeny to be Linked .

     

    THANKS :)

     

     i tried the eathena script. after i got soul linked i got stoned o-o please help

     


     

     

     

    prontera,202,188,5 script Soul Linker 719,{
    set .@n$,"^0000FF[ Soul Linker NPC ]^000000";
    set .@time, 300000; // the buff last 5 minutes
    set @zenycost,300000;
    mes .@n$;
    mes "Hello "+strcharinfo(0)+",do";
    mes "You want me to Soul Link you?";
    switch(select("Yes:No")) {
    case 1:
    if(Zeny < @zenycost) goto l_nozeny;
    set Zeny,Zeny - @zenycost;
    switch ( basejob ) {
    case Job_Alchemist: set .@spirit, 445; break;
    case Job_Monk: set .@spirit, 447; break;
    case Job_Star_Gladiator: set .@spirit, 448; break;
    case Job_Sage: set .@spirit, 449; break;
    case Job_Crusader: set .@spirit, 450; break;
    case Job_SuperNovice: set .@spirit, 451; break;
    case Job_Knight: set .@spirit, 452; break;
    case Job_Wizard: set .@spirit, 453; break;
    case Job_Priest: set .@spirit, 454; break;
    case Job_Bard: case Job_Dancer: set .@spirit, 455; break;
    case Job_Rogue: set .@spirit, 456; break;
    case Job_Assassin: set .@spirit, 457; break;
    case Job_Blacksmith: set .@spirit, 458; break;
    case Job_Hunter: set .@spirit, 460; break;
    case Job_Soul_Linker: set .@spirit, 461; break;
    default:
    if ( upper == 1 && baselevel < 70 )
    set .@spirit, 494;
    }
    if ( .@spirit ) {
    sc_start4 sc_spirit, .@time, 5, .@spirit,0,0;
    skilleffect .@spirit, 5;
    }
    case 2:
    mes .@n$;
    mes "Okay,goodbye!";
    close;
    }
    l_nozeny:
    mes .@n$;
    mes "You need 300,000 Zeny for a Soul Link.";
    close;
    }

     

     


  3. It works fine, but won't delete your pick. Here's a version that does:

     

     

    -	script	Sample	-1,{	 OnPCLoadMapEvent:        getmapxy(.@map$, .@x, .@y, 0);		        if (.@map$ == "guild_vs3") {            if (!countitem(7318) || getequipid(1) != 5137) {                message strcharinfo(0),"You need to have an Alice Doll equipped and 1 Old Pick to proceed!";				                sleep2 1000;                warp "SavePoint", 0, 0;            }						delitem 7318, 1;			message strcharinfo(0), "1 Old Pick has been deleted from your inventory.";        }		        end;} guild_vs3	mapflag	loadevent

    Done! THANKS! Can you teach me how to add timer? like you can only stay inside  for 10mins


  4. That kicks you out of the map "guild_vs3" and sends you to your save point if you don't have item 7318 in your inventory or item 5137 equipped. I recommend you use the other script; don't use both.

    how can i make the script checker work?


  5.  

    prontera,150,150,0    script    Sample    100,{    if ( countitem(7318) && getequipid(1) == 5137 ) {		// allow them to go to the map		delitem 7318, 1;		warp "guild_vs3",0,0;		end;    }}

    then what is this sir?

    - script Sample -1,{

    OnPCLoadMapEvent:

    getmapxy(.@map$,.@x,.@y,0);

    if ( .@map$ == "guild_vs3" ) {

    if ( !countitem(7318) || getequipid(1) != 5137 ) {

    message strcharinfo(0),"You need to have alice doll and old pick";

    sleep2 2000;

    warp "SavePoint",0,0;

    }

    }

    end;

    }

    guild_vs3 mapflag loadevent


  6.  

    prontera,150,150,0	script	Sample	100,{	if ( countitem(7318) && getequipid(1) == 5137 ) {		// allow them to go to the map		warp "guild_vs3",0,0;		end;	}}

    THANKS! :) I'll try this. but how can i add if a player talks to npc and don't have the required items, the npc says: You Need Alice Doll and Old Pick to Go inside. 1x Old Pick Item will removed by the npc, because used it to go into guild_vs3. but Alice Doll remains.


  7.  

    if ( countitem(7318) && getequipid(1) == 5137 ) {    // allow them to go to the map}

    can you make example npc script allows to go inside guild_vs3 but need to wear a Alice Doll and Needs an Old Pick. 

     

    Sorry. Newbie :(


  8. Can i request npc script that the npc requires/checks an item to go inside the map to start hunting. Like NPC Requires : Old Pick(Inventory Etc,.) and Alice Doll(Wearing) to Go Inside the map.

     

    Please Help.

    THANKS in ADVANCE :)

×
×
  • Create New...

Important Information

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