Jump to content

crazyarashi

Developer
  • Posts

    763
  • Joined

  • Last visited

  • Days Won

    20

Posts posted by crazyarashi

  1. 11 minutes ago, kavo said:
    
    How do i change the delay from 1 day to 1 hour ?
    
    thanks
    
    
    //======Name========================================
    // Daily Monster Hunt
    //======Version=====================================
    // 1.2
    //======Author(s)===================================
    // Sandbox
    //======Comments====================================
    // This NPC allows your player to hunt a random amount
    // of a random monster
    // *randomception!*
    // If the player successfully hunts the monster
    // he'll receive a reward!
    //======Credits=====================================
    // KeyWorld, nanakiwurtz, NeoMind, Kido
    // Thanks for helping me out guize!
    // Modified by Luciar for Yonko
    //==================================================
     
    prontera,100,200,3	script	Hunting Challenge	78,{
     
    mes .Npc_Name$;
    	if(Hunter) {
    	mes "You have killed ^880000"+HuntCount+"^000000/^0000FF"+Amt
     
    +"^000000 "+getmonsterinfo(Hunt,0)+"s, keep it up!";
    	close;
    	}
    	if(gettimetick(2) < HuntDelay) {
    		mes "You can only do this quest once a day!";
    		close;
    	}
    
    mes "Hello, do you want to take on the Monster Hunting Challenge?","If you manage to kill them, you'll receive a reward!"; 
    if(select("Bring it on!:How about no?")==2) {
    	mes .Npc_Name$;
    	mes "Fine!";
    	close;
    }
     
    next;
    mes .Npc_Name$;
    	Hunt = .Mob_List[rand(getarraysize(.Mob_List))];
    	Amt = rand (50,100); //Amount of mob to hunt
    	Hunter++;
     
    mes "You have to hunt ^0000FF"+Amt+" "+getmonsterinfo(Hunt,0)+"^000000!";
    next;
    mes .Npc_Name$;
    mes "Go go go!";
    close2;
    HuntDelay = gettimetick(2)+86400; //Once a day only.
    end;
    
     
    //----------Config----------
     
    OnInit:
    	.Npc_Name$ = "[^0000FF NPC ^000000]";
    	setarray .Mob_List[0],1002,1007,1063; //Mobs to hunt. Default: Poring, Fabre, Lunatic
    	.Reward = 607; //Reward ID
    	.RewAmt = 10; //Reward Amount
    	end;
     
    OnNPCKillEvent:
    	if(Hunter > 0) {
    		if(killedrid == Hunt) {
    			HuntCount++;
    			dispbottom "You have killed "+HuntCount+"/"+Amt+" "+getmonsterinfo(Hunt,0)+"s, keep it up!";
    			if(HuntCount >= Amt) {
    				dispbottom strnpcinfo(1)+": Congratulations! You did it!";
    				getitem .Reward,.RewAmt;
    				Hunt = 0;
    				Hunter = 0;
    				HuntCount = 0;
    				Amt = 0;
    			}
    		}
    	}
    end;
    }
    
    
    
    
    how do i make the quest from 1 day delay change to 1 hour delay ?
    
    
    
    thanks in advance

     

    Edit This Line
     

    HuntDelay = gettimetick(2)+86400; //Once a day only. 
    
    to
    
    
    HuntDelay = gettimetick(2)+3600; //Once every hour
    
    PS Use codebox for scripts
    
    
    
  2. 13 hours ago, Mephisto said:
    
    [Fatal Error]: Connection to char-server failed 3, please check conf/import/map_conf userid and passwd.
    

    This error shows everytime then after I restart my server like 3-5 times then this error will be gone then it will show again after a couple of restart.

    Communication user & password in map_conf, char_conf and in the sql is the same. Any idea why this shows ?

    Did you add something on your import conf? :o 

  3. Hmmmm works fine on my npc. well try this then :))

    case 1:
    	if(Zeny < 25000000 || countitem(7711) < 1000 || countitem(6395) < 150 || countitem(6557) < 150 || countitem(983) < 100 || countitem(7166) < 250) goto MItems;
                cutin "123.bmp",255;
                mes "[Celine]";
                mes "Here you go!";
                delitem 7711,1000;
                delitem 6395,250;
                delitem 6557,250;
                delitem 983,100;
                delitem 7166,250;
                set Zeny, Zeny-25000000;
                getitem 2589,1;
                end;
    
    MItems:   //missing items
    	cutin "122.bmp",255;
    	mes "[Celine]";
    	mes "What a lovely choice my dear";
    	mes "I need the following items";
    	mes "100 Event Ticket (7711)";
    	mes "5 Yggdrasil Berry (607)";
    	mes "5 Blue Potion (505)";
      	close;

     

  4. 4 hours ago, kyleanthonydizon said:
    
    wd.damage = 40 * sstatus->str + sstatus->hp * 8 * skill_lv / 100;

    Hi, is this formula buggy? Because I have 255 vit and still the the damage is at 20k only.

     

    Final Strike is based on vit right?

     

    Are they any solutions for this?

    It's not actually vit base but HP Base and STR.
    Did you try activating illusion shadow while you're on it? :))

    • Upvote 1
  5. Try this. :))

    switch(select("Armor1:Armor2")){
    	case 1:
    		if(countitem(7117) > 19 || countitem(7711) > 99 || countitem(505) > 4){
    			cutin "123.bmp",255;
    			mes "[Celine]";
    			mes "Here you go!";
    			delitem 7117,20;
    			delitem 7711,100;
    			delitem 607,5;
    			getitem 5208,1;
    			end;
    	} else {
    			cutin "122.bmp",255;
    			mes "[Celine]";
    			mes "What a lovely choice my dear";
    			mes "I need the following items";
    			mes "20 Torn Magic Book (7117)";
    			mes "100 Event Ticket (7711)";
    			mes "5 Yggdrasil Berry (607)";
    			mes "5 Blue Potion (505)";
    			close;
    			}
    	case 2:
    		if(countitem(7117) > 19 || countitem(7711) > 99 || countitem(505) > 4){
    			cutin "123.bmp",255;
    			mes "[Celine]";
    			mes "Here you go!!!!";
    			delitem 7117,20;
    			delitem 7711,100;
    			delitem 607,5;
    			getitem 5209,1;
    			end;
    	} else {
    			cutin "122.bmp",255;
    			mes "[Celine]";
    			mes "You still have missing requirements";
    			mes "I need the following items";
    			mes "20 Torn Magic Book (7117)";
    			mes "100 Event Ticket (7711)";
    			mes "5 Yggdrasil Berry (607)";
    			mes "5 Blue Potion (505)";
    			close;
    			}
    		}

     

  6. 1 hour ago, ProjectFaust said:

    sorry bro i dont know why my npc didnt come out hope you can help me bro thanks btw

     

    prontera,143,171,4    script Seyra    90,{

    set .@n$, "[Seyra]";

    setarray .@rwd[0],12210,2,14156,1,7229,2,14592,2; // Rewards: <item id>,<item amount>

    query_sql ("SELECT `last_ip` FROM `login` WHERE `account_id`=" + getcharid(3) + "", .@lip$);

    if ( getd("$" + .@lip$ + "_NG") > 0 || #NewbieGift > 0)

    {

    mes .@n$;

    mes "I'm sorry, the rewards are exclusively for new players.";

    close;

    }

    mes .@n$;

    mes "Welcome to ^E066FFSin-RO World!^000000, "+ strcharinfo ( 0 ) +".I Am Seyra";

    for ( set .@i, 0; .@i < getarraysize(.@rwd); set .@i, .@i + 2 )

    mes .@rwd[.@i+1] + " x " + getitemname(.@rwd[.@i]);

    close2;

    set #NewbieGift, 1;

    setd "$" + .@lip$ + "_NG", getd("$" + .@lip$ + "_NG") + 1;

    for ( set .@i, 0; .@i < getarraysize(.@rwd); set .@i, .@i + 2 )

    getitem .@rwd[.@i], .@rwd[.@i+1];

    end;

    OnInit:

    waitingroom "Newbie Gift!",0;

    end;

    }

    prontera,143,171,4<tab>script<tab>Seyra<tab>90,{
    Fix the syntax of the npc add tabs :))

  7. You can do OnLoadMapEvent: With countitem on it. something like this havent tested it though

    -	script	test	-1,{
    OnPCLoadMapEvent:
    		if(countitem(12345) > 0 || countitem(12346) > 0 || countitem(12347) > 0) 
    		warp "SavePoint"0,0;
    		end;
    
    
    //------Enable map OnPCLoadMapEvent-------------------
    map_01	mapflag	loadevent
    		
    		


     

    • Upvote 1
  8. Hi Good Day Rathena!, Im quite on what's happening here. I added the Expanded Summoner in my database and in the client sided files but this happens.
    I Can't learn the skills >.< Im Pretty sure I added all the things that's needed for adding a skill. Do you have any idea how to fix this or did I miss something :o
    Pardon me also if I posted in the wrong section :D not sure if it's server side or clientside.. 

    screenStormRO001.jpg

  9. Try this script for your item :)))

    14536,Abrasive,Abrasive,2,0,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ specialeffect2 EF_MAGICALATTHIT; sc_start SC_INCCRI,300000,30; },{},{}

    13090,FaceWormQueen_Leg,Faceworm Queen Leg,5,20,,500,180:120,,1,2,0x028F5EEF,63,2,2,4,100,1,1,{ bonus bInt,3; autobonus "{ bonus3 bAutoSpell,\"NPC_EARTHQUAKE\",1,200; }",8,5000,BF_NORMAL,"{ specialeffect2 EF_POTION_BERSERK; active_transform 2529,5000; }"; },{},{}

  10. 40 minutes ago, Tio Akima said:

    hexing the path? sorry... I do not understand

    Can you talk a little more about?????

    You Can Open The Map Files in Hex Editor in my case i used XVI32 HEX EDITOR.

    1. You need to open your map files in the GRF Editor to check the map resources ( add the texture files and map in same grf to check) 

    If your custom textures path is correct there will be a check in the box. 

    Spoiler

    vC3VtEF.png

    2. Now that you know what textures are error in the map files you need to open it in Hex Editor to change it to a readable path. 
    example if you go to the map you will have this error data\texture\yourmap/map.bmp not found you need to hex this part to mapfiles/map.bmp -> mapfiles\map.bmp

     

    Spoiler

    OQjo4U4.png

    Just scroll down to find the paths for your map. :)) Hope This helps :D

    • Upvote 4
  11. 44 minutes ago, Tio Akima said:

    Hello, I saw someone with this question, and I'm having the same problem. Does anyone know how to solve it?

    "Added a custom map texture in browedit and applied it to a map. (Also added in grf with proper path)
    But when you load it in game it shows
    Resource File not found but the directory is correct.
    But when i add the data folder in the client folder its being read.
    anybody know how to add a quickfix for this."
     

    Custom texture is not found in GRF
    Just in the date folder.

     

     

    Hi I also had this problem also, Solved it by hexing the path :))

×
×
  • Create New...